/* ================================
   江苏宏信地理信息技术有限公司 - 官网样式
   简约大气 · 响应式设计
   ================================ */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 默认主题 = H「深空蓝黑·炽橙」：主色取 LOGO 橙，页脚/深色块用超深蓝黑；生产发布亦沿用，故固化于 :root */
    --primary: #14263c;
    --primary-light: #1f3d5e;
    --primary-dark: #0a1424;
    --accent: #f08a1e;
    --accent-light: #ffb257;
    --accent-dark: #c96a15;
    --bg-light: #f5f7fa;
    --bg-gray: #eef1f5;
    --text-main: #2c3e50;
    --text-sub: #5a6c7d;
    --text-light: #8a9aa8;
    --white: #ffffff;
    --border: #e0e5ec;
    --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 58, 92, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 58, 92, 0.16);
    --radius: 8px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --transition: all 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-main);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

/* 首页：导航完全透明（无任何自绘背景），顶部压暗由 hero 自身背景层承担，
   因此导航与 Hero 之间不存在任何接缝；滚动后恢复白底 */
.home .navbar {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.home .navbar .logo-text {
    color: #fff;
}
.home .navbar .nav-menu a {
    color: rgba(255, 255, 255, 0.85);
}
.home .navbar .nav-menu a:hover,
.home .navbar .nav-menu a:focus-visible {
    color: #fff;
}
.home .navbar .nav-menu a.active {
    color: #fff;
}
.home .navbar .nav-toggle span {
    background: #fff;
}
.home .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.home .navbar.scrolled .logo-text {
    color: var(--primary);
}
.home .navbar.scrolled .nav-menu a {
    color: var(--text-main);
}
.home .navbar.scrolled .nav-menu a:hover,
.home .navbar.scrolled .nav-menu a:focus-visible {
    color: var(--primary);
}
.home .navbar.scrolled .nav-menu a.active {
    color: var(--primary);
}
.home .navbar.scrolled .nav-toggle span {
    background: var(--primary);
}
/* 调试主题G（浅色Hero）：首页导航保持白底深字 */
html.theme-g .home .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html.theme-g .home .navbar .logo-text,
html.theme-g .home .navbar .nav-menu a,
html.theme-g .home .navbar .nav-menu a.active {
    color: var(--primary);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.nav-logo .logo-icon-img {
    height: 56px;
    width: 56px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    /* Logo图片已透明化，与白色导航栏自然融合 */
}

.nav-logo .logo-text {
    line-height: 1.3;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.nav-logo .logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-menu a {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    border-radius: var(--radius);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
}

/* 顶部导航橙色指示条（兼容 Chrome / Edge / Firefox / Safari 等主流浏览器）
   - .nav-indicator        : 当前页常驻条，固定显示在当前所在页菜单文字下方
   - .nav-indicator-hover  : 跟随鼠标条，默认隐藏，鼠标移到某菜单项时显示在其文字下方 */
.nav-indicator {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    z-index: 1200;
    -webkit-transition: left 0.3s ease, width 0.3s ease, opacity 0.2s ease;
    transition: left 0.3s ease, width 0.3s ease, opacity 0.2s ease;
}

/* 跟随鼠标的那条：默认隐藏，悬停时显示；颜色比常驻条更浅 */
.nav-indicator-hover {
    opacity: 0;
    /* 与主题色同色系、但掺白更浅，便于和常驻条区分（不支持 color-mix 的旧浏览器会回退到主题色） */
    background: color-mix(in srgb, var(--accent) 55%, #ffffff);
}
/* 下拉菜单：hover/focus 弹出，子项为对应页面板块标题 */
.nav-menu li.has-dropdown { position: relative; }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin: 6px 0 0;
    padding: 8px 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: top center;
    transition: opacity 0.3s var(--ease-spring), transform 0.4s var(--ease-spring);
    z-index: 1100;
    list-style: none;
}
.nav-menu li.has-dropdown:hover .nav-dropdown,
.nav-menu li.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.nav-dropdown a {
    display: block;
    padding: 10px 22px;
    color: var(--text-main);
    font-size: 0.92rem;
    white-space: nowrap;
    transition: color var(--transition);
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    color: var(--accent);
}
/* 首页透明导航下，下拉项文字须为深色（否则被 .home .navbar .nav-menu a 的白色覆盖，白字白底看不见） */
.home .navbar .nav-dropdown a {
    color: var(--text-main);
}
.home .navbar .nav-dropdown a:hover,
.home .navbar .nav-dropdown a:focus-visible {
    color: var(--accent);
    background: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* 内页首个区块：拉大与固定导航栏的间距，避免拥挤 */
.section-first {
    padding-top: 128px;
}

.section-gray {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h1,
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ---------- 首页 Hero（白底 / 左文右图 · 建筑事务所风） ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(45, 143, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(42, 86, 128, 0.2) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 37, 64, 0.3) 0%, transparent 100%);
}

/* 首页 hero 背景：城市天际线插画铺满 + 左深右浅深蓝遮罩，保证左侧白色文字可读 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/hero-city.webp") right top / cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 第一层：顶部压暗用 300px 长距离缓出（替代原导航栏 80px 短渐变），
       与照片/遮罩同属 hero 背景层，保证固定导航与背景无缝融合、白字可读 */
    background:
        linear-gradient(to bottom,
            rgba(8, 18, 32, 0.6) 0%,
            rgba(8, 18, 32, 0.28) 140px,
            rgba(8, 18, 32, 0) 300px),
        linear-gradient(115deg,
            rgba(15, 37, 64, 0.92) 0%,
            rgba(21, 48, 78, 0.78) 45%,
            rgba(26, 58, 92, 0.5) 75%,
            rgba(26, 58, 92, 0.35) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ---------- 地形线条装饰 ---------- */
.terrain-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

/* 左侧文字 */
.hero-text {
    max-width: 640px;
    animation: fadeInUp 1s ease;
}

.hero-eyebrow {
    display: inline-block;
    position: relative;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
    padding-left: 32px;
    margin-bottom: 22px;
}

.hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--accent-light);
    transform: translateY(-50%);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-text h1 .highlight {
    color: var(--accent-light);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
    transition: var(--transition);
}

.hero-link .arrow {
    transition: transform 0.3s ease;
}

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

.hero-link:hover .arrow {
    transform: translateX(6px);
}

/* 信任数据（浅底版本） */
.hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.1;
}

.hero-stat .label {
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .hero-text {
        max-width: 100%;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 56px;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-stat .num {
        font-size: 1.5rem;
    }
    .hero-stats {
        gap: 18px;
    }
}

/* ---------- 公司简介区 ---------- */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text p {
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.9;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.intro-feature .check {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.75rem;
}

.intro-visual {
    position: relative;
}

.intro-visual .visual-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-visual .visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 143, 110, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.visual-card .card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.visual-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.visual-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.visual-card .card-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.visual-card .card-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-light);
}

.visual-card .card-stat .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- 核心业务卡片 ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .icon-wrap {
    background: var(--primary);
}

.service-card .icon-wrap svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.service-card:hover .icon-wrap svg path,
.service-card:hover .icon-wrap svg circle,
.service-card:hover .icon-wrap svg rect,
.service-card:hover .icon-wrap svg line {
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-card .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--text-sub);
    border-radius: 4px;
}

/* ---------- 资质优势 ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.advantage-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.advantage-item .num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.advantage-item .unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.advantage-item .label {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-top: 8px;
}

/* ---------- 关于我们 ---------- */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro .text-block h1 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-intro .text-block p {
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-intro .text-block .quote {
    padding: 24px 28px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.about-intro .image-block {
    position: relative;
}

.about-intro .image-block .img-card {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-intro .image-block .img-card svg {
    width: 60%;
    height: auto;
    opacity: 0.9;
}

.about-intro .image-block .floating-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-intro .image-block .floating-badge .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.about-intro .image-block .floating-badge .label {
    font-size: 0.8rem;
    color: var(--text-sub);
}

/* ---------- 发展历程时间线 ---------- */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.timeline-curve path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 5;
    opacity: 0.35;
    vector-effect: non-scaling-stroke;
}

.timeline-item {
    position: relative;
    width: 46%;
    padding: 0 35px 20px 0;
    text-align: right;
    z-index: 1;
}

.timeline-item:nth-of-type(even) {
    margin-left: 54%;
    padding: 0 0 20px 35px;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 2;
}

.timeline-item:nth-of-type(even)::before {
    right: auto;
    left: -6px;
}

.timeline-item .year {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-item .content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-item .content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-item .content h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.timeline-item .content p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* ---------- 企业文化 ---------- */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.culture-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

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

.culture-card .culture-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.culture-card .culture-icon svg {
    width: 32px;
    height: 32px;
}

.culture-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.culture-card p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ---------- 团队介绍 ---------- */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.team-stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-stat-card .icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-stat-card .icon-circle svg {
    width: 28px;
    height: 28px;
}

.team-stat-card .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.team-stat-card .label {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 4px;
}

/* ---------- 产品服务详细页 ---------- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail:nth-child(even) .service-detail-text {
    order: 2;
}

.service-detail-text h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-detail-text .service-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(45, 143, 110, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.service-detail-text p {
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.9;
}

.service-detail-text ul {
    margin-top: 20px;
}

.service-detail-text ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-main);
    font-size: 0.95rem;
}

.service-detail-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 2px;
    background: var(--accent);
}

.service-detail-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.service-detail-visual::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(45, 143, 110, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.service-detail-visual svg {
    width: 50%;
    height: auto;
    opacity: 0.85;
    z-index: 2;
}

/* ---------- 设备展示 ---------- */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equipment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.equipment-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.equipment-card .eq-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.equipment-card .eq-icon svg {
    width: 24px;
    height: 24px;
}

.equipment-card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.equipment-card p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 12px;
}

.equipment-card .eq-count {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(45, 143, 110, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(45, 143, 110, 0.2);
}

/* ---------- 联系我们 ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* 联系页内容较少，加大底部留白，与 footer 拉开距离 */
.contact-section {
    padding-bottom: 320px;
}

/* 左侧：联系信息（无边框、无背景，纯文字） */
.contact-info {
    padding: 24px 0;
}



.contact-info h1 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-sub);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-item .ci-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-item .ci-text .label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item .ci-text .value {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

/* ---------- 联系表单 ---------- */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 143, 110, 0.1);
}

/* 下拉框：用容器伪元素画可控箭头，彻底隐藏原生箭头（避免浏览器自带动画） */
.form-group .select-wrap {
    position: relative;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}
.form-group .select-wrap::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6572' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    pointer-events: none;
    transition: transform 0.2s ease;
}
/* 展开时箭头上下颠倒（.is-open 由 JS 维护，与菜单开合同步） */
.form-group .select-wrap.is-open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 下拉选项弹出列表的可读性（不影响输入框） */
.form-group select option {
    background: var(--white);
    color: var(--text-main);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}


/* ---------- CTA区域 ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(45, 143, 110, 0.1) 0%, transparent 60%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 92px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.4fr 1.1fr;
    gap: 32px;
    margin-bottom: 56px;
}

/* 第一列（品牌）与后几列拉开间距 */
.footer-brand {
    margin-right: 56px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-brand .logo svg {
    width: 36px;
    height: 36px;
}

/* footer 在深蓝底上：去掉扎眼的白色卡片，把黑色 logo 反相为白色，自然融入 */
.footer-brand .logo img {
    height: 43px;
    width: auto;
    max-width: 188px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-brand .logo-full-img {
    height: 43px;
    width: auto;
    max-width: 215px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 360px;
    overflow-wrap: break-word;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-col {
    overflow-wrap: break-word;
    min-width: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    padding-bottom: 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    overflow-wrap: break-word;
    line-height: 1.7;
}

/* 备案信息：去掉竖线，用间距并列，窄屏自动换行 */
.footer-bottom .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 28px;
}

/* footer 备案信息内的链接（如 ICP 备案号）在深蓝底上需可点击可读 */
.footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ---------- 页脚微信公众号二维码列 ---------- */
.footer-wechat {
    text-align: center;
}

.footer-wechat .qr-img {
    width: 86px; /* 2 × 43px */
    height: 86px;
    object-fit: contain;
    /* 二维码需浅底才可扫：半透明白 + 收紧边距、去掉阴影，弱化扎眼感 */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 5px;
    margin: 0 auto 12px;
}

.footer-wechat .wechat-tip {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-spring);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 不支持 IntersectionObserver 的旧浏览器：直接显示，避免内容永久不可见 */
.no-intersection-observer .fade-in {
    opacity: 1;
    transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    /* 公司全称文字较长，中等屏幕缩小字号避免挤压菜单 */
    .nav-logo .logo-text {
        font-size: 0.95rem;
    }

    .services-grid,
    .advantages-grid,
    .culture-grid,
    .equipment-grid,
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-section,
    .about-intro,
    .service-detail,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail:nth-child(even) .service-detail-text {
        order: 0;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        margin-right: 0;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-200%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 12px 16px;
    }

    /* 首页透明导航在移动端：菜单展开为白底面板，链接需深色 */
    .home .navbar .nav-menu a {
        color: var(--text-main);
    }
    .home .navbar .nav-menu a:hover,
    .home .navbar .nav-menu a:focus-visible {
        color: var(--primary);
    }

    /* 移动端：下拉默认收起，点击父项才展开（避免一打开就全部显示） */
    .nav-menu li.has-dropdown { position: static; }
    .nav-dropdown {
        position: static;
        margin: 0;
        padding: 0 0 8px 14px;
        background: transparent;
        box-shadow: none;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .nav-menu li.has-dropdown.open .nav-dropdown { display: block; }
    .nav-dropdown a { white-space: normal; padding: 8px 16px; }
    .home .navbar .nav-dropdown a:hover,
    .home .navbar .nav-dropdown a:focus-visible {
        color: var(--accent);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-indicator {
        display: none;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat .num {
        font-size: 1.5rem;
    }

    .services-grid,
    .advantages-grid,
    .culture-grid,
    .equipment-grid,
    .team-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .section-first {
        padding-top: 96px;
    }

    .contact-section {
        padding-bottom: 96px;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.6rem;
    }

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

    .footer-brand {
        margin-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline-curve {
        display: none;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-of-type(even) {
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item::before {
        left: 14px;
        right: auto;
    }
}

/* ---------- 学历构成 ---------- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.edu-card {
    background: var(--white);
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.edu-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

.edu-num span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-sub);
    margin-left: 4px;
}

.edu-label {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* ---------- 知识产权 ---------- */
.ip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.ip-card {
    background: var(--white);
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.ip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.ip-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-icon svg {
    width: 32px;
    height: 32px;
}

.ip-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.ip-num span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sub);
    margin-left: 4px;
}

.ip-label {
    font-size: 0.95rem;
    color: var(--text-sub);
}

@media (max-width: 768px) {
    .education-grid,
    .ip-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 照片画廊 ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.gallery-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    position: relative;
}

.gallery-img-wrap::after {
    content: '\26F6';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-img-wrap:hover::after {
    opacity: 1;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.03);
}

.gallery-info {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* ---------- 技术实力叠放展示 ---------- */
.tech-showcase-single {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-stack {
    position: relative;
    height: 300px;
    margin-bottom: 24px;
}

.tech-stack-wide {
    height: 400px;
}

.tech-stack-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(calc(-50% + var(--offset) * 50px - 125px)) rotate(calc(var(--offset) * 3deg - 7.5deg));
    width: 210px;
    height: 295px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all 0.35s ease;
    background: #fff;
    border: 1px solid var(--border);
}

.tech-stack-wide .tech-stack-item {
    width: 205px;
    height: 290px;
}

.tech-stack-item:nth-child(1) { z-index: 6; }
.tech-stack-item:nth-child(2) { z-index: 5; }
.tech-stack-item:nth-child(3) { z-index: 4; }
.tech-stack-item:nth-child(4) { z-index: 3; }
.tech-stack-item:nth-child(5) { z-index: 2; }
.tech-stack-item:nth-child(6) { z-index: 1; }

.tech-stack-item:hover {
    transform: translateX(calc(-50% + var(--offset) * 50px - 125px)) rotate(calc(var(--offset) * 3deg - 7.5deg)) translateY(-16px);
    z-index: 10;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 768px) {
    .tech-stack-wide {
        height: 320px;
    }

    .tech-stack-wide .tech-stack-item {
        width: 130px;
        height: 185px;
    }

    .tech-stack-item {
        transform: translateX(calc(-50% + var(--offset) * 32px - 80px)) rotate(calc(var(--offset) * 3deg - 7.5deg));
    }

    .tech-stack-item:hover {
        transform: translateX(calc(-50% + var(--offset) * 32px - 80px)) rotate(calc(var(--offset) * 3deg - 7.5deg)) translateY(-12px);
    }
}

/* ---------- 灯箱 ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 16px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ---------- 画廊响应式 ---------- */
@media (max-width: 1200px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid,
    .gallery-grid-4,
    .gallery-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid,
    .gallery-grid-4,
    .gallery-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .gallery-grid-4,
    .gallery-grid-5 {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   临时主题切换（仅本地调试构建包含；NODE_ENV=production 上线构建时自动剔除按钮与脚本）
   ============================================================ */
.theme-switcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.theme-switcher button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.theme-switcher button:hover {
    transform: translateY(-2px);
    background: #1f2937;
}

.theme-switcher .theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.theme-switcher .theme-arrow {
    opacity: 0.6;
    font-size: 12px;
}

.theme-switcher #themeName {
    min-width: 88px;
    text-align: left;
}

/* 弹出菜单 */
.theme-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 208px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.theme-switcher.open .theme-menu {
    display: flex;
}

.theme-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.theme-menu button:hover {
    background: #f3f4f6;
}

.theme-menu button.active {
    background: #eef2ff;
    color: var(--primary);
}

.theme-menu .swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.theme-switcher.open .theme-arrow {
    transform: rotate(180deg);
}

/* ---------- 主题变量（与 samples.html 一致） ---------- */
html.theme-a {
    --primary: #1a3a5c; --primary-light: #2a5680; --primary-dark: #0f2540;
    --accent: #1ba3a3; --accent-light: #2bc4c4; --accent-dark: #127a7a;
}
html.theme-a .hero { background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 45%, #1ba3a3 100%); }

html.theme-b {
    --primary: #2b2f77; --primary-light: #4348a8; --primary-dark: #181a4a;
    --accent: #00b4d8; --accent-light: #48cae4; --accent-dark: #0090b0;
}
html.theme-b .hero { background: linear-gradient(135deg, #181a4a 0%, #2b2f77 50%, #00b4d8 100%); }

html.theme-c {
    --primary: #14403a; --primary-light: #1d5e54; --primary-dark: #0c2a26;
    --accent: #c9a24b; --accent-light: #e0bd6a; --accent-dark: #a8852f;
}
html.theme-c .hero { background: linear-gradient(135deg, #0c2a26 0%, #14403a 55%, #1d5e54 100%); }

html.theme-d {
    --primary: #16324f; --primary-light: #1f4a73; --primary-dark: #0c2138;
    --accent: #ff7a2f; --accent-light: #ff9d5c; --accent-dark: #e25e12;
}
html.theme-d .hero { background: linear-gradient(135deg, #0c2138 0%, #16324f 48%, #ff7a2f 100%); }

html.theme-e {
    --primary: #0f3d3e; --primary-light: #14706b; --primary-dark: #0a2a2b;
    --accent: #2bd96b; --accent-light: #5fe89a; --accent-dark: #1aa84e;
}
html.theme-e .hero { background: linear-gradient(135deg, #0a2a2b 0%, #0f3d3e 50%, #2bd96b 100%); }

html.theme-f {
    --primary: #1a2546; --primary-light: #2c3a6e; --primary-dark: #111833;
    --accent: #ff4d6d; --accent-light: #ff7d96; --accent-dark: #e02e52;
}
html.theme-f .hero { background: linear-gradient(135deg, #111833 0%, #1a2546 50%, #ff4d6d 100%); }

html.theme-g {
    --primary: #286fb4; --primary-light: #5b9bd5; --primary-dark: #1c5488;
    --accent: #df4c73; --accent-light: #ec8fa9; --accent-dark: #c13a5f;
}
html.theme-g .hero {
    background: linear-gradient(135deg, #e2f0f9 0%, #ffffff 55%, #b0dde4 100%);
    color: var(--primary);
}
html.theme-g .hero-bg,
html.theme-g .terrain-line { display: none; }
html.theme-g .hero-text h1 { color: var(--primary); }
html.theme-g .hero-eyebrow { color: var(--accent); }
html.theme-g .hero-eyebrow::before { background: var(--accent); }
html.theme-g .hero-sub { color: #46647f; }
html.theme-g .hero-link { color: var(--primary); border-bottom-color: var(--accent); }
html.theme-g .hero-link:hover { color: var(--accent-dark); }
html.theme-g .hero-stat .num { color: var(--accent); }
html.theme-g .hero-stat .label { color: #5d7d99; }
