/* 极讯万图（WANTUAI）副屏官网 — 暗黑科技风设计系统 */

:root {
  --bg: #070a0f;
  --bg-soft: #0b0f16;
  --panel: #0f141d;
  --panel-2: #131a25;
  --panel-3: #182130;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e8eef7;
  --text-dim: #b9c4d4;
  --muted: #8a97ab;
  --accent: #3d9bff;
  --accent-2: #5ee0ff;
  --accent-dim: rgba(61, 155, 255, .14);
  --ok: #3ddc97;
  --warn: #ffb454;
  --danger: #ff5d6c;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --maxw: 1320px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

/* 组件样式里的 display 会盖掉浏览器默认的 [hidden]{display:none}，导致设了 hidden 仍然占位可见。 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  /* 固定预留滚动条槽：页面高度跨过视口阈值时滚动条出现/消失不再造成整页横向位移 */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(61, 155, 255, .16), transparent 70%),
    radial-gradient(760px 460px at 92% 4%, rgba(94, 224, 255, .10), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 320px);
}

#app { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #9ff0ff; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
::selection { background: rgba(61, 155, 255, .35); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.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;
}
.nojs { padding: 40px 24px; text-align: center; color: var(--muted); }

/* ── 顶栏 ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; flex: none;
  background: rgba(7, 10, 15, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, rgba(94, 224, 255, .22), rgba(61, 92, 255, .22));
  border: 1px solid rgba(94, 224, 255, .4);
  display: grid; place-items: center; color: var(--accent-2);
}
.brand-name { font-size: 16px; white-space: nowrap; }
.brand-name b { color: var(--accent-2); font-weight: 700; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav a {
  padding: 7px 12px; border-radius: var(--r-sm); color: var(--text-dim);
  font-size: 14px; transition: background .15s, color .15s;
  flex: none; white-space: nowrap;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-dim); color: var(--accent-2); font-weight: 600; }

.topbar-search { flex: 1; max-width: 420px; margin-left: auto; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ── 搜索框 ───────────────────────────────────────── */
.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 100%; height: 40px; padding: 0 40px 0 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: rgba(61, 155, 255, .55); box-shadow: 0 0 0 3px rgba(61, 155, 255, .12); }
.search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search button[type="submit"] {
  position: absolute; right: 5px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.search button[type="submit"]:hover { background: var(--panel-3); color: var(--accent-2); }

/* ── 按钮 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text);
  font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:hover:not(:disabled) { background: var(--panel-3); border-color: rgba(255, 255, 255, .24); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #1B6FD1, #155FB8);
  border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(21, 95, 184, .38);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1863BC, #1254A4); border-color: transparent; color: #fff;
}
.btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #04121c; font-weight: 650; }
.btn-accent:hover:not(:disabled) { filter: brightness(1.08); color: #04121c; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.btn-import {
  background: var(--accent-dim); border-color: rgba(94, 224, 255, .45);
  color: var(--accent-2); font-weight: 600;
}
.btn-import:hover:not(:disabled) { background: rgba(61, 155, 255, .22); color: var(--accent-2); }
.btn-import:disabled { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.import-pick {
  margin-top: 10px; padding: 10px 12px; border: 1px dashed rgba(94, 224, 255, .35);
  border-radius: var(--r-sm); background: var(--accent-dim);
}
.import-pick-title { margin: 0 0 8px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.import-pick-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 2px 0;
  font-size: 13px; font-weight: 600; color: var(--accent-2); text-decoration: none;
}
.import-pick-link:hover { text-decoration: underline; }
/* 面板第三条是「改为下载」：它是按钮不是链接，借同一套排版，所以先抹掉 button 自带的底、边、内边距。
   颜色压到 --text-dim 一档，让它读起来是退路而不是主推的那两条。 */
.import-pick-dl {
  padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; color: var(--text-dim);
}
.import-pick-dl:hover { color: var(--accent-2); }
.btn-danger { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .4); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 93, 108, .2); color: #ff8b96; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }

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

/* ── 卡片 / 面板 ──────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-title { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.panel-title svg { color: var(--accent-2); }
.panel-sub { font-size: 13px; color: var(--muted); }
.panel-body { padding: 0 22px 22px; }
form.panel { padding: 0; overflow: hidden; }
form.panel > .panel-head { margin: 0; padding: 17px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
form.panel > .panel-body { padding: 20px 22px; border-bottom: 1px solid var(--line); }
form.panel > .panel-body:last-child { border-bottom: 0; }

/* ── 主题卡片 ─────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
/* 首页「最新上架」与详情页「相关主题」沿用紧凑混排：一屏多放几个。 */
.grid-themes { --card-h: 150px; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 主题库列表页按屏幕方向分区：横屏一行 2 个（大图看画面细节），竖屏一行 4 个（按真机竖幅给足高度），
   其他（圆屏/方屏/异形）一行 3 个 + 1:1 卡图——这类包的画布多是正方形，用横竖任一比例都会裁掉画面。
   选择器一律带 .grid 前缀提权：单类名与响应式段里的 .grid-themes 同权重，靠源码顺序会互相压掉。
   预览框改用 aspect-ratio，不再用固定 --card-h —— 列宽随视口变，固定高会在窄列里留下大片黑边。
   5/2 是横屏常见两档（16:9 与 32:9 超宽条）的折中，两侧余白读起来像设备边框。 */
.grid.grid-themes--landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.grid-themes--portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.grid-themes--other { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-themes--landscape .theme-card-media, .grid-themes--landscape .sk-media { aspect-ratio: 5 / 2; height: auto; }
.grid-themes--portrait .theme-card-media, .grid-themes--portrait .sk-media { aspect-ratio: 9 / 16; height: auto; }
.grid-themes--other .theme-card-media, .grid-themes--other .sk-media { aspect-ratio: 1 / 1; height: auto; }

.theme-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 224, 255, .38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(94, 224, 255, .08);
}
/* 等高框 + 真比例居中：框高由 --card-h 统一，图片按自身比例完整显示不裁切。
   旧写法（16/9 + cover）会把竖屏主题裁成中间一条，横竖屏混排时完全读不出内容。 */
.theme-card-media {
  position: relative; height: var(--card-h, 150px); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(61, 155, 255, .10), transparent 58%),
    linear-gradient(180deg, #0a1018, #05070b);
}
.theme-card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1); opacity: 0;
}
.theme-card-media img.loaded { opacity: 1; }
.theme-card:hover .theme-card-media img { transform: scale(1.045); }
.theme-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-start; }
.theme-card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.theme-card-title {
  font-size: 15px; font-weight: 620; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-card-title:hover { color: var(--accent-2); }
.theme-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.theme-card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.theme-card-foot .dl { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* 简介只在分区网格里出现：首页与「相关主题」沿用 206px 紧凑卡，多两行文字会把首屏能看的主题数压掉。
   下面分区规则带两级类名，权重高于这条单类名，不靠源码顺序压制。 */
.theme-card-sum { display: none; }
.grid-themes--landscape .theme-card-sum, .grid-themes--portrait .theme-card-sum,
.grid-themes--other .theme-card-sum {
  margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 分区后三档卡片走三套排印：横屏卡宽 600+，标题和简介放大才不空；竖屏卡只有 300 左右，必须收紧；
   其他区一行三个（约 420），排在两者中间。 */
.grid-themes--landscape .theme-card-body { padding: 16px 18px 18px; gap: 10px; }
.grid-themes--landscape .theme-card-title { font-size: 18px; }
.grid-themes--landscape .theme-card-meta { font-size: 13px; }
.grid-themes--landscape .theme-card-foot { padding-top: 12px; font-size: 12.5px; justify-content: flex-start; gap: 24px; }
/* 宽卡里四项等分会被拉成一条飘着的小字带：左端成组、时间贴右，读起来才是一个收尾。 */
.grid-themes--landscape .theme-card-foot > :last-child { margin-left: auto; }
.grid-themes--portrait .theme-card-body { padding: 11px 12px 13px; gap: 6px; }
.grid-themes--portrait .theme-card-title { font-size: 14px; }
.grid-themes--portrait .theme-card-sum { font-size: 12.5px; }
.grid-themes--portrait .theme-card-foot { padding-top: 8px; flex-wrap: wrap; gap: 6px 10px; }
.grid-themes--other .theme-card-body { padding: 13px 14px 15px; gap: 8px; }
.grid-themes--other .theme-card-title { font-size: 15.5px; }
.grid-themes--other .theme-card-foot { padding-top: 10px; flex-wrap: wrap; gap: 6px 12px; }

/* ── 主题库方向筛选与分区标题 ───────────────────────
   方向是筛选栏第二行的三档 chips（横屏 / 竖屏 / 其他）：它决定整页版面，不只是又一个数据条件。
   没有「全部」档，再点已选中的那档即取消，回到下面的横竖屏/其他三区分区视图。
   选中态沿用卡片角标与详情页胶囊的同色语义（横屏蓝 / 竖屏琥珀 / 其他紫），
   第三档取型号徽标已在用的那支紫（#b08dff 一族，加深一档到 #c4a6ff 才够文字对比度）；
   选择器多带一层 .chip 提权，压过通用 .chip.on 的蓝底。 */
.chip.chip-landscape.on { background: rgba(61, 155, 255, .16); border-color: rgba(61, 155, 255, .5); color: #7fc4ff; }
.chip.chip-portrait.on { background: rgba(255, 180, 84, .14); border-color: rgba(255, 180, 84, .46); color: #ffcf87; }
.chip.chip-other.on { background: rgba(176, 141, 255, .16); border-color: rgba(176, 141, 255, .48); color: #c4a6ff; }

.zone-section + .zone-section { margin-top: 28px; }
.zone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.zone-title { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 650; }
.zone-title svg { opacity: .85; }
.zone-section-landscape .zone-title { color: #7fc4ff; }
.zone-section-portrait .zone-title { color: #ffcf87; }
.zone-section-other .zone-title { color: #c4a6ff; }
.zone-side { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.zone-count { font-size: 12.5px; color: var(--muted); }

.avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11px; font-weight: 650; color: var(--accent-2);
  overflow: hidden;
}
.avatar-lg { width: 60px; height: 60px; font-size: 22px; border-radius: 18px; }
.avatar-md { width: 34px; height: 34px; font-size: 14px; border-radius: 11px; }
/* .avatar 是 place-items:center 的网格，图片必须显式铺满格子才不会被居中成原始尺寸。 */
.avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 个人资料左列：预览 + 上传/移除竖排；外层 flex-wrap 让窄屏整列落到表单上方。 */
.avatar-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 160px; }
.avatar-side .btn-row { justify-content: center; }

/* ── 徽标 / 芯片 ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  background: var(--panel-3); border: 1px solid var(--line-strong); color: var(--text-dim); white-space: nowrap;
}
.badge-free { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .34); color: var(--ok); }
.badge-cat { background: rgba(61, 155, 255, .14); border-color: rgba(61, 155, 255, .32); color: var(--accent-2); }
.badge-model { background: rgba(176, 141, 255, .14); border-color: rgba(176, 141, 255, .34); color: var(--accent-3, #b08dff); }
.badge-demo { background: rgba(255, 180, 84, .14); border-color: rgba(255, 180, 84, .34); color: var(--warn); }
.badge-pending { background: rgba(255, 180, 84, .14); border-color: rgba(255, 180, 84, .34); color: var(--warn); }
.badge-approved { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .34); color: var(--ok); }
.badge-rejected { background: rgba(255, 93, 108, .14); border-color: rgba(255, 93, 108, .34); color: var(--danger); }
.badge-offline { background: var(--panel-3); border-color: var(--line-strong); color: var(--muted); }
.badge-admin { background: rgba(94, 224, 255, .14); border-color: rgba(94, 224, 255, .36); color: var(--accent-2); }
/* 审核管理员徽章是「身份」不是「状态」：状态徽标一律 14% 透明着色，
   同一个作者名旁边再排一个同族半透明底，读者分不出哪个才是权限标识。
   改成实心金底深字，配色与状态体系正交，一眼读出这是能放行的人。 */
.badge-reviewer {
  background: linear-gradient(135deg, #f0c14b, #d99a2b); border-color: rgba(240, 193, 75, .62);
  color: #1d1301; font-weight: 700;
}

/* 压在封面/产品图上的角标：14% 着色会被亮图直接冲透（白底封面下实测仅 1.4:1）。
   换成不透明深底，色相交给文字与描边表达，对比度只由这层底决定（最坏情况仍 ≥ 5:1）。 */
.theme-card-badges .badge,
.product-card-media .badge { background: #05080d; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { color: #ffffff; border-color: rgba(94, 224, 255, .45); background: var(--panel-3); }
.chip[aria-pressed="true"], .chip.on {
  background: var(--accent-dim); border-color: rgba(61, 155, 255, .6); color: var(--accent-2); font-weight: 600;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.tag-x { margin-left: 6px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; line-height: 1; }
.tag-x:hover { color: var(--danger); }

/* ── 表单 ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 550; color: var(--text-dim); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--danger); }
.field.has-error > label { color: #ffb3ba; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: rgba(255, 93, 108, .62); box-shadow: 0 0 0 3px rgba(255, 93, 108, .12);
}
.field-err {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px;
  border: 1px solid rgba(255, 93, 108, .34); border-radius: var(--r-md);
  background: rgba(255, 93, 108, .09); color: #ffd9dd; font-size: 12.5px; line-height: 1.55;
}
.field-err svg { flex: none; margin-top: 1px; color: var(--danger); }
.form-fix-hint { margin: 0 0 10px; font-size: 12.5px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #5d6a7d; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(61, 155, 255, .55); box-shadow: 0 0 0 3px rgba(61, 155, 255, .12);
}
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a97ab' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.select option { background: var(--panel); color: var(--text); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.65; }
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 42px; height: 24px; border-radius: 999px; background: var(--panel-3);
  border: 1px solid var(--line-strong); position: relative; transition: background .18s; flex: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s;
}
.switch input:checked + .switch-track { background: var(--accent-dim); border-color: rgba(61, 155, 255, .6); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--accent-2); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch-label { font-size: 14px; color: var(--text-dim); }

.password-control { position: relative; display: flex; align-items: center; }
.password-control .password-input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 6px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.password-toggle:hover { background: var(--panel-3); color: var(--accent-2); }
.password-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }


.captcha-row .input { flex: 1; }
.captcha-img {
  height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; flex: none;
}

/* ── 文件上传 ─────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .015); padding: 22px; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.over { border-color: rgba(94, 224, 255, .55); background: rgba(94, 224, 255, .05); }
.dropzone strong { color: var(--accent-2); }
.dropzone small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px;
}
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.file-item button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; flex: none; }
.file-item button:hover { color: var(--danger); }

/* 单格预览图：按图自身比例展示，格子贴着图宽收——既不像旧版六格那样强裁 16:9
   （竖屏长图两头全丢），也不在两侧留深色边。超高部分封顶，要看清点一下进 lightbox。
   justify-items 用 start 不用 center：竖图收进图宽之后，居中会让格子飘在上传框正中、
   左边缘比下面的拖放框缩进几百像素（实测 1280 视口缩进 411.6px），看上去像传错了位置；
   靠左则图宽仍然自适配，只是左边缘与拖放框对齐。
   唯一的例外在下方 @media (min-width: 1200px) 的竖屏两栏档：那里 .thumb-grid 已收进 420px 定宽栏、
   拖放框换到右栏，居中只吃栏内 96.2px 空隙，不会再相对拖放框缩进 —— 别把那条 center 往全局搬。 */
.thumb-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: fit-content; max-width: 100%; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: #05070b; }
.thumb img {
  display: block; width: auto; max-width: 100%; max-height: min(62vh, 520px);
  cursor: zoom-in;
}
.thumb img:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: rgba(7, 10, 15, .85); color: var(--text-dim);
  cursor: pointer; display: grid; place-items: center;
}
.thumb button:hover { color: var(--danger); border-color: rgba(255, 93, 108, .5); }
.cover-tag {
  position: absolute; left: 4px; bottom: 4px; padding: 1px 6px;
  border-radius: 5px; font-size: 10px; background: #155FB8; color: #fff; font-weight: 600;
}
/* 空格常驻：草稿态也占位，让投稿人上传前就知道图落在哪一格（空格仍占满整列，不收进图宽） */
.thumb.empty { width: 100%; min-height: 150px; display: grid; place-items: center; border-style: dashed; background: var(--panel-2); }
.thumb.empty .slot-no { font-size: 15px; font-weight: 660; color: var(--muted); font-variant-numeric: tabular-nums; }

.progress { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s; }

/* ── 表格 ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.table td.num { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.table .cell-title { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.table .cell-title img { width: 56px; height: 32px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); flex: none; background: #05070b; }
.table .cell-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ── 标签页 ───────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  padding: 10px 15px; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent-2); border-bottom-color: var(--accent); font-weight: 600; }
.tab-count { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }

/* ── 统计卡 ───────────────────────────────────────── */
.stat { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat-label svg { color: var(--accent-2); opacity: .85; }
.stat-value { font-size: 27px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-note { font-size: 12px; color: var(--muted); }
.stat-note .up { color: var(--ok); }

/* ── 空 / 骨架 / 加载 ─────────────────────────────── */
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty svg { color: var(--line-strong); margin-bottom: 12px; }
.empty h3 { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.empty p { font-size: 13.5px; max-width: 420px; margin: 0 auto; }
.empty .btn { margin-top: 16px; }

.skeleton { position: relative; overflow: hidden; background: var(--panel-2); border-radius: var(--r-md); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  animation: shimmer 1.35s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.sk-media { aspect-ratio: 16 / 9; }
.sk-line { height: 11px; margin: 11px 14px; border-radius: 5px; }
.sk-line.short { width: 55%; }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
  .theme-card, .part-card, .part-card-media img { transition: none; }
  * { scroll-behavior: auto !important; }
}

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--accent-2);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px; color: var(--muted); font-size: 13.5px; }

/* ── 分页 ─────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 26px 0 6px; flex-wrap: wrap; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
  cursor: pointer; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.pager button:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }
.pager button[aria-current="true"] { background: var(--accent-dim); border-color: rgba(61, 155, 255, .5); color: var(--accent-2); font-weight: 650; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .dots { color: var(--muted); padding: 0 3px; }
.pager-total { text-align: center; font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }

/* ── Toast ────────────────────────────────────────── */
.toast-host {
  position: fixed; top: 76px; right: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; max-width: 380px;
  padding: 12px 15px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: rgba(15, 20, 29, .97); box-shadow: var(--shadow-lg);
  font-size: 13.5px; color: var(--text); pointer-events: auto;
  animation: toast-in .22s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } }
.toast.out { opacity: 0; transform: translateX(18px); transition: opacity .2s, transform .2s; }
.toast .ico { flex: none; margin-top: 1px; }
.toast-ok .ico { color: var(--ok); }
.toast-err .ico { color: var(--danger); }
.toast-info .ico { color: var(--accent-2); }
.toast-warn .ico { color: var(--warn); }
.toast-ok { border-color: rgba(61, 220, 151, .35); }
.toast-err { border-color: rgba(255, 93, 108, .38); }

/* ── 弹层 ─────────────────────────────────────────── */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 9, .74);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px;
  animation: fade-in .16s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: modal-in .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.modal-x:hover { color: var(--text); background: var(--panel-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 85; background: rgba(3, 5, 9, .93);
  display: grid; place-items: center; padding: 40px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-x { position: absolute; top: 18px; right: 20px; }
/* 多帧灯箱（产品主图「看大图」逐帧翻）：箭头与计数都绝对定位，grid 里只留图本身。 */
.lightbox-tools { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.lightbox-count {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .4px;
  color: #fff; background: rgba(5, 7, 11, .62); border: 1px solid rgba(255, 255, 255, .2);
}
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 720px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ── 布局 ─────────────────────────────────────────── */
/* 原先这条 `main { flex: 1; padding-bottom: 56px }` 是死规则（全站没有一处渲染 main 标签），
   #app 现在就是 <main>（主内容地标），留着它会平白给页面底部多出 56px 留白 —— 整条删掉，
   高度仍由上面 `#app { flex: 1 0 auto }` 决定，布局与改前逐像素相同。 */
.skip-link {
  position: fixed; left: 14px; top: -64px; z-index: 1200;
  padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 10px; }
.section { padding: 34px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: ""; width: 3px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.section-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.page-head { padding: 30px 0 0; }
.page-title { font-size: 25px; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 7px; max-width: 720px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
/* 详情页层级导航：父级必须读得出「能点」，不能和当前项同色看着像纯文本。
   .crumb（产品/新闻）与 .breadcrumb（主题）同一套语义，规则合并写在这里，另一处不再重复。 */
.breadcrumb a, .crumb a { color: var(--accent-2); }
.breadcrumb a:hover, .crumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden], .crumb span[aria-hidden] { opacity: .5; }
.breadcrumb svg, .crumb svg { opacity: .45; }
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #ffffff;
  padding: 6px 14px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  transition: background .15s, border-color .15s, color .15s;
}
.back-link:hover { color: #ffffff; background: var(--panel-3); border-color: rgba(94, 224, 255, .5); }
.back-link svg { opacity: .9; }
/* 详情页的返回链并进面包屑行尾（靠右）：单独立一行会让标题区上方堆两条导航文字。
   这里显式压过 .crumb a 的强调色——面包屑讲「我在哪」，返回链讲「往回走」，同色会糊成一片。 */
.crumb .back-link, .breadcrumb .back-link { margin-left: auto; margin-bottom: 0; color: #ffffff; }
.crumb .back-link:hover, .breadcrumb .back-link:hover { color: var(--accent-2); text-decoration: none; }

.layout-2 { display: grid; grid-template-columns: 236px 1fr; gap: 26px; align-items: start; padding-top: 28px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--r-md);
  color: var(--text-dim); font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.side-nav a:hover, .side-nav button:hover { background: var(--panel-2); color: var(--text); }
.side-nav a[aria-current="page"], .side-nav .on { background: var(--accent-dim); color: var(--accent-2); font-weight: 600; }
.side-nav svg { flex: none; opacity: .9; }
.side-group { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 13px 6px; }

.filter-bar { display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 12.5px; color: var(--muted); flex: none; width: 62px; }

.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(120deg, #0c1420 0%, #0a0f18 45%, #0d1522 100%);
  padding: 44px 40px; margin-top: 26px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 88% 8%, rgba(94, 224, 255, .17), transparent 70%),
    radial-gradient(420px 260px at 8% 100%, rgba(61, 155, 255, .16), transparent 70%);
}
.hero-in { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: 33px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-dim); font-size: 15px; margin-top: 13px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-size: 21px; font-weight: 680; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 90% at 60% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 90% at 60% 40%, #000, transparent 78%);
}

/* ── 首页屏播广告位（正式产品 Hero 舞台）──────────────────
   真值源 assets/img/hero-device.png（1920×565）来自素材目录的正式渲染图。
   屏幕窗口按原图 4793×1411 裁切坐标逐像素标定，物理比例 1920×462；机身自带灯带，不叠假灯环。 */
.hero-stage { position: relative; z-index: 2; margin-top: 26px; }
.hero-device {
  --screen-l: 5.4246%; --screen-t: 13.5365%; --screen-w: 89.1717%; --screen-h: 72.8561%;
  --screen-r: .668cqw;
  position: relative;
  container-type: inline-size;
}
.hero-photo { display: block; width: 100%; height: auto; }

/* 只保留机身外的轻泛光；产品本体的 RGB 灯带来自正式素材，不由 CSS 再画一圈。 */
.hero-aura {
  position: absolute; z-index: 1; pointer-events: none;
  left: -4%; top: -16%; width: 108%; height: 132%; border-radius: 40px;
  background: conic-gradient(from 90deg, #ff004c, #ffe600, #3dff5e, #00e5ff, #5b5bff, #ff00e5, #ff004c);
  filter: blur(40px) saturate(1.15); opacity: .18;
  animation: hero-power .55s ease-out both, hero-aura-hue 12s linear .55s infinite;
}
@keyframes hero-power { from { opacity: 0 } }
@keyframes hero-aura-hue {
  from { filter: blur(40px) saturate(1.15) hue-rotate(0) }
  to { filter: blur(40px) saturate(1.15) hue-rotate(360deg) }
}

.hero-screen {
  position: absolute; z-index: 2;
  left: var(--screen-l); top: var(--screen-t); width: var(--screen-w); height: var(--screen-h);
  overflow: hidden; border-radius: var(--screen-r); background: #000;
  container-type: size;
}
/* 开机：屏幕从一条横线拉开，只播一次，之后完全透明把位置让给内容。 */
.hero-boot {
  position: absolute; z-index: 6; inset: 0; background: #000; pointer-events: none;
  animation: hero-power-on .6s cubic-bezier(.2, .7, .3, 1) .45s both;
}
@keyframes hero-power-on {
  0% { opacity: 1; transform: scaleY(.008) }
  45% { opacity: .9; transform: scaleY(.02) }
  100% { opacity: 0; transform: scaleY(1) }
}
/* 扫描线：屏内内容要看着像在设备上跑，而不是贴在网页上。 */
.hero-scan {
  position: absolute; z-index: 5; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px);
  opacity: .3;
}

/* 轮播栈：所有帧同位置叠放，非当前帧只降透明度不脱流，
   否则 .thm 预览自带的可见性观察器会认不出谁在屏内。 */
.scr-stack { position: absolute; inset: 0; }
.scr-cell { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s ease; color: inherit }
.scr-cell.is-on { z-index: 2; opacity: 1 }
.scr-cell:not(.is-on) { pointer-events: none }
.scr-cell.is-dead { display: none }
.scr-frame { position: absolute; inset: 0; overflow: hidden }

.scr-text { display: grid; place-items: center; padding: 0 4cqw; text-align: center }
.scr-run {
  font-size: 5.6cqw; font-weight: 700; line-height: 1.22; letter-spacing: .01em;
  color: var(--scr-c1, var(--accent-2));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
/* 两个颜色都填了才做渐变字；只填一个就是纯色，不猜第二种色。 */
.scr-text.is-gradient .scr-run {
  background: linear-gradient(96deg, var(--scr-c1, var(--accent-2)), var(--scr-c2, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
/* 静止帧最多两行：后台文案上限 4000 字，不夹断就会顶穿屏幕区。 */
.scr-text[data-motion="static"] .scr-run {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* 横滚/竖滚走位移而不是改 left/top：行程 = 自身尺寸 + 屏区尺寸（cqw/cqh 即屏区宽高），
   任何长度的文案都能刚好滚出屏外，不会在屏内跳一下。 */
.scr-text[data-motion="marquee-x"] { padding: 0 }
.scr-text[data-motion="marquee-x"] .scr-run,
.scr-text[data-motion="marquee-y"] .scr-run { position: absolute; will-change: transform }
.scr-text[data-motion="marquee-x"] .scr-run {
  left: 100%; height: 100%; display: flex; align-items: center; white-space: nowrap;
  animation: scr-marquee-x var(--scr-spin) linear infinite;
}
@keyframes scr-marquee-x { to { transform: translateX(calc(-100% - 100cqw)) } }
.scr-text[data-motion="marquee-y"] .scr-run {
  left: 0; right: 0; top: 100%;
  animation: scr-marquee-y var(--scr-spin) linear infinite;
}
@keyframes scr-marquee-y { to { transform: translateY(calc(-100% - 100cqh)) } }
.scr-text[data-motion="fade"] .scr-run { animation: scr-fade var(--scr-spin) ease-in-out infinite }
@keyframes scr-fade { 0%, 100% { opacity: 0 } 20%, 80% { opacity: 1 } }

.scr-fill, .scr-theme { background: #000 }
.scr-img, .scr-video { display: block; width: 100%; height: 100%; object-fit: cover }
/* 主题帧：预览器自带边框与内阴影，进屏区一律剥掉，只留画布本身。
   画布比例（--thm-ar 由 JS 按主题真实宽高写入）几乎不可能正好等于玻璃区比例，
   用 inset:0 拉满会被 aspect-ratio 顶破高度、把画面下沿整条裁掉；这里走 contain：
   宽取「屏宽」与「屏高×比例」的较小值，高由 aspect-ratio 反推，两个轴都不溢出，
   多出来的留黑（副屏本来就熄在黑底上），代价是主题内容永远完整可见。 */
.scr-theme { display: grid; place-items: center }
.scr-theme .thm-stage {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--thm-ar, 2)));
  height: auto;
  border: 0; border-radius: 0; background: #000; box-shadow: none;
}

.scr-dots { position: absolute; z-index: 4; right: 2.4cqw; bottom: 2.6cqh; display: flex; gap: 1.4cqw }
.scr-dot {
  width: 1.7cqw; height: 1.7cqw; min-width: 5px; min-height: 5px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .3); cursor: pointer;
  transition: background .15s, transform .15s;
}
.scr-dot.is-on { background: var(--accent-2); transform: scale(1.2) }
.scr-dot:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px }

/* 后台没配帧时的示意 HUD：真实走时 + 两条遥测曲线。投影不是装饰，主题图亮度差太大。 */
.scr-hud {
  position: absolute; z-index: 3; inset: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 4.5cqw; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .6);
}
.hud-time { font-size: 9cqw; font-weight: 700; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums }
.hud-date { display: block; margin-top: 1cqw; font-family: var(--mono); font-size: 2.1cqw; letter-spacing: .16em; opacity: .72 }
.hud-gauges { display: flex; gap: 3.4cqw }
.hud-gauge { min-width: 13cqw }
.hud-gauge-k { display: block; font-family: var(--mono); font-size: 1.7cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .6 }
.hud-gauge-v { display: block; font-size: 3.1cqw; font-weight: 650; color: var(--accent-2); font-variant-numeric: tabular-nums }
.hud-gauge-bar { display: block; height: .55cqw; background: rgba(255, 255, 255, .16); overflow: hidden }
.hud-gauge-fill { display: block; width: 0; height: 100%; background: var(--accent-2); transition: width .5s ease }

/* 宽屏才拆两栏：1200 以下设备图整幅压在文字下方，v1 的首屏版面不动。 */
@media (min-width: 1200px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 45%); align-items: center; gap: 40px; }
  .hero-stage { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-boot { display: none; }
  .hero-ring, .hero-aura, .scr-cell, .scr-dot, .hud-gauge-fill { animation: none; transition: none; }
}

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.feature .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid rgba(61, 155, 255, .3); color: var(--accent-2); }
.feature h3 { font-size: 15px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── 详情页 ───────────────────────────────────────── */
/* 头部展示台：标题与横竖屏标识在上，预览占满整行。
   版面宽度只由真机宽高比（--ar，JS 写入）决定：横屏自动铺满、竖屏按高定尺，
   不给 12 个分辨率档位各写一套专用尺寸。 */
.detail-hero {
  padding: 22px 24px 20px;
  display: flex; flex-direction: column; gap: 18px;
  background:
    radial-gradient(120% 90% at 50% -22%, rgba(61, 155, 255, .13), transparent 62%),
    var(--panel);
}
/* 定尺作用域：--fit-h / --ar / data-zoom 全收在这一层，而不是挂在 .detail-hero 上。
   竖屏版面把舞台从 hero 底板里挪到左列，挂在 hero 上的话缩放补偿会静默失效。
   display:contents 让这个包装层自己不产生盒子，舞台仍按父容器排布，两种版面共用同一批选择器。 */
.stage-scope { --fit-h: min(56vh, 460px); display: contents; }
.hero-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.hero-heading { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-name { font-size: 26px; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.hero-sub { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.hero-tools { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
/* 竖屏按高定尺会太窄，给竖屏更高的展示预算；展示台与效果图用同一档位，切 Tab 不跳版。 */
.stage-scope[data-orient="portrait"], .thm-viewport[data-orient="portrait"] { --fit-h: min(72vh, 560px); }
.stage-scope .shots { width: min(100%, calc(var(--fit-h, min(56vh, 460px)) * var(--ar, 16 / 9))); margin: 0 auto; }
/* 竖屏画面窄、面板宽：让展示台贴住设备宽度居中，设备不会漂在一片空背景里。
   300px 是规格卡片的余量；放不下时卡片自动换到设备下方，面板回到整行宽。 */
.stage-scope .thm-viewport[data-orient="portrait"] {
  width: min(100%, calc(var(--fit-h, min(72vh, 560px)) * var(--ar, 0.5) + 300px));
  margin-inline: auto;
}

/* 手动缩放档位：data-zoom 存在时用 --fit-w 定「屏幕」宽度，覆盖 --fit-h 自动档。
   --dev-chrome / --shot-chrome 由 JS 按实测内衬+边框补回去：不补的话设备外框吃掉二十来像素，
   用户点 50% 却看到 48%。
   min(100%, …) 是高分辨率的钳口：4K 主题选「全尺寸」也只能铺满内容区。 */
.stage-scope[data-zoom] .shots { width: min(100%, calc(var(--fit-w) + var(--shot-chrome, 0px))); }
.stage-scope[data-zoom] .thm-device { width: min(100%, calc(var(--fit-w) + var(--dev-chrome, 0px))); }
.stage-scope[data-zoom] .thm-viewport[data-orient="portrait"] {
  width: min(100%, calc(var(--fit-w) + var(--dev-chrome, 0px) + 300px));
}
.zoom-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* 横竖屏是选主题的第一要素：带图标的大号胶囊，不再缩成侧栏小角标 */
.orient-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: 999px; font-size: 13px; border: 1px solid transparent; white-space: nowrap;
}
.orient-pill svg { flex: none; }
.orient-pill b { font-weight: 680; }
.orient-landscape { color: #7fc4ff; border-color: rgba(61, 155, 255, .44); background: rgba(61, 155, 255, .14); }
.orient-portrait { color: #ffcf87; border-color: rgba(255, 180, 84, .44); background: rgba(255, 180, 84, .14); }
.orient-other { color: #c4a6ff; border-color: rgba(176, 141, 255, .44); background: rgba(176, 141, 255, .14); }
.orient-res {
  font-size: 12px; opacity: .8; padding-left: 9px; margin-left: 1px;
  border-left: 1px solid rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums;
}
/* 列表卡片上的同色系小角标，保证库页与详情页的方向观感一致 */
.orient-mini {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 999px; font-size: 12px; border: 1px solid transparent; white-space: nowrap;
}
.orient-mini svg { flex: none; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 26px; align-items: start; padding-top: 26px; }
/* 竖屏版面：预览贴左、主题介绍正下方跟着。横屏那套「居中 + 铺满」在这里是反效果——
   竖屏画面本来就窄，再居中就等于左列里又留两条空档。 */
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.detail .thm-viewport { justify-content: flex-start; }
.detail .stage-scope .thm-viewport { margin-inline: 0; }
.detail .shots { margin: 0; }
/* 横屏版面三段节奏：整行行动条 → 两列等高细卡 → 整行参数带。
   原先四张内容高度悬殊的卡（下载 / 适用产品 / 9 行参数 / 单行作者）并排在同一 auto-fit
   网格里，底边必然参差；竖屏侧栏走 .detail-side，不受这些类影响。 */
.detail-wide { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; }
.detail-cards { display: grid; gap: 16px; align-items: start; }
/* 细卡只有两张，列数写死 2：auto-fit 会随视口折成 1/3 列，高度差又露出来了。
   两个 --wide/--grid 复合选择器都多带一层类名：.detail-cards / .meta-list 的基础规则
   写在这段之后，同权重的单类名会被后写的规则压掉（实测参数带曾因此没铺开）。 */
.detail-cards.detail-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.detail-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.detail-cta .dl-note { flex: 1 0 100%; margin: 0; }
.detail-cta .import-pick { flex: 1 0 100%; }
.detail-params { padding: 20px 22px; }
/* 参数带改成「标签在上、值在下」的格子，9 项两三行就铺完，不再拖成一列长条。
   故意不给格子加边框：末行有空格时，底边线会断在半行。 */
.meta-list.meta-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px 18px; }
.meta-list--grid .meta-row { flex-direction: column; gap: 4px; padding: 0; border-bottom: 0; }
.meta-list--grid .meta-row dt { width: auto; font-size: 12px; }
.meta-list--grid .meta-row dd { flex: none; font-size: 14px; color: var(--text); }
.detail-cards--wide .fit-card .fit-row { margin-top: auto; }
.shots { display: flex; flex-direction: column; gap: 12px; }
.shot-main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #05070b; cursor: zoom-in; }
.shot-main img { width: 100%; aspect-ratio: var(--ar, 16 / 9); object-fit: contain; }
.shot-thumbs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.shot-thumbs button {
  flex: none; width: 118px; height: 68px; border-radius: var(--r-sm); overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: #05070b; cursor: pointer; opacity: .62; transition: opacity .15s, border-color .15s;
}
.shot-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumbs button:hover { opacity: .9; }
.shot-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(61, 155, 255, .18); }
.shot-stage { position: relative; }
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .24); background: rgba(5, 7, 11, .58); color: #fff; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.shot-nav:hover { background: rgba(5, 7, 11, .85); border-color: var(--accent); }
.shot-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot-nav--prev { left: 12px; }
.shot-nav--next { right: 12px; }
.shot-tools { position: absolute; right: 12px; bottom: 12px; pointer-events: none; }
.shot-count {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .4px;
  color: #fff; background: rgba(5, 7, 11, .62); border: 1px solid rgba(255, 255, 255, .2);
}
@media (max-width: 720px) {
  .shot-nav { width: 40px; height: 40px; }
  .shot-nav--prev { left: 8px; }
  .shot-nav--next { right: 8px; }
  .shot-tools { right: 8px; bottom: 8px; }
}

.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.dl-box { padding: 20px; }
.dl-box .btn { margin-bottom: 10px; }
.dl-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.meta-list { display: flex; flex-direction: column; }
.meta-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.meta-row:last-child { border-bottom: 0; }
.meta-row dt { color: var(--muted); flex: none; width: 74px; }
.meta-row dd { margin: 0; color: var(--text-dim); flex: 1; min-width: 0; word-break: break-word; }
.author-card { padding: 18px; display: flex; align-items: center; gap: 13px; }
.author-card .who { min-width: 0; }
.author-card .who b { display: block; font-size: 14.5px; }
/* 只压计数那一行：徽章也是 span，用后代选择器会把实心金底的身份标抢成灰字（0,2,1 压过 .badge-reviewer）。 */
.author-card .who > span { font-size: 12px; color: var(--muted); }

.fit-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.fit-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.fit-head svg { color: var(--accent); flex: none; }
.fit-product { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); transition: border-color .18s ease; }
.fit-product:hover { border-color: var(--accent); }
.fit-product img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--bg); }
.fit-product > svg { margin-left: auto; color: var(--muted); flex: none; }
.fit-info { min-width: 0; }
.fit-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit-info span { font-size: 12px; }
.fit-text { margin: 0; font-size: 13px; line-height: 1.6; }
.fit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 12px; }

.prose { font-size: 14.5px; line-height: 1.85; color: var(--text-dim); white-space: pre-wrap; word-break: break-word; }
.prose-title { font-size: 15px; font-weight: 640; color: var(--text); margin-bottom: 10px; }

/* 法务条款页：正文是后台可编辑的纯文本段落，版式只做分节与两文互链。 */
.legal-wrap { padding-bottom: 44px; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.legal-tab {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-dim); background: var(--panel);
}
.legal-tab:hover { color: var(--text); border-color: var(--line-strong); }
.legal-tab.active { color: var(--accent); border-color: rgba(61, 155, 255, .42); background: rgba(61, 155, 255, .1); }
.legal-body { display: flex; flex-direction: column; gap: 22px; max-width: 840px; }
.legal-section h2 { margin: 0 0 8px; }
.legal-contact {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); max-width: 840px;
}

/* ── 富文本正文（产品图文详情等后台编辑器内容） ───── */
.rich-body { font-size: 14.5px; line-height: 1.85; color: var(--text-dim); word-break: break-word; max-width: 750px; margin: 0 auto; }
.rich-body > * + * { margin-top: 14px; }
.rich-body p { margin: 0; }
.rich-body h1, .rich-body h2, .rich-body h3, .rich-body h4 { color: var(--text); line-height: 1.4; }
.rich-body h1 { font-size: 20px; }
.rich-body h2 { font-size: 17.5px; }
.rich-body h3 { font-size: 16px; }
.rich-body h4 { font-size: 15px; }
.rich-body ul, .rich-body ol { padding-left: 22px; }
.rich-body li + li { margin-top: 4px; }
.rich-body blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rich-body a { color: var(--accent-2); text-decoration: none; }
.rich-body a:hover { text-decoration: underline; }
.rich-body img { max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); display: block; margin: 0 auto; }
.rich-body code { padding: 2px 6px; border-radius: 4px; background: var(--bg-soft); font-size: 13px; }
.rich-body pre { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); overflow-x: auto; }
.rich-body pre code { padding: 0; background: none; }
.rich-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rich-body th, .rich-body td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.rich-body hr { border: 0; border-top: 1px solid var(--line); }

/* ── 登录/注册 ────────────────────────────────────── */
.auth-wrap { display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 424px; padding: 30px 30px 26px; }
.auth-card h1 { font-size: 21px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
/* 找回密码是登录卡里的第二条动作路径，不是表单的第五个字段，所以用一条分隔线把它和登录断开。
   面板里的邮箱框与注册表单共用同一个节点，两种模式互斥渲染，不会撞出重复 id。 */
.auth-forgot { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
/* 注册页协议勾选：与验证码、密码同列排布，链接走新窗口所以不能继承主色下划线的hover位移。 */
.auth-terms { align-items: flex-start; margin-top: 2px; line-height: 1.6; }
.auth-terms input { margin-top: 2px; flex: none; }
.auth-terms-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.auth-terms-link:hover { color: var(--accent-2); }
.auth-note {
  margin-top: 16px; padding: 11px 13px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.65;
  background: rgba(61, 155, 255, .07); border: 1px solid rgba(61, 155, 255, .22); color: var(--text-dim);
}

/* ── 微信扫码登录 ──────────────────────────────────── */
/* 微信绿只给微信这一个通道用，主色留给站内自己的提交按钮，两种动作不能长得一样。
   取 #0f7a12 而非官方的 #1aad19：后者配白字对比度只有 2.98:1，读不清也过不了 AA。 */
.auth-split { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.auth-split > span { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-align: center; }
.auth-split > span::before, .auth-split > span::after { content: ' '; display: inline-block; width: 28px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 10px; }
.btn-wechat { background: #0f7a12; border-color: #0f7a12; color: #fff; font-weight: 600; }
.btn-wechat:hover:not(:disabled) { background: #129415; border-color: #129415; color: #fff; }
.wechat-card { text-align: center; }
.wechat-card h2 { font-size: 20px; margin-top: 14px; }
.wechat-card .form-grid { text-align: left; }
.wechat-card .note { text-align: left; }
.wechat-card .auth-foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wechat-mark {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 4px auto 0;
  border-radius: 50%; background: var(--panel-2); color: var(--muted);
}

/* ── 提示条 ───────────────────────────────────────── */
.note {
  padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.7;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-dim);
  display: flex; gap: 10px; align-items: flex-start;
}
.note svg { flex: none; margin-top: 2px; }
.note-info { border-color: rgba(61, 155, 255, .28); background: rgba(61, 155, 255, .07); }
.note-info svg { color: var(--accent-2); }
.note-warn { border-color: rgba(255, 180, 84, .3); background: rgba(255, 180, 84, .07); }
.note-warn svg { color: var(--warn); }
.note-err { border-color: rgba(255, 93, 108, .32); background: rgba(255, 93, 108, .07); color: #ffd9dd; }
.note-err svg { color: var(--danger); }

/* ── 代码块 / API 文档 ────────────────────────────── */
pre.code {
  margin: 0; padding: 15px 16px; background: #05070b; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow-x: auto; font-family: var(--mono);
  font-size: 12.7px; line-height: 1.7; color: #cfe0f2;
}
code.inline {
  font-family: var(--mono); font-size: .9em; padding: 2px 6px; border-radius: 5px;
  background: var(--panel-3); border: 1px solid var(--line); color: var(--accent-2);
}
.method {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; flex: none;
}
.m-get { background: rgba(61, 220, 151, .15); color: var(--ok); border: 1px solid rgba(61, 220, 151, .32); }
.m-post { background: rgba(61, 155, 255, .15); color: var(--accent-2); border: 1px solid rgba(61, 155, 255, .32); }
.m-patch { background: rgba(255, 180, 84, .15); color: var(--warn); border: 1px solid rgba(255, 180, 84, .32); }
.m-delete { background: rgba(255, 93, 108, .15); color: var(--danger); border: 1px solid rgba(255, 93, 108, .32); }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.endpoint:last-child { border-bottom: 0; }
.endpoint .path { font-family: var(--mono); font-size: 13px; color: var(--text); }
.endpoint .desc { font-size: 12.5px; color: var(--muted); margin-left: auto; text-align: right; }

details.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
details.acc + details.acc { margin-top: 10px; }
details.acc summary {
  padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 550;
  display: flex; align-items: center; gap: 10px; list-style: none;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary:hover { background: var(--panel-2); }
details.acc[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
details.acc .acc-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ── 页脚 ─────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1; flex: none;
  border-top: 1px solid var(--line); background: rgba(5, 8, 13, .6);
  padding: 30px 0 26px; margin-top: 48px; font-size: 13px; color: var(--muted);
}
.footer-in { display: flex; gap: 26px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--accent-2); }
.footer .copy { max-width: 520px; line-height: 1.75; }
.footer-legal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.icp-link { display: inline-flex; gap: 6px; align-items: center; color: var(--text-dim); }
.icp-link:hover { color: var(--accent-2); }
.icp-note { font-size: 12px; color: var(--muted); }

.menu-user { position: relative; }
.menu-pop {
  position: absolute; top: calc(100% + 9px); right: 0; min-width: 210px; z-index: 50;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; animation: modal-in .16s ease-out;
}
.menu-pop .head { padding: 9px 11px 11px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.menu-pop .head b { display: block; font-size: 14px; }
.menu-pop .head span { font-size: 12px; color: var(--muted); }
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px;
  border-radius: var(--r-sm); color: var(--text-dim); font-size: 13.5px; border: 0; background: none;
  cursor: pointer; text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel-2); color: var(--text); }
.menu-pop a[aria-current="true"] { background: var(--accent-dim); color: var(--accent-2); font-weight: 600; }
.menu-pop button.danger:hover { background: rgba(255, 93, 108, .1); color: var(--danger); }

/* 语言旗帜 */
.flag { display: inline-flex; flex: none; line-height: 0; }
.flag svg { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }

.muted { color: var(--muted); }
.dim { color: var(--text-dim); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.mb-14 { margin-bottom: 14px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.between { justify-content: space-between; } .wrap-row { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ── 响应式 ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  /* 两列塌成单列后，「贴左」就没有对象了：窄屏里回到居中，否则预览会偏在左边一条。 */
  .detail .thm-viewport { justify-content: center; }
  .detail .stage-scope .thm-viewport { margin-inline: auto; }
  .detail .shots { margin: 0 auto; }
  .layout-2 { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .side-nav a, .side-nav button { white-space: nowrap; width: auto; }
  .side-group { display: none; }
  /* 竖屏列数先降一档：300px 以下的竖屏卡放不进 4 列，图片会被压成一条细影。 */
  .grid.grid-themes--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .topbar-in { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 12px; }
  .topbar-search { order: 3; max-width: none; width: 100%; margin-left: 0; }
  .nav { order: 2; width: 100%; overflow-x: auto; margin-left: 0; }
  .topbar-right { margin-left: auto; }
  .brand-sub { display: none; }
}
@media (max-width: 860px) {
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 25px; }
  .detail-hero { padding: 16px 16px 14px; }
  /* 横屏主题在手机上仍走横屏版面（版面跟着主题方向走，不是视口），细卡必须能塌成单列。 */
  .detail-cards.detail-cards--wide { grid-template-columns: minmax(0, 1fr); }
  .detail-cards--wide .fit-card .fit-row { margin-top: 0; }
  .stage-scope { --fit-h: min(38vh, 300px); }
  .stage-scope[data-orient="portrait"], .thm-viewport[data-orient="portrait"] { --fit-h: min(62vh, 420px); }
  .hero-name { font-size: 21px; }
  .hero-tools { margin-left: 0; align-items: flex-start; }
  .zoom-tools { justify-content: flex-start; }
  .thm-viewport { padding: 12px; }
  .wrap { padding: 0 16px; }
  .grid-themes { --card-h: 132px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  /* 手机上横屏回到一行一个（画面是主角），竖屏一行两个（一屏能看到 4 张竖幅），其他一行两个（1:1 方块两列刚好占满）。 */
  .grid.grid-themes--landscape { grid-template-columns: minmax(0, 1fr); }
  .grid.grid-themes--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.grid-themes--other { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-host { left: 16px; right: 16px; top: auto; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .panel { padding: 17px; }
}

/* ── 官网扩展：产品 / 支持 / 渠道 / 关于 ──────────── */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.badge-live {
  background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .32); color: var(--ok);
  letter-spacing: .02em;
}

.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 128px; }
.footer-col b { color: var(--text-dim); font-size: 13px; letter-spacing: .04em; margin-bottom: 2px; }

/* 面包屑（产品详情）：外观规则与 .breadcrumb 合并在前文，这里只留布局。 */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }

/* ── 产品卡片 ─────────────────────────────────────── */
.product-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card-media img { transform: scale(1.045); }
.product-card-media .badge { position: absolute; top: 10px; right: 10px; }
.product-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-title { color: var(--text); font-weight: 650; font-size: 15.5px; }
.product-card-title:hover { color: var(--accent-2); }
.product-card-tagline { font-size: 13px; color: var(--muted); line-height: 1.65; }
.product-card-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.product-card-actions { display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; justify-content: center; }

.badge-product { font-weight: 600; }
.badge-new { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .34); color: var(--ok); }
.badge-hot { background: rgba(255, 93, 108, .14); border-color: rgba(255, 93, 108, .32); color: var(--danger); }
.badge-flag { background: rgba(94, 224, 255, .14); border-color: rgba(94, 224, 255, .36); color: var(--accent-2); }

.price { color: var(--text); font-weight: 680; font-variant-numeric: tabular-nums; }
.price em { font-style: normal; color: var(--accent-2); font-size: .78em; margin-right: 2px; }
.price-lg { font-size: 30px; letter-spacing: -.02em; }
.price-lg .price-note { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; letter-spacing: 0; }

/* ── 产品详情 hero ────────────────────────────────── */
.product-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.product-hero-media {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--bg-soft)); align-self: start;
}
/* 主图框跟着当前帧的真实比例走：--ar 由 views/products.mjs 在图 load 时写到 .product-hero-media 上
   （取 naturalWidth / naturalHeight），.shot-main img 那条通用规则消费它。
   原来这里写死 16/9 + contain：与淘宝共用的 1:1 方图两侧各留一百多像素灰边，实测浪费 43.8% 宽度。 */
.product-hero-media .shot-main { border: 0; border-radius: 0; background: var(--bg-soft); }
/* PC 悬停放大镜：JS 只在 (hover: hover) and (pointer: fine) 下打开 data-lens，
   放大中心由 mousemove 写成 transform-origin，指针离开即复位。触屏没有 hover，不套。 */
.product-hero-media .shot-main[data-lens] > img { transform: scale(2.2); }
/* 帧条：整条相册放在同一行里，格子按「铺满这一行」伸缩，不再定宽 —— 帧少时把行摊平（既不出现
   右侧一块空白，也不出现半张被切的格子），帧多时压到 64px 下限才允许溢出。后台一款产品能录到
   二十几张，所以仍不折行：折行会把参数表整个推出首屏。64px 高于 44px 触控下限，144px 封顶是
   防止两三帧的产品把一行顶成第二块主图。
   溢出时翻页交给两端那对 < >（和主图上方同一套语义，由 JS 量出溢出才点亮）；原生滚动条不显示，
   但 overflow-x: auto 仍在，wheel / 拖拽 / 键盘滚都照常。 */
.hero-strip { display: flex; align-items: center; gap: 8px; padding: 10px; }
.hero-shots {
  display: flex; flex-wrap: nowrap; gap: 9px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hero-shots::-webkit-scrollbar { display: none; }
/* 基态不显示：帧条没溢出时这两个按钮点了没有可翻的下一格，等于两个死按钮。
   --prev/--next 的 left/right 是绝对定位时代的残留，position: static 下自动失效。 */
.hero-strip .shot-nav {
  display: none; position: static; transform: none; flex: 0 0 auto; width: 44px; height: 44px;
}
.hero-strip[data-pager="1"] .shot-nav { display: grid; }
.hero-shots button {
  flex: 1 1 104px; min-width: 64px; max-width: 144px; padding: 0; border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line); background: #05070b; cursor: pointer; opacity: .62;
  transition: opacity .15s, border-color .15s;
}
.hero-shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.hero-shots button:hover { opacity: .9; }
.hero-shots button[aria-current="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(61, 155, 255, .18); }
/* 产品页导航锚点条：吸在顶栏（64px）下面，只列这一页真实存在的节。 */
.pdp-anchors {
  position: sticky; top: 64px; z-index: 30; display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 7px 9px; align-items: center;
  background: rgba(7, 10, 15, .88); backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
}
.pdp-anchor {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  padding: 5px 13px; border-radius: 999px; transition: background .15s, color .15s;
}
.pdp-anchor:hover { background: var(--panel-2); color: var(--text); }
.pdp-anchor:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 顶栏 ≤1200 会折成多行（.topbar-in height:auto），吸顶偏移量算不准，窄屏直接不吸。 */
@media (max-width: 1200px) { .pdp-anchors { position: static; } }
.product-hero-info { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.product-hero-info h1 { font-size: 26px; letter-spacing: -.01em; }
.product-hero-tagline { color: var(--accent-2); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.product-hero-summary { color: var(--text-dim); font-size: 14px; line-height: 1.8; }

/* 锚点跳转落点：顶栏 64px 常驻 + 吸顶锚点条自身高度，否则点导航跳过去，标题正好压在顶栏底下。 */
.pdp section[id] { scroll-margin-top: 138px; }
@media (max-width: 860px) { .pdp section[id] { scroll-margin-top: 78px; } }

/* 功能特征：把原来挤在标题下的卖点列表摊成卡片网格（后台 highlights 逐条录入） */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.feature-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px;
  font-size: 14px; line-height: 1.7; color: var(--text-dim);
}
.feature-card svg { flex: none; margin-top: 3px; color: var(--accent-2); }
/* 功能特征挪进产品详情 hero 的右列（那块从「技术支持」往下整段是空的）。
   标题复用 .section-head/.section-title 的结构，只压尺寸与外边距：另写一套标题 markup
   就是第二个真值源，将来 sectionHead 换形只换一半。 */
.hero-features { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.hero-features .section-head { margin-bottom: 0; }
.hero-features .section-title { font-size: 15px; gap: 8px; }
.hero-features .section-title::before { height: 14px; }
.hero-features .section-sub { font-size: 12.5px; margin-top: 3px; }
/* 两两对齐写死两列等宽，不沿用上面的 auto-fit：右列在 1081~1300 视口只剩 ~376px，
   auto-fit 的 230px 下限会在那里直接退成一列，「两两」就没了。 */
.hero-features .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-features .feature-card { padding: 12px 14px; font-size: 13.5px; line-height: 1.6; gap: 8px; }
.hero-features .feature-card svg { margin-top: 2px; }
@media (max-width: 560px) {
  .hero-features .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 规格选项组（颜色/版本）：选项文案由后台录入，选中项联动主图与参数表 */
.variant-picker { display: flex; flex-direction: column; gap: 10px; }
.variant-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.variant-label {
  font-size: 13px; color: #ffffff; font-weight: 600; flex: none;
  min-width: auto; padding: 3px 10px; border-radius: 6px;
  background: rgba(61, 155, 255, .18); border: 1px solid rgba(61, 155, 255, .5);
}
.variant-label::after { content: ":"; }

/* 规格表 */
.spec-table td:first-child { color: var(--muted); width: 38%; }
.spec-table tr:last-child td { border-bottom: 0; }

/* ── 驱动 / 固件下载卡 ────────────────────────────── */
.dl-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.dl-card > .ico { width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-2); }
.dl-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.dl-card-main b { font-size: 14.5px; }
.dl-card-main p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.dl-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.dl-meta span {
  font-size: 11.5px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.dl-card .btn { flex: none; }
/* 文件名：用户点的是「这台机器的驱动」，最后核对靠的是文件名本身，所以整串摊出来。
   过长时用省略号收，完整地址放在 title 里；等宽字体便于逐字符核对版本号。 */
.dl-meta .dl-file {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--text-dim);
  min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
/* 后台录入的下载备注：压住上面 .dl-card-main p 的默认色，保持暗淡。 */
.dl-card-main .dl-note { color: var(--text-dim); }
/* 软件介绍版块的切换按钮行：与下方 panel 之间留一档间距 */
.intro-tabs { margin-bottom: 14px; }

/* ── 产品视频模块 ─────────────────────────────────── */
/* auto-fit（不是 auto-fill）：只有一个视频时轨道塌成一条 ⇒ 铺满详情页内容宽，多个才分列 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.video-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
/* 高度只由比例推出；上限按视高反推宽度，所以画框永远不会比首屏还高，夹住后居中 */
.video-frame {
  width: 100%; max-width: calc(72vh * 16 / 9); aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--r-md); background: #000; display: block;
}
/* 本地文件按自身真实比例定高（含竖屏），既不裁切也不拉伸 */
video.video-frame {
  width: auto; height: auto; max-height: 72vh; aspect-ratio: auto;
  object-fit: contain; margin-inline: auto;
}
p.video-cap { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.video-card {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  width: 100%; max-width: calc(72vh * 16 / 9); justify-self: center;
  background: var(--panel-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px; text-align: center; color: var(--text);
  transition: transform .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-2px); border-color: var(--accent-2); color: var(--text); }
.video-card-play {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-2); flex: none;
  transition: transform .25s ease, background .25s ease;
}
.video-card:hover .video-card-play { transform: scale(1.08); }
.video-card-host { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.video-card-title { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.video-card-go {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px;
  color: var(--accent-2); font-weight: 600;
}

/* ── 保修流程 ─────────────────────────────────────── */
.step-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 16px 16px 14px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 6px;
}
.step b { font-size: 14px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.step-no {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-2); font-size: 12.5px; font-weight: 700;
}

/* ── FAQ 折叠 ─────────────────────────────────────── */
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 16px; transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--muted); transition: transform .18s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent-2); }
.faq-cat { font-size: 13px; color: var(--accent-2); letter-spacing: .06em; margin: 20px 0 10px; }
.faq-body { font-size: 13.5px; line-height: 1.8; padding: 0 0 14px; }

/* ── 购买渠道 ─────────────────────────────────────── */
.plat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plat-chip {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff;
}
.plat-tb { background: linear-gradient(135deg, #ff7a1a, #ff5000); }
.plat-tm { background: linear-gradient(135deg, #ff2e63, #c4123f); }
.plat-jd { background: linear-gradient(135deg, #e3382c, #b01f24); }
.plat-dy { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.plat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plat-head {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.plat-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-title h3 { font-size: 15px; }
.plat-body { padding: 13px 18px; }
.plat-shop { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.plat-foot { padding: 0 18px 16px; }
.badge-ok { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .34); color: var(--ok); }
.badge-soon { background: rgba(255, 180, 84, .14); border-color: rgba(255, 180, 84, .34); color: var(--warn); }

/* ── 联系我们 ─────────────────────────────────────── */
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-card > .ico { width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-2); }
.contact-value {
  font-size: 13px; color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-card .btn { align-self: flex-start; }

/* ── 联系意图 ─────────────────────────────────────── */
.intent-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.intent-head { display: flex; align-items: center; gap: 11px; }
.intent-head .ico { width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-2); }
.intent-head b { font-size: 15.5px; }
.intent-head span { display: block; font-size: 12px; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.check-list li svg { color: var(--ok); flex: none; margin-top: 4px; }
.intent-card .btn-row { margin-top: auto; }

/* 关于页合作品牌墙 */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.brand-cell { min-width: 0; }
.brand-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.brand-card { height: 100%; min-height: 92px; padding: 18px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease; }
.brand-link:hover .brand-card { border-color: var(--accent); transform: translateY(-2px); }
.brand-logo { max-width: 100%; max-height: 52px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .05em; color: var(--text-dim); }

/* ── 首页 CTA 横幅 ────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(94, 224, 255, .22); border-radius: var(--r-lg);
  background:
    radial-gradient(560px 220px at 50% -30%, rgba(61, 155, 255, .22), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 44px 28px 40px;
}
.cta-band h2 { font-size: 24px; letter-spacing: -.01em; }
.cta-band h2 em { font-style: normal; background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: var(--text-dim); font-size: 14px; margin: 10px auto 0; max-width: 560px; line-height: 1.75; }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }

/* ── 后台富文本（关于/保修/软件介绍） ───────────────── */
.warranty-rich, .about-rich, .intro-rich { line-height: 1.85; color: var(--text); font-size: 14px; }
.warranty-rich > *:first-child, .about-rich > *:first-child, .intro-rich > *:first-child { margin-top: 0; }
.warranty-rich > *:last-child, .about-rich > *:last-child, .intro-rich > *:last-child { margin-bottom: 0; }
.warranty-rich h2, .about-rich h2, .intro-rich h2 { font-size: 18px; margin: 20px 0 10px; }
.warranty-rich h3, .about-rich h3, .intro-rich h3 { font-size: 15.5px; margin: 16px 0 8px; }
.warranty-rich p, .about-rich p, .intro-rich p { margin: 8px 0; }
.warranty-rich ul, .about-rich ul, .intro-rich ul,
.warranty-rich ol, .about-rich ol, .intro-rich ol { margin: 8px 0; padding-left: 22px; color: var(--text-dim); }
.warranty-rich img, .about-rich img, .intro-rich img { max-width: 100%; border-radius: 10px; margin: 10px 0; border: 1px solid var(--line); }
.warranty-rich a, .about-rich a, .intro-rich a { color: var(--accent); }
.warranty-rich table, .about-rich table, .intro-rich table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.warranty-rich td, .about-rich td, .intro-rich td,
.warranty-rich th, .about-rich th, .intro-rich th { border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }

@media (max-width: 1080px) {
  .product-hero { grid-template-columns: minmax(0, 1fr); }
  .price-lg { font-size: 26px; }
}
@media (max-width: 860px) {
  .footer-in { flex-direction: column; }
  .footer nav { width: 100%; gap: 22px; }
  .cta-band { padding: 32px 18px 30px; }
  .cta-band h2 { font-size: 20px; }
}

/* ── 新闻中心（归档 + 文章详情） ──────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-card { min-width: 0; }
.news-card-link { display: block; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); transition: border-color .18s, transform .18s; }
a.news-card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-media { margin: -20px -22px 14px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.news-card-media img { width: 100%; height: 150px; object-fit: cover; display: block; }
.news-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 10px; }
.badge-news { background: var(--accent-dim); color: var(--accent-2); border: 1px solid transparent; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.news-card-title { font-size: 16.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.news-card-summary { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; margin-top: 12px; }

.news-article { max-width: 780px; margin: 0 auto; }
.news-article-head { margin-bottom: 22px; }
.news-article-head .page-title { font-size: 27px; line-height: 1.4; margin-top: 12px; }
.news-article-summary { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-top: 12px; }
.news-article-cover { margin: 0 0 20px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.news-article-cover img { width: 100%; display: block; }
.news-article-body { font-size: 15px; line-height: 1.9; }
.news-article-body h2 { font-size: 19px; margin: 26px 0 12px; }
.news-article-body p { margin: 12px 0; }
.news-article-body ul, .news-article-body ol { margin: 12px 0; padding-left: 24px; color: var(--text-dim); }
.news-article-body li { margin: 6px 0; }
.news-article-body a { color: var(--accent); }
.news-article-body img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.news-article-body blockquote { border-left: 3px solid var(--accent); padding: 4px 14px; margin: 14px 0; color: var(--text-dim); }

/* ── 招聘信息 ────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.job-item summary { display: flex; align-items: center; gap: 14px; padding: 17px 22px; cursor: pointer; list-style: none; transition: background .15s; }
.job-item summary::-webkit-details-marker { display: none; }
.job-item summary:hover { background: var(--panel-2); }
.job-item summary svg { margin-left: auto; flex: none; color: var(--text-dim); transition: transform .18s; }
.job-item[open] summary svg { transform: rotate(180deg); }
.job-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.job-meta { font-size: 12.5px; white-space: nowrap; }
.job-body { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
.job-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 16px; }
.job-cols h4 { font-size: 14px; margin-bottom: 10px; color: var(--accent-2); }
.job-cols .check-list li { font-size: 13.5px; color: var(--text-dim); margin: 7px 0; }

@media (max-width: 860px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .job-cols { grid-template-columns: minmax(0, 1fr); }
  .job-meta { white-space: normal; }
}

/* 一键返回顶部 */
/* 放在内容列**外侧**的右侧空栏里，不贴列边：按钮 44px + 距列边留白 20px = 64px，
   所以 right = 空栏宽 - 64。贴列边（上一版）时按钮整块压在正文/视频画框最后 44px 上，用户 2026-10-26 报的就是这个。
   用百分比（不是 100vw）取列边：fixed 的包含块与 .wrap 的 margin:auto 同一个基准（不含经典滚动条），
   100vw 会把滚动条宽度也算进去，整块比内容边缘多偏半条 scrollbar。
   max() 的 20px 是窄屏兜底 —— 空栏放不下 64px（视口 < maxw+128）时退回首屏边缘距离，
   这时会重新压到内容上，由 products.mjs 的 IntersectionObserver 在真压到视频画框时淡出让位。
   算式里不再出现 .wrap 的padding：列边框盒就是 --maxw，留白从按钮这侧给，与内边距解耦。 */
.back-top {
  position: fixed;
  right: max(20px, calc((100% - var(--maxw)) / 2 - 64px)); bottom: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1B6FD1, #155FB8); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 6px 20px rgba(21, 95, 184, .45), 0 2px 8px rgba(0, 0, 0, .35);
  cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* 与视频画框真的重叠时让位（窄屏兜底那条路径）：宽屏落在空栏里不命中，按钮照常露出。 */
.back-top.over-video { opacity: 0; pointer-events: none; }
.back-top:hover { filter: brightness(1.12); color: #fff; }
@media (max-width: 720px) { .back-top { right: 16px; bottom: 16px; } }

/* ── .thm 动态预览舞台 ────────────────────────────── */
.thm-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #04070c;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55), 0 10px 28px rgba(0, 0, 0, .38);
}

/* 旋转内层：JS 按角度设宽高与 transform；背景/控件层相对它填满。 */
.thm-stage-inner {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.thm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* currentColor 兜底：控件没给颜色时按面板可读色绘制 */
.thm-layer {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
}

.thm-stage.is-paused::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, .22);
  pointer-events: none;
}

/* 预览外壳：舞台 + 控制条 + 说明；控制条固定高度，切换播放状态不改变布局 */
.thm-live { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.thm-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.thm-bar .dim { font-size: 12px; color: var(--muted); margin-left: auto; }
.thm-note { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 展示台：设备边框 + 分辨率/画布规格。设备宽 = min(容器宽, 展示高 × --ar)，
   所以任何档位都不会被拉伸；规格标注换行居中，竖屏时补在设备两侧的空档里。 */
.thm-viewport {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px;
  padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 9px),
    radial-gradient(90% 70% at 50% 0, rgba(94, 224, 255, .06), transparent 70%),
    #05070b;
}
.thm-device {
  flex: none; width: min(100%, calc(var(--fit-h, min(58vh, 520px)) * var(--ar, 16 / 9)));
  padding: 10px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #232c3a, #131a24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.thm-device .thm-stage { border-radius: 9px; border-color: rgba(0, 0, 0, .65); box-shadow: inset 0 0 30px rgba(0, 0, 0, .6); }
.thm-specs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.thm-spec {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px;
  padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
}
.thm-spec b { font-size: 14.5px; font-weight: 660; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.thm-spec span { font-size: 11.5px; color: var(--muted); }

/* 投稿页主题包预览框：紧凑档展示台，只用于「传对包了吗」的当场核对，不放大、不铺规格 */
.pkg-stage { margin-bottom: 14px; }
.pkg-stage-cap { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.pkg-stage .thm-viewport { --fit-h: 186px; padding: 14px; }

/* ── 投稿页双版面 ───────────────────────────────────
   包上传框永远排第一；方向只改 form 上的 data-orient，靠网格区域重排。
   节点全程只建一次——重建 DOM 就是上一轮筛选区跳动的成因，别再犯。 */
.upload-flow {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "drop" "stage" "shots";
}
.uf-drop { grid-area: drop; min-width: 0; }
.uf-stage { grid-area: stage; min-width: 0; }
.uf-shots { grid-area: shots; min-width: 0; }
/* 上传框栏与封面格子之间补 12px；栏内两条说明改由 .shots-note 自己的上边距撑开，
   免得 .field 默认的 7px 缝隙和说明行 10px 外边距叠成两套节奏。 */
.uf-shots-side { gap: 0; margin-top: 12px; }
/* ── 竖屏：整体两栏（左＝真机舞台，右＝预览图 + 基本信息）────────────────
   媒介与字段全程只建一次，靠 form 网格区域重排。用 display:contents 把中间的
   panel-body / upload-flow / form-fields 展开，让最底层媒介与字段成为 form 直接网格项。 */
.upload-form[data-orient="portrait"] {
  display: grid;
  gap: 14px;
  align-items: start;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  grid-template-areas:
    "ziptitle ziptitle"
    "drop drop"
    "err err"
    "cmp1 cmp1"
    "cmp2 cmp2"
    "sec sec"
    "stage shots"
    "basictitle basictitle"
    "title title"
    "summary summary"
    "desc desc"
    "cat res"
    "model orient"
    "tags price"
    "footer footer";
}
.upload-form[data-orient="portrait"] > :nth-child(2),
.upload-form[data-orient="portrait"] > :nth-child(4),
.upload-form[data-orient="portrait"] .upload-flow,
.upload-form[data-orient="portrait"] .form-fields {
  display: contents;
}
.upload-form[data-orient="portrait"] > :nth-child(1) { grid-area: ziptitle; }
.upload-form[data-orient="portrait"] > :nth-child(3) { grid-area: basictitle; }
.upload-form[data-orient="portrait"] > :nth-child(5) { grid-area: footer; }
.upload-form[data-orient="portrait"] > :nth-child(2) > .note-err { grid-area: err; }
.upload-form[data-orient="portrait"] > :nth-child(2) > p:nth-of-type(1) { grid-area: cmp1; }
.upload-form[data-orient="portrait"] > :nth-child(2) > p:nth-of-type(2) { grid-area: cmp2; }
.upload-form[data-orient="portrait"] > :nth-child(2) > .note-warn { grid-area: sec; }
.upload-form[data-orient="portrait"] .pkg-stage { margin-bottom: 0; align-self: stretch; }
/* 竖屏窗口放大：舞台按画布比例长到接近满屏高（横屏维持矮宽档） */
.upload-form[data-orient="portrait"] .pkg-stage .thm-viewport {
  --fit-h: min(92vh, 900px);
  padding: 18px;
}
/* 预览图列的封面栏收到 420px，跟着舞台一起长高。
   上一版把格子拉到列宽 78%，图本身仍是自适配宽，多出来的一段是 .thumb 的深色底
   —— 列越宽黑底越宽，看着像图传坏了。窄屏（≤760px）走单栏堆叠，整套只在宽屏生效，
   免得在移动端口径里再抄一份会跟着漂移的复位值。 */
@media (min-width: 761px) {
  .upload-form[data-orient="portrait"] .uf-shots {
    align-self: start;
    display: flex;
    flex-direction: column;
    max-width: 420px;
  }
  /* 两列各自的说明行等高，格子再留 12px 顶距就会比舞台面板低一截 —— 竖屏里抹掉，顶边对齐 */
  .upload-form[data-orient="portrait"] .uf-shots .thumb-grid { margin-top: 0; }
  /* 封面按舞台面板（设备 + 18px 内边距 + 描边）的高度收，不是按 --fit-h：
     --fit-h 算的是设备「屏幕」的高，面板比它高出那一圈机身与内边距，照抄会让封面探出面板底。 */
  .upload-form[data-orient="portrait"] .uf-shots .thumb img { max-height: calc(min(92vh, 900px) - 40px); }
}
/* 竖屏宽屏（≥1200px）：预览图列右侧实测空 436.7px（1600 视口），把上传框连同两条说明整栏挪进去。
   闸门开在 1200 而不是 761——1000 视口那段空白只有 101px，并排会把上传框挤成一列竖排的字。
   右栏必须是「一个盒子」：拆成三条网格行，封面会把它所在的行拉到 860px，说明行又被顶回底部。 */
@media (min-width: 1200px) {
  .upload-form[data-orient="portrait"] .uf-shots {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    grid-template-areas:
      "cap  cap"
      "shot side";
    gap: 10px 18px;
    max-width: none;
  }
  .upload-form[data-orient="portrait"] .uf-shots > .form-cap { grid-area: cap; margin-bottom: 0; }
  /* 封面被 max-height 收成 323.8px 宽，贴在 420px 左栏的左缘，右边空 96.2px。
     这一档里 .thumb-grid 已被关进定宽栏、拖放框在另一栏，全局那条「不许 center」的顾虑
     （居中会让格子相对下方拖放框缩进 411.6px）不成立，所以只在 ≥1200 开 justify-items: center，
     封面右移 48.1px 与栏左右对称；≤1100 堆叠档仍吃全局的 start。 */
  .upload-form[data-orient="portrait"] .uf-shots > .thumb-grid { grid-area: shot; justify-items: center; }
  /* 右栏要和封面「以预览图为标准」上下对齐：这一行的高度是封面顶起来的 861.3px，
     grid 默认 align-items: stretch 会把右栏拉成同样高的空盒子，内容贴顶 ⇒ 看着像漏在原位。
     align-self: center 让盒子收回自身内容高度并在行里居中，中线正好压在封面中线上。
     垂直方向只给右栏用 align-self，不给 thumb-grid：拉伸后的格子仍是 420px 满行，
     垂直居中了反而错开 cap 行。（水平方向的 justify-items: center 见上一条，两者不冲突。） */
  .upload-form[data-orient="portrait"] .uf-shots > .uf-shots-side { grid-area: side; margin-top: 0; align-self: center; }
}

/* 选填参数：竖屏维持既有的上下堆叠（需求 5），只有横屏才横排（需求 4）。
   横排把型号/方向/分类/分辨率并成一行、长文本两列并排，整块矮一半。
   两套模板都必须逐名定义：名字缺失时 grid-area 会退化成不存在的网格线，
   Chrome 会把九个格子叠到同一列同一行——版面直接塌掉。 */
.form-fields {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "summary" "desc" "cat" "res" "model" "orient" "tags" "price";
}
.upload-form[data-orient="landscape"] .form-fields {
  gap: 14px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "title title title title" "cat res model orient" "summary summary desc desc" "tags tags price price";
}
.form-fields > .uf { min-width: 0; }
.uf-title { grid-area: title; }
.uf-summary { grid-area: summary; }
.uf-desc { grid-area: desc; }
.uf-cat { grid-area: cat; }
.uf-res { grid-area: res; }
.uf-model { grid-area: model; }
.uf-orient { grid-area: orient; }
.uf-tags { grid-area: tags; }
.uf-price { grid-area: price; }

.form-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text-dim); font-weight: 600; }

/* 封面来源提示：常驻显眼，用自动标记同一套强调色，避免再引入第二种提示体系 */
.shots-note {
  display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; padding: 8px 10px;
  border-radius: var(--r-sm); border: 1px solid rgba(94, 224, 255, .3); border-left: 3px solid var(--accent-2);
  background: rgba(94, 224, 255, .08); color: var(--text-dim); font-size: 12.5px; line-height: 1.5;
}
.shots-note svg { flex: none; margin-top: 2px; color: var(--accent-2); }
/* 历史多图收敛提示：沿用同一条提示带的外形，只换警示色，不另起第二套提示体系 */
.shots-note-warn { border-color: rgba(255, 180, 84, .3); border-left-color: var(--warn); background: rgba(255, 180, 84, .07); }
.shots-note-warn svg { color: var(--warn); }

/* 自动识别来源标记：让投稿人一眼看出哪格是系统猜的、可以直接改 */
.auto-flag {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-left: 6px;
  border-radius: 5px; font-size: 10.5px; font-weight: 600; white-space: nowrap; vertical-align: 2px;
  background: rgba(94, 224, 255, .13); border: 1px solid rgba(94, 224, 255, .32); color: var(--accent-2);
}
.thumb-flag { position: absolute; left: 4px; top: 4px; margin: 0; }

@media (max-width: 760px) {
  /* 竖屏窄屏：取消整体两栏，恢复面板与各网格的单栏堆叠 */
  .upload-form[data-orient="portrait"] { display: block; }
  .upload-form[data-orient="portrait"] > :nth-child(2),
  .upload-form[data-orient="portrait"] > :nth-child(4) { display: block; }

  .upload-flow, .upload-form[data-orient="portrait"] .upload-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "drop" "stage" "shots";
  }
  .form-fields, .upload-form[data-orient="portrait"] .form-fields,
  .upload-form[data-orient="landscape"] .form-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "summary" "desc" "cat" "res" "model" "orient" "tags" "price";
  }
}

/* 动态预览与效果图两条 Tab：沿用 tag 的观感，不新造按钮体系 */
.shot-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-tabs button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-dim);
  font-size: 12.5px; cursor: pointer; transition: color .15s, border-color .15s;
}
.shot-tabs button[aria-current="true"] { color: var(--accent-2); border-color: var(--accent); background: rgba(61, 155, 255, .1); }

/* 放大舞台：与 lightbox 同层，尺寸由 JS 按画布宽高比写入 inline width */
.thm-zoom {
  position: fixed; inset: 0; z-index: 88; background: rgba(3, 5, 9, .95);
  display: grid; place-items: center; padding: 32px;
}
.thm-zoom-x { position: absolute; top: 16px; right: 18px; }

/* ?embed=1 纯舞台：给审核端 iframe 用，去掉站点留白与展示台底板（iframe 自己就是取景框） */
/* iframe 取景框高度固定，画面按自身比例定尺：竖向居中，超宽屏不会顶在上面留一片空黑 */
.thm-embed { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 8px; min-height: calc(100vh - 16px); }
.thm-embed .thm-viewport { padding: 0; border: 0; background: none; }
body.thm-embed-page { background: #04070c; }
body.thm-embed-page main { padding-bottom: 0; }

/* 投稿合规确认弹窗（版本 1）与上传框下方常驻提示（版本 2） */
.cmp-body { display: grid; gap: 14px; }
.cmp-lead { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table th { width: 8em; color: var(--text); font-weight: 650; white-space: nowrap; }
.cmp-table td { color: var(--muted); line-height: 1.6; }
.cmp-table tr:first-child th, .cmp-table tr:first-child td { border-top: 1px solid var(--line); }
.cmp-h { margin: 2px 0 0; font-size: 13px; color: var(--text); }
.cmp-list { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.cmp-list li + li { margin-top: 3px; }
.cmp-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel-2); cursor: pointer; }
.cmp-agree input { margin: 2px 0 0; flex: none; }
.cmp-agree span { display: grid; gap: 3px; font-size: 13.5px; }
.cmp-agree small { color: var(--muted); font-size: 12px; }
.cmp-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.cmp-note svg { flex: none; margin-top: 3px; }
.cmp-note a { color: var(--accent); }

/* ── 会员审核台 ─────────────────────────────────────
   队列页沿用站点后台同一张 .table，不另造一套列表体系；
   核验整页（/review/:id）内部只解决一件事：展示台在上、信息在中、留痕在下、操作条收尾，
   四段的顺序就是审核员的操作顺序（看画面 → 改文字 → 看参数 → 记结论）。 */
.rv-search { margin-left: auto; width: min(268px, 100%); }
.rv-search input { height: 34px; font-size: 13px; }
/* 队列里的作者列：头像、昵称、审核员徽章一行排，昵称可截断但徽章绝不缩没。 */
.rv-author { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 210px; }
.rv-author .truncate { min-width: 0; }

.page-title svg { vertical-align: -3px; color: var(--accent-2); }

/* 卡片作者行要能容下身份标：名字是可截断的（min-width:0 才真的截），徽章不能缩——
   缩了会裁成一块看不懂的金色方块；两者都挤不下时换行，卡片同排等高由网格负责。 */
.theme-card-meta { flex-wrap: wrap; }
.theme-card-meta .truncate { min-width: 0; }
.theme-card-meta .badge { flex: none; }
/* 详情页作者卡的名字是块级加粗，徽章跟在其后按行内对齐贴上去。 */
.author-card .who .badge { margin-left: 7px; vertical-align: 2px; }

.rv { display: grid; gap: 18px; }
/* 整页里展示台放到 46vh/420px：不再受弹窗那套 40vh 压制，但也不吃前台默认的 58vh ——
   超宽条（32:9）按 58vh 定高仍会把参数区推出首屏，核验要「画面和参数同屏」。 */
.rv-stage .thm-viewport { --fit-h: min(46vh, 420px); padding: 14px; }
.rv-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.rv-covers img { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }

.rv-info { display: grid; gap: 13px; min-width: 0; }
.rv-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; margin: 0; }
.rv-sum { margin: 0; }
.rv-desc { display: grid; gap: 8px; min-width: 0; }

/* 就地编辑（Task 6）：顶栏一颗按钮 + 可选的一句作废提示；表单宿主接管只读清单的位置。
   --warn 已在 :18 定义（#ffb454），这里不造新 token，也不给它写死色值兜底。 */
.rv-edit-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rv-edit-changed { font-size: 12.5px; color: var(--warn); line-height: 1.5; }
/* 顶栏这颗是本页唯一没换成填充变体的幽灵按钮：真浏览器实测底板与面板 1.00:1、描边 1.23:1，
   等于整颗没有形状（文字本身 10.46:1 是够的，看不清的是「这里有个可点的东西」）。
   这里补一块可辨认的蓝底板 + 亮边 + 加粗；四闸各有 primary/success/danger，表单里那颗取消仍是幽灵态，都不受这条影响。
   两个色值取的是 --accent / --accent-2 的半透明档，不造新 token。 */
.rv-edit-bar .btn-ghost {
  background: rgba(61, 155, 255, .28); border-color: rgba(94, 224, 255, .55);
  color: var(--accent-2); font-weight: 700;
}
.rv-edit-bar .btn-ghost:hover:not(:disabled) { background: rgba(61, 155, 255, .38); color: var(--accent-2); }
/* 禁用态（已上架的行、在飞的写请求、已在编辑态）：全局 .btn:disabled 的 opacity .5 会把新底板与文字
   一起压暗，实测字/底板只剩 2.51:1 —— 比改之前更难读。这里关掉整块透明度，改用「弱一档的配色」表达禁用。 */
.rv-edit-bar .btn-ghost:disabled {
  opacity: 1; background: rgba(61, 155, 255, .12); border-color: rgba(94, 224, 255, .28); color: var(--text-dim);
}
.rv-edit { display: grid; gap: 12px; }
/* 表单下方的说明文字与两颗按钮同排：.hint 的既有配色只写在 .field 里（:368），
   这里不给它补一行的话，这段提示会掉成默认正文大小，把按钮挤成第二行。 */
.rv-edit .btn-row { align-items: center; }
.rv-edit .btn-row .hint { flex: 1 1 240px; min-width: 0; margin-right: auto; font-size: 12px;
  color: var(--muted); line-height: 1.5; }

/* 留痕区：这段是「谁在什么时候确认的」，读的是证据不是正文，所以给底板与左边线区分层级。 */
.rv-trail { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent-2); border-radius: var(--r-md); background: var(--panel-2); }
.rv-trail-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.rv-uid { font-size: 12px; color: var(--muted); }
.rv-note-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-dim); word-break: break-word; }

/* 操作条：核验四闸从弹窗 footer 搬到整页尾部（面板之下），顺序仍是驳回→取包→确认→放行。
   不做 sticky bottom：条子本来就在正文之后，顺着读到底就是按按钮的手位；钉住反而会和
   右下角的返回顶部圆钮抢同一块屏幕（见 CHG-20261026-QD-002/006）。
   闸门提示靠左：它解释的是右边那颗按钮为什么点不动，离得越近越不用读两遍。 */
.rv-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rv-bar .rv-gate { margin-right: auto; font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 46ch; }

/* ══ 3D 打印件（波 5）：产品详情页版块 + 详情弹窗 + WebGL 查看器 ══ */
/* 十条 part-* 与七条 part-viewer-* 是 parts-panel.mjs / part-view.mjs 的类名契约，
   只许改样式、不许改名 —— Task 16/17 复用同一套。
   与既有类同权重的覆盖一律补一级前缀提权（同 :191 那条纪律），不靠源码顺序压制。 */
.grid.part-grid { --part-h: 148px; }
.part-section { border-top: 1px solid var(--line); }
.part-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.part-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.part-note .btn { margin-left: 6px; }
.part-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.part-card:hover { transform: translateY(-4px); border-color: rgba(94, 224, 255, .38); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
/* 卡片整张是 button，里面的分节一律 span + display 改写：div 塞进 button 是非法嵌套。 */
.part-card-media {
  display: block; position: relative; height: var(--part-h, 148px); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(61, 155, 255, .10), transparent 58%),
    linear-gradient(180deg, #0a1018, #05070b);
}
.part-card-media svg { position: absolute; inset: 0; margin: auto; color: var(--line-strong); }
.part-card-media img {
  width: 100%; height: 100%; object-fit: contain; opacity: 0;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
}
.part-card-media img.loaded { opacity: 1; }
.part-card:hover .part-card-media img { transform: scale(1.045); }
.part-card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 13px 13px; flex: 1; }
.part-card-title {
  font-size: 14.5px; font-weight: 620; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.part-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.part-card-meta .truncate { flex: 1 1 auto; min-width: 0; }
.part-card-meta .badge, .part-card-meta .dl { flex: none; }
.part-card-meta .dl { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.part-card-lines { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* ── 查看器（Task 14 Step 8 定名，本波首次上样式：名字已钉死，这里只给形状） ── */
.part-viewer {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  height: clamp(260px, 46vh, 430px); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(61, 155, 255, .12), transparent 60%),
              linear-gradient(180deg, #0b111a, #05070b);
}
.part-viewer-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.part-viewer-canvas:active { cursor: grabbing; }
.part-viewer-cover { display: block; width: 100%; height: 100%; object-fit: contain; }
.part-viewer-note {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px 16px;
  font-size: 13px; color: var(--text-dim); text-align: center; pointer-events: none;
}
.part-viewer-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 12, .72));
}
.part-viewer-hint { font-size: 12px; color: var(--muted); }
.part-viewer-reset {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: rgba(19, 26, 37, .82); color: var(--text-dim); font-size: 12px; cursor: pointer;
}
.part-viewer-reset:hover { color: var(--text); border-color: var(--accent); }
/* 投稿页的预览舞台（本波新增，类名不带 part 前缀，不进那份 17 条双向封顶清单）。
   外层只管排版：画布的可见高度这里收到 320px 上限，投稿表单是一整页长表单，
   套用最上面那条查看器规则那个 430px 会把「提交」那颗按钮顶到首屏之外。 */
.cover-stage { margin-top: 12px; }
.cover-stage .part-viewer { height: clamp(220px, 34vh, 320px); }
.cover-capture-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cover-capture-row .hint { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .grid.part-grid { --part-h: 132px; } .part-card-body { padding: 11px 12px 12px; } }
@media (max-width: 720px) { .part-viewer { height: clamp(220px, 42vh, 340px); } .part-actions { width: 100%; } }

/* High-visibility primary preview actions. */
.thm-bar .thm-action {
  min-height: 34px; padding-inline: 14px;
  background: rgba(61, 155, 255, .24); border-color: rgba(94, 224, 255, .58);
  color: var(--accent-2); font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.thm-bar .thm-action:hover:not(:disabled) { background: rgba(61, 155, 255, .36); color: #c5f5ff; }
.thm-bar .thm-action:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
