/* ============================================================
   仿真时钟 · 转播大师 —— 单文件样式(纯 CSS,零外部依赖)
   设计 tokens 与 marketing/index.html 同源:
   奶油纸底 / 琥珀主色 / 青辅助 / 墨色文字
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f5f1e7;
  --bg-2: #faf6ec;
  --surface: #fffdf8;
  --surface-2: #f3ecdc;
  --line: rgba(94, 68, 30, .13);
  --line-strong: rgba(94, 68, 30, .26);

  --ink: #1d2433;
  --text: #1d2433;
  --muted: #4d5564;
  --faint: #667080;

  --amber: #f6a821;
  --amber-deep: #9a6606;
  --amber-dark: #7c5104;
  --amber-soft: rgba(246, 168, 33, .14);
  --amber-line: rgba(246, 168, 33, .45);

  --teal: #2fd6c3;
  --teal-deep: #0b7f79;
  --teal-soft: rgba(47, 214, 195, .12);
  --teal-line: rgba(47, 214, 195, .42);

  /* 深色墙面 / 深色卡片 */
  --wall-0: #2b3140;
  --wall-1: #1a1f2b;
  --wall-2: #12161f;
  --wall-text: #efe9da;
  --wall-muted: #a6adc0;

  --shadow-sm: 0 1px 2px rgba(94, 68, 30, .06), 0 10px 26px -18px rgba(94, 68, 30, .32);
  --shadow-lg: 0 24px 64px -30px rgba(94, 68, 30, .42);
  --shadow-amber: 0 12px 30px -14px rgba(246, 168, 33, .55);

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --nav-h: 58px;
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4.5vw, 2.5rem);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
  overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(246, 168, 33, .15), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(47, 214, 195, .12), transparent 60%),
    radial-gradient(rgba(120, 90, 40, .055) 1px, transparent 1.5px),
    var(--bg);
  background-size: auto, auto, 22px 22px, auto;
  background-attachment: fixed;
}

::selection { background: rgba(246, 168, 33, .3); color: #fff; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

main > section {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(2.2rem, 6vw, 3.6rem);
}

/* 焦点可见性 */
:focus-visible {
  outline: 2.5px solid var(--amber-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.stage-viewport :focus-visible, .thumb :focus-visible { outline-color: var(--amber); }

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .5rem 1rem; border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; }

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--nav-h);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: rgba(250, 246, 237, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 27px; height: 27px; flex: none;
  border-radius: 8px;
  background: #10151c;
  box-shadow: inset 0 0 0 2px var(--amber);
  position: relative;
}
.logo-mark::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--amber), var(--amber)) 50% 26% / 2px 9px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 60% 50% / 7px 2px no-repeat;
}
.logo-text { font-weight: 700; font-size: 1rem; letter-spacing: .02em; line-height: 1.2; }
.logo-text small {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--faint);
}

.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 2.2vw, 1.35rem); }
.site-nav > a { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.site-nav > a:hover { color: var(--amber-deep); text-decoration: none; }
.site-nav .nav-lang { color: var(--teal-deep); font-weight: 600; }
.site-nav .nav-dl { white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .58rem 1.15rem;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease,
    background-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #ffbc3d, var(--amber));
  border-color: rgba(156, 102, 6, .55);
  color: #241703;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: var(--shadow-amber); }

.btn-ghost {
  background: transparent;
  border-color: var(--teal-line);
  color: var(--teal-deep);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal-deep); background: var(--teal-soft); }

.btn-small { padding: .3rem .8rem; font-size: .8rem; border-radius: 9px; box-shadow: none; }
.site-nav .nav-dl {
  border-color: var(--amber-line);
  color: var(--amber-deep);
  background: var(--amber-soft);
}
.site-nav .nav-dl:hover { border-color: var(--amber-deep); color: var(--amber-dark); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding-top: clamp(1.4rem, 3.6vw, 2.4rem);
  padding-bottom: clamp(.4rem, 1.6vw, 1rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}
.eyebrow::after { background: linear-gradient(90deg, var(--teal), var(--amber)); }

.hero h1 {
  margin: 1rem auto .9rem;
  max-width: 18em;
  font-size: clamp(1.85rem, 5.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: .01em;
  text-wrap: balance;
}
.lede {
  max-width: 40em;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
}
.facts {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
}
.facts li {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .85rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- 配置器:两栏 ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
  align-items: stretch;
  width: min(1280px, 100% - var(--gutter) * 2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) + 6px);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.6vw, 1.7rem);
  margin-block: clamp(1.2rem, 3vw, 2rem) !important;
}

.stage {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 深色墙面舞台:让透明时钟的投影 / 玻璃反光可见 */
.stage-viewport {
  position: relative;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(12px, 1.6vw, 18px);
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(130% 190% at 50% -30%, rgba(246, 168, 33, .1), transparent 55%),
    radial-gradient(120% 160% at 50% 8%, var(--wall-0), var(--wall-1) 62%, var(--wall-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 18px 40px -22px rgba(29, 36, 51, .55);
}
/* 墙面颗粒感 */
.stage-viewport::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: screen;
}

#clock-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3.2 / 1;
  max-height: 340px;
  border: 0;
}

.stage-actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: .95rem;
}
.stage-actions .btn { flex: 1 1 auto; }

.url-row { margin-top: .65rem; }
.url-field {
  display: block;
  width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: .55rem .75rem;
}
.url-field:focus {
  border-style: solid;
  border-color: var(--amber-deep);
  color: var(--text);
}

.stage-note {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--line-strong);
  font-size: .78rem;
  color: var(--faint);
}

/* 左栏补高:工具事实 / 小贴士(2×2 紧凑卡,内容组在卡内垂直居中,卡片随右栏等高) */
.stage-tips {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem 1rem .95rem;
  box-shadow: var(--shadow-sm);
}
.tips-title {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  padding-left: .2rem;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: clamp(10px, 1.4vh, 20px);
  margin-block: auto;
  padding-block: clamp(.5rem, 1.2vh, 1rem);
}
.tips-grid li {
  display: flex; align-items: flex-start; gap: .6rem;
  min-height: 88px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .85rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}
.tip-ico {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  display: grid; place-items: center;
  color: var(--amber-deep);
}
.tip-ico svg { width: 14px; height: 14px; }
.stage-note {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px dashed var(--line-strong);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--faint);
}

/* ---------- 控件区 ---------- */
.controls {
  min-width: 0;
  display: flex; flex-direction: column; gap: .8rem;
}

.field {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .7rem .85rem .8rem;
  box-shadow: var(--shadow-sm);
}
.field > legend,
.field > label,
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: .45rem;
}
fieldset.field { padding-block: .45rem .7rem; }
fieldset.field legend { padding-inline: .3rem; }

/* swatch:真实缩略图按钮,3 列网格 */
.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.swatch {
  min-width: 0;
  display: flex; flex-direction: column; gap: 0;
  padding: 4px 4px 2px;
  background: var(--wall-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.swatch:hover { transform: translateY(-2px); border-color: var(--amber-line); }
.swatch-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  border-radius: 5px;
  background-color: var(--wall-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.swatch-name {
  display: block;
  padding: .26rem .1rem .08rem;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--wall-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swatch[aria-pressed="true"] {
  border-color: var(--amber);
  box-shadow: 0 0 0 1.5px var(--amber), var(--shadow-amber);
  transform: translateY(-2px);
}
.swatch[aria-pressed="true"] .swatch-name { color: var(--amber); font-weight: 700; }

/* 时区 + 格式 + 开关 */
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .65rem;
}
.field-grid .field { box-shadow: none; }
.field-grid > .field:first-child { grid-column: 1 / -1; }
.field-grid .field-caption { grid-column: 1 / -1; }

/* 勾选组:与「时间格式」卡片同格一行,垂直居中 */
.check-group {
  display: flex; flex-wrap: wrap;
  gap: .25rem 1.1rem;
  align-content: center;
  align-self: center;
  padding: .2rem .1rem;
}

.tz-row { display: flex; gap: .5rem; }
.tz-row input { flex: 1 1 auto; min-width: 0; }

.chip {
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--amber-dark);
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  border-radius: 9px;
  padding: .42rem .75rem;
  transition: background-color .16s ease, border-color .16s ease;
}
.chip:hover { background: rgba(246, 168, 33, .24); border-color: var(--amber-deep); }

.segmented {
  display: inline-flex;
  gap: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 3px;
  width: 100%;
}
.segmented button {
  flex: 1 1 0;
  padding: .32rem .4rem;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .16s ease, color .16s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 2px 6px -2px rgba(29, 36, 51, .5);
}

.check {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem;
  color: var(--text);
  padding: .15rem .1rem;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--amber-deep); flex: none; cursor: pointer; }

#opt-tz, #opt-label {
  display: block;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: .42rem .65rem;
  transition: border-color .16s ease, background-color .16s ease;
}
#opt-tz:focus, #opt-label:focus {
  outline: none;
  border-color: var(--amber-deep);
  background: var(--surface);
}
#opt-tz::placeholder, #opt-label::placeholder { color: var(--faint); }

/* ---------- OBS 三步 ---------- */
.steps { text-align: left; }
.steps .eyebrow::after { display: none; }
.steps h2, .products h2, .gallery h2, .faq h2, .about h2, .related h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  margin-top: .7rem;
  text-wrap: balance;
}

.step-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.step-list li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.step-list li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
  -webkit-text-stroke: 1px var(--amber-deep);
  display: block;
  line-height: 1.1;
  margin-bottom: .45rem;
}
.step-list h3 { font-size: .98rem; font-weight: 700; margin-bottom: .3rem; }
.step-list p { font-size: .85rem; color: var(--muted); }

.note {
  margin-top: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
  border-left: 3px solid var(--amber);
  padding-left: .85rem;
}

/* ---------- 配套软件(轻量入口) ---------- */
.products { padding-block: clamp(1.3rem, 3.5vw, 2rem); }
.products-head { max-width: 640px; }
.products-head .eyebrow::after { display: none; }
.products-head h2 { font-size: clamp(1.22rem, 2.7vw, 1.55rem); margin-top: .55rem; }
.products-head .lede { margin-inline: 0; margin-top: .45rem; font-size: .92rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.tool-card {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.2rem 1.1rem;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-sm);
}
.tool-card h3 { font-size: 1rem; font-weight: 700; }
.tool-card p { margin-top: .35rem; font-size: .86rem; line-height: 1.65; color: var(--muted); }
.tool-points {
  margin-top: .55rem;
  display: grid;
  gap: 5px;
}
.tool-points li {
  position: relative;
  padding-left: 1.05rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}
.tool-points li::before {
  content: "";
  position: absolute; left: 2px; top: .5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.products-grid .tool-card:nth-child(2) .tool-points li::before { background: var(--teal); }
.tool-link {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.products-grid .tool-card:first-child .tool-link { color: var(--amber-deep); }
.tool-card:hover .tool-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 样式库 60 宫格(按边框分组) ---------- */
.gallery .lede { margin-top: .5rem; margin-inline: 0; }
.gallery-groups {
  margin-top: 1.6rem;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.gallery-group-title {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .55rem;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--amber-deep);
}
.gallery-group-title::before {
  content: "";
  width: 18px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}
.gallery-group .grid {
  margin-top: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
}
@media (max-width: 1279px) {
  .gallery-group .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .gallery-group .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
}
.grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.thumb {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--wall-1);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(29, 36, 51, .6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.thumb-label {
  display: block;
  padding: .5rem .7rem .55rem;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--wall-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb:hover, .thumb:focus-visible {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--amber-line);
  box-shadow: 0 20px 40px -18px rgba(29, 36, 51, .7);
}
.thumb-label::after {
  content: "";
  display: inline-block;
  width: .45em; height: .45em;
  margin-left: .45em;
  border-top: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity .2s ease;
}
.thumb:hover .thumb-label::after { opacity: 1; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.4rem; max-width: 780px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item { margin-top: .6rem; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--amber-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--amber-dark); }
.faq-item p {
  padding: 0 1.1rem 1rem;
  font-size: .87rem;
  color: var(--muted);
}

/* ---------- 组合页专属 ---------- */
.crumbs, .combo-steps {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  padding-top: 1.1rem;
  font-size: .78rem;
  color: var(--faint);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--amber-deep); }
.crumbs span:last-child { color: var(--text); font-weight: 600; }

.hero-combo { text-align: left; padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.hero-combo h1 { margin-inline: 0; max-width: none; }
.hero-combo .lede { margin-inline: 0; }
.lede-dim { font-size: .86rem; color: var(--faint); margin-top: .4rem; }

.combo-steps {
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem;
  font-size: .88rem;
  color: var(--amber-dark);
  margin-top: 0 !important;
}
.about p { margin-top: .8rem; color: var(--muted); font-size: .92rem; max-width: 46em; }

.related-block + .related-block { margin-top: 1.8rem; }
.related-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .7rem;
}
.related-card {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--wall-1);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.related-card img { width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.related-card span {
  padding: .38rem .6rem .42rem;
  font-size: .72rem;
  color: var(--wall-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-card:hover, .related-card:focus-visible {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--amber-line);
  box-shadow: 0 14px 30px -16px rgba(29, 36, 51, .7);
}
.related-all { margin-top: 1.6rem; text-align: center; }

/* ---------- 联系开发者 ---------- */
.contact { padding-bottom: clamp(2.4rem, 6vw, 3.8rem); }
.contact-card {
  position: relative;
  width: min(860px, 100%);
  margin-inline: auto;
  display: flex; align-items: center;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 94% -10%, rgba(47, 214, 195, .1), transparent 65%),
    radial-gradient(420px 260px at 2% 110%, rgba(246, 168, 33, .09), transparent 60%);
}
.contact-qr {
  position: relative;
  width: clamp(136px, 15vw, 164px);
  height: auto;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  box-shadow: var(--shadow-sm);
}
.contact-copy { position: relative; min-width: 0; }
.contact-copy .eyebrow { margin-bottom: .1rem; }
.contact-copy .eyebrow::after { display: none; }
.contact-copy h2 {
  margin: .55rem 0 .5rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
}
.contact-copy > p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 36em;
}
.contact-custom {
  margin-top: .9rem;
  max-width: 40em;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--amber-dark);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: .7rem .95rem;
}
.text-link {
  display: inline-block;
  margin-top: 1.05rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal-deep);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .contact-card { flex-direction: column; text-align: center; }
  .contact-qr { width: min(150px, 44vw); }
  .contact-copy .eyebrow::before { display: none; }
  .contact-copy .eyebrow::after { display: none; }
  .contact-copy > p { margin-inline: auto; }
  .contact-custom { text-align: left; }
}

/* ---------- 页脚(墨色收尾) ---------- */
.site-foot {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  background: var(--ink);
  color: var(--wall-muted);
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 3px solid var(--amber);
}
.site-foot > * {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.foot-brand { display: flex; align-items: flex-start; gap: .7rem; }
.foot-brand .logo-mark { margin-top: .2rem; }
.foot-brand p { font-size: .88rem; color: var(--wall-text); max-width: 30em; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1.3rem;
  font-size: .84rem;
}
.foot-links a { color: var(--wall-muted); }
.foot-links a:hover { color: var(--amber); text-decoration: none; }
.foot-note {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .75rem;
  color: rgba(166, 173, 192, .8);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 14px);
  max-width: min(92vw, 480px);
  background: var(--ink);
  color: var(--bg);
  font-size: .85rem;
  line-height: 1.5;
  padding: .68rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动效(hero 轻量编排) ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero > * { animation: rise-in .55s cubic-bezier(.22, .61, .36, 1) both; }
.hero > *:nth-child(2) { animation-delay: .06s; }
.hero > *:nth-child(3) { animation-delay: .12s; }
.hero > *:nth-child(4) { animation-delay: .18s; }
.stage-viewport { animation: rise-in .6s .1s cubic-bezier(.22, .61, .36, 1) both; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .stage { position: static; }
  .stage-viewport { width: 100%; }
  .step-list { grid-template-columns: 1fr; gap: .8rem; }
  .step-list li::before { display: inline-block; margin-right: .6rem; font-size: 1.2rem; }
}

@media (max-width: 1180px) {
  .site-nav > a.nav-products { display: none; }
}

@media (max-width: 760px) {
  .site-nav > a:not(.nav-lang):not(.nav-dl) { display: none; }
  .logo-text small { display: none; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .thumb-label { font-size: .7rem; padding: .4rem .55rem .45rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid > .field:first-child { grid-column: auto; }
  .tips-grid { grid-template-columns: 1fr; }
  .tips-grid li { min-height: 0; }
  .swatches { gap: .45rem; }
  .swatch-name { font-size: .66rem; }
  .stage-actions { flex-direction: column; }
  .stage-actions .btn { flex: 1 1 auto; }
  .hero-combo h1 { font-size: 1.6rem; }
}

/* 390px 级别:确保无横向滚动 */
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { gap: .4rem; }
  .facts li { font-size: .66rem; padding: .28rem .7rem; }
  .stage-actions .btn { width: 100%; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover, .swatch:hover, .thumb:hover, .related-card:hover { transform: none; }
}
