/**
 * ============================================
 * Dawopu Group - 自定义样式
 * 版本: 1.0
 * 说明: 补充 header.php 中的内联样式
 *       包含 Lockheed Martin 风格组件
 * ============================================
 */

/* ============================================
   1. 数字滚动动画 (Lockheed Martin 风格)
   ============================================ */

.counter {
    opacity: 0;
    animation: countUp 1.2s ease-out forwards;
}

.counter.delay-1 {
    animation-delay: 0.2s;
}

.counter.delay-2 {
    animation-delay: 0.4s;
}

.counter.delay-3 {
    animation-delay: 0.6s;
}

.counter.delay-4 {
    animation-delay: 0.8s;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   2. 价值卡片悬停效果 (Lockheed Martin 风格)
   ============================================ */

.value-card {
    transition: all 0.3s ease;
    border-top: 4px solid #2563eb;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* 不同颜色的卡片边框 */
.value-card.border-indigo {
    border-top-color: #4f46e5;
}

.value-card.border-green {
    border-top-color: #16a34a;
}

.value-card.border-purple {
    border-top-color: #7c3aed;
}

.value-card.border-orange {
    border-top-color: #ea580c;
}

/* ============================================
   3. 统计数字看板 (深色背景)
   ============================================ */

.stats-dashboard .stat-number {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #60a5fa;
}

.stats-dashboard .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.stats-dashboard .stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   4. 认证卡片
   ============================================ */

.cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.cert-card:hover {
    background: #f3f4f6;
}

.cert-card .cert-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.cert-card h4 {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1a1a2e;
}

.cert-card p {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ============================================
   5. About Hero 文字阴影
   ============================================ */

.about-hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   6. 关于页面 - Hero 统计数据浮动条
   ============================================ */

.about-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.about-hero-stats .stat-item {
    flex: 1 1 120px;
}

.about-hero-stats .stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: -0.02em;
}

.about-hero-stats .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ============================================
   7. 产品卡片增强
   ============================================ */

.product-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.3);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 1rem 1.25rem 1.25rem;
}

.product-card .product-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.product-card .product-name a {
    color: inherit;
}

.product-card .product-name a:hover {
    color: #2563eb;
}

.product-card .product-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

/* ============================================
   8. 新闻卡片
   ============================================ */

.news-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.3);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
}

.news-card .news-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .news-content {
    padding: 1.25rem;
}

.news-card .news-date {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card .news-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1a1a2e;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-title a {
    color: inherit;
}

.news-card .news-title a:hover {
    color: #2563eb;
}

.news-card .news-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   9. 分页样式
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

.pagination .page-link.active {
    background: #2563eb;
    color: #ffffff;
}

.pagination .page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   10. 表单样式增强
   ============================================ */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-size: 0.9375rem;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.125rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   11. 消息通知
   ============================================ */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ============================================
   12. 响应式工具
   ============================================ */

/* 移动端隐藏 */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    /* 关于页面移动端优化 */
    .about-hero-stats {
        gap: 1rem;
    }
    
    .about-hero-stats .stat-item {
        flex: 1 1 80px;
    }
}

/* 平板端隐藏 */
@media (min-width: 641px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

/* 桌面端隐藏 */
@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   13. 加载状态
   ============================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   14. 打印样式
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ============================================
   15. 自定义滚动条
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a7ae;
}

/* ============================================
   16. 隐藏元素（SEO 辅助）
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   17. 面包屑导航
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb .separator {
    color: #d1d5db;
    font-size: 0.625rem;
}

.breadcrumb .current {
    color: #1a1a2e;
    font-weight: 500;
}