/* ============================================================
   福建强纶新材料 营销网站 - 全局样式
   风格：极简工业科技风 | 专业感 · 技术力 · 可信度
   ============================================================ */

:root {
    /* 颜色系统 */
    --c-ink: #0e1013;          /* 深底（近黑） */
    --c-ink-2: #1a1d21;        /* 钢铁灰深 */
    --c-ink-3: #2a2e34;        /* 钢铁灰浅 */
    --c-bg: #f5f5f7;           /* 浅底 */
    --c-surface: #ffffff;      /* 卡片白 */
    --c-text: #1a1d21;         /* 主文本 */
    --c-text-2: #4a4f57;       /* 次文本 */
    --c-muted: #8b9199;        /* 弱文本 */
    --c-line: #e1e3e6;         /* 分割线 */
    --c-line-dark: #2a2e34;    /* 深色分割线 */
    --c-accent: #ff6b1a;       /* 工业橙 */
    --c-accent-h: #e85a0a;     /* 工业橙 hover */
    --c-steel: #3b82f6;        /* 钢蓝 */
    --c-warm: #fafafa;

    /* 字体 */
    --ff-display: 'Oswald', 'Noto Sans SC', sans-serif;
    --ff-body: 'Inter', 'Noto Sans SC', sans-serif;
    --ff-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --ff-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* 间距 */
    --sp: 8px;
    --container: 1240px;
    --radius: 2px;
    --radius-lg: 4px;
    --header-h: 72px;

    --shadow-sm: 0 1px 2px rgba(14,16,19,.06);
    --shadow: 0 8px 24px rgba(14,16,19,.08);
    --shadow-lg: 0 20px 50px rgba(14,16,19,.12);
}

/* ---------- 主题配色（后台切换） ---------- */
body.theme-steel   { --c-accent: #3b82f6; --c-accent-h: #2563eb; }
body.theme-forest  { --c-accent: #059669; --c-accent-h: #047857; }
body.theme-crimson { --c-accent: #dc2626; --c-accent-h: #b91c1c; }
body.theme-gold    { --c-accent: #d97706; --c-accent-h: #b45309; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; font-family: var(--ff-display); font-weight: 500;
    font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
    border: 1.5px solid transparent; border-radius: var(--radius);
    transition: all .2s ease; white-space: nowrap; cursor: pointer;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-h); border-color: var(--c-accent-h); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--c-line); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-ink); color: var(--c-ink); background: var(--c-ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h); background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--c-ink); flex-shrink: 0; }
.logo:hover { color: var(--c-ink); }
.logo-mark { display: block; width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--ff-display); font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.logo-text small { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); margin-top: 3px; letter-spacing: .12em; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
    padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--c-text-2);
    position: relative; border-radius: var(--radius);
}
.main-nav a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--c-ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.nav-external { color: var(--c-accent); }
.main-nav a.nav-external::after { background: var(--c-accent); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch {
    font-family: var(--ff-display); font-weight: 600; font-size: 13px; letter-spacing: .08em;
    padding: 6px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text-2);
}
.lang-switch:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* 主题切换：调色盘图标按钮 + 弹出菜单 */
.theme-switcher { position: relative; }
.theme-switch-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; color: var(--c-accent);
    border: 1px solid var(--c-line); border-radius: var(--radius);
    background: transparent; cursor: pointer; transition: all .2s;
}
.theme-switch-btn:hover { border-color: var(--c-accent); color: var(--c-accent-h); }
.theme-switch-btn svg { display: block; }
.theme-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
    min-width: 160px; background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.theme-menu.open { display: flex; }
.theme-option {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    font-size: 14px; color: var(--c-text); border-radius: var(--radius);
    cursor: pointer; transition: background .15s; text-align: left;
}
.theme-option:hover { background: var(--c-bg); }
.theme-option.active { background: var(--c-bg); color: var(--c-accent); font-weight: 600; }
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--c-ink); transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: var(--c-ink); color: #fff;
    padding: 100px 0 0; overflow: hidden; min-height: 78vh;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* Hero 轮播背景 */
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
    animation: kenburns 8s ease-out forwards;
}
.hero-slide.active { opacity: 1; z-index: 1; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* 暗色蒙版，保证文字可读性 */
.hero-slider::after {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(14,16,19,.55) 0%, rgba(14,16,19,.72) 100%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-glow {
    position: absolute; width: 700px; height: 700px; right: -150px; top: -200px;
    background: radial-gradient(circle, rgba(255,107,26,.18), transparent 65%);
    filter: blur(20px);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 0; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-mono); font-size: 13px; letter-spacing: .12em;
    color: var(--c-accent); margin-bottom: 24px; text-transform: uppercase;
}
.hero-tag .dot { width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title { font-size: clamp(38px, 6vw, 76px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.hero-line { display: block; }
.hero-line.accent { color: var(--c-accent); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.7); max-width: 620px; margin-top: 24px; font-family: var(--ff-zh); }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Hero 文字错峰入场动画 ---------- */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag    { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: 0s; }
.hero-title  { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: .15s; }
.hero-line   { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; }
.hero-line:nth-child(1) { animation-delay: .15s; }
.hero-line:nth-child(2) { animation-delay: .28s; }
.hero-line:nth-child(3) { animation-delay: .41s; }
.hero-sub    { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: .35s; }
.hero-cta    { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: .5s; }
.hero-stats  { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: .65s; }

.hero-stats {
    position: relative; z-index: 2; margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 36px; color: #fff; }
.stat-num em { font-style: normal; font-size: 17px; color: var(--c-accent); margin-left: 4px; font-weight: 500; }
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 6px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 26px 0; }
.section-dark { background: var(--c-ink); color: #fff; }
.section-tinted { background: var(--c-warm); }
.section-tech { background: var(--c-ink); color: #fff; }
.section-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.section-head-light .section-title, .section-head-light .section-desc { color: #fff; }
.section-index {
    font-family: var(--ff-mono); font-size: 14px; font-weight: 500;
    color: var(--c-accent); padding-top: 4px; letter-spacing: .08em;
    border-top: 2px solid var(--c-accent); padding-right: 8px;
}
.section-title { font-size: 32px; font-weight: 600; }
.section-desc { font-size: 16px; color: var(--c-text-2); margin-top: 8px; max-width: 600px; font-family: var(--ff-zh); }
.section-more { margin-left: auto; font-family: var(--ff-display); font-size: 15px; color: var(--c-accent); letter-spacing: .04em; text-transform: uppercase; }
.block-title { font-size: 24px; margin-bottom: 12px; }
.block-sub { font-size: 15px; color: var(--c-text-2); margin-bottom: 28px; font-family: var(--ff-zh); }

/* ---------- Category Grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
    position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
    padding: 32px 28px; border-radius: var(--radius-lg); overflow: hidden;
    transition: all .3s ease; display: flex; flex-direction: column;
}
.cat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--c-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover::before { transform: scaleY(1); transform-origin: top; }
.cat-no { font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); letter-spacing: .08em; }
.cat-icon { display: inline-flex; color: var(--c-ink); margin: 16px 0 18px; transition: color .3s; }
.cat-card:hover .cat-icon { color: var(--c-accent); }
.cat-name { font-size: 20px; margin-bottom: 10px; font-family: var(--ff-zh); font-weight: 600; }
.cat-desc { font-size: 14px; color: var(--c-text-2); line-height: 1.65; flex: 1; }
.cat-arrow { margin-top: 18px; font-family: var(--ff-mono); color: var(--c-accent); font-size: 15px; }

/* ---------- Promo Video (Home & About) ---------- */
/* 首页宣传视频区：浅色背景 + 白底卡片，与热销产品卡片视觉一致 */
.section-promo { background: var(--c-bg); color: var(--c-text); }
.section-promo .section-title { color: var(--c-text); }
.section-promo .section-desc { color: var(--c-text-2); }

/* 视频卡片 carousel 容器 */
.promo-carousel { position: relative; }
.promo-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
/* 超过 3 个视频：改为横向滚动 */
.promo-carousel.has-arrows .promo-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.promo-carousel.has-arrows .promo-track::-webkit-scrollbar { display: none; }
.promo-carousel.has-arrows .promo-card,
.promo-carousel.has-arrows .app-item,
.promo-carousel.has-arrows .news-card {
    flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; min-width: 0;
}
/* tech-carousel：保留原 gap:0 + border-right 分隔风格，单卡占 1/3 */
.promo-carousel.tech-carousel.has-arrows .promo-track { gap: 0; }
.promo-carousel.tech-carousel.has-arrows .tech-item {
    flex: 0 0 calc(100% / 3); scroll-snap-align: start; min-width: 0;
}

.promo-card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .3s; display: flex; flex-direction: column; min-width: 0;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.promo-video-wrap {
    position: relative; width: 100%; padding-top: 75%;
    background: #000; overflow: hidden;
    /* iOS Safari 在 padding-top 容器内 absolute 定位 video 尺寸异常的兜底 */
    min-height: 200px;
}
.promo-video-wrap-lg { max-width: 960px; margin: 0 auto; padding-top: 56.25%; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.promo-video {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: contain; background: #000; display: block;
}
/* iOS Safari 专用：用 aspect-ratio 替代 padding-top，定位更可靠 */
@supports (-webkit-touch-callout: none) {
    .promo-video-wrap { padding-top: 0; aspect-ratio: 4 / 3; }
    .promo-video-wrap-lg { padding-top: 0; aspect-ratio: 16 / 9; }
}
.promo-card-body { padding: 18px 22px 22px; }
.promo-card-title {
    font-family: var(--ff-zh); font-size: 18px; font-weight: 600; line-height: 1.35;
    color: var(--c-text); margin: 0; transition: color .25s;
}
.promo-card:hover .promo-card-title { color: var(--c-accent); }

/* 左右切换箭头 */
.carousel-arrow {
    position: absolute; top: 38%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-surface); border: 1px solid var(--c-accent);
    box-shadow: var(--shadow); font-size: 24px; line-height: 1;
    color: var(--c-accent); cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.carousel-arrow:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.carousel-arrow:disabled { opacity: .3; cursor: not-allowed; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
/* 桌面端：仅 has-arrows（>3 视频）时显示箭头；has-mobile-arrows（2-3 视频）时隐藏 */
.promo-carousel.has-mobile-arrows:not(.has-arrows) .carousel-arrow { display: none; }
/* 桌面端隐藏滑动提示（移动端显示） */
.promo-carousel .swipe-hint { display: none; }

/* 桌面端：技术实力 4 列、应用领域 3 列两行（不走 carousel 横滚） */
@media (min-width: 861px) {
    .promo-carousel.tech-carousel.has-arrows .promo-track {
        display: grid; grid-template-columns: repeat(4, 1fr);
        gap: 0; overflow: visible; scroll-snap-type: none;
    }
    .promo-carousel.tech-carousel.has-arrows .tech-item { flex: none; }
    .promo-carousel.app-carousel.has-arrows .promo-track {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 16px; overflow: visible; scroll-snap-type: none;
    }
    .promo-carousel.app-carousel.has-arrows .app-item { flex: none; }
    /* PC 端热销产品：固定 3 列网格，不横滚，隐藏箭头 */
    .promo-carousel.product-carousel.has-arrows .promo-track {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 20px; overflow: visible; scroll-snap-type: none;
    }
    .promo-carousel.product-carousel.has-arrows .product-card { flex: none; }
    .promo-carousel.product-carousel .carousel-arrow { display: none; }
}

/* 移动端：单视频轮播 + 始终显示箭头 */
@media (max-width: 860px) {
    /* 强制走 carousel 模式，单卡 100% 宽度（提高特异性覆盖 has-arrows 规则） */
    .promo-carousel .promo-track,
    .promo-carousel.has-arrows .promo-track {
        display: flex !important; grid-template-columns: none !important;
        gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
        scroll-behavior: smooth; padding-bottom: 8px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .promo-carousel .promo-track::-webkit-scrollbar,
    .promo-carousel.has-arrows .promo-track::-webkit-scrollbar { display: none; }
    .promo-carousel .promo-card,
    .promo-carousel.has-arrows .promo-card,
    .promo-carousel .product-card,
    .promo-carousel.has-arrows .product-card,
    .promo-carousel .tech-item,
    .promo-carousel.has-arrows .tech-item,
    .promo-carousel .app-item,
    .promo-carousel.has-arrows .app-item,
    .promo-carousel .news-card,
    .promo-carousel.has-arrows .news-card {
        flex: 0 0 100% !important; scroll-snap-align: center; min-width: 0;
    }
    /* 箭头移到容器内边缘，has-mobile-arrows 时也显示 */
    .promo-carousel.has-mobile-arrows .carousel-arrow,
    .promo-carousel .carousel-arrow,
    .promo-carousel.has-mobile-arrows:not(.has-arrows) .carousel-arrow {
        display: flex !important; width: 36px; height: 36px; font-size: 20px;
        background: rgba(255,255,255,.92); color: var(--c-accent);
        border: 1px solid var(--c-accent); box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
    .promo-carousel.section-dark .carousel-arrow,
    .promo-carousel.tech-carousel .carousel-arrow {
        background: rgba(26,29,33,.85); color: var(--c-accent); border-color: var(--c-accent);
    }
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
    /* 隐藏滑动提示文字 */
    .promo-carousel .swipe-hint { display: none !important; }

    /* 纯文字卡片（技术/应用）：文字居中（新闻端不居中） + track 两侧留白 */
    .promo-carousel.tech-carousel .promo-track,
    .promo-carousel.app-carousel .promo-track {
        padding-left: 16px;
        padding-right: 16px;
    }
    .promo-carousel.tech-carousel .tech-item,
    .promo-carousel.app-carousel .app-item {
        flex: 0 0 calc(100% - 32px) !important;
        text-align: center;
    }
    .promo-carousel.app-carousel .app-icon { align-self: center; }
    .promo-carousel.tech-carousel .tech-num { text-align: center; }

    /* 新闻资讯：移动端横向滑动，单卡宽度 */
    .promo-carousel.news-carousel .promo-track {
        padding-left: 16px;
        padding-right: 16px;
    }
    .promo-carousel.news-carousel .news-card {
        flex: 0 0 calc(100% - 32px) !important;
        text-align: left;
    }
}

/* ---------- Product Grid / Card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d8dbe0); position: relative; overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.product-img-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,.5) 14px, rgba(255,255,255,.5) 15px),
        linear-gradient(135deg, #cfd3d8, #b8bcc2);
}
.product-img-fallback::after {
    content: attr(data-text); font-family: var(--ff-display); font-weight: 600; font-size: 14px;
    color: rgba(14,16,19,.45); padding: 0 16px; text-align: center; line-height: 1.4;
    text-transform: uppercase; letter-spacing: .05em;
}
.product-img-lg::after { font-size: 17px; }
.gallery-main .product-img-fallback::after { font-size: 18px; }
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 18px; margin-bottom: 8px; font-family: var(--ff-zh); font-weight: 600; line-height: 1.35; }
.product-snippet { font-size: 14px; color: var(--c-text-2); line-height: 1.6; flex: 1; font-family: var(--ff-zh); }
.product-link { margin-top: 14px; font-family: var(--ff-display); font-size: 14px; color: var(--c-accent); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Tech Grid ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
.tech-item { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.tech-item:last-child { border-right: none; }
.tech-num { font-family: var(--ff-mono); font-size: 14px; color: var(--c-accent); margin-bottom: 16px; letter-spacing: .08em; }
.tech-item h3 { font-size: 18px; margin-bottom: 10px; color: #fff; font-family: var(--ff-zh); transition: color .25s; }
.tech-item:hover h3 { color: var(--c-accent); }
.tech-item p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; font-family: var(--ff-zh); }

/* ---------- App Grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-item {
    background: var(--c-surface); border: 1px solid var(--c-line); padding: 28px 24px;
    border-radius: var(--radius-lg); transition: all .3s;
    background-size: cover; background-position: center; min-height: 220px;
    display: flex; flex-direction: column;
}
.app-item:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-icon { display: inline-flex; color: var(--c-accent); margin-bottom: 16px; }
.app-item h3 { font-size: 18px; margin-bottom: 6px; font-family: var(--ff-zh); transition: color .25s; }
.app-item p { font-size: 14px; color: var(--c-text-2); font-family: var(--ff-zh); }
/* 有背景图时：浅色图片上的深色文字，保证可读性 */
.app-item[style*="background-image"] h3 { color: var(--c-ink); }
.app-item[style*="background-image"] p { color: var(--c-text-2); }
/* hover 时标题变主题色（放最后确保覆盖背景图变体） */
.app-item:hover h3,
.app-item[style*="background-image"]:hover h3 { color: var(--c-accent); }

/* ---------- App Detail List ---------- */
.app-detail-list { display: flex; flex-direction: column; gap: 0; }
.app-detail-row {
    display: flex; gap: 40px; align-items: center; padding: 48px 0;
    border-bottom: 1px solid var(--c-line);
}
.app-row-rev { flex-direction: row-reverse; }
.app-detail-image {
    flex-shrink: 0; width: 320px; height: 220px;
    background: var(--c-warm); background-size: cover; background-position: center;
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    border: 1px solid var(--c-line);
}
.app-detail-image-icon {
    position: absolute; top: 16px; left: 16px; z-index: 1;
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.app-detail-content { flex: 1; }
.app-detail-no { font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); letter-spacing: .08em; }
.app-detail-content h2 { font-size: 26px; margin: 8px 0 12px; font-family: var(--ff-zh); }
.app-detail-content p { font-size: 15px; color: var(--c-text-2); line-height: 1.7; font-family: var(--ff-zh); max-width: 680px; }
.app-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.app-product-tag {
    font-size: 13px; padding: 5px 12px; background: var(--c-warm); border: 1px solid var(--c-line);
    border-radius: 100px; color: var(--c-text-2); font-family: var(--ff-zh);
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
    background: var(--c-surface); border: 1px solid var(--c-line); padding: 28px 24px;
    border-radius: var(--radius-lg); transition: all .3s; display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.news-date { font-family: var(--ff-mono); font-size: 13px; color: var(--c-accent); letter-spacing: .05em; }
.news-title { font-size: 18px; margin: 12px 0 10px; font-family: var(--ff-zh); line-height: 1.4; }
.news-summary { font-size: 14px; color: var(--c-text-2); flex: 1; font-family: var(--ff-zh); }

.news-list { display: flex; flex-direction: column; }
.news-item {
    display: flex; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--c-line);
    transition: padding .2s;
}
.news-item:hover { padding-left: 8px; }
.news-item-date { flex-shrink: 0; width: 80px; text-align: center; border-right: 1px solid var(--c-line); padding-right: 24px; }
.news-day { display: block; font-family: var(--ff-display); font-size: 36px; font-weight: 700; color: var(--c-ink); line-height: 1; }
.news-month { display: block; font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.news-item-body { flex: 1; }
.news-item-title { font-size: 19px; margin-bottom: 8px; font-family: var(--ff-zh); }
.news-item-summary { font-size: 14px; color: var(--c-text-2); margin-bottom: 12px; font-family: var(--ff-zh); }
.news-item-link { font-family: var(--ff-display); font-size: 14px; color: var(--c-accent); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-title { font-size: 30px; margin-bottom: 16px; font-family: var(--ff-zh); line-height: 1.3; }
.article-meta { display: flex; gap: 16px; font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); margin-bottom: 24px; }
.article-lead { font-size: 17px; color: var(--c-text-2); padding: 20px 24px; background: var(--c-warm); border-left: 3px solid var(--c-accent); margin-bottom: 28px; font-family: var(--ff-zh); }
.rich-text { font-family: var(--ff-zh); line-height: 1.85; color: var(--c-text); }
.rich-text p { margin-bottom: 18px; }
.rich-text strong { color: var(--c-ink); font-weight: 600; }
.article-meta-source { margin-left: auto; }
.article-meta-source a { font-family: var(--ff-display); color: var(--c-steel); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.article-meta-source a:hover { color: var(--c-ink); }
.article-cta {
    background: var(--c-ink); color: #fff; padding: 32px 28px; border-radius: var(--radius-lg); position: sticky; top: 96px;
}
.article-cta h3 { color: #fff; font-size: 20px; margin-bottom: 10px; font-family: var(--ff-zh); }
.article-cta p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 20px; font-family: var(--ff-zh); }

/* ---------- CTA Band ---------- */
.cta-band { background: var(--c-ink); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,107,26,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,26,.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-size: 26px; color: #fff; margin-bottom: 8px; font-family: var(--ff-zh); }
.cta-text p { color: rgba(255,255,255,.6); font-size: 15px; font-family: var(--ff-zh); }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- Page Hero ---------- */
.page-hero { background: var(--c-ink); color: #fff; padding: 80px 0 56px; position: relative; overflow: hidden; }
.page-hero-sm { padding: 56px 0 40px; }
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: inline-block; font-family: var(--ff-mono); font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; letter-spacing: .03em; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--c-accent); }
.page-title { font-size: clamp(28px, 4vw, 44px); color: #fff; font-family: var(--ff-zh); line-height: 1.2; }
.page-sub { font-size: 16px; color: rgba(255,255,255,.6); margin-top: 14px; max-width: 640px; font-family: var(--ff-zh); }

/* ---------- Products Layout ---------- */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.cat-sidebar { position: sticky; top: 96px; }
.sidebar-title { font-size: 15px; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: 16px; }
.cat-sidebar ul { border-top: 1px solid var(--c-line); }
.cat-sidebar li { border-bottom: 1px solid var(--c-line); }
.cat-sidebar ul a { display: block; padding: 12px 0; font-size: 15px; color: var(--c-text-2); font-family: var(--ff-zh); transition: all .2s; border-left: 2px solid transparent; padding-left: 12px; }
.cat-sidebar ul a:hover, .cat-sidebar ul a.active { color: var(--c-accent); border-left-color: var(--c-accent); }
.sidebar-cta { margin-top: 28px; padding: 24px; background: var(--c-ink); border-radius: var(--radius-lg); color: #fff; }
.sidebar-cta h4 { font-size: 17px; color: #fff; margin-bottom: 6px; font-family: var(--ff-zh); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; font-family: var(--ff-zh); }
.products-count { font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); margin-bottom: 20px; letter-spacing: .05em; }
.products-main .product-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Product Detail ---------- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery { min-width: 0; }
.product-info { min-width: 0; }
.gallery-main { position: relative; width: 100%; height: 0; padding-top: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #0e1013; }
.gallery-main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; cursor: zoom-in; }
.gallery-main video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 3; background: #0e1013; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb { flex: 1; aspect-ratio: 1; background: linear-gradient(135deg, #cfd3d8, #b8bcc2); border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: border .2s; position: relative; overflow: hidden; }
.thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--c-accent); }
.thumb-video::before { content: ''; position: absolute; inset: 0; background: rgba(14,16,19,.35); z-index: 2; }
.thumb-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3; width: 0; height: 0; pointer-events: none;
    border-style: solid; border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.thumb-video:hover .thumb-play { border-color: transparent transparent transparent var(--c-accent); }
.product-cat-tag { display: inline-block; font-family: var(--ff-mono); font-size: 11px; color: var(--c-accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.product-h1 { font-size: 30px; margin-bottom: 16px; font-family: var(--ff-zh); line-height: 1.3; }
.product-lead { font-size: 16px; color: var(--c-text-2); line-height: 1.75; margin-bottom: 24px; font-family: var(--ff-zh); }
.product-cta-row { display: flex; gap: 12px; margin-bottom: 32px; }
.param-table { background: var(--c-ink); border-radius: var(--radius-lg); overflow: hidden; }
.param-title { color: #fff; padding: 16px 24px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--ff-zh); }
.param-table table { width: 100%; }
.param-table th, .param-table td { padding: 14px 24px; font-size: 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--ff-zh); }
.param-table th { color: rgba(255,255,255,.5); width: 40%; font-weight: 400; }
.param-table td { color: #fff; font-family: var(--ff-mono); }
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: 28px; margin: 8px 0 20px; font-family: var(--ff-zh); }
.about-text p { font-size: 15px; color: var(--c-text-2); line-height: 1.85; margin-bottom: 16px; font-family: var(--ff-zh); }
.about-text strong { color: var(--c-ink); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat { background: var(--c-ink); color: #fff; padding: 28px 24px; border-radius: var(--radius-lg); }
.about-stat strong { display: block; font-family: var(--ff-display); font-size: 32px; color: var(--c-accent); margin-bottom: 6px; }
.about-stat span { font-size: 13px; color: rgba(255,255,255,.6); font-family: var(--ff-zh); }
/* 公司图片（右侧展示） */
.about-image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
.process-item { padding: 32px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.process-item:last-child { border-right: none; }
.process-no { font-family: var(--ff-display); font-size: 28px; color: var(--c-accent); font-weight: 700; }
.process-item h3 { font-size: 18px; margin: 14px 0 10px; color: #fff; font-family: var(--ff-zh); }
.process-item p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; font-family: var(--ff-zh); }

/* ---------- Cert ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card { background: var(--c-surface); border: 1px solid var(--c-line); padding: 24px; border-radius: var(--radius-lg); text-align: center; transition: all .3s; }
.cert-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cert-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d4d7dc); border-radius: var(--radius); margin-bottom: 14px; position: relative; overflow: hidden; }
.cert-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cert-img::after { content: 'CERT'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 700; color: rgba(14,16,19,.3); letter-spacing: .15em; }
.cert-img:has(img)::after { display: none; }
.cert-img:has(img) { cursor: zoom-in; }
.cert-name { font-size: 14px; color: var(--c-text-2); font-family: var(--ff-zh); }

/* ---------- 图片灯箱 ---------- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(14, 16, 19, .92);
    display: none; align-items: center; justify-content: center;
    padding: 32px; cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox-overlay.show { display: flex; animation: lb-fade .2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    animation: lb-zoom .25s ease;
}
@keyframes lb-zoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.inquiry-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-label { font-size: 13px; font-weight: 500; color: var(--c-text-2); margin-bottom: 6px; letter-spacing: .03em; font-family: var(--ff-zh); }
.form-label em { color: var(--c-accent); font-style: normal; }
.form-field input, .form-field textarea {
    background: transparent; border: none; border-bottom: 1.5px solid var(--c-line);
    padding: 10px 0; font-size: 15px; transition: border-color .2s; font-family: var(--ff-zh);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--c-accent); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-msg { font-size: 14px; color: var(--c-steel); margin-top: 4px; min-height: 18px; font-family: var(--ff-zh); }
.form-msg.error { color: #e23d3d; }
.form-msg.ok { color: #1a9d57; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.contact-label { font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted); width: 60px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .05em; }
.contact-val { font-size: 15px; color: var(--c-text); font-family: var(--ff-zh); }
.mt { margin-top: 32px; }
.contact-shop { display: flex; flex-direction: column; gap: 12px; }
.shop-card {
    display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius-lg);
    border: 1px solid var(--c-line); background: var(--c-surface); transition: all .3s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.shop-card .shop-tag { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; }
.shop-card strong { font-size: 17px; font-family: var(--ff-zh); }
.shop-card span:last-child { font-size: 13px; color: var(--c-muted); font-family: var(--ff-zh); }
.shop-taobao { border-left: 3px solid #ff5000; }
.shop-taobao .shop-tag { color: #ff5000; }
.shop-1688 { border-left: 3px solid #ff6a00; }
.shop-1688 .shop-tag { color: #ff6a00; }

/* ---------- SEO Text ---------- */
.seo-text { background: var(--c-warm); padding: 64px 0; }
.seo-text h2 { font-size: 22px; margin-bottom: 20px; font-family: var(--ff-zh); }
.seo-text p { font-size: 15px; color: var(--c-text-2); line-height: 1.9; margin-bottom: 16px; font-family: var(--ff-zh); }
.seo-text strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 320px; font-family: var(--ff-zh); }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 18px; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.6); font-family: var(--ff-zh); }
.footer-col ul a:hover { color: var(--c-accent); }
.footer-shop { display: flex; flex-direction: column; gap: 10px; }
.footer-shop .shop-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: all .2s; font-size: 14px; }
.footer-shop .shop-link:hover { border-color: var(--c-accent); color: #fff; }
.footer-shop .shop-tag { font-family: var(--ff-mono); font-size: 10px; padding: 3px 6px; border-radius: 2px; letter-spacing: .08em; }
.footer-shop .shop-taobao .shop-tag { background: #ff5000; color: #fff; }
.footer-shop .shop-1688 .shop-tag { background: #ff6a00; color: #fff; }
.footer-contact li { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 8px; font-family: var(--ff-zh); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- 页脚社交分享按钮 + 二维码弹窗 ---------- */
.social-dock {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.social-icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; color: #fff; cursor: pointer;
    transition: all .25s; background: transparent !important; box-shadow: none;
}
.social-icon-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: none; }

/* 友情链接 */
.footer-friend-links { border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.footer-friend-links .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.friend-links-title { font-size: 13px; color: rgba(255,255,255,.4); font-family: var(--ff-zh); flex-shrink: 0; }
.footer-friend-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-friend-links a:hover { color: var(--c-accent); }

/* 二维码悬浮卡片（hover 显示） */
.qr-popover {
    position: fixed; z-index: 1000; display: none;
    background: var(--c-surface); border-radius: var(--radius-lg); padding: 14px;
    box-shadow: var(--shadow-lg); text-align: center; min-width: 180px;
}
.qr-popover.show { display: block; animation: qrFade .18s ease-out; }
@keyframes qrFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.qr-popover-title { font-family: var(--ff-zh); font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.qr-popover-img-wrap { width: 160px; height: 160px; margin: 0 auto; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.qr-popover-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-icp a { color: rgba(255,255,255,.4); }
.footer-icp a:hover { color: var(--c-accent); }

/* ---------- Back to top ---------- */
.back-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 44px; height: 44px; background: var(--c-ink); color: #fff;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--c-accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cat-grid, .product-grid, .app-grid, .news-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-item, .process-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .product-detail-grid, .contact-grid, .article-wrap { grid-template-columns: 1fr; gap: 32px; }
    .products-layout { grid-template-columns: 1fr; }
    .cat-sidebar { position: static; }
    .products-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px; border-radius: 0; border-bottom: 1px solid var(--c-line); }
    .main-nav a::after { display: none; }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }
    .section { padding: 20px 0; }
    .section-head { flex-wrap: wrap; margin-bottom: 16px; }
    .section-title { font-size: 24px; }
    .hero { min-height: auto; padding: 80px 0 0; }
    .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid rgba(255,255,255,.08); }
    .cat-grid, .product-grid, .app-grid, .news-grid, .cert-grid, .tech-grid, .process-grid { grid-template-columns: 1fr; }
    .products-main .product-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .app-detail-row { flex-direction: column !important; gap: 20px; text-align: center; }
    .app-detail-image { width: 100%; height: 200px; }
    .app-detail-content p { margin: 0 auto; }
    .app-products { justify-content: center; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .article-wrap { grid-template-columns: 1fr; }
    .article-cta { position: static; }
    /* 移动端页脚：品牌单行，产品+导航同一行分两列，电商采购单行 */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid .footer-brand { grid-column: 1 / -1; }
    .footer-grid .footer-col:nth-child(4) { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- 动态背景增强：鼠标光斑 + 扫描线 + 视差 ---------- */
/* 确保深色区块作为定位上下文 */
.section-dark, .section-tech, .site-footer { position: relative; overflow: hidden; }

/* A. 深色区块鼠标光斑（橙色辉光） */
.hero::after, .section-tech::after, .section-dark::after,
.cta-band::after, .page-hero::after, .site-footer::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 50%),
                rgba(255,107,26,.12), transparent 60%);
    opacity: 0; transition: opacity .4s ease; z-index: 0;
}
.hero.cursor-active::after, .section-tech.cursor-active::after, .section-dark.cursor-active::after,
.cta-band.cursor-active::after, .page-hero.cursor-active::after, .site-footer.cursor-active::after {
    opacity: 1;
}

/* B. 浅色区块鼠标光斑（淡橙色，可见但不干扰阅读） */
.section:not(.section-dark):not(.section-tech) { position: relative; overflow: hidden; }
.section:not(.section-dark):not(.section-tech)::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%),
                rgba(255,107,26,.10), transparent 65%);
    opacity: 0; transition: opacity .4s ease; z-index: 0;
}
.section:not(.section-dark):not(.section-tech).cursor-active::after { opacity: 1; }

/* C. 扫描线（JS 注入 .bg-scan span，由 .scan-in 触发动画） */
.bg-scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-scan::before {
    content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255,107,26,.18) 50%, transparent 100%);
    transform: translateX(-150%) skewX(-15deg);
}
.scan-in .bg-scan::before { animation: scanSweep 1.2s ease-out forwards; }
@keyframes scanSweep {
    to { transform: translateX(350%) skewX(-15deg); }
}

/* D. hero 网格视差：grid 慢、glow 快，反向位移 */
.hero-grid {
    transform: translate3d(calc((var(--mx, 0.5) - 0.5) * -20px), calc((var(--my, 0.5) - 0.5) * -20px), 0);
    transition: transform .3s ease-out;
}
.hero-glow {
    transform: translate3d(calc((var(--mx, 0.5) - 0.5) * 40px), calc((var(--my, 0.5) - 0.5) * 40px), 0);
    transition: transform .4s ease-out;
}

/* E. 兜底：触屏禁用光斑与视差 */
@media (pointer: coarse) {
    .hero::after, .section::after, .section-tech::after, .section-dark::after,
    .cta-band::after, .page-hero::after, .site-footer::after { display: none; }
    .hero-grid, .hero-glow { transform: none !important; transition: none !important; }
}
/* E. 兜底：减弱动效禁用扫描线与视差 */
@media (prefers-reduced-motion: reduce) {
    .bg-scan::before { animation: none !important; display: none; }
    .hero-grid, .hero-glow { transition: none !important; transform: none !important; }
    .hero-tag, .hero-title, .hero-line, .hero-sub, .hero-cta, .hero-stats { animation: none !important; }
}
