/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e1e2a;
    line-height: 1.4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f0f2;
}
::-webkit-scrollbar-thumb {
    background: #b89a2c;
    border-radius: 8px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== 导航栏样式 - 统一版本 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.logo a {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a2e, #b89a2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}
.nav-links a {
    color: #2c2c38;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
    color: #b89a2c;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(184, 154, 44, 0.6);
    color: #b89a2c;
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
}

/* 桌面端显示导航 */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

/* 移动端导航菜单 */
@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        padding: 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(184, 154, 44, 0.2);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
    }
}

/* 语言切换按钮 - 统一的样式（移动端适配） */
.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 0;
    align-items: center;
}
.lang-btn {
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 30px;
    color: #2c2c38;
    font-family: inherit;
    transition: all 0.2s;
}
.lang-btn.active {
    background: #b89a2c;
    color: white;
}
.lang-btn:hover:not(.active) {
    background: rgba(184, 154, 44, 0.1);
}
@media (max-width: 1023px) {
    .lang-switch {
        margin-top: 8px;
        margin-left: 0;
    }
}

/* ===== 通用区块样式 ===== */
section {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-sub {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #b89a2c;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1e1e2a;
}
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .section-title h2 { font-size: 1.9rem; }
}

/* 按钮样式 */
.btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    font-size: 0.9rem;
    display: inline-block;
}
.btn-primary {
    background: #b89a2c;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(184, 154, 44, 0.25);
}
.btn-primary:hover {
    background: #9f821f;
    transform: translateY(-3px);
}
.btn-outline {
    border: 1px solid #b89a2c;
    color: #b89a2c;
    background: transparent;
}
.btn-outline:hover {
    background: rgba(184, 154, 44, 0.08);
    transform: translateY(-3px);
}
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 滚动淡入动画 */
.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero 区域 - 保留原 index 样式 ===== */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}
.hero-badge {
    display: inline-block;
    background: #b89a2c;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    font-weight: 500;
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.product-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.05);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-12px);
    border-color: rgba(184, 154, 44, 0.4);
}
.card-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s;
}
.card-info { padding: 1.8rem; }
.card-icon { font-size: 2rem; color: #b89a2c; margin-bottom: 1rem; }

/* 统计数据 */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}
.stat-item h4 { font-size: 2.5rem; font-weight: 800; color: #b89a2c; }
.stat-item p { color: #666; }

/* 时间线 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline-item {
    border-left: 3px solid #b89a2c;
    padding-left: 2rem;
    position: relative;
}
.timeline-year { font-weight: 800; font-size: 1.5rem; color: #b89a2c; }

/* 品牌详情卡片 */
.brand-detail-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.brand-detail-card img { width: 100%; height: 100%; object-fit: cover; }
.brand-detail-info { padding: 2rem; }

/* 图片滚动画廊 */
.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    cursor: grab;
}
.gallery-scroll:active {
    cursor: grabbing;
}
.gallery-scroll img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .gallery-scroll img {
        width: 220px;
        height: 160px;
    }
}

/* 联系表单 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 2rem;
    background: #f8f8fc;
    border-radius: 32px;
    padding: 2rem;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid #e2e2e8;
    margin-bottom: 1rem;
    font-family: inherit;
}
.submit-btn {
    background: #b89a2c;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.tech-tag {
    color: #b89a2c;
    background: #fff3e0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 页脚样式 */
footer {
    background: #ffffff;
    padding: 50px 0 30px;
    border-top: 1px solid #efeff2;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col h4 {
    color: #1e1e2a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}
.footer-col p {
    margin-bottom: 0.3rem;
}
.footer-col a {
    color: #8e8e9a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-col a:hover {
    color: #b89a2c;
    transform: translateX(4px);
}
.social-icons a {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: #8e8e9a;
    transition: all 0.2s ease;
    display: inline-block;
}
.social-icons a:hover {
    color: #b89a2c;
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #8e8e9a;
}
.icp-link {
    color: #8e8e9a;
    text-decoration: none;
    margin-left: 6px;
    transition: all 0.2s ease;
}
.icp-link:hover {
    color: #b89a2c;
    text-decoration: none;
}