/* ===================================================
   金禾宏升科技 - 网站样式表
   布局参考：中科骏马半导体 (junmasemi.com) 风格
   主色：深蓝 #01004c / 强调色：橙 #ff8915
   ===================================================*/

/* ========== 1. 全局变量 ========== */
:root {
    /* 主题色（对标骏马） */
    --color-primary: #01004c;       /* 主色：深蓝 */
    --color-primary-light: #0a1a5c;
    --color-accent: #ff8915;        /* 强调色：橙 */
    --color-accent-dark: #d97614;

    /* 中性色 */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-border: #e8e8e8;

    /* 尺寸 */
    --container-width: 1200px;
    --radius: 4px;
    --nav-height: 65px;
    --top-bar-height: 32px;

    /* 阴影 */
    --shadow-card: 4px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* 过渡 */
    --transition: all 0.45s ease;
    --transition-fast: all 0.3s ease;
}

/* ========== 2. 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, "微软雅黑", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { border: 0; vertical-align: top; }

/* ========== 3. 通用容器 ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 60px 0; }

/* ========== 4. 顶部信息条 ========== */
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--top-bar-height);
    background: rgba(0, 0, 0, 0.3);
    z-index: 30;
    transition: var(--transition);
}

.top-bar.hide {
    transform: translateY(-100%);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.top-bar-title {
    font-size: 12px;
    color: #e0e0e0;
}

.top-bar-info li {
    font-size: 12px;
    color: #e0e0e0;
}

/* ========== 5. 导航栏 ========== */
.navbar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0; right: 0;
    height: var(--nav-height);
    z-index: 999;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    background: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition-fast);
}

.logo-icon {
    color: var(--color-accent);
    font-size: 22px;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.footer-brand .logo-img { height: 42px; }

.navbar.scrolled .logo { color: #fff; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu > li {
    position: relative;
    height: var(--nav-height);
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 22px;
    font-size: 15px;
    color: #fff;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* 下拉面板 */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--color-primary);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #fff;
    transition: var(--transition-fast);
}

.dropdown-panel a:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px; height: 2px;
    background: #fff;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== 6. 首屏 Banner ========== */
.hero {
    position: relative;
    min-height: 580px;
    background: var(--color-primary);
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 580px;
}

.banner-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
}

.banner-content {
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-banner {
    display: inline-block;
    padding: 11px 43px;
    font-size: 14px;
    color: #fff;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.btn-banner:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-banner-outline {
    display: inline-block;
    padding: 11px 43px;
    font-size: 14px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.btn-banner-outline:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Banner 底部快捷入口条 */
.banner-quick-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
}

.quick-bar-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 27px 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.quick-item:last-child { border-right: 1px solid rgba(255, 255, 255, 0.1); }
.quick-item:hover { background: rgba(255, 255, 255, 0.05); }

.quick-icon {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.quick-icon svg { width: 40px; height: 40px; }

.quick-text h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.quick-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 7. 区块标题（英文背景字 + 中文 + 底部短线） ========== */
.section-title-block {
    text-align: center;
    position: relative;
    margin-bottom: 45px;
    padding-top: 10px;
}

.section-title-en {
    display: block;
    font-size: 45px;
    font-weight: 700;
    color: #e8e8e8;
    text-transform: uppercase;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1;
}

.section-title-cn {
    position: relative;
    z-index: 2;
    font-size: 25px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 55px;
    margin-bottom: 8px;
}

.section-title-line {
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 12px;
}

.section-title-desc {
    font-size: 14px;
    color: var(--color-text-light);
}

/* 浅色版本（用于深色背景） */
.section-title-block.light .section-title-en { color: rgba(255, 255, 255, 0.1); }
.section-title-block.light .section-title-cn { color: #fff; }
.section-title-block.light .section-title-line { background: var(--color-accent); }
.section-title-block.light .section-title-desc { color: rgba(255, 255, 255, 0.7); }

/* ========== 8. 关于金禾（视差横幅） ========== */
.about-banner {
    background: linear-gradient(135deg, #01004c 0%, #081238 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    position: relative;
}

.about-banner-overlay {
    position: relative;
    z-index: 2;
}

.about-banner-content {
    max-width: 60%;
}

.about-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.about-banner-line {
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 24px;
}

.about-banner-content p {
    font-size: 14px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.about-banner-content .btn-banner {
    margin-top: 20px;
}

/* 统计数据 */
.about-banner-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* ========== 9. 代理品牌 ========== */
.brands { background: var(--color-bg); }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.brand-card {
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    overflow: hidden;
    background: var(--color-bg);
}

.brand-card:hover {
    box-shadow: none;
}

/* 卡片图片区 */
.brand-img {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #01004c, #0a1a5c);
    position: relative;
}

.brand-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease;
}

.brand-img-placeholder svg {
    width: 80px; height: 80px;
}

.brand-card:hover .brand-img-placeholder {
    transform: scale(1.1);
}

/* 卡片文字区（悬停深色上滑） */
.brand-info {
    padding: 16px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.brand-info::before {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 0%;
    background: var(--color-primary);
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.brand-card:hover .brand-info::before {
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.brand-info h4 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 10px;
    transition: color 0.5s ease;
}

.brand-info p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-text-muted);
    transition: color 0.5s ease;
}

.brand-card:hover .brand-info h4,
.brand-card:hover .brand-info p {
    color: #fff;
}

/* ========== 10. 核心板 ========== */
.products { background: var(--color-bg-alt); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-img {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #01004c, #0a1a5c);
}

.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease;
}

.product-img-placeholder svg {
    width: 80px; height: 80px;
}

.product-card:hover .product-img-placeholder {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.product-specs {
    margin-bottom: 14px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    border-bottom: 1px dashed #eee;
}

.product-specs li span {
    color: var(--color-text-light);
    font-weight: 600;
    flex-shrink: 0;
}

.product-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ========== 11. 服务配件（视差横幅） ========== */
.services-banner {
    background: linear-gradient(135deg, #01004c 0%, #081238 50%, #01004c 100%);
    background-attachment: fixed;
    background-size: cover;
    padding: 60px 0;
    position: relative;
}

.services-banner-overlay {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition-fast);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-6px);
}

.service-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card:hover .service-icon {
    background: var(--color-accent);
    color: #fff;
}

.service-card h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ========== 12. 联系我们 ========== */
.contact { background: var(--color-bg); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
}

.contact-item-icon svg { width: 22px; height: 22px; }

.contact-item h5 {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 18px;
    color: var(--color-text);
    font-weight: 600;
}

.contact-form {
    background: var(--color-bg-alt);
    padding: 36px;
    border-radius: var(--radius);
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(1, 0, 76, 0.08);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background: var(--color-accent);
}

/* ========== 13. 页脚（三栏深色布局） ========== */
.footer {
    background: #1d2125;
    color: #bfbfbf;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 30% 55% 15%;
    gap: 0;
    padding-bottom: 30px;
}

/* 左栏 */
.footer-brand .logo {
    color: #fff;
    margin-bottom: 15px;
}

.footer-contact h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-contact h4 em {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.footer-contact p {
    font-size: 13px;
    color: #bfbfbf;
    line-height: 2;
}

/* 中栏 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 10px;
}

.footer-col h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: #bfbfbf;
    line-height: 30px;
    transition: var(--transition-fast);
}

.footer-col a:hover { color: var(--color-accent); }

/* 右栏 */
.footer-qr {
    text-align: center;
    padding-top: 10px;
}

.qr-placeholder {
    width: 109px; height: 106px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    color: var(--color-text);
}

.qr-placeholder svg { width: 70px; height: 70px; }

.footer-qr h5 {
    font-size: 13px;
    color: #fff;
    line-height: 30px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 13px;
    color: #dcdcdc;
}

/* ========== 13.5 子页面横幅 ========== */
.page-banner {
    margin-top: var(--nav-height);
    background: linear-gradient(135deg, #01004c 0%, #081238 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: attr(data-en);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.page-banner .breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.page-banner .breadcrumb a:hover {
    color: var(--color-accent);
}

.page-banner h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.page-banner .page-banner-line {
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.page-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* ========== 13.6 首页模块入口卡片 ========== */
.module-cards {
    padding: 60px 0;
    background: var(--color-bg-alt);
}

.module-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.module-card {
    background: var(--color-bg);
    padding: 36px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    border-top: 3px solid transparent;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-accent);
}

.module-card-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.module-card:hover .module-card-icon {
    background: var(--color-accent);
    transform: scale(1.1);
}

.module-card-icon svg { width: 26px; height: 26px; }

.module-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.module-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.module-card .module-link {
    display: inline-block;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.module-card:hover .module-link {
    color: var(--color-accent);
}

/* ========== 13.7 首页简介区域 ========== */
.home-about {
    padding: 60px 0;
    background: var(--color-bg);
}

.home-about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-about-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.home-about-text .about-line {
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 20px;
}

.home-about-text p {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.home-about-text .btn-banner {
    margin-top: 16px;
}

.home-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-stat-card {
    background: linear-gradient(135deg, #01004c, #081238);
    padding: 30px 20px;
    text-align: center;
}

.home-stat-card .stat-number {
    font-size: 36px;
}

.home-stat-card .stat-suffix {
    font-size: 20px;
}

.home-stat-card .stat-label {
    font-size: 13px;
}

/* ========== 14. 滚动动画 ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 15. 响应式适配 ========== */
@media (max-width: 1024px) {
    .brands-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .module-card { padding: 28px 16px; }

    .home-about-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-banner-content {
        max-width: 100%;
    }

    .about-banner-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-qr {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .navbar {
        top: 0;
        background: var(--color-primary);
    }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 70px 20px 24px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }

    .nav-menu > li {
        height: auto;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link {
        color: var(--color-text);
        padding: 13px 0;
        height: auto;
        font-size: 14px;
    }

    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--color-bg-alt);
        padding: 0;
        display: none;
    }

    .nav-dropdown.open .dropdown-panel { display: block; }

    .dropdown-panel a {
        color: var(--color-text-muted);
        padding: 10px 20px;
        font-size: 13px;
    }

    .hamburger { display: flex; z-index: 1001; }
    .hamburger span { background: #fff; }

    /* 移动端 LOGO 适配 */
    .logo { font-size: 17px; gap: 6px; }
    .logo-img { height: 30px; }
    .footer-brand .logo { font-size: 18px; margin-bottom: 10px; }
    .footer-brand .logo-img { height: 36px; }

    /* === Banner 紧凑化 === */
    .hero { min-height: auto; }
    .banner-slides { height: auto; min-height: 0; }
    .banner-slide { position: relative; height: auto; align-items: flex-start; }
    .banner-content { padding-top: 85px; padding-bottom: 30px; }
    .hero-title { font-size: 26px; margin-bottom: 14px; line-height: 1.4; }
    .hero-subtitle { font-size: 13px; line-height: 1.8; margin-bottom: 22px; }
    .hero-buttons { gap: 10px; }
    .btn-banner, .btn-banner-outline { padding: 9px 28px; font-size: 13px; }

    /* === 快捷入口条：3列横排紧凑 === */
    .banner-quick-bar { position: relative; }
    .quick-bar-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 14px 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }
    .quick-item:last-child { border-right: 1px solid rgba(255, 255, 255, 0.1); }
    .quick-icon { width: 32px; height: 32px; }
    .quick-icon svg { width: 24px; height: 24px; }
    .quick-text h4 { font-size: 13px; margin-bottom: 2px; }
    .quick-text p { font-size: 11px; }

    /* === 区块间距缩小 === */
    .section { padding: 35px 0; }
    .section-title-block { margin-bottom: 30px; }
    .section-title-en { font-size: 28px; }
    .section-title-cn { font-size: 19px; line-height: 48px; }
    .section-title-desc { font-size: 13px; }

    /* === 模块卡片紧凑 === */
    .module-cards { padding: 35px 0; }
    .module-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .module-card { padding: 24px 12px; }
    .module-card-icon { width: 44px; height: 44px; margin-bottom: 12px; }
    .module-card-icon svg { width: 22px; height: 22px; }
    .module-card h3 { font-size: 15px; margin-bottom: 5px; }
    .module-card p { font-size: 12px; margin-bottom: 10px; }
    .module-card .module-link { font-size: 12px; }

    /* === 首页简介区域紧凑 === */
    .home-about { padding: 35px 0; }
    .home-about-wrapper { gap: 30px; }
    .home-about-text h2 { font-size: 20px; margin-bottom: 12px; }
    .home-about-text p { font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
    .home-about-text .btn-banner { margin-top: 12px; padding: 9px 28px; font-size: 13px; }
    .home-about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-stat-card { padding: 20px 12px; }
    .home-stat-card .stat-number { font-size: 28px; }
    .home-stat-card .stat-suffix { font-size: 16px; }
    .home-stat-card .stat-label { font-size: 12px; }

    /* === 品牌产品卡片 === */
    .brands-grid,
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    .brand-img, .product-img { height: 160px; }
    .brand-img-placeholder svg, .product-img-placeholder svg { width: 60px; height: 60px; }

    /* === 视差取消 === */
    .about-banner,
    .services-banner {
        background-attachment: scroll;
        padding: 40px 0;
    }
    .about-banner-content { max-width: 100%; }
    .about-banner-title { font-size: 22px; margin-bottom: 12px; }
    .about-banner-content p { font-size: 13px; line-height: 1.9; }
    .about-banner-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
    }

    /* === 联系我们 === */
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .contact-form { padding: 24px 20px; }
    .contact-item p { font-size: 15px; }

    /* === 页脚紧凑 === */
    .footer { padding: 30px 0 0; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 20px;
    }
    .footer-brand .logo { font-size: 18px; margin-bottom: 10px; }
    .footer-contact h4 em { font-size: 18px; }
    .footer-contact p { font-size: 12px; }
    .footer-links { flex-wrap: wrap; gap: 20px; padding-top: 0; }
    .footer-col h4 { font-size: 14px; margin-bottom: 8px; }
    .footer-col a { font-size: 12px; line-height: 26px; }
    .footer-qr { padding-top: 0; }
    .qr-placeholder { width: 90px; height: 90px; }
    .qr-placeholder svg { width: 56px; height: 56px; }
    .footer-qr h5 { font-size: 12px; }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom p { font-size: 12px; }

    /* === 子页面横幅 === */
    .page-banner { padding: 35px 0; margin-top: var(--nav-height); }
    .page-banner::before { font-size: 48px; }
    .page-banner h1 { font-size: 22px; }
    .page-banner p { font-size: 13px; }
}

@media (max-width: 480px) {
    .banner-slides { height: auto; min-height: 0; }
    .banner-content { padding-top: 80px; padding-bottom: 25px; }
    .hero-title { font-size: 22px; margin-bottom: 10px; }
    .hero-subtitle { font-size: 12px; margin-bottom: 18px; }
    .hero-buttons { flex-direction: column; gap: 8px; }
    .hero-buttons a { width: 100%; text-align: center; padding: 10px; }

    .quick-item { padding: 10px 4px; }
    .quick-text h4 { font-size: 12px; }
    .quick-text p { display: none; }

    .module-cards-grid { grid-template-columns: 1fr; }

    .section-title-en { font-size: 22px; }
    .section-title-cn { font-size: 17px; }

    .about-banner-stats { grid-template-columns: 1fr; }
    .stat-number { font-size: 32px; }

    .home-about-stats { grid-template-columns: repeat(2, 1fr); }
}
