/* ========================================
   JDL Overseas 增强样式
   Enhanced Styles - 优化头部、底部和组件
   ======================================== */

/* ========== 优化导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(44, 85, 48, 0.08) !important;
    z-index: 999;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.navbar {
    padding: 18px 0 !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2c5530 !important;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand img {
    height: 52px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
}

.nav-menu {
    display: flex !important;
    gap: 40px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    position: relative;
    padding: 8px 0;
    display: block;
}

.nav-menu a:hover {
    color: #2c5530 !important;
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #2c5530 !important;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2c5530);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ========== 语言切换器优化 - 仅桌面端 ========== */
@media (min-width: 769px) {
    .language-toggle {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 6px !important;
        background: white !important;
        padding: 6px !important;
        border-radius: 30px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    .lang-btn {
        padding: 8px 16px !important;
        border: none !important;
        background: transparent !important;
        color: #666 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border-radius: 20px !important;
    }

    .lang-btn:hover {
        background: #E8F5E9 !important;
        color: #2c5530 !important;
    }

    .lang-btn.active {
        background: linear-gradient(135deg, #2c5530, #4CAF50) !important;
        color: white !important;
    }
}

/* ========== Hero区域优化 ========== */
.hero {
    background: linear-gradient(135deg, #2c5530 0%, #4CAF50 50%, #81C784 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Cpath d="M30 10l5 15h15l-12 9 5 15-13-9-13 9 5-15-12-9h15z" fill="rgba(255,255,255,0.05)"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 4px 8px rgba(0,0,0,0.2) !important;
    margin-bottom: 24px !important;
}

.hero-subtitle {
    text-shadow: 1px 2px 4px rgba(0,0,0,0.15) !important;
    font-size: 20px !important;
    line-height: 1.8 !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.hero-buttons .btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    transform: translateY(-3px) !important;
}

/* ========== 品牌特色卡片优化 ========== */
.feature-card {
    background: white !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15) !important;
    border-color: #4CAF50;
}

.feature-icon {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 44px !important;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
}

.feature-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2c5530 !important;
    margin-bottom: 12px !important;
}

.feature-description {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.8 !important;
}

/* ========== 产品分类卡片优化（重点！）========== */
.category-card {
    position: relative !important;
    min-height: 280px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,85,48,0.95), rgba(76,175,80,0.85)) !important;
    transition: all 0.4s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 16px 50px rgba(76, 175, 80, 0.35) !important;
}

.category-card:hover::before {
    background: linear-gradient(135deg, rgba(44,85,48,0.85), rgba(76,175,80,0.75)) !important;
}

.category-content {
    text-align: center !important;
    z-index: 2 !important;
    position: relative !important;
    padding: 30px;
}

.category-icon {
    font-size: 72px !important;
    margin-bottom: 20px !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-name {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 12px !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
    letter-spacing: 0.5px;
}

.category-count {
    font-size: 18px !important;
    color: rgba(255,255,255,0.95) !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* ========== 页脚优化 ========== */
.footer {
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%) !important;
    color: white !important;
    padding: 60px 0 30px !important;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #81C784, #4CAF50);
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 50px !important;
    margin-bottom: 40px !important;
}

.footer-section h4 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #4CAF50;
    border-radius: 2px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.footer-links a:hover {
    color: #4CAF50 !important;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 30px !important;
    text-align: center !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px !important;
}

.footer-bottom p {
    margin-bottom: 8px !important;
}

.footer-bottom a:hover {
    color: rgba(255,255,255,1) !important;
    text-decoration: underline !important;
}

/* ========== 数据展示优化 ========== */
.stat-card {
    background: white !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2) !important;
}

.stat-number {
    font-size: 56px !important;
    font-weight: 900 !important;
    color: #2c5530 !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, #2c5530, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px !important;
    color: #666 !important;
    font-weight: 600 !important;
}

/* ========== 认证徽章优化 ========== */
.certification-badge {
    background: white !important;
    padding: 30px 20px !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent;
}

.certification-badge:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15) !important;
    border-color: #4CAF50;
}

/* ========== 客户评价卡片优化 ========== */
.testimonial-card {
    background: white !important;
    padding: 40px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    position: relative !important;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15) !important;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(76, 175, 80, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-quote {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin-bottom: 24px !important;
    font-style: italic !important;
    position: relative;
    z-index: 2;
}

/* ========== 区块标题优化 ========== */
.section-title {
    font-size: 40px !important;
    font-weight: 800 !important;
    color: #2c5530 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px !important;
    color: #666 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    line-height: 1.8 !important;
}

/* ========== 按钮增强 ========== */
.btn-primary {
    background: linear-gradient(135deg, #2c5530 0%, #4CAF50 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
    border: none !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-secondary {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: 2px solid white !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white !important;
    color: #2c5530 !important;
}

/* ========== 响应式优化 ========== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    /* 移动端菜单 - 使用滑动效果而不是display:none */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 1rem !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 998 !important;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1) !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu a {
        font-size: 1.2rem !important;
        padding: 1rem 0 !important;
        display: block !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    .category-name {
        font-size: 24px !important;
    }
    
    .category-icon {
        font-size: 56px !important;
    }
}


