:root {
  /* 此山文创品牌色板：山大红 + 金 */
  --red-deep: #7B1A1A;
  --red: #B71C1C;        /* 山大红 主色 */
  --red-bright: #E53935;
  --gold: #C9973B;
  --gold-light: #E8C07A;
  --gold-bright: #FFC107;

  --bg: #1A0505;
  --bg2: #2a0d0d;
  --panel: #240a0a;
  --panel2: #341111;
  --line: #4a1c1c;
  --txt: #f7ece6;
  --txt2: #dcbcb4;
  --txt3: #a8817b;
  --accent: var(--gold);          /* 主点缀：金 */
  --accent2: var(--red-bright);   /* 次点缀：红 */
  --good: #58c98a;
  --bad: #ff6b6b;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,.5);
  --gradient-red: linear-gradient(135deg, #7B1A1A 0%, #B71C1C 55%, #E53935 100%);
  --gradient-gold: linear-gradient(135deg, #C9973B 0%, #FFC107 50%, #E8C07A 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(183,28,28,.28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(201,151,59,.14), transparent 55%),
    var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #5a2222; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 品牌背景特效 ===== */
#particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}
.mouse-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,151,59,.18) 0%, rgba(183,28,28,.10) 40%, transparent 70%);
  transition: opacity .3s ease; mix-blend-mode: screen;
}

/* ===== Loader（品牌开场） ===== */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(circle at 50% 38%, #3a0e0e, #160404);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-logo-img { width: 120px; height: auto; filter: drop-shadow(0 6px 20px rgba(201,151,59,.4)); }
.loader-logo { font-size: 32px; font-weight: 800; letter-spacing: 4px;
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-bar { width: 240px; height: 4px; background: #4a1c1c; border-radius: 4px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--gradient-gold);
  animation: load 1.1s infinite ease-in-out; border-radius: 4px; }
@keyframes load { 0%{margin-left:-40%} 100%{margin-left:100%} }
.loader-tip { color: var(--txt3); font-size: 13px; letter-spacing: 1px; }

/* ===== 品牌 Hero ===== */
.hero {
  position: relative; z-index: 2;
  min-height: 46vh; display: flex; align-items: center; justify-content: center;
  padding: 90px 20px 60px; text-align: center;
  background: linear-gradient(135deg, rgba(123,26,26,.55), rgba(26,5,5,.92));
}
.hero-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-logo { width: 132px; height: auto; margin-bottom: 6px;
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(201,151,59,.35)); }
.hero-badge { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold-light);
  border: 1px solid rgba(201,151,59,.5); padding: 5px 16px; border-radius: 30px; backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(26px, 4.4vw, 46px); font-weight: 800; letter-spacing: 1px; color: #fff;
  text-shadow: 0 4px 24px rgba(183,28,28,.5); }
.hero-slogan { font-size: clamp(15px, 2.2vw, 20px); color: var(--gold-light); letter-spacing: 2px; font-weight: 600; }
.hero-sub { font-size: 13.5px; color: var(--txt2); letter-spacing: 1px; }
.hero-scroll { margin-top: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--gradient-gold); color: #2a0d0d; font-weight: 700; font-size: 14px;
  padding: 11px 26px; border-radius: 30px; box-shadow: 0 10px 26px rgba(201,151,59,.3); transition: .2s; }
.hero-scroll:hover { filter: brightness(1.06); transform: translateY(-2px); }
.hero-arrow { width: 11px; height: 11px; border-right: 2px solid #2a0d0d; border-bottom: 2px solid #2a0d0d;
  transform: rotate(45deg); animation: bob 1.4s infinite ease-in-out; }
@keyframes bob { 0%,100%{transform:rotate(45deg) translate(0,0)} 50%{transform:rotate(45deg) translate(3px,3px)} }

/* ===== 定制工具区 ===== */
.app-tool {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(26,5,5,.4), rgba(26,5,5,.72));
}

/* ===== Topbar（毛玻璃品牌导航） ===== */
.topbar {
  height: 58px; flex: 0 0 58px; position: sticky; top: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: rgba(26,5,5,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(201,151,59,.5); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; color: var(--bg); background: var(--gradient-gold); }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .5px; color: #fff; }
.brand-text small { color: var(--txt3); font-size: 11px; }

.top-nav { display: flex; gap: 4px; background: var(--panel); padding: 4px; border-radius: 10px; }
.vtab { padding: 7px 14px; border-radius: 7px; font-size: 13px; color: var(--txt2); transition: .2s; }
.vtab:hover { color: var(--txt); }
.vtab.active { background: var(--gradient-gold); color: #2a0d0d; font-weight: 700; }

.top-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tbtn { padding: 8px 11px; border-radius: 8px; background: var(--panel); color: var(--txt2);
  font-size: 12.5px; border: 1px solid var(--line); transition: .2s; white-space: nowrap; }
.tbtn:hover { color: var(--txt); border-color: var(--gold); }
.tbtn.on { background: rgba(201,151,59,.18); color: var(--gold-light); border-color: var(--gold); }

/* ===== Stage ===== */
.stage { flex: 1 1 auto; display: grid; grid-template-columns: 280px 1fr 320px; min-height: 0; }
.panel { background: var(--panel); overflow-y: auto; display: flex; flex-direction: column; }
.panel-left { border-right: 1px solid var(--line); }
.panel-right { border-left: 1px solid var(--line); }
.panel-head { position: sticky; top: 0; background: var(--panel); z-index: 5;
  padding: 12px 14px 8px; font-size: 13px; font-weight: 600; color: var(--txt);
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.mini-toggle { color: var(--txt3); font-size: 16px; line-height: 1; }
.panel-body { padding: 12px 14px; }
.hint { color: var(--txt3); font-size: 12.5px; line-height: 1.7; }

/* 参数表 */
.param-grid { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; font-size: 12.5px; }
.param-grid .pk { color: var(--txt2); }
.param-grid .pv { color: var(--txt); text-align: right; font-variant-numeric: tabular-nums; }
.param-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.param-row b { color: var(--accent2); cursor: pointer; }

/* 部件详解 */
.part-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.part-card h4 { font-size: 14px; margin-bottom: 6px; color: var(--gold-light); }
.part-card .tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(229,57,53,.18); color: var(--red-bright); margin: 0 4px 6px 0; }
.part-card p { font-size: 12.5px; color: var(--txt2); line-height: 1.7; }

/* 场景演示 */
.demo-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { padding: 6px 10px; font-size: 12px; border-radius: 20px; background: var(--panel2);
  border: 1px solid var(--line); color: var(--txt2); transition: .2s; }
.chip:hover { border-color: var(--gold); color: var(--txt); }
.chip.on { background: var(--gradient-gold); color: #2a0d0d; border-color: transparent; font-weight: 600; }

/* ===== Viewport ===== */
.viewport { position: relative; background:
  radial-gradient(circle at 50% 35%, #f8f8f8 0%, #eaeaea 60%, #dddde0 100%); overflow: hidden; }
#threeCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.vp-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: #555; background: rgba(255,255,255,.7); padding: 5px 12px; border-radius: 20px;
  pointer-events: none; backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,.08); }
.vp-badge { position: absolute; top: 14px; left: 14px; font-size: 12px; color: #444;
  background: rgba(255,255,255,.75); padding: 5px 12px; border-radius: 20px; pointer-events: none;
  backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,.08); }
.vp-controls { position: absolute; bottom: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; }
.vp-controls button { padding: 7px 12px; font-size: 12px; border-radius: 8px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(0,0,0,.1); color: #333; backdrop-filter: blur(6px); }
.vp-controls button:hover { color: #000; border-color: var(--gold); }
.vp-controls button.on { background: var(--gradient-gold); color: #2a0d0d; border-color: transparent; font-weight: 600; }

/* ===== 右侧定制 ===== */
.tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 5; }
.ctab { flex: 1; padding: 12px 0; font-size: 13px; color: var(--txt3); border-bottom: 2px solid transparent; transition: .2s; }
.ctab:hover { color: var(--txt2); }
.ctab.active { color: var(--gold-light); border-bottom-color: var(--gold); font-weight: 600; }
.tab-body { padding: 14px; }
.glb-note { background: rgba(201,151,59,.1); border: 1px solid rgba(201,151,59,.32); color: var(--txt2);
  font-size: 12.5px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.glb-note b { color: var(--gold-light); }

.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 12.5px; color: var(--txt2); margin-bottom: 8px; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch { width: 28px; height: 28px; border-radius: 7px; border: 2px solid transparent; cursor: pointer;
  position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,151,59,.35); }
.swatch.limited::after { content: "限"; position: absolute; top: -6px; right: -6px; font-size: 9px;
  background: var(--bad); color: #fff; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; }

.opt-list { display: flex; flex-direction: column; gap: 7px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  background: var(--panel2); border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.opt:hover { border-color: var(--red-bright); }
.opt.on { border-color: var(--gold); background: rgba(201,151,59,.1); }
.opt .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.opt.on .dot { border-color: var(--gold); background: var(--gold); }
.opt .meta { flex: 1; }
.opt .meta b { font-size: 13px; font-weight: 600; display: block; }
.opt .meta small { font-size: 11px; color: var(--txt3); }
.opt .price-add { font-size: 11.5px; color: var(--gold-light); }

.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-row span { font-size: 12px; color: var(--txt2); min-width: 42px; text-align: right; }

.seg { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 9px; }
.seg button { flex: 1; padding: 7px 0; font-size: 12px; border-radius: 6px; color: var(--txt2); }
.seg button.on { background: var(--gradient-gold); color: #2a0d0d; font-weight: 700; }

.upload-box { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center;
  color: var(--txt3); font-size: 12.5px; cursor: pointer; transition: .2s; }
.upload-box:hover { border-color: var(--gold); color: var(--txt2); }
.upload-box b { color: var(--gold-light); }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lib-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--panel2); display: grid; place-items: center; position: relative; }
.lib-item:hover { border-color: var(--red-bright); }
.lib-item.on { border-color: var(--gold); }
.lib-item canvas, .lib-item img { width: 100%; height: 100%; object-fit: cover; }
.lib-item span { font-size: 10px; color: var(--txt3); padding: 4px; }

.face-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.face-tabs button { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; background: var(--panel2); color: var(--txt2); }
.face-tabs button.on { background: var(--red-bright); color: #fff; }

/* ===== Bottombar ===== */
.bottombar { flex: 0 0 auto; min-height: 64px; height: auto; background: rgba(26,5,5,.82); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; padding: 10px 16px; gap: 10px; z-index: 30; }
.price-box { display: flex; align-items: center; gap: 18px; }
.price-main { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: var(--txt3); }
.price-value { font-size: 24px; font-weight: 800; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.price-detail { font-size: 11.5px; color: var(--txt3); max-width: 360px; line-height: 1.5;
  max-height: 44px; overflow-y: auto; }
.price-detail b { color: var(--txt2); }
.order-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.obtn { padding: 9px 16px; border-radius: 9px; font-size: 13px; border: 1px solid var(--line); color: var(--txt2); transition: .2s; }
.obtn.ghost:hover { color: var(--txt); border-color: var(--gold); }
.obtn.primary { background: var(--panel2); color: var(--txt); border-color: var(--line); }
.obtn.primary.solid { background: var(--gradient-gold); color: #2a0d0d; border: none; font-weight: 700; }
.obtn.primary.solid:hover { filter: brightness(1.05); }

/* ===== 联系我们（品牌组件） ===== */
.contact-section { position: relative; z-index: 2; padding: 70px 20px 64px; text-align: center;
  background: var(--gradient-red); color: #fff; }
.section-kicker { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold-light);
  border: 1px solid rgba(201,151,59,.5); padding: 4px 16px; border-radius: 30px; margin-bottom: 16px; }
.contact-title { font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; margin-bottom: 30px; letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.contact-grid { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; max-width: 720px; margin: 0 auto; }
.contact-card { background: rgba(0,0,0,.22); border: 1px solid rgba(201,151,59,.35); border-radius: 16px;
  padding: 26px 34px; backdrop-filter: blur(6px); min-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-name { font-size: 22px; font-weight: 800; color: var(--gold-light); }
.contact-phone { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.contact-phone:hover { color: var(--gold-light); }
.contact-note { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 4px; }
.contact-qr-card { padding: 18px 22px; }
.contact-qrcode { width: 140px; height: 140px; border-radius: 12px; background: #fff; padding: 8px; }
.contact-qr-cap { font-size: 12px; color: rgba(255,255,255,.8); }

/* ===== 页脚（品牌组件） ===== */
.site-footer { position: relative; z-index: 2; text-align: center; padding: 40px 20px 46px;
  background: #160404; border-top: 1px solid var(--line); color: var(--txt2); }
.footer-logo-graphic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(201,151,59,.5); }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin: 14px 0 10px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--txt2); transition: .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 12px; color: var(--txt3); letter-spacing: .5px; }

/* ===== 在线编辑按钮（品牌组件） ===== */
.edit-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 120;
  padding: 10px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
  background: var(--gradient-gold); color: #2a0d0d; box-shadow: 0 8px 22px rgba(0,0,0,.4); transition: .2s; }
.edit-toggle:hover { transform: translateY(-2px); filter: brightness(1.05); }
body.edit-mode .edit-toggle { background: var(--red); color: #fff; }
body.edit-mode [data-edit] { outline: 1px dashed rgba(201,151,59,.6); outline-offset: 2px; cursor: text; }

/* ===== Lightbox（品牌组件） ===== */
.lightbox { position: fixed; inset: 0; z-index: 130; display: none; }
.lightbox.active { display: block; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(10,3,3,.85); backdrop-filter: blur(4px); }
.lightbox-box { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; }
.lightbox-box img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  font-size: 24px; color: #fff; background: rgba(255,255,255,.12); }
.lightbox-close:hover { background: var(--red); }

/* ===== Modal ===== */
.modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(5,8,12,.66); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: auto; }
.modal { width: min(880px, 96vw); max-height: 90vh; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: pop .25s ease; }
.modal.wide { width: min(1100px, 96vw); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-head h3 { font-size: 16px; }
.modal-close { font-size: 22px; color: var(--txt3); width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { background: var(--panel2); color: var(--txt); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card h4 { font-size: 14px; margin-bottom: 6px; }
.card p { font-size: 12.5px; color: var(--txt2); line-height: 1.7; }
.card .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card .meta-row .tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(229,57,53,.18); color: var(--red-bright); }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 12.5px; color: var(--txt2); }
.form-row input, .form-row select, .form-row textarea { padding: 10px 12px; border-radius: 9px; background: var(--bg2);
  border: 1px solid var(--line); color: var(--txt); font-size: 13px; font-family: inherit; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }

.btn { padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--panel2);
  border: 1px solid var(--line); color: var(--txt); }
.btn:hover { border-color: var(--gold); }
.btn.accent { background: var(--gradient-gold); color: #2a0d0d; border: none; }

/* AR */
.ar-wrap { position: relative; width: 100%; aspect-ratio: 3/4; background: #000; border-radius: 12px; overflow: hidden; }
.ar-wrap video { width: 100%; height: 100%; object-fit: cover; }
.ar-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ar-bag { width: 46%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); pointer-events: auto; cursor: grab; }
.ar-tools { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* 对比 */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.compare-col h4 { font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.compare-col canvas { width: 100%; border-radius: 10px; background: #11151b; aspect-ratio: 4/5; }
.compare-meta { font-size: 11.5px; color: var(--txt2); margin-top: 10px; line-height: 1.7; }

/* 分享 */
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 12px; margin-top: 6px; }

/* 订单 */
.order-summary { background: var(--panel2); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.order-summary .line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.order-summary .line b { color: var(--gold-light); }

/* 生产数据同步（工艺单） */
.spec-head { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.spec-head span { font-size: 13px; font-weight: 600; color: var(--gold-light); }
.spec-sheet { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.spec-row { display: flex; gap: 12px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-k { color: var(--txt2); flex: 0 0 64px; }
.spec-v { color: var(--txt); flex: 1; line-height: 1.6; }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel2); color: var(--txt); padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 13px; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { border-color: var(--good); }
.toast.bad { border-color: var(--bad); }

/* ===== 滚动入场动画 ===== */
.anim-up, .anim-scale { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.anim-up { transform: translateY(28px); }
.anim-scale { transform: scale(.94); }
.anim-up.in, .anim-scale.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .panel-left, .panel-right { max-height: 240px; }
  .top-nav { display: none; }
}
@media (max-width: 720px) {
  .hero { min-height: 40vh; padding: 80px 16px 48px; }
  .bottombar { height: auto; flex-wrap: wrap; padding: 10px; }
  .order-actions { width: 100%; }
  .top-actions .tbtn span { display: none; }
  .contact-grid { flex-direction: column; align-items: center; }
}
