/* ============================================================
   建筑胶粘剂 - 现代工业风格样式
   胶胶者产品线宣传站
   ============================================================ */

/* --- CSS 变量 --- */
:root {
    --navy: #152438;
    --navy-light: #1d3452;
    --orange: #d97014;
    --orange-light: #f08c34;
    --orange-dark: #b85c0e;
    --white: #ffffff;
    --bg-warm: #f7f5f2;
    --bg-cool: #f0f3f7;
    --text: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #787878;
    --border: #e5e0db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 10px;
}

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--navy);
    transition: color 0.25s;
}
a:hover { color: var(--orange); }

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 导航栏 --- */
.header {
    background: var(--navy);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- 汉堡菜单按钮（桌面端隐藏） --- */
.menu-toggle {
    display: none;
}

/* --- 核心导航：首页 + 产品中心（桌面端隐藏，移动端显示在汉堡和语言按钮之间）--- */
.nav-core {
    display: none;
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    color: rgba(255,255,255,0.88);
    padding: 14px 22px;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    position: relative;
}

.nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* 导航当前页高亮 */
.nav a.nav-active,
.nav-core .nav-active {
    color: #fff;
}
.nav a.nav-active::after,
.nav-core .nav-active::after {
    width: 60%;
}
.nav a.nav-active:hover,
.nav-core .nav-active:hover {
    color: #fff;
}

.nav a::after,
.nav-core a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 60%;
}

/* --- 语言切换按钮 --- */
.lang-box {
    position: fixed;
    top: 13px;
    right: 20px;
    z-index: 9999;
}

.lang-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s;
}

.lang-btn:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* --- 双语控制 --- */
/* ========== 中英文显隐（JS switchLangShow() 为主，此规则为双重保障）========== */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .zh,
html[data-lang="en"] .en { display: inline; }

/* --- 通用板块 --- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-warm);
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--orange);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* --- 按钮 --- */
.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff !important;
    padding: 11px 30px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217,112,20,0.3);
}

.btn:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 14px rgba(217,112,20,0.4);
    transform: translateY(-1px);
    opacity: 1;
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: var(--orange) !important;
    border: 2px solid var(--orange);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--orange);
    color: #fff !important;
}

/* ============================================================
   页面顶部横幅（产品中心 / 内页通用）
   ============================================================ */
.page-banner {
    margin-top: 60px;
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/banner/banner1.jpg") center center / cover no-repeat;
}

.page-banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(21,36,56,0.82) 0%, rgba(21,36,56,0.48) 100%);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-banner-content h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.page-banner-content p {
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ============================================================
   Banner 轮播（首页）
   ============================================================ */
.banner {
    margin-top: 60px;
    height: 520px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.banner-list { width: 100%; height: 100%; }

.banner-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.banner-item.active { opacity: 1; }

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(21,36,56,0.78) 0%, rgba(21,36,56,0.45) 100%);
    z-index: 1;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.banner-text h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.92;
    letter-spacing: 1px;
}

/* ============================================================
   产品分类过滤标签
   ============================================================ */
.product-filter {
    text-align: center;
    margin-bottom: 44px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    display: inline-block;
    padding: 9px 28px;
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s;
}

.filter-btn:hover {
    background: rgba(21,36,56,0.06);
}

.filter-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ============================================================
   产品卡片 - 增强版
   ============================================================ */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-cool);
}

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

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 22px 20px 24px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 14px;
    min-height: 42px;
}

/* 产品规格行 */
.product-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--bg-warm);
    border-radius: 6px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.spec-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

/* 产品标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.product-tags span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-cool);
    color: var(--navy-light);
}

/* 产品卡片底部按钮 */
.product-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: none;
}

.product-btn.favorited {
    background: transparent;
    color: var(--orange) !important;
    border: 2px solid var(--orange);
    box-shadow: none;
}

.product-btn.favorited:hover {
    background: var(--orange);
    color: #fff !important;
    border-color: var(--orange);
}

/* 过滤动画 */
.product-card.hidden {
    display: none !important;
}

.product-card.fade-in {
    animation: fadeInUp 0.35s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   装修需求应用场景
   ============================================================ */
.app-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.scenario-header {
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
}

.scenario-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
}

.scenario-card:nth-child(1) .scenario-header::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.scenario-card:nth-child(2) .scenario-header::before {
    background: linear-gradient(90deg, #d97014, #f59e0b);
}
.scenario-card:nth-child(3) .scenario-header::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.scenario-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.scenario-header h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 700;
}

.scenario-header .scenario-sub {
    font-size: 13px;
    color: var(--text-light);
}

.scenario-products {
    padding: 0 24px 24px;
}

.scenario-product-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.scenario-product-item:last-child {
    border-bottom: none;
}

.scenario-product-item .sp-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.badge-water   { background: #dbeafe; color: #1d4ed8; }
.badge-oil     { background: #fef3c7; color: #b45309; }
.badge-silicone{ background: #d1fae5; color: #047857; }

.scenario-product-item .sp-info {
    flex: 1;
    min-width: 0;
}

.sp-info .sp-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.sp-info .sp-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================================
   核心优势
   ============================================================ */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.advantage-item .adv-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.advantage-item h3 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.advantage-item p {
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   工厂实力
   ============================================================ */
.factory-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.factory-img-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.factory-img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.factory-desc {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ============================================================
   联系我们
   ============================================================ */
.contact-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
}

.contact-card .contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    gap: 8px;
}

.contact-card .contact-row:last-child {
    border-bottom: none;
}

.contact-card .contact-row .ci-label {
    color: var(--text-light);
    flex-shrink: 0;
}

.contact-card .contact-row .ci-value {
    color: var(--text);
    font-weight: 600;
}

/* ============================================================
   底部 CTA 引导区块
   ============================================================ */
.product-cta {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
}

.product-cta .section-title {
    color: #fff;
}

.product-cta .section-title::after {
    background: var(--orange);
}

.product-cta-desc {
    font-size: 15px;
    opacity: 0.88;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-align: center;
}

.product-cta .btn {
    padding: 13px 40px;
    font-size: 16px;
}

/* ============================================================
   底部版权
   ============================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .banner { height: 360px; }
    .banner-text h1 { font-size: 26px; }
    .banner-text p { font-size: 15px; }

    .page-banner { height: 200px; }
    .page-banner-content h1 { font-size: 26px; }

    .app-scenarios {
        grid-template-columns: 1fr;
    }

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

    .product-list {
        grid-template-columns: 1fr;
    }

    .factory-showcase {
        grid-template-columns: 1fr;
    }

    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }

    /* === 移动端：容器改为 flex 布局 === */
    .header .container {
        display: flex;
        align-items: center;
        position: relative;
    }

    /* === 汉堡菜单按钮（移动端可见） === */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px 10px;
        height: 48px;
        flex-shrink: 0;
    }
    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255,255,255,0.88);
        border-radius: 1px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* === 核心导航：首页 | 产品中心（移动端居中显示） === */
    .nav-core {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }
    .nav-core a {
        display: block;
        color: rgba(255,255,255,0.88);
        padding: 14px 22px;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 1px;
        position: relative;
        transition: all 0.25s;
        white-space: nowrap;
    }
    .nav-core a:hover {
        color: #fff;
    }
    .nav-core-sep {
        display: inline-block;
        width: 1px;
        height: 18px;
        background: rgba(255,255,255,0.25);
        flex-shrink: 0;
    }

    /* === 下拉式菜单 === */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--navy);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        z-index: 100;
    }
    .nav.mobile-open {
        display: flex;
    }
    .nav a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: nowrap;
    }

    /* 语言按钮在移动端保持紧凑 */
    .lang-box {
        top: 10px;
        right: 10px;
    }
    .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .product-filter {
        gap: 8px;
    }
    .filter-btn {
        padding: 7px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .advantage-list {
        grid-template-columns: 1fr;
    }

    .banner { height: 280px; }
    .banner-text h1 { font-size: 22px; }
    .banner-text p { font-size: 13px; }

    .page-banner { height: 160px; }
    .page-banner-content h1 { font-size: 22px; }
    .page-banner-content p { font-size: 13px; }

    .lang-box {
        top: 6px;
        right: 6px;
    }
    .lang-btn {
        padding: 2px 7px;
        font-size: 11px;
    }
}
