/*
 * 苏州华岑基础玻璃有限公司 - 「透明建筑」主题主样式
 * 风格：玻璃幕墙 + 透明层叠 + 现代建筑美学
 * 重点：通用栅格 / 玻璃质感卡片 / 全屏案例 / 流程动效 / 纹理放大
 */

:root {
    /* 色彩体系：深海蓝 + 湖青 + 玻璃翠 */
    --color-bg: #061421;
    --color-bg-secondary: #0a1f2f;
    --color-primary: #0d6fb8;
    --color-secondary: #18a7c7;
    --color-accent: #7bdac4;
    --color-text: #e7f5ff;
    --color-text-light: #f4fbff;
    --color-text-dark: #051220;
    --color-text-muted: #9fb8ca;
    --color-border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-strong: rgba(255, 255, 255, 0.12);

    /* 字体与尺寸 */
    --font-base: 'Microsoft YaHei', 'PingFang SC', 'Inter', sans-serif;
    --font-size-base: 16px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 22px 50px rgba(0, 0, 0, 0.35);
    --shadow-deep: 0 22px 50px rgba(0, 0, 0, 0.35);
    --blur: 14px;

    /* 间距（兼容旧版页面变量） */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 18px;
    --spacing-lg: 28px;
    --spacing-xl: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    line-height: 1.65;
    color: var(--color-text);
    background: radial-gradient(circle at 20% 20%, rgba(24, 173, 222, 0.16), transparent 24%),
                radial-gradient(circle at 80% 0%, rgba(123, 218, 196, 0.16), transparent 22%),
                linear-gradient(135deg, #061421 0%, #0a1f2f 45%, #05101c 100%);
    min-height: 100vh;
    padding-top: 76px; /* 预留固定导航高度 */
}

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
a { color: var(--color-accent); text-decoration: none; transition: color 0.25s ease, opacity 0.25s; }
a:hover { color: #b4f0e0; opacity: 0.9; }
p { color: var(--color-text-muted); margin-bottom: 0.75rem; }
h1, h2, h3, h4, h5, h6 { color: #f5f8ff; line-height: 1.25; margin-bottom: 0.5rem; }

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid { display: grid; gap: 20px; }
.grid-col-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-col-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-col-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.section-padding { padding: 72px 0; }
.content-section { padding: 64px 0; }
.content-section:nth-of-type(even) { background: rgba(255, 255, 255, 0.02); }
.content-section > .container {
    background: var(--glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(var(--blur));
}
.text-center { text-align: center; }
.bg-light { background: rgba(255, 255, 255, 0.02); }
.bg-primary { background: linear-gradient(135deg, #0d6fb8, #18a7c7); color: #fff; }

/* 玻璃质感容器 */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: #fff;
    font-size: 0.85rem;
}

.btn,
.btn-primary,
.btn-outline,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
    background: linear-gradient(120deg, #7bdac4, #57b7f2);
    color: #05202c;
    box-shadow: 0 10px 24px rgba(87, 183, 242, 0.28);
}
.btn-outline {
    border-color: var(--color-border);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.btn-ghost {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* 顶部导航 */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(5, 18, 28, 0.75);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header.scrolled {
    background: rgba(5, 18, 28, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 18px; }
.nav-item { position: relative; }
.nav-link {
    color: var(--color-text);
    font-weight: 600;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover { color: #fff; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: rgba(5, 18, 28, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
    list-style: none;
    z-index: 20;
}
.dropdown-item a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
}
.dropdown-item a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item:hover > .dropdown-menu { display: block; }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
}

@media (max-width: 991px) {
    body { padding-top: 68px; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(5, 18, 28, 0.98);
        border-bottom: 1px solid var(--color-border);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; padding: 12px 20px; }
    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(5, 18, 28, 0.92);
        border: none;
        box-shadow: none;
    }
    .menu-toggle { display: block; }
}

/* 首页英雄区 */
.hero-section {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 40% 20%, rgba(60, 181, 255, 0.14), transparent 40%),
                url('../images/04_application_lowe_building.png') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 18, 28, 0.82), rgba(10, 32, 47, 0.7));
    backdrop-filter: blur(6px);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    text-align: center;
}
.hero-eyebrow { margin-bottom: 12px; }
.hero-title { font-size: 3rem; margin-bottom: 18px; }
.hero-sub { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 24px; }
.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.metric {
    padding: 14px 18px;
    background: var(--glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 160px;
}
.metric strong { display: block; font-size: 1.4rem; color: #fff; }

/* 纹理放大卡片 */
.texture-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--color-border);
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
}
.texture-card .label {
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}
.texture-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.4s ease;
    z-index: 0;
    opacity: 0.9;
}
.texture-card:hover::before { transform: scale(1.08); }
.texture-card[data-zoom-src]::before {
    background-image: attr(data-zoom-src url);
}
.texture-card:hover { box-shadow: var(--shadow-soft); }

/* 工艺流程 */
.process-flow {
    position: relative;
    padding: 20px 0;
}
.process-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
}
.process-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6fb8, #7bdac4);
    width: 0%;
    transition: width 0.6s ease;
    transform: translateY(-50%);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    position: relative;
}
.process-step {
    padding: 18px;
    background: var(--glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: left;
}
.process-step strong { color: #fff; display: block; margin-bottom: 6px; }

/* 案例全屏画廊（横向自动滑动） */
.case-gallery {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
}
.case-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(6, 20, 33, 0.85), transparent 12%, transparent 88%, rgba(6, 20, 33, 0.85));
}
.case-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: case-marquee 32s linear infinite;
}
.case-gallery:hover .case-track { animation-play-state: paused; }
.case-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--color-border);
    flex: 0 0 320px;
    min-height: 220px;
}
.case-card img { height: 220px; width: 100%; object-fit: cover; border-radius: 0; }
.case-card .case-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
}

@keyframes case-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* 卡片 / 产品 / 新闻 */
.card {
    background: var(--glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.product-card h3 { color: #fff; margin: 12px 0 6px; }
.product-card p { margin-bottom: 10px; }
.news-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
}
.news-card img { height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.news-card h3 { margin-bottom: 6px; }
.news-card small { color: var(--color-text-muted); }

/* 表格与表单 */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
th { background: rgba(255, 255, 255, 0.04); text-align: left; }
tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

form {
    display: grid;
    gap: 12px;
}
input, textarea, select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.product-spec-table { width: 100%; }

/* 页面英雄区 */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-bg, linear-gradient(120deg, #08263a 0%, #0d4263 60%, #072534 100%));
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 18, 28, 0.82), rgba(10, 32, 47, 0.68));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.4rem; }
.page-hero p { max-width: 780px; margin: 10px auto 0; }
.glass-hero .container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 28px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

/* 版块辅助 */
.section-head { margin-bottom: 24px; }
.section-head p { max-width: 760px; margin: 0 auto; }
.image-gallery { display: grid; gap: 16px; }
.image-gallery img { width: 100%; height: auto; border-radius: var(--radius-md); }
.feature-icon { font-size: 2rem; color: var(--color-accent); margin-bottom: 8px; }

/* 页脚 */
.footer {
    margin-top: 60px;
    background: rgba(5, 18, 28, 0.9);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 24px;
}
.footer a { color: var(--color-text); }
.footer-bottom {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-align: center;
    font-size: 0.92rem;
}

/* 滚动进入动效 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero 背景映射 */
.hero-about { --hero-bg: url('../images/34_company_exterior_building.png'); }
.hero-culture { --hero-bg: url('../images/09_company_team_discussion.png'); }
.hero-history { --hero-bg: url('../images/37_company_honor_wall.png'); }
.hero-products { --hero-bg: url('../images/18_product_lowe_detail.png'); }
.hero-cabinet { --hero-bg: url('../images/01_application_cabinet_kitchen.png'); }
.hero-silk { --hero-bg: url('../images/30_product_decorative_silk_screen.png'); }
.hero-frosted { --hero-bg: url('../images/02_product_frosted_closeup.png'); }
.hero-building { --hero-bg: url('../images/05_application_laminated_railing.png'); }
.hero-energy { --hero-bg: url('../images/04_application_lowe_building.png'); }
.hero-electronic { --hero-bg: url('../images/32_application_electronic_display.png'); }
.hero-louver { --hero-bg: url('../images/35_product_louver_glass.png'); }
.hero-solution { --hero-bg: url('../images/33_application_showcase_glass.png'); }
.hero-case-cabinet { --hero-bg: url('../images/01_application_cabinet_kitchen.png'); }
.hero-case-arch { --hero-bg: url('../images/04_application_lowe_building.png'); }
.hero-case-home { --hero-bg: url('../images/43_application_kitchen_splashback.png'); }
.hero-careers { --hero-bg: url('../images/36_company_office_working.png'); }
.hero-contact { --hero-bg: url('../images/34_company_exterior_building.png'); }
.hero-news { --hero-bg: url('../images/37_company_honor_wall.png'); }
.hero-privacy { --hero-bg: url('../images/34_company_exterior_building.png'); }
.hero-tech { --hero-bg: url('../images/42_product_precision_measurement.png'); }
.hero-process { --hero-bg: url('../images/21_production_automated_line.png'); }
.hero-equipment { --hero-bg: url('../images/11_production_cutting_machine.png'); }
.hero-faq { --hero-bg: url('../images/22_production_qc_lab.png'); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-sub { font-size: 1rem; }
    .page-hero { min-height: 260px; }
    .case-card img { height: 180px; }
    .case-card { flex: 0 0 260px; }
}
