/* =========================================================================
   虚拟幻境定制中心 VITIC · 案例展示站
   两套主题：
     「轻幻」（默认）—— 明亮通透、留白多、糖果配色，主打轻快
     「霓虹」        —— 暗色 + 霓虹渐变，机箱照片对比更强
   切换：右上角太阳/月亮按钮，或网址加 ?theme=dark / ?theme=light
   ========================================================================= */

/* ---------------------------------------------------------------- 主题变量 */
:root {
  /* ---- 轻幻（默认） ---- */
  --bg: #fbfcff;
  --bg-grad: linear-gradient(178deg, #fdfeff 0%, #f3f7ff 32%, #fbf4ff 64%, #f1f9ff 100%);
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-sunken: rgba(255, 255, 255, 0.66);
  --overlay-bg: rgba(252, 253, 255, 0.92);
  --overlay-bg-strong: #ffffff;
  --media-scrim: rgba(10, 12, 32, 0.78);

  --line: rgba(28, 34, 84, 0.09);
  --line-2: rgba(28, 34, 84, 0.2);

  --ink: #171a33;
  --ink-2: #444a72;
  --muted: #8189ae;
  --ink-on-accent: #ffffff;

  --pink: #ff4f9d;
  --violet: #7b5cff;
  --sky: #22b8ee;
  --cyan: #22b8ee;
  --amber: #f5a524;
  --green: #16b981;
  --grad: linear-gradient(115deg, #ff4f9d 0%, #7b5cff 52%, #22b8ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 79, 157, 0.13), rgba(123, 92, 255, 0.1) 55%, rgba(34, 184, 238, 0.13));

  --fx-blob-a: rgba(255, 150, 205, 0.32);
  --fx-blob-b: rgba(125, 200, 255, 0.28);
  --fx-blob-c: rgba(178, 155, 255, 0.26);
  --fx-grid: rgba(45, 55, 130, 0.045);
  --fx-scan: transparent;
  --fx-noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  --fx-glow-opacity: 0.9;

  --shadow-xs: 0 1px 2px rgba(30, 36, 90, 0.06);
  --shadow-sm: 0 6px 18px -12px rgba(30, 36, 90, 0.3);
  --shadow: 0 18px 44px -28px rgba(30, 36, 90, 0.35);
  --shadow-lg: 0 34px 80px -46px rgba(30, 36, 90, 0.45);
  --shadow-accent: 0 22px 48px -26px rgba(255, 79, 157, 0.55);

  --container: min(1320px, 92vw);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Oswald", "PingFang SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 74px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #07070c;
  --bg-grad: linear-gradient(180deg, #0a0a12 0%, #08080f 40%, #0b0912 100%);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.085);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-sunken: rgba(255, 255, 255, 0.03);
  --overlay-bg: rgba(9, 9, 15, 0.94);
  --overlay-bg-strong: #0b0b13;
  --media-scrim: rgba(5, 5, 10, 0.82);

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);

  --ink: #f4f4fa;
  --ink-2: #c8c8d8;
  --muted: #8d8da6;

  --pink: #ff3d9a;
  --violet: #8b5cf6;
  --sky: #22d3ee;
  --cyan: #22d3ee;
  --amber: #ffb454;
  --green: #3ddc97;
  --grad: linear-gradient(115deg, #ff3d9a 0%, #8b5cf6 52%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 61, 154, 0.2), rgba(139, 92, 246, 0.16) 55%, rgba(34, 211, 238, 0.2));

  --fx-blob-a: rgba(255, 61, 154, 0.34);
  --fx-blob-b: rgba(34, 211, 238, 0.26);
  --fx-blob-c: rgba(139, 92, 246, 0.28);
  --fx-grid: rgba(255, 255, 255, 0.03);
  --fx-scan: rgba(255, 255, 255, 0.022);
  --fx-noise-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --fx-glow-opacity: 1;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, 0.8);
  --shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.95);
  --shadow-lg: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  --shadow-accent: 0 30px 60px -46px rgba(255, 61, 154, 0.95);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ 基础 */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.22; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 79, 157, 0.22); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.container { width: var(--container); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 背景氛围层
   只占 2 个合成层：网格 / 扫描线 / 噪点合进 .fx 的多重背景，
   光晕用径向渐变直接画（不用 blur 滤镜），单独一层做极慢的透明度呼吸。 */
.fx {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image:
    var(--fx-noise-img),
    repeating-linear-gradient(180deg, var(--fx-scan) 0 1px, transparent 1px 3px),
    linear-gradient(var(--fx-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
  background-size: 160px 160px, auto, 72px 72px, 72px 72px;
}
.fx__glow {
  position: absolute; inset: 0; opacity: var(--fx-glow-opacity);
  background-image:
    radial-gradient(64vw 64vw at 6% 0%, var(--fx-blob-a), transparent 68%),
    radial-gradient(58vw 58vw at 102% 28%, var(--fx-blob-b), transparent 68%),
    radial-gradient(76vw 54vw at 40% 108%, var(--fx-blob-c), transparent 70%);
  background-repeat: no-repeat;
  will-change: opacity;
  animation: breathe 30s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { opacity: calc(var(--fx-glow-opacity) * 0.72); }
  to { opacity: var(--fx-glow-opacity); }
}

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), color 0.3s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary {
  background: var(--grad); border-color: transparent; color: var(--ink-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { box-shadow: 0 28px 56px -24px rgba(255, 79, 157, 0.85); background: var(--grad); }
.btn--ghost { background: var(--surface-soft); }
.btn--cyan { background: rgba(34, 184, 238, 0.12); border-color: rgba(34, 184, 238, 0.45); color: var(--sky); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-soft);
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { display: block; }

/* -------------------------------------------------------------- 标签/胶囊 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface-soft); color: var(--ink-2);
}
.tag--uv { border-color: rgba(34, 184, 238, 0.45); background: rgba(34, 184, 238, 0.14); color: #0d7ba6; }
.tag--paint { border-color: rgba(245, 165, 36, 0.45); background: rgba(245, 165, 36, 0.16); color: #a5620a; }
.tag--tone { background: var(--surface-soft); }
.tag__dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(120, 120, 160, 0.35) inset; }

html[data-theme='dark'] .tag--uv { color: #a8ecff; }
html[data-theme='dark'] .tag--paint { color: #ffd9a3; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-soft);
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: border-color 0.3s var(--ease), color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-xs); }
.chip.is-active {
  border-color: transparent; color: var(--ink-on-accent); background: var(--grad);
  box-shadow: var(--shadow-accent);
}
.chip__count { font-family: var(--font-num); font-size: 12px; opacity: 0.75; }

/* --------------------------------------------------------------- 页头导航 */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--overlay-bg);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: var(--overlay-bg-strong);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* VITIC 字标：fill 用 currentColor，浅色主题自动是深色、暗色主题自动是白色 */
.brand__logo { height: 25px; width: auto; display: block; flex-shrink: 0; color: var(--ink); }
.footer-brand .brand__logo { height: 27px; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }
.brand__en { font-family: var(--font-num); font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav__link {
  position: relative; padding: 9px 14px; border-radius: 12px; font-size: 15px; color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-soft); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-search {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; min-width: 208px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-soft);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.header-search:focus-within { border-color: rgba(123, 92, 255, 0.5); box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12); }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.header-search input::placeholder { color: var(--muted); }
.burger { display: none; }

.mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 12px 4vw 20px; border-top: 1px solid var(--line);
  background: var(--overlay-bg-strong);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 13px 16px; border-radius: 14px; font-size: 15.5px;
  border: 1px solid var(--line); background: var(--surface-soft);
}
.mobile-menu a:hover { border-color: var(--line-2); color: var(--pink); }
.mobile-search { margin-top: 4px; }
.mobile-search .field { width: 100%; }

/* ------------------------------------------------------------ 顶部下拉菜单 */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { opacity: 0.5; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret,
.nav__item.is-open .nav__caret { transform: rotate(180deg); opacity: 1; }

.nav__menu {
  position: absolute; top: 100%; left: 50%; z-index: 70;
  padding-top: 14px; /* 悬浮桥：鼠标从菜单移到面板上不会断 */
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.28s var(--ease), transform 0.34s var(--ease), visibility 0.28s;
}
.nav__item:hover > .nav__menu,
.nav__item:focus-within > .nav__menu,
.nav__item.is-open > .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}

.menu-panel {
  display: grid; gap: 20px 26px; padding: 22px;
  grid-template-columns: repeat(var(--menu-cols, 2), minmax(192px, 1fr));
  min-width: 268px; max-width: calc(100vw - 32px);
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--overlay-bg-strong); box-shadow: var(--shadow-lg);
}
.menu-col__title { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.menu-col__body { display: grid; gap: 2px; }
.menu-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 11px;
  font-size: 14px; color: var(--ink-2);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.menu-link:hover { background: var(--grad-soft); color: var(--ink); transform: translateX(3px); }
.menu-link__label { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.menu-link__label i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.menu-link__count { margin-left: auto; font-family: var(--font-num); font-size: 12px; color: var(--muted); }

.menu-foot {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.menu-foot__label { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.menu-tones { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-tone {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-soft);
  font-size: 12.5px; color: var(--ink-2); transition: border-color 0.25s, transform 0.25s var(--ease);
}
.menu-tone:hover { border-color: var(--line-2); transform: translateY(-2px); }
.menu-tone b { font-family: var(--font-num); font-weight: 600; color: var(--muted); }
.menu-tone .swatch { width: 12px; height: 12px; }
.menu-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-chip {
  display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-soft); font-size: 13px; color: var(--ink-2);
  transition: border-color 0.25s, transform 0.3s var(--ease), color 0.25s;
}
.menu-chip:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.menu-chip--accent { background: var(--grad); border-color: transparent; color: var(--ink-on-accent); }
.menu-card {
  display: grid; gap: 5px; padding: 15px; border-radius: 15px;
  border: 1px solid var(--line); background: var(--surface-soft); margin-bottom: 8px;
  transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.menu-card:hover { border-color: rgba(255, 79, 157, 0.4); transform: translateY(-3px); background: var(--surface); }
.menu-card strong { font-size: 15.5px; }
.menu-card span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.menu-card em { font-style: normal; font-size: 12.5px; color: var(--pink); font-family: var(--font-num); }
.menu-step { display: flex; gap: 11px; align-items: flex-start; padding: 8px 11px; border-radius: 11px; transition: background 0.25s, transform 0.3s var(--ease); }
.menu-step:hover { background: var(--grad-soft); transform: translateX(3px); }
.menu-step b { font-family: var(--font-num); font-size: 13px; color: var(--pink); padding-top: 2px; }
.menu-step span { display: grid; gap: 2px; }
.menu-step strong { font-size: 14px; font-weight: 600; }
.menu-step i { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* 移动端：下拉在汉堡菜单里做成可展开分组 */
.mm-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); overflow: hidden; }
.mm-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; font-size: 15.5px; cursor: pointer; list-style: none;
}
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group summary::after { content: '＋'; color: var(--muted); font-size: 15px; }
.mm-group[open] summary::after { content: '－'; }
.mm-sub { display: grid; gap: 6px; padding: 0 12px 12px; }
.mm-sub a {
  padding: 10px 14px; border-radius: 11px; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.mm-sub a:hover { color: var(--pink); }

@media (max-width: 1240px) {
  .nav__menu .menu-panel { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

/* -------------------------------------------------------------------- 首页 */
.hero { position: relative; padding: clamp(56px, 7.5vw, 128px) 0 clamp(36px, 4.5vw, 72px); }
.hero__inner { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(30px, 4.5vw, 72px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 13px;
  border-radius: 999px; border: 1px solid rgba(255, 79, 157, 0.3);
  background: linear-gradient(100deg, rgba(255, 79, 157, 0.12), rgba(34, 184, 238, 0.1));
  font-family: var(--font-num); font-size: 12.5px; letter-spacing: 0.16em; color: var(--pink);
}
.kicker__pulse {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex-shrink: 0;
}
/* 呼吸圈用 transform + opacity：只走 GPU 合成，不像 box-shadow 那样每帧重绘 */
.kicker__pulse::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  background: var(--pink); animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(3.6); opacity: 0; }
  100% { transform: scale(3.6); opacity: 0; }
}
.hero__title {
  margin: 22px 0 20px; font-size: clamp(31px, 3.9vw, 56px); line-height: 1.18; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__desc { max-width: 48ch; color: var(--ink-2); font-size: clamp(15px, 1.1vw, 17.5px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px);
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.stat__num { font-family: var(--font-num); font-size: clamp(26px, 2.5vw, 38px); font-weight: 700; letter-spacing: 0.01em; }
.stat__num span { font-size: 0.55em; color: var(--muted); margin-left: 2px; }
.stat__label { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

.hero__visual { position: relative; }
.stack { position: relative; aspect-ratio: 1 / 1; transform-style: preserve-3d; }
.stack__card {
  position: absolute; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transition: transform 0.8s var(--ease);
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; }
.stack__card--1 { width: 58%; left: 4%; top: 12%; z-index: 3; transform: rotate(-6deg); }
.stack__card--2 { width: 48%; right: 2%; top: 4%; z-index: 2; transform: rotate(5deg); opacity: 0.95; }
.stack__card--3 { width: 44%; right: 12%; bottom: 2%; z-index: 1; transform: rotate(-2deg); opacity: 0.82; }
.stack__halo {
  position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 157, 0.22) 0%, rgba(123, 92, 255, 0.12) 42%, transparent 70%);
  z-index: 0;
}
.stack__ring {
  position: absolute; inset: 8% 6% 8% 6%; border-radius: 50%;
  border: 1px dashed var(--line-2); z-index: 0;
  animation: spin 44s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 13px;
}
.float-chip strong { font-family: var(--font-num); font-size: 15px; }
.float-chip--a { left: -2%; bottom: 20%; animation: floaty 6s ease-in-out infinite; }
.float-chip--b { right: -1%; top: 26%; animation: floaty 7.5s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ------------------------------------------------------------------ 跑马灯 */
.marquee {
  position: relative; margin-top: clamp(30px, 4vw, 56px); padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; contain: paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 44s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); opacity: 0.72;
  letter-spacing: 0.06em; white-space: nowrap;
}
.marquee__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ 区块 */
.section { padding: clamp(56px, 6.5vw, 118px) 0; }
.section--tight { padding: clamp(38px, 4.4vw, 72px) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: clamp(26px, 3.2vw, 50px); }
.section__kicker {
  font-family: var(--font-num); font-size: 12.5px; letter-spacing: 0.22em; color: var(--pink);
  display: flex; align-items: center; gap: 10px;
}
.section__kicker::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.section__title { margin: 14px 0 12px; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.02em; }
.section__desc { max-width: 64ch; color: var(--muted); font-size: 15.5px; }
.section__more { flex-shrink: 0; }

/* ---------------------------------------------------------------- 工艺卡片 */
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.craft {
  position: relative; padding: 34px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.craft::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; background: var(--grad-soft); }
.craft:hover { transform: translateY(-6px); border-color: rgba(255, 79, 157, 0.35); box-shadow: var(--shadow); }
.craft:hover::before { opacity: 0.7; }
.craft > * { position: relative; }
.craft__badge {
  display: inline-flex; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--grad); color: var(--ink-on-accent); letter-spacing: 0.04em;
}
.craft__title { margin: 18px 0 12px; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.craft__title svg { width: 32px; height: 32px; }
.craft__desc { color: var(--ink-2); font-size: 15px; }
.craft__list { display: grid; gap: 11px; margin: 22px 0 24px; }
.craft__list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.craft__list li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%;
  background: var(--grad); opacity: 0.95;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/70% no-repeat;
}
.craft__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.craft__price { font-family: var(--font-num); font-size: 23px; }
.craft__price small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.craft__days { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ 案例卡 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.case-grid--4 { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), border-color 0.4s, box-shadow 0.55s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 79, 157, 0.4);
  box-shadow: var(--shadow-lg);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 26, 0.34) 0%, transparent 34%, var(--media-scrim) 100%);
}
.card__badges { position: absolute; top: 13px; left: 13px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.card__badges .tag { border-color: rgba(255, 255, 255, 0.28); background: rgba(10, 12, 30, 0.58); color: #fff; }
.card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--grad); color: #fff; letter-spacing: 0.06em;
}
.card__hover {
  position: absolute; inset: auto 13px 13px 13px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.card:hover .card__hover { opacity: 1; transform: translateY(0); }
.card__model {
  position: absolute; bottom: 13px; left: 15px; z-index: 2;
  font-size: 12.5px; color: #fff; background: rgba(10, 12, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 5px 12px;
  max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity 0.35s;
}
.card:hover .card__model { opacity: 0; }
.card__body { display: grid; gap: 11px; padding: 19px 21px 21px; }
.card__title { font-size: 18px; line-height: 1.4; }
.card__sub { font-size: 13px; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; }
.card__price { font-family: var(--font-num); font-size: 20px; color: var(--ink); }
.card__price small { font-size: 11.5px; color: var(--muted); margin-left: 3px; }
.card__meta { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 流程 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-num); font-size: 36px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__title { margin: 16px 0 9px; font-size: 17.5px; }
.step__desc { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; max-width: 940px; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.faq__item:hover { border-color: var(--line-2); }
.faq__item.is-open { border-color: rgba(255, 79, 157, 0.32); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 19px 24px; text-align: left; background: none; border: 0;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq__q::after {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center/9px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 9px no-repeat;
  transition: transform 0.45s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: rotate(135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--ink-2); font-size: 14.8px; }
.faq__item.is-open .faq__a { max-height: 420px; }

/* ------------------------------------------------------------------- CTA */
.cta-panel {
  position: relative; overflow: hidden; padding: clamp(34px, 4.6vw, 68px);
  border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 79, 157, 0.11), rgba(123, 92, 255, 0.08) 45%, rgba(34, 184, 238, 0.11));
  box-shadow: var(--shadow);
}
html[data-theme='dark'] .cta-panel { background: linear-gradient(150deg, rgba(255, 61, 154, 0.16), rgba(139, 92, 246, 0.12) 45%, rgba(34, 211, 238, 0.14)); }
.cta-panel::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 157, 0.2) 0%, rgba(255, 79, 157, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.cta-panel__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center; }
.cta-panel h2 { font-size: clamp(26px, 3vw, 42px); }
.cta-panel p { margin-top: 15px; color: var(--ink-2); max-width: 46ch; }
.contact-list { display: grid; gap: 10px; margin-top: 24px; }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; box-shadow: var(--shadow-xs);
}
.contact-row__label { color: var(--muted); min-width: 62px; font-size: 13px; }
.contact-row__value { font-family: var(--font-num); letter-spacing: 0.04em; }
.contact-row__copy { margin-left: auto; font-size: 12.5px; color: var(--sky); background: none; border: 0; }
.promise-list { display: grid; gap: 13px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.promise-list li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--grad); opacity: 0.95;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/72% no-repeat;
}
.qr-box {
  display: grid; place-items: center; gap: 12px; padding: 20px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-2); background: var(--surface); text-align: center; box-shadow: var(--shadow-xs);
}
.qr-box img { width: 160px; height: 160px; object-fit: contain; border-radius: 14px; background: #fff; padding: 8px; }
.qr-box span { font-size: 13px; color: var(--muted); }
.qr-box--id { gap: 14px; padding: 28px 22px; }
.qr-box--id .qr-id { font-family: var(--font-num); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.06em; color: var(--ink); }

/* 微信名片：二维码 + 微信号 + 复制按钮 */
.wx-card {
  --wx-qr: 128px;
  display: flex; align-items: center; gap: 20px;
  padding: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.wx-card__qr {
  height: var(--wx-qr); width: auto; max-width: calc(var(--wx-qr) * 1.5); flex-shrink: 0;
  object-fit: contain; border-radius: 14px; background: #fff; padding: 7px;
  border: 1px solid var(--line);
}
.wx-card__body { display: grid; gap: 7px; min-width: 0; }
.wx-card__label { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); font-family: var(--font-num); }
.wx-card__id {
  font-family: var(--font-num); font-size: clamp(19px, 1.9vw, 25px); letter-spacing: 0.04em;
  color: var(--ink); word-break: break-all; line-height: 1.3;
}
.wx-card__time { font-size: 12.5px; color: var(--muted); }
.wx-card__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.wx-card__tip { font-size: 12.5px; color: var(--muted); }
.wx-card--compact { --wx-qr: 104px; gap: 16px; padding: 16px; }
.wx-card--compact .wx-card__id { font-size: 19px; }

@media (max-width: 520px) {
  .wx-card { flex-direction: column; text-align: center; }
  .wx-card__body { justify-items: center; }
  .wx-card__actions { justify-content: center; }
}

/* ------------------------------------------------------------- 案例库页面 */
.page-head { padding: clamp(34px, 4.4vw, 66px) 0 clamp(20px, 2vw, 30px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--pink); }
.page-head h1 { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.02em; }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 70ch; }

/* ------------------------------------------------------------ 品类切换条 */
.cat-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.cat-tab span { font-family: var(--font-num); font-size: 12px; opacity: 0.66; }
.cat-tab:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.cat-tab.is-active { background: var(--grad); border-color: transparent; color: var(--ink-on-accent); box-shadow: var(--shadow-accent); }
.cat-tab.is-active span { opacity: 0.88; }
.cat-tabs__sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 5px; flex-shrink: 0; }

.tag--cat { border-color: rgba(123, 92, 255, 0.4); background: rgba(123, 92, 255, 0.12); color: var(--violet); }
html[data-theme='dark'] .tag--cat { color: #cbb8ff; }
.brand-block__cat {
  font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 10px;
  padding: 3px 10px; border-radius: 999px; vertical-align: middle;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-soft);
}

@media (max-width: 760px) {
  .cat-tabs {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-right: -4vw; padding-right: 4vw;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; padding: 9px 15px; font-size: 14px; }
}

.library { display: grid; grid-template-columns: 274px 1fr; gap: 32px; align-items: start; padding-bottom: clamp(56px, 6.5vw, 100px); }
.filters {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; gap: 18px; padding: 24px; max-height: calc(100vh - var(--header-h) - 44px);
  overflow: auto; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__title { font-size: 15px; font-weight: 700; }
.filters__reset { font-size: 13px; color: var(--sky); background: none; border: 0; padding: 4px; }
.filters__reset:hover { text-decoration: underline; }
.filter-group { border-top: 1px solid var(--line); padding-top: 16px; }
.filter-group__title { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 12px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-opts--col { display: grid; gap: 7px; }
.filter-opt {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-soft); font-size: 14px; color: var(--ink-2);
  transition: border-color 0.28s, background 0.28s, color 0.28s, transform 0.28s var(--ease);
  text-align: left; width: 100%;
}
.filter-opt:hover { border-color: var(--line-2); color: var(--ink); transform: translateX(2px); }
.filter-opt.is-active { border-color: transparent; background: var(--grad); color: var(--ink-on-accent); box-shadow: var(--shadow-accent); }
.filter-opt.is-zero { border-style: dashed; }
.filter-opt__count { margin-left: auto; font-family: var(--font-num); font-size: 12px; color: var(--muted); }
.filter-opt.is-active .filter-opt__count { color: rgba(255, 255, 255, 0.85); }
.filter-opt__hint {
  font-size: 11px; color: var(--muted); padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap;
}
.filter-opt.is-active .filter-opt__hint { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.9); }
.filter-search { margin-bottom: 10px; width: 100%; }
.filter-tip { display: block; margin-top: 10px; font-size: 12.5px; color: var(--sky); }
.filter-tip:hover { text-decoration: underline; }
.swatch { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(120, 120, 160, 0.35) inset; }
.swatch--rainbow { background: conic-gradient(#ff4f9d, #ffd166, #16b981, #22b8ee, #7b5cff, #ff4f9d); }
.filter-more { font-size: 13px; color: var(--sky); background: none; border: 0; padding: 4px 0; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 15px 20px; margin-bottom: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs);
}
.toolbar__count { font-size: 14px; color: var(--ink-2); }
.toolbar__count strong { font-family: var(--font-num); font-size: 20px; color: var(--ink); margin: 0 3px; }
.toolbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.field {
  padding: 10px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; outline: none; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field:focus { border-color: rgba(123, 92, 255, 0.5); box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12); }
.field::placeholder { color: var(--muted); }
select.field { cursor: pointer; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 79, 157, 0.35); background: rgba(255, 79, 157, 0.1);
  font-size: 13px; color: var(--pink);
}
.active-chip button { background: none; border: 0; font-size: 15px; line-height: 1; color: inherit; opacity: 0.7; }
.active-chip button:hover { opacity: 1; }

.empty {
  display: grid; place-items: center; gap: 14px; padding: 76px 24px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-soft);
}
.empty__mark { font-size: 42px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }
.load-more { display: grid; place-items: center; margin-top: 34px; }

/* -------------------------------------------------------------- 案例详情 */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 36px; align-items: start; padding-bottom: clamp(44px, 5vw, 84px); }
.detail__main { display: grid; gap: 26px; align-content: start; min-width: 0; }
.detail__side { display: grid; gap: 20px; align-content: start; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery { display: grid; gap: 14px; }
.gallery__main {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-soft); box-shadow: var(--shadow); cursor: zoom-in;
}
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__hint {
  position: absolute; right: 15px; bottom: 15px; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; background: rgba(10, 12, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
}
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery__thumb {
  position: relative; width: 100px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-soft); padding: 0;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 157, 0.2); }
.gallery__thumb:hover { transform: translateY(-3px); }

.detail__title { font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.02em; }
.detail__sub { margin-top: 10px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list {
  display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--line);
}
.spec { display: flex; gap: 14px; padding: 13px 18px; background: var(--surface); font-size: 14.5px; }
.spec__k { width: 84px; flex-shrink: 0; color: var(--muted); font-size: 13.5px; }
.spec__v { color: var(--ink); }
.prose { color: var(--ink-2); font-size: 15.2px; line-height: 1.9; }
.highlight-list { display: grid; gap: 10px; }
.highlight-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.highlight-list li::before { content: ''; width: 6px; height: 6px; margin-top: 11px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

.order-card {
  display: grid; gap: 16px; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 79, 157, 0.1), var(--surface) 58%);
  box-shadow: var(--shadow);
}
html[data-theme='dark'] .order-card { background: linear-gradient(165deg, rgba(255, 61, 154, 0.12), rgba(12, 12, 20, 0.92) 55%); }
.order-card__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-num); font-size: 34px; }
.order-card__price small { font-size: 13px; color: var(--muted); font-family: var(--font); }
.order-card__note { font-size: 13.5px; color: var(--muted); }
.order-card__actions { display: grid; gap: 10px; }
.mini-specs { display: grid; gap: 9px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-spec { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.mini-spec b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6, 8, 20, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 48px 24px 12px; min-height: 0; }
.lightbox__img { max-width: min(1200px, 92vw); max-height: 76vh; object-fit: contain; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px 28px; }
.lightbox__thumb { width: 78px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); background: #0b0b12; padding: 0; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb.is-active { border-color: var(--pink); }
.lightbox__caption { width: 100%; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.lightbox .icon-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* -------------------------------------------------------------- 支持机型 */
.models-wrap { padding-bottom: clamp(34px, 4vw, 56px); }
.models-toolbar {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 20;
  display: grid; gap: 14px; padding: 20px 22px; margin-bottom: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--overlay-bg-strong); box-shadow: var(--shadow-sm);
}
.model-search {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-soft);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.model-search:focus-within { border-color: rgba(123, 92, 255, 0.5); box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12); }
.model-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15.5px; }
.model-search input::placeholder { color: var(--muted); }
.model-search__clear { border: 0; background: none; font-size: 13px; color: var(--sky); }
.model-stats { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--muted); }
.model-stats strong { font-family: var(--font-num); font-size: 19px; color: var(--ink); margin-right: 4px; }
.model-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.model-brands .chip { padding: 8px 15px; font-size: 13.5px; cursor: pointer; }

.brand-block {
  padding: 24px; margin-bottom: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs);
}
.brand-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brand-block__head h2 { font-size: 20px; }
.brand-block__head span { font-size: 13px; color: var(--muted); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 11px; }
.model-chip {
  display: grid; gap: 6px; padding: 15px 17px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-soft);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s;
}
.model-chip:hover {
  transform: translateY(-4px); border-color: rgba(255, 79, 157, 0.4);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.model-chip__name { font-family: var(--font-num); font-size: 17px; letter-spacing: 0.02em; color: var(--ink); }
.model-chip__meta { font-size: 12.5px; color: var(--muted); }
.model-chip--todo { border-style: dashed; }
.model-chip--todo .model-chip__meta { color: var(--sky); }

/* --------------------------------------------------------------- 抽屉筛选 */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 30, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto;
  padding: 24px 20px 32px; border-radius: 28px 28px 0 0; border-top: 1px solid var(--line);
  background: var(--overlay-bg-strong); animation: slideUp 0.45s var(--ease);
}
@keyframes slideUp { from { transform: translateY(12%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__foot {
  position: sticky; bottom: 0; display: flex; gap: 12px; padding-top: 18px; margin-top: 18px;
  background: linear-gradient(180deg, transparent, var(--overlay-bg-strong) 32%);
}
.mobile-filter-btn { display: none; }

/* ------------------------------------------------------------------ 页脚 */
.site-footer { margin-top: clamp(46px, 6vw, 90px); border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 30px; padding: clamp(40px, 4.5vw, 62px) 0; }
.footer-col h4 { font-size: 14px; color: var(--ink); margin-bottom: 15px; letter-spacing: 0.06em; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: 13.8px; color: var(--muted); }
.footer-col a:hover { color: var(--pink); }
.footer-brand p { margin-top: 15px; font-size: 13.8px; color: var(--muted); max-width: 34ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-lite {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 15px; font-size: 12.5px; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.footer-lite:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }

/* ------------------------------------------------------------------ 提示 */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 20px); z-index: 200;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--overlay-bg-strong); font-size: 14px; color: var(--ink);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.banner {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 20px;
  border-radius: var(--radius-sm); border: 1px solid rgba(245, 165, 36, 0.4); background: rgba(245, 165, 36, 0.12);
  font-size: 14px; color: #9a6208;
}
html[data-theme='dark'] .banner { color: #ffd9a3; }
.banner code { font-family: var(--font-num); background: rgba(128, 128, 160, 0.16); padding: 2px 8px; border-radius: 6px; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-soft); border-radius: var(--radius); }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(128, 128, 170, 0.12), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ------------------------------------------------------------------ 动效 */
main { animation: pageIn 0.5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  .header-search { display: none; }
}

@media (max-width: 1120px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 580px; }
  .library { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .cta-panel__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --radius: 20px; --radius-sm: 14px; }
  .hero__stats { gap: 18px 28px; }
  .case-grid, .case-grid--4 { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .toolbar__actions { margin-left: 0; width: 100%; }
  .toolbar__actions .field { flex: 1; }
  .gallery__thumb { width: 78px; }
  .footer-cols { grid-template-columns: 1fr; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .contact-row { flex-wrap: wrap; }
  .models-toolbar { position: static; padding: 16px; }
  .model-grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------- 省电模式（lite）
   点页脚「关闭动效」，或网址加 ?lite=1 打开时生效。
   给显卡较弱 / 高分屏的访客用：装饰层与所有无限动画全部停掉。 */
html.lite .fx { display: none; }
html.lite body { background-image: none; }
html.lite .fx__glow,
html.lite .marquee__track,
html.lite .stack__ring,
html.lite .float-chip,
html.lite .kicker__pulse::after { animation: none !important; }
html.lite main { animation: none; }
html.lite [data-reveal] { opacity: 1 !important; transform: none !important; }
html.lite .card,
html.lite .card__media img,
html.lite .btn,
html.lite .chip,
html.lite .model-chip,
html.lite .step,
html.lite .craft { transition: none !important; }
html.lite .card:hover,
html.lite .model-chip:hover,
html.lite .step:hover,
html.lite .craft:hover { transform: none; box-shadow: none; }
html.lite .card:hover .card__media img { transform: none; }
