/* ==========================================================================
   STARDUST 星屑 · 全站样式
   1. 变量与基础   2. 通用组件   3. 首页   4. 详情页   5. 响应式
   ========================================================================== */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --ink: #07070b;
  --ink-1: #0b0c12;
  --ink-2: #11131b;
  --ink-3: #191c26;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #edeaf2;
  --muted: #9995a8;
  --dim: #6e6a7d;
  --gold: #e3c58f;
  --gold-deep: #b28a4e;
  --ice: #bfe0ff;
  --ok: #7fd6a2;
  --warn: #e8a373;

  --serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;

  --maxw: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 26px 60px -28px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 页面底层的两束冷/暖光，模拟钻石反光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 40vw at 78% -8%, rgba(191, 224, 255, .10), transparent 62%),
    radial-gradient(50vw 36vw at 6% 12%, rgba(227, 197, 143, .07), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.hide { display: none !important; }
[hidden] { display: none !important; }

section[id] { scroll-margin-top: 92px; }

code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--ice);
}

.empty-state code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 2. 通用组件 ---------- */

/* 顶栏 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(7, 7, 11, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .16em;
}

.brand b { font-weight: 600; }

.brand i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--gold);
}

.brand .gem { color: var(--ice); font-size: 14px; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.nav__links a { position: relative; padding-block: 6px; transition: color .25s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--text); }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); }

.bag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: border-color .25s, background .25s;
}

.bag:hover { border-color: var(--gold); background: rgba(227, 197, 143, .08); }

.bag__count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #171106;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  letter-spacing: .08em;
  transition: transform .25s var(--ease), border-color .25s, background .25s, color .25s;
}

.btn:hover { transform: translateY(-2px); border-color: var(--gold); }

.btn--gold {
  border-color: transparent;
  background: linear-gradient(120deg, #f3ddb4, var(--gold) 42%, var(--gold-deep));
  color: #1b1408;
  font-weight: 600;
}

.btn--gold:hover { box-shadow: 0 14px 34px -14px rgba(227, 197, 143, .65); }

.btn--ice {
  border-color: rgba(191, 224, 255, .34);
  background: rgba(191, 224, 255, .07);
  color: #e3f1ff;
}

.btn--block { width: 100%; }

/* 滚动进场 */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  z-index: 90;
  transform: translate(-50%, 24px);
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 19, 27, .94);
  backdrop-filter: blur(10px);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--gold); font-weight: 600; }

/* ---------- 3. 首页 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 62% 50%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}

@keyframes heroDrift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 11, .96) 6%, rgba(7, 7, 11, .74) 42%, rgba(7, 7, 11, .28) 74%, rgba(7, 7, 11, .6)),
    linear-gradient(0deg, var(--ink) 2%, transparent 42%);
}

#spark-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 3; padding-block: 90px 110px; max-width: 640px; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.08;
  font-weight: 500;
  margin: 18px 0 20px;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, #fff 8%, var(--ice) 38%, #fff 54%, var(--gold) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede { color: #c3bfce; font-size: 15.5px; max-width: 46ch; }

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px dashed rgba(227, 197, 143, .42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12.5px;
  background: rgba(227, 197, 143, .05);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__meta {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero__meta div { display: grid; gap: 2px; }
.hero__meta b { font-family: var(--serif); font-size: 27px; font-weight: 500; color: #fff; }
.hero__meta span { font-size: 11.5px; color: var(--dim); letter-spacing: .12em; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--dim);
}

.scroll-hint i {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hint 2.4s var(--ease) infinite;
}

@keyframes hint { 0%, 100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* 跑马灯 */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  padding: 13px 0;
}

.marquee__track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.marquee__track span::before { content: "✦"; color: var(--gold); margin-right: 14px; }

@keyframes slide { to { transform: translateX(-50%); } }

/* 区块头 */
.section { padding-block: clamp(72px, 9vw, 118px); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 12px;
}

.sec-head p { color: var(--muted); max-width: 46ch; font-size: 14px; }

/* 分类筛选 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filters button {
  padding: 7px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: all .25s var(--ease);
}

.filters button:hover { color: var(--text); border-color: var(--line-strong); }

.filters button.is-on {
  color: #1b1408;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

/* 商品网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

.card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(227, 197, 143, .4);
  box-shadow: var(--shadow);
}

.card__fig { position: relative; aspect-ratio: 1; overflow: hidden; background: #0a0b10; }
.card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.card:hover .card__fig img { transform: scale(1.07); filter: brightness(1.08) saturate(1.06); }

/* 掠过卡片的一道光 */
.card__fig::after {
  content: "";
  position: absolute;
  top: -40%; left: -70%;
  width: 42%; height: 190%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

.card:hover .card__fig::after { animation: sweep 1.05s var(--ease); }

@keyframes sweep {
  0% { opacity: .0; left: -70%; }
  22% { opacity: .55; }
  100% { opacity: 0; left: 132%; }
}

.card__badge {
  position: absolute;
  top: 13px; left: 13px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(7, 7, 11, .72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--gold);
}

.card__3d {
  position: absolute;
  top: 13px; right: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(191, 224, 255, .13);
  border: 1px solid rgba(191, 224, 255, .3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: #d8ecff;
}

.card__body { padding: 16px 18px 18px; }
.card__cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--dim); text-transform: uppercase; }
.card__name { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 7px 0 2px; }
.card__en { font-size: 11px; color: var(--dim); letter-spacing: .1em; }

.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.price { font-family: var(--serif); font-size: 20px; color: #fff; }
.price s { font-family: var(--sans); font-size: 11.5px; color: var(--dim); margin-left: 7px; }
.price i { font-style: normal; font-size: 12px; color: var(--gold); margin-right: 2px; }

.card__go { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.card:hover .card__go { color: var(--gold); transform: translateX(4px); }

/* 3D 展示区 */
.duo {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.duo h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; line-height: 1.22; margin: 12px 0 18px; }
.duo p { color: var(--muted); font-size: 14.5px; }

.steps { display: grid; gap: 16px; margin: 30px 0 34px; }

.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, .022);
  transition: border-color .3s, background .3s;
}

.steps li:hover { border-color: rgba(227, 197, 143, .34); background: rgba(227, 197, 143, .04); }
.steps li b { display: block; font-weight: 600; font-size: 14px; }
.steps li span { font-size: 13px; color: var(--muted); }

.steps li i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 2px;
}

/* 演示用的视口框 */
.demo-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: radial-gradient(70% 60% at 50% 40%, #14161f, #08090d 78%);
  aspect-ratio: 1 / .92;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
}

.demo-stage .ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 62%; aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px dashed rgba(191, 224, 255, .4);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.demo-stage .ring::after {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 14px 3px rgba(191, 224, 255, .8);
}

@keyframes spin { to { rotate: 360deg; } }

/* 工艺说明 */
.craft { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); }

.craft article {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
  overflow: hidden;
}

.craft article::after {
  content: "✦";
  position: absolute;
  right: -12px; top: -22px;
  font-size: 90px;
  color: rgba(227, 197, 143, .07);
}

.craft b { font-family: var(--serif); font-size: 20px; font-weight: 500; display: block; margin: 14px 0 9px; }
.craft p { color: var(--muted); font-size: 13.5px; }
.craft em { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .3em; color: var(--gold); }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  padding: 62px 0 30px;
  position: relative;
  z-index: 1;
}

.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .2em; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.foot-grid li { margin-bottom: 9px; font-size: 13px; color: var(--muted); }
.foot-grid li a:hover { color: var(--text); }
.foot-note { color: var(--dim); font-size: 12.5px; max-width: 34ch; margin-top: 14px; }
.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--dim);
}

/* ---------- 4. 详情页 ---------- */
.pd-top { padding-top: 112px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 26px;
}

.crumb a:hover { color: var(--gold); }
.crumb span { opacity: .5; }

.pd {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(26px, 4.6vw, 64px);
  align-items: start;
}

/* 左：媒体区 */
.media { position: sticky; top: 96px; }

.media__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: all .3s var(--ease);
}

.tabs button .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity .3s; }
.tabs button.is-on { background: linear-gradient(120deg, #f3ddb4, var(--gold)); color: #1b1408; font-weight: 600; }
.tabs button.is-on .dot { opacity: 1; background: #1b1408; }

.media__filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12.5px;
}

.media__filter::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.media__filter[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(227, 197, 143, .44);
  background: rgba(227, 197, 143, .08);
}

.media__filter[aria-pressed="true"]::before { background: currentColor; }

.stage {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: radial-gradient(72% 62% at 50% 38%, #15171f, #08090d 80%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stage__pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease); }
.stage__pane.is-on { opacity: 1; visibility: visible; }
.stage__pane img { width: 100%; height: 100%; object-fit: cover; }

/* PlayCanvas 挂载点：整个 .stage 的 3D 面板就是你的画布容器 */
.mount { position: relative; width: 100%; height: 100%; }

.mount__frame { display: block; width: 100%; height: 100%; border: 0; }
.stage--embedded { background: #000; }
.stage--embedded .stage__corner { display: none; }
.mount[data-engine="embedded"] .mount__state { background: #0a0a0c; }
.mount[data-engine="embedded"] .mount__state.is-preview {
  inset: auto 0 0;
  padding: 10px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 10, 12, .84));
  pointer-events: none;
}
.mount__state.is-preview .mount__loading progress { margin-top: 6px; }

.mount > canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

/* SuperSplat 查看器自己建的容器，铺满挂载点并压在遮罩下面 */
.mount > .sse-viewer { position: absolute; inset: 0; z-index: 1; }
.mount > .sse-viewer > canvas { display: block; }

.mount__state {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .014) 0 12px, transparent 12px 24px),
    radial-gradient(60% 50% at 50% 44%, rgba(191, 224, 255, .07), transparent 70%);
}

.mount__state .glyph {
  width: 54px; height: 54px;
  border: 1px solid rgba(191, 224, 255, .45);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--ice);
  font-size: 20px;
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 224, 255, .28); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(191, 224, 255, 0); transform: scale(1.06); }
}

.mount__state h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.mount__state p { font-size: 12.5px; color: var(--muted); max-width: 42ch; }

.mount__loading { width: min(240px, 52vw); text-align: left; }
.mount__loading-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mount__loading-head h4 { font-family: inherit; font-size: 13px; color: var(--text); }
.mount__loading-head span { flex: none; font: 13px var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.mount__loading progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(227, 197, 143, .14);
  accent-color: var(--gold);
}
.mount__loading progress::-webkit-progress-bar { background: transparent; }
.mount__loading progress::-webkit-progress-value { background: var(--gold); border-radius: inherit; }
.mount__loading progress::-moz-progress-bar { background: var(--gold); border-radius: inherit; }

.mount__code {
  margin: 0;
  max-width: min(600px, 92%);
  overflow-x: auto;
  text-align: left;
  white-space: pre;
  line-height: 1.7;
  font-family: var(--mono);
  font-size: 10.8px;
  color: #a8d4ff;
  padding: 13px 16px;
  border: 1px dashed rgba(191, 224, 255, .3);
  border-radius: var(--r-s);
  background: rgba(6, 8, 14, .72);
}

.stage__hud {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  /* 给右下角那列开关留出位子，窄视口时提示自己换行而不是压到按钮上 */
  max-width: calc(100% - 190px);
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 7, 11, .74);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #cfe3ff;
}

.chip--gold { color: var(--gold); border-color: rgba(227, 197, 143, .34); }

/* 3D 视口自带的小工具（重置视角）· 右上角，让开 .stage__corner 的角标 */
.mount__tools {
  position: absolute;
  top: 14px; right: 40px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

/* 右下角：标注热点 / 包围盒的显示开关，和右上角那列对齐 */
.mount__switches {
  position: absolute;
  right: 40px; bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.mount__tool[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0d12;
}
.mount__tool[hidden] { display: none; }

.mount__tool {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 7, 11, .74);
  backdrop-filter: blur(6px);
  color: #cfe3ff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}

.mount__tool:hover { color: var(--gold); border-color: rgba(227, 197, 143, .45); }

/* 3D 标注热点 · 坐标来自 model-settings.json 的 annotations */
.mount__spots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.mount__spots[hidden] { display: none; }

.spot {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid rgba(227, 197, 143, .55);
  border-radius: 999px;
  background: rgba(7, 7, 11, .6);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  pointer-events: auto;
  opacity: .95;
  transition: opacity .3s, background .25s, color .25s, border-color .25s;
}
.spot:hover, .spot.is-active { background: var(--gold); border-color: var(--gold); color: #0b0d12; }
/* 被模型挡住的点淡到只剩轮廓，但仍可点：绕过去看本来就是转视角的理由 */
.spot.is-occluded { opacity: .22; }

.mount__note {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 5;
  width: 268px;
  max-width: calc(100% - 28px);
  padding: 11px 12px 12px;
  border: 1px solid rgba(227, 197, 143, .3);
  border-radius: 14px;
  background: rgba(7, 7, 11, .82);
  backdrop-filter: blur(10px);
}
.mount__note[hidden] { display: none; }
.mount__note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mount__note h5 { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--gold); }
.mount__note p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.mount__note-close {
  flex: none;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #7f93b8;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.mount__note-close:hover { color: var(--gold); }

/* 包围盒的角括号由 PlayCanvas 直接画在 3D 图层里，不走 SVG，这边没有样式 */

/* 本机调参（viewer-editor.js，只在 127.0.0.1 注入，线上不会出现）。
   按钮绝对定位在站头里，贴视口左边 12px，不跟 .wrap 的居中缩进；面板挂在 body 上 */
.editor-toggle {
  position: absolute;
  top: 22px; left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(207, 227, 255, .06);
  color: #cfe3ff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  transition: color .2s, border-color .2s, background .2s;
}
.editor-toggle:hover { color: var(--gold); border-color: rgba(227, 197, 143, .45); }
.editor-toggle[aria-expanded="true"] { color: #0b0d12; background: var(--gold); border-color: var(--gold); }
.editor-toggle__dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .3;
  transition: opacity .2s, box-shadow .2s;
}
.editor-toggle[aria-expanded="true"] .editor-toggle__dot { background: #0b0d12; }
.editor-toggle.is-dirty .editor-toggle__dot { opacity: 1; box-shadow: 0 0 0 3px rgba(227, 197, 143, .2); }

/* 窗口窄于 ~1320px 时，.wrap 的左边距容不下按钮，把品牌名往右让开（只在本机注入时生效） */
@media (max-width: 1320px) {
  body.is-editor-host .nav { padding-left: 88px; }
}

.editor {
  position: fixed;
  top: 58px; left: 12px;
  z-index: 70;
  width: 300px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 90px);
  overflow: auto;
  padding: 12px 13px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 7, 11, .82);
  backdrop-filter: blur(10px);
  color: #cfe3ff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
}

.editor__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.editor__head strong { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--gold); }

.editor__group { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(207, 227, 255, .12); }
.editor__group h4 { margin: 0 0 7px; font-size: 9.5px; font-weight: 400; letter-spacing: .18em; color: #7f93b8; }

.editor__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }

.editor__btn {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(207, 227, 255, .06);
  color: #cfe3ff;
  font: inherit;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.editor__btn:hover { color: var(--gold); border-color: rgba(227, 197, 143, .45); }
.editor__btn.is-on { color: #0b0d12; background: var(--gold); border-color: var(--gold); }
.editor__btn--close { padding: 0 4px; border: 0; background: none; color: #7f93b8; font-size: 14px; }
.editor__btn--save { width: 100%; padding: 8px; border-radius: 10px; color: var(--gold); border-color: rgba(227, 197, 143, .45); background: rgba(227, 197, 143, .08); }

.editor__num, .editor__select {
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
  color: #cfe3ff;
  font: inherit;
}
.editor__num { width: 56px; }
.editor__color { width: 30px; height: 22px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: none; }
.editor__check { accent-color: var(--gold); }
.editor__hint { color: #7f93b8; }

/* 「存为默认视角」的两选一：选了立刻在视口预览，确认才写进配置 */
.editor__chooser {
  margin: 2px 0 7px;
  padding: 8px;
  border: 1px solid rgba(207, 227, 255, .14);
  border-radius: 10px;
  background: rgba(207, 227, 255, .05);
}
.editor__chooser[hidden] { display: none; }
.editor__radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #cfe3ff;
  cursor: pointer;
}
.editor__chooser .editor__hint { display: block; margin-bottom: 7px; line-height: 1.55; }
.editor__chooser .editor__btn--ghost.is-primary { color: #0b0d12; background: var(--gold); border-color: var(--gold); }

/* 可视角度的实时偏角：边转边看，记幅度时才有参照 */
.editor__range {
  margin: 2px 0 6px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(207, 227, 255, .05);
  color: var(--ice);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.editor__text, .editor__area {
  flex: 1 1 90px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
  color: #cfe3ff;
  font: inherit;
}
.editor__area { flex: 1 1 100%; min-height: 34px; line-height: 1.5; resize: vertical; }
.editor__item { padding: 7px 0; border-top: 1px dashed rgba(207, 227, 255, .16); }
.editor__item:first-child { padding-top: 0; border-top: 0; }

.editor__readout { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin-top: 4px; }

.editor__readout dt { color: #7f93b8; }
.editor__readout dd { margin: 0; text-align: right; word-break: break-all; }

.editor__foot { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(207, 227, 255, .12); }
.editor__status { margin: 7px 0 0; line-height: 1.5; color: #8fb3d9; }
.editor__status.is-bad { color: #ff9d8a; }

/* 拖拽摆朝向时盖在画布上的一层 */
.editor__surface {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  cursor: grab;
}
.editor__surface.is-on { display: block; }
.editor__surface:active { cursor: grabbing; }
.editor__surface.is-pick { cursor: crosshair; }
.editor__surface.is-pick:active { cursor: crosshair; }

.stage__corner {
  position: absolute;
  z-index: 4;
  width: 20px; height: 20px;
  border: 1px solid rgba(227, 197, 143, .5);
  pointer-events: none;
}

.stage__corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.stage__corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.stage__corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.stage__corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }

.thumbs figure {
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
  background: #0a0b10;
  cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease);
}

.thumbs figure:hover { border-color: var(--gold); transform: translateY(-3px); }
.thumbs figure.is-on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.thumbs .slot {
  display: grid;
  place-content: center;
  border-style: dashed;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-align: center;
  cursor: default;
}

.thumbs .slot:hover { border-color: var(--line); transform: none; }

/* 右：信息区 */
.info h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 6px;
}

.info .en { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--dim); text-transform: uppercase; }

.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.rate .stars { color: var(--gold); letter-spacing: .12em; }

.pricebox {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 6px;
  padding: 20px 22px;
  border: 1px solid rgba(227, 197, 143, .26);
  border-radius: var(--r-m);
  background: linear-gradient(120deg, rgba(227, 197, 143, .10), rgba(227, 197, 143, .02));
}

.pricebox .now { font-family: var(--serif); font-size: 38px; line-height: 1; color: #fff; }
.pricebox .now i { font-style: normal; font-size: 17px; color: var(--gold); margin-right: 3px; }
.pricebox .was { font-size: 13px; color: var(--dim); text-decoration: line-through; padding-bottom: 4px; }

.pricebox .save {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(127, 214, 162, .12);
  border: 1px solid rgba(127, 214, 162, .3);
  color: var(--ok);
  font-size: 11.5px;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }

.tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 11.5px;
  color: #c8c4d4;
}

.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block > h3 { font-size: 12px; letter-spacing: .2em; color: var(--gold); margin-bottom: 14px; font-weight: 600; }

.desc p { font-size: 14px; color: #bfbbc9; margin-bottom: 12px; }
.desc p:last-child { margin-bottom: 0; }

.specs { display: grid; gap: 0; }

.specs div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  font-size: 13.5px;
}

.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; color: #d7d3e0; }

.opts { display: flex; flex-wrap: wrap; gap: 10px; }

.opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
  color: var(--muted);
  transition: all .28s var(--ease);
}

.opt i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.opt:hover { color: var(--text); border-color: var(--line-strong); }
.opt.is-on { color: var(--text); border-color: var(--gold); background: rgba(227, 197, 143, .1); }

.opt--plain { padding: 8px 17px; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

.qty button { width: 40px; height: 46px; border: 0; background: transparent; color: var(--muted); font-size: 16px; transition: background .2s, color .2s; }
.qty button:hover { background: rgba(255, 255, 255, .06); color: var(--gold); }
.qty input { width: 42px; height: 46px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: #fff; text-align: center; font-family: var(--mono); font-size: 14px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; }

.services { display: grid; gap: 10px; margin-top: 26px; }

.services li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; font-size: 13px; color: var(--muted); }
.services li b { color: #d7d3e0; font-weight: 500; }
.services li s { color: var(--ice); text-decoration: none; }

.acc { border-top: 1px solid var(--line); margin-top: 30px; }

.acc details { border-bottom: 1px solid var(--line); }

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 13.5px;
  letter-spacing: .04em;
  list-style: none;
  color: #d7d3e0;
}

.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--gold); font-size: 17px; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding-bottom: 18px; font-size: 13px; color: var(--muted); line-height: 1.85; }

/* 相关推荐 */
.rel { margin-top: clamp(60px, 8vw, 100px); }

.empty-state {
  padding: 90px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
  color: var(--muted);
}

/* ---------- 5. 响应式 & 动效偏好 ---------- */
@media (max-width: 1080px) {
  .duo { grid-template-columns: 1fr; }
  .craft { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .media { position: static; }
  .nav__links { display: none; }
}

@media (max-width: 620px) {
  .hero__meta { flex-wrap: wrap; gap: 20px 30px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px 13px 14px; }
  .card__name { font-size: 16px; }
  .card__en, .card__go { display: none; }
  .price { font-size: 17px; }
  .price s { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .pricebox .save { margin-left: 0; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .buy-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
}
