/* ========================================
   JDL Overseas 扁平化现代风格
   Flat & Modern Design System
   ======================================== */

/* ========== 扁平化配色方案 ========== */
:root {
    /* 主色调 - 更清新的绿色 */
    --color-primary: #28a745;
    --color-primary-dark: #218838;
    --color-primary-light: #5cb85c;
    --color-primary-lighter: #e8f5e9;
    
    /* 辅助色 - 扁平化色系 */
    --color-secondary: #6c757d;
    --color-accent: #ffc107;
    
    /* 背景色 - 纯净简洁 */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-grey: #e9ecef;
    
    /* 文字颜色 - 清晰对比 */
    --color-text-dark: #212529;
    --color-text-grey: #6c757d;
    --color-text-light: #adb5bd;
    
    /* 边框 */
    --color-border: #dee2e6;
    
    /* 阴影 - 扁平化轻阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.1);
}

/* ========== 重置导航栏为扁平风格 ========== */
.header {
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    border-bottom: 3px solid #28a745 !important;
    backdrop-filter: none !important;
}

.nav-brand {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.nav-brand img {
    height: 48px !important;
    filter: none !important;
}

.nav-menu a {
    color: #212529 !important;
    font-weight: 600 !important;
    position: relative;
}

.nav-menu a:hover {
    color: #28a745 !important;
    transform: none !important;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #28a745;
    transition: width 0.3s ease;
}

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

/* ========== 扁平化Hero区域 ========== */
.hero {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%) !important;
    position: relative;
}

.hero::before {
    display: none; /* 移除纹理 */
}

.hero-title {
    text-shadow: none !important;
    font-weight: 700 !important;
}

.hero-subtitle {
    text-shadow: none !important;
    opacity: 0.95;
}

.hero-buttons .btn {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
}

/* ========== 扁平化语言切换器 - 仅桌面端 ========== */
@media (min-width: 769px) {
    .language-toggle {
        background: white !important;
        border: 2px solid #28a745 !important;
        border-radius: 50px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .lang-btn {
        border-radius: 50px !important;
    }

    .lang-btn.active {
        background: #28a745 !important;
    }

    .lang-btn:hover {
        background: #e8f5e9 !important;
        color: #28a745 !important;
    }
}

/* ========== 扁平化卡片设计 ========== */
.card,
.feature-card,
.product-card,
.testimonial-card,
.contact-info-card {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.card:hover,
.feature-card:hover,
.product-card:hover,
.testimonial-card:hover,
.contact-info-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12) !important;
    border-color: #28a745 !important;
}

/* ========== 扁平化特性卡片 ========== */
.feature-icon {
    background: #e8f5e9 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.feature-title {
    color: #28a745 !important;
}

/* ========== 扁平化产品分类卡片 ========== */
.category-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%) !important;
}

.category-card::before {
    background: rgba(0,0,0,0.1) !important;
}

.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.25) !important;
}

.category-card:hover::before {
    background: rgba(0,0,0,0.05) !important;
}

.category-icon {
    animation: none !important; /* 移除浮动动画，更扁平 */
}

.category-name,
.category-count {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* ========== 扁平化产品卡片 ========== */
.product-card {
    border-radius: 8px !important;
}

.product-image {
    border-radius: 8px 8px 0 0 !important;
}

.product-id {
    background: #28a745 !important;
    color: white !important;
    border-radius: 4px !important;
}

.product-badges .badge {
    border-radius: 4px !important;
}

.product-card .btn {
    width: 100%;
    border-radius: 6px !important;
}

/* ========== 扁平化数据展示 ========== */
.stat-card {
    border: 2px solid #28a745 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.stat-number {
    background: none !important;
    -webkit-text-fill-color: #28a745 !important;
    color: #28a745 !important;
}

/* ========== 扁平化认证徽章 ========== */
.certification-badge {
    border-radius: 8px !important;
    border: 2px solid transparent !important;
}

.certification-badge:hover {
    border-color: #28a745 !important;
}

/* ========== 扁平化客户评价 ========== */
.testimonial-card {
    border-left: 4px solid #28a745 !important;
    border-radius: 8px !important;
}

.testimonial-card::before {
    display: none; /* 移除引号装饰 */
}

.testimonial-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15) !important;
}

/* ========== 扁平化页脚 ========== */
.footer {
    background: #212529 !important;
    padding: 60px 0 30px !important;
}

.footer::before {
    height: 4px !important;
    background: #28a745 !important;
}

.footer-section h4 {
    color: white !important;
}

.footer-section h4::after {
    background: #28a745 !important;
}

.footer-links a:hover {
    color: #5cb85c !important;
}

/* ========== 扁平化按钮系统 ========== */
.btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background: #28a745 !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
}

.btn-primary:hover {
    background: #218838 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4) !important;
}

.btn-secondary {
    background: white !important;
    color: #28a745 !important;
    border: 2px solid white !important;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.9) !important;
    color: #218838 !important;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid #28a745 !important;
    color: #28a745 !important;
}

.btn-outline:hover {
    background: #28a745 !important;
    color: white !important;
}

/* ========== 扁平化区块标题 ========== */
.section-title {
    font-weight: 700 !important;
    color: #212529 !important;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #28a745;
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d !important;
}

/* ========== 扁平化表单 ========== */
.form-input,
.form-select,
.form-textarea {
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* ========== 搜索框扁平化 ========== */
.search-box {
    border-radius: 50px !important;
}

.search-input {
    padding: 14px 20px 14px 50px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 50px !important;
}

.search-input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.search-icon {
    left: 18px !important;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* ========== 标签扁平化 ========== */
.tab {
    border: 2px solid #dee2e6 !important;
    border-radius: 50px !important;
    background: white !important;
}

.tab:hover {
    border-color: #28a745 !important;
    background: #e8f5e9 !important;
}

.tab.active {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

/* ========== 返回顶部按钮扁平化 ========== */
.back-to-top {
    background: #28a745 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.back-to-top:hover {
    background: #218838 !important;
}

/* ========== 背景色优化 ========== */
.bg-light {
    background: #f8f9fa !important;
}

.bg-white {
    background: #ffffff !important;
}

.bg-primary {
    background: #28a745 !important;
}

/* ========== 移除所有过度复杂的效果 ========== */
* {
    backdrop-filter: none !important;
}

/* 移除渐变文字效果 */
.stat-number {
    background: none !important;
    -webkit-text-fill-color: #28a745 !important;
    background-clip: unset !important;
}

/* ========== 间距优化 ========== */
.section {
    padding: 80px 0 !important;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0 !important;
    }
}

/* ========== 统一圆角 ========== */
img {
    border-radius: 8px;
}

/* ========== 链接样式 ========== */
a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #218838;
}

/* ========== 产品详情按钮优化 ========== */
.product-card .btn-outline {
    border-width: 2px !important;
    font-weight: 600 !important;
}

.product-card:hover .btn-outline {
    transform: none !important;
}


