/* OpenModel Hub · H5 样式
 * 双主题：默认跟随浅色环境，可在设置中切换。
 */
:root, [data-theme="light"] {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eaf0f8;
  --line: rgba(20, 36, 66, .10);
  --line-2: rgba(20, 36, 66, .18);
  --text: #16233d;
  --text-2: #5b6b85;
  --text-3: #93a2b8;
  --brand: #2563eb;
  --brand-soft: #e8f0ff;
  --brand-2: #0f766e;
  --ok: #0f9d6e;
  --ok-soft: #e6f6f0;
  --warn: #c2740a;
  --warn-deep: #a34e00;
  --warn-soft: #fdf2e2;
  --danger: #d14343;
  --danger-soft: #fdecec;
  --shadow: 0 18px 48px rgba(20, 36, 66, .12);
  --shadow-sm: 0 4px 14px rgba(20, 36, 66, .06);
}
[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #141d30;
  --surface-2: #1a2439;
  --surface-3: #22304a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eaf0fb;
  --text-2: #97a7c0;
  --text-3: #6c7d99;
  --brand: #6a9bff;
  --brand-soft: #1c2c4c;
  --brand-2: #34d3b5;
  --ok: #34d399;
  --ok-soft: #12332b;
  --warn: #fbbf24;
  --warn-deep: #fbbf24;
  --warn-soft: #3a2c12;
  --danger: #f87171;
  --danger-soft: #3a1c1c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #e8eef7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body { background: #070c16; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 舞台 ---------- */
.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 56px; padding: 24px;
}
.stage-intro { display: none; width: 320px; flex-shrink: 0; }
@media (min-width: 1040px) { .stage-intro { display: block; } }
.brand-mark { width: 46px; height: 46px; color: var(--brand); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-kicker { font-size: 11px; letter-spacing: .16em; color: var(--text-3); margin-top: 26px; }
.stage-intro h1 { font-size: 34px; font-weight: 500; margin: 10px 0 0; letter-spacing: -.02em; }
.stage-intro h1 em { font-style: normal; color: var(--brand); }
.brand-desc { font-size: 13px; line-height: 1.8; color: var(--text-2); margin: 16px 0 26px; }
.brand-feats { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.brand-feats li { font-size: 12.5px; color: var(--text-2); padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.brand-feats span { color: var(--brand); font-size: 11px; margin-right: 10px; font-variant-numeric: tabular-nums; }
.brand-foot { margin-top: 26px; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.brand-foot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; }
.brand-foot span { margin: 0 5px; }

/* ---------- 设备 ---------- */
.device {
  width: 100%; max-width: 420px; height: min(860px, calc(100vh - 48px)); min-height: 600px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 34px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .stage { padding: 0; }
  .device { max-width: none; height: 100vh; min-height: 0; border: none; border-radius: 0; box-shadow: none; }
}
.statusbar {
  height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 12px; font-weight: 500; color: var(--text); background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { height: 12px; width: auto; }
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; flex-shrink: 0; padding: 0 18px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar-t { flex: 1; min-width: 0; }
.topbar-t h2 { font-size: 17px; font-weight: 500; margin: 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-t p { font-size: 11px; color: var(--text-3); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 顶栏购买动态轮播 */
.ticker { display: flex; align-items: center; gap: 7px; height: 17px; margin-top: 3px; overflow: hidden; }
.tk-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(15, 157, 110, .45); animation: tkPulse 1.8s ease-out infinite;
}
.tk-txt { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tkIn .45s ease both; }
.tk-txt em { font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.tk-txt .tk-tier { font-weight: 600; color: var(--brand); margin-left: 1px; }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tkPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 110, .45); }
  70% { box-shadow: 0 0 0 5px rgba(15, 157, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 110, 0); }
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); position: relative; flex-shrink: 0;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }
.dot-red { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); border: 1px solid var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 500; display: grid; place-items: center; flex-shrink: 0; }

.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 16px 26px; scrollbar-width: thin; }
.view::-webkit-scrollbar { width: 4px; }
.view::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.tabbar {
  height: 62px; flex-shrink: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); position: relative; }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 10px; }
.tab.on { color: var(--brand); }
.tab.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 0 0 3px 3px; background: var(--brand); }

/* ---------- 通用组件 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 10px; }
.sec h3 { font-size: 14px; font-weight: 500; margin: 0; }
.sec small { font-size: 11px; color: var(--text-3); }
.sec-link { font-size: 11px; color: var(--brand); }
.muted { color: var(--text-2); }
.tiny { font-size: 11px; color: var(--text-3); }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 13px; border-radius: 999px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; background: var(--surface-3); color: var(--text-2); }
.tag.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.badge-dot.on { background: var(--ok); }
.badge-dot.degraded { background: var(--warn); }
.badge-dot.off { background: var(--text-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 15px; border-radius: 11px; font-size: 12.5px; font-weight: 500;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
}
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn:active { opacity: .82; }
.btn svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: 12.5px; line-height: 1.8; }

/* ---------- 指标 ---------- */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.hero-ring { width: 96px; height: 96px; flex-shrink: 0; }
.hero-ring svg { width: 100%; height: 100%; }
.hero-info h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.hero-info p { font-size: 11.5px; color: var(--text-2); line-height: 1.7; margin: 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-sm); }
.metric .lbl { font-size: 11px; color: var(--text-3); }
.metric .val { font-size: 20px; font-weight: 500; margin: 6px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric .delta { font-size: 10.5px; color: var(--ok); }
.metric .delta.down { color: var(--danger); }
.metric svg.spark { width: 100%; height: 24px; margin-top: 4px; }

/* ---------- 图表 ---------- */
.chart-box { width: 100%; }
.chart-box svg { width: 100%; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-2); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.bar-row { display: flex; align-items: center; gap: 9px; margin: 9px 0; font-size: 11.5px; }
.bar-row .nm { width: 74px; flex-shrink: 0; color: var(--text-2); }
.bar-track { flex: 1; height: 7px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--brand); }
.bar-row .vv { width: 52px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- 领域卡 ---------- */
.domain-head { display: flex; align-items: flex-start; gap: 10px; }
.domain-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.domain-ico svg { width: 18px; height: 18px; }
.domain-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.domain-en { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9.5px; color: var(--text-3); margin-top: 3px; letter-spacing: .03em; }
.domain-sum { font-size: 12.5px; line-height: 1.6; color: var(--text); margin: 10px 0 6px; }
.domain-scn { font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.domain-note { font-size: 11px; line-height: 1.6; color: var(--warn); background: var(--warn-soft); padding: 7px 9px; border-radius: 8px; margin-top: 8px; }
.domain-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.domain-foot .cnt { font-size: 11px; color: var(--text-2); }
.domain-foot .cnt b { color: var(--text); font-weight: 500; font-size: 13px; }
.domain-models { font-size: 11px; color: var(--text-3); margin-top: 8px; line-height: 1.6; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.highlight { font-size: 11.5px; line-height: 1.65; color: var(--brand); background: var(--brand-soft); padding: 8px 10px; border-radius: 9px; margin-top: 9px; }
.group-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; background: var(--surface-3); color: var(--text-2); margin: 0 5px 5px 0; }

/* ---------- 模型卡 ---------- */
.model-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.model-title { display: flex; align-items: center; gap: 8px; }
.model-title h4 { font-size: 13.5px; font-weight: 500; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-cp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; color: var(--text-3); margin: 5px 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.model-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.model-metrics div { text-align: center; }
.model-metrics .k { font-size: 10px; color: var(--text-3); }
.model-metrics .v { font-size: 12px; font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-bottom: 11px; }
.searchbar svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.searchbar input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 12.5px; min-width: 0; }
.searchbar input::placeholder { color: var(--text-3); }
.filter-row { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { font-size: 11px; color: var(--text-3); flex-shrink: 0; margin-right: 2px; }
.fab { position: absolute; right: 18px; bottom: 78px; width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); z-index: 5; }
.fab svg { width: 22px; height: 22px; }
.fab:active { transform: scale(.94); }

/* ---------- 路由 ---------- */
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.chain { display: flex; align-items: center; gap: 5px; margin: 12px 0 10px; flex-wrap: wrap; }
.chain-node { flex: 1; min-width: 78px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 7px; text-align: center; }
.chain-node.primary { border-color: var(--brand); background: var(--brand-soft); }
.chain-node .r { font-size: 9.5px; color: var(--text-3); }
.chain-node .n { font-size: 11px; font-weight: 500; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain-arrow { color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(16px); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row .t { font-size: 12.5px; }
.set-row .d { font-size: 10.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

/* ---------- 日志 ---------- */
.log-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: none; }
.log-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.log-ic svg { width: 14px; height: 14px; }
.log-main { flex: 1; min-width: 0; }
.log-main .n { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-main .s { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.log-r { text-align: right; flex-shrink: 0; }
.log-r .ms { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.log-r .st { font-size: 10px; margin-top: 3px; }

/* ---------- 抽屉 / 弹层 ---------- */
.overlay { position: absolute; inset: 0; background: rgba(9, 18, 36, .48); opacity: 0; pointer-events: none; transition: opacity .26s; z-index: 20; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet-root { position: absolute; inset: 0; pointer-events: none; z-index: 21; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  transform: translateY(102%); transition: transform .3s cubic-bezier(.22,.8,.3,1); pointer-events: auto;
  box-shadow: 0 -12px 40px rgba(0,0,0,.14);
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 10px auto 4px; flex-shrink: 0; }
.sheet-head { padding: 8px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; }
.sheet-head h3 { font-size: 16px; font-weight: 500; margin: 0; flex: 1; }
.sheet-head p { font-size: 11px; color: var(--text-3); margin: 4px 0 0; }
.sheet-body { overflow-y: auto; padding: 16px 18px 26px; scrollbar-width: thin; }
.sheet-body::-webkit-scrollbar { width: 4px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-3); flex-shrink: 0; }
.kv .v { text-align: right; word-break: break-all; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-size: 12.5px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 76px; }
.field-hint { font-size: 10.5px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.console-out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-all; min-height: 70px; }
.range { width: 100%; accent-color: var(--brand); }

/* ---------- Toast ---------- */
.toast-root { position: absolute; left: 0; right: 0; bottom: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 30; }
.toast { background: rgba(22, 35, 61, .94); color: #fff; font-size: 12px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: toastIn .24s ease; max-width: 84%; text-align: center; }
[data-theme="dark"] .toast { background: rgba(230, 238, 252, .95); color: #16233d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn .26s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 许可合规 ---------- */
.grade-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.grade-stat { border-radius: 10px; padding: 10px 8px; text-align: center; border: 1px solid var(--line); background: var(--surface-2); }
.grade-stat .gs-n { font-size: 20px; font-weight: 500; line-height: 1.2; }
.grade-stat .gs-l { font-size: 10.5px; margin-top: 3px; color: var(--text-3); }
.grade-stat.ok { background: var(--ok-soft); border-color: transparent; }
.grade-stat.ok .gs-n { color: var(--ok); }
.grade-stat.warn { background: var(--warn-soft); border-color: transparent; }
.grade-stat.warn .gs-n { color: var(--warn); }
.grade-stat.danger { background: var(--danger-soft); border-color: transparent; }
.grade-stat.danger .gs-n { color: var(--danger); }

.route-warn { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.6; color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 7px 9px; margin: 9px 0; }
.route-warn .ic { flex-shrink: 0; margin-top: 1px; }

.policy-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.policy-row:last-child { border-bottom: none; }
.policy-row > div { min-width: 0; }
.policy-no { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--brand-soft); color: var(--brand); }
.policy-no.warn { background: var(--warn-soft); color: var(--warn); }
.policy-danger { border-color: var(--danger); }

/* ---------- 登录门 ---------- */
.gate { position: absolute; inset: 34px 0 0 0; z-index: 40; background: var(--bg); display: none; overflow-y: auto; }
.gate-inner { min-height: 100%; padding: 30px 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.gate-brand { text-align: center; margin-bottom: 22px; }
.gate-logo { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.gate-kicker { font-size: 10px; letter-spacing: .18em; color: var(--text-3); }
.gate-brand h2 { font-size: 21px; font-weight: 500; margin: 9px 0 8px; letter-spacing: -.01em; }
.gate-brand p { font-size: 12px; line-height: 1.75; color: var(--text-2); margin: 0; padding: 0 8px; }
.gate-form { padding: 18px 16px; }



.agree-row { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.6; color: var(--text-2); margin: 4px 0 14px; }
.agree-row input { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand); }

/* ---------- 许可条款确认 ---------- */
.lic-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.lic-row:first-child { padding-top: 1px; }
.lic-row:last-child { border-bottom: 0; padding-bottom: 1px; }
.lic-row b { font-size: 12.5px; font-weight: 500; }
.lic-row .tag { flex-shrink: 0; margin-left: 8px; }
.lic-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 2px 13px; }
.lic-sec { padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.lic-sec:last-child { border-bottom: 0; }
.lic-sec b { font-size: 12px; font-weight: 500; }
.btn.is-off { opacity: .45; }
.gate-skip { display: block; width: 100%; margin-top: 12px; font-size: 11.5px; color: var(--text-3); text-align: center; padding: 6px; }
.gate-skip .ic { width: 12px; height: 12px; vertical-align: -1px; }
.gate-foot { margin-top: 22px; text-align: center; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.gate-foot .ic { vertical-align: -2px; margin-right: 4px; }

/* ---------- 会员条 / 徽标 ---------- */
.member-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.member-pill.none { background: var(--brand); color: #fff; }
.vip-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border-radius: 16px; margin-bottom: 12px; background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .22); }
.vip-banner.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.vip-banner .vb-t { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.vip-banner .vb-d { font-size: 10.5px; opacity: .86; margin-top: 5px; line-height: 1.6; }
.vb-btn { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--brand); font-size: 11.5px; font-weight: 500; }
.vb-btn:active { opacity: .8; }

/* ---------- 小指标 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.mini-stat .ms-n { font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-stat .ms-l { font-size: 10px; color: var(--text-3); margin-top: 4px; line-height: 1.3; }
.field-note { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.65; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-top: 12px; }
.field-note .ic { flex-shrink: 0; margin-top: 1px; }
.field-note.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

/* ---------- 工具卡 ---------- */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 11px; box-shadow: var(--shadow-sm); }
.tool-head { display: flex; align-items: flex-start; gap: 10px; }
.tool-ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
}
/* 头标为实拍场景图（icons/tN.jpg）；渐变底保留，仅在图片未加载时露出作兜底 */
.tool-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 每个工具一个专属色：底为渐变，图形为白色双色 */
.ti-t1  { background: linear-gradient(145deg, #8B5CF6, #6D28D9); }  /* 短视频 · 紫 */
.ti-t2  { background: linear-gradient(145deg, #34D399, #059669); }  /* 商城 · 翠绿 */
.ti-t3  { background: linear-gradient(145deg, #F472B6, #DB2777); }  /* 漫剧 · 玫粉 */
.ti-t4  { background: linear-gradient(145deg, #60A5FA, #2563EB); }  /* 企业管理 · 蓝 */
.ti-t5  { background: linear-gradient(145deg, #818CF8, #4338CA); }  /* ERP · 靛蓝 */
.ti-t6  { background: linear-gradient(145deg, #FB923C, #EA580C); }  /* 唱歌 · 橙 */
.ti-t7  { background: linear-gradient(145deg, #22D3EE, #0891B2); }  /* 数字人 · 青 */
.ti-t8  { background: linear-gradient(145deg, #E879F9, #A21CAF); }  /* MV · 品红 */
.ti-t9  { background: linear-gradient(145deg, #FBBF24, #D97706); }  /* 文案 · 琥珀 */
.ti-t10 { background: linear-gradient(145deg, #F87171, #DC2626); }  /* 绘画 · 朱红 */
.ti-t11 { background: linear-gradient(145deg, #94A3B8, #475569); }  /* 素材克隆 · 石板灰（兜底色，正常被实拍图覆盖） */
.tool-ico .ic { width: 29px; height: 29px; }
.tool-name { flex: 1; min-width: 0; }
.tool-name h4 { font-size: 14px; font-weight: 500; margin: 0; line-height: 1.35; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tool-desc { font-size: 12px; line-height: 1.7; color: var(--text-2); margin: 10px 0 9px; }
.tool-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-3); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tool-meta .ic { width: 12px; height: 12px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tool-btns { display: flex; gap: 7px; margin-top: 11px; }
.tool-btns .btn { flex: 1; padding: 9px 12px; font-size: 12px; }
.tag.hot { display: inline-flex; align-items: center; gap: 3px; background: var(--danger-soft); color: var(--danger); }
.tag.hot .ic { width: 10px; height: 10px; }

/* ---------- 推荐 ---------- */
.quick-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chip { padding: 6px 11px; border-radius: 999px; font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.quick-chip:active { background: var(--brand-soft); color: var(--brand); }
.rec-result { border-color: var(--brand); }
.step-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; }
.step-row.locked { opacity: .82; }
.step-no { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; font-size: 11px; background: var(--brand-soft); color: var(--brand); }
.step-row.locked .step-no { background: var(--warn-soft); color: var(--warn); }
.step-main { flex: 1; min-width: 0; }
.step-main b { font-size: 12.5px; font-weight: 500; }
.step-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.link-btn { font-size: 10.5px; color: var(--brand); flex-shrink: 0; padding: 2px 0; }

/* ---------- 模型库列表 ---------- */
.cat-card.locked { cursor: default; }
.cat-card.locked .cat-ico { filter: grayscale(.55); opacity: .75; }
.model-row { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.model-row b { font-size: 12.5px; font-weight: 500; }
.model-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }

/* 七大类：竖列卡片 + 功能简介 */
.cat-card {
  display: block; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px;
  margin-bottom: 9px; box-shadow: var(--shadow-sm);
}
.cat-card:active { background: var(--surface-2); }
.cat-top { display: flex; align-items: center; gap: 10px; }
.cat-ico { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; }
.cat-main { flex: 1; min-width: 0; }
.cat-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.cat-meta { font-size: 10.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.cat-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--text-3); }
.cat-right .ic { width: 14px; height: 14px; color: var(--text-3); }
.cat-right .tag .ic { color: inherit; }
.cat-desc { font-size: 11.5px; line-height: 1.7; color: var(--text-2); margin: 9px 0 0; }
.cat-foot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.cat-sc { font-size: 10px; line-height: 1.4; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line); }
.cat-hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.cat-note { font-size: 10.5px; line-height: 1.6; color: var(--text-3); margin-top: 9px; display: flex; gap: 5px; align-items: flex-start; }
.cat-note .ic { flex-shrink: 0; margin-top: 2px; width: 11px; height: 11px; }
.back-bar { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-2); padding: 4px 6px 4px 0; margin-bottom: 9px; }
.back-bar .ic { width: 13px; height: 13px; transform: rotate(180deg); }

/* ---------- 我的 ---------- */
.mine-vip { border-color: var(--brand); }
.empty-vip { border-style: dashed; }
.vip-crown { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rec-item:last-child { border-bottom: none; }
.rec-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.rec-main { flex: 1; min-width: 0; }
.rec-main .n { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-main .s { font-size: 10.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }

/* ---------- 会员充值页 ---------- */
.pay-tier { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; }
.pay-tier.sel { border-color: var(--brand); border-width: 2px; padding: 12px 13px; background: var(--brand-soft); }
.pt-name { font-size: 13.5px; font-weight: 500; }
.pt-price { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.pt-price small { font-size: 10.5px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.pt-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; margin-top: 9px; }
.pt-perks span { font-size: 10.5px; color: var(--text-2); line-height: 1.5; display: flex; align-items: flex-start; gap: 4px; }
.pt-perks .ic { width: 11px; height: 11px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.pt-radio { position: absolute; bottom: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); display: none; }
.pay-tier.sel .pt-radio { display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-radio .ic { width: 10px; height: 10px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; }
.pay-method.sel { border-color: var(--brand); background: var(--brand-soft); }
.pm-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; }
.pay-method.sel .pm-dot { border: 4px solid var(--brand); background: var(--surface); }
.renew-row { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.65; color: var(--text-2); padding: 4px 0; }
.renew-row .ic { flex-shrink: 0; margin-top: 2px; color: var(--text-3); }

/* ---------- 部署抽屉 ---------- */
.deploy-model { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.deploy-model:last-child { border-bottom: none; }
.deploy-model b { font-size: 12px; font-weight: 500; }
.deploy-model .ic { color: var(--brand); }
.deploy-model.lock { opacity: .78; }
.deploy-model.lock .role-no { background: var(--warn-soft); color: var(--warn); }
.role-no { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; font-size: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* ---------- 登录后产品介绍（动态图文引导） ---------- */
.intro {
  position: absolute; inset: 0; z-index: 32; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden; touch-action: pan-y;
  animation: introIn .4s cubic-bezier(.22, .8, .3, 1);
}
@keyframes introIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.intro-skip {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  font-size: 12px; color: var(--text-2); padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.intro-stage { flex: 1; overflow: hidden; }
.intro-track { display: flex; width: 400%; height: 100%; transition: transform .45s cubic-bezier(.22, .8, .3, 1); }
.intro-slide {
  width: 25%; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 30px 30px 18px;
}
.intro-slide h2 { font-size: 21px; font-weight: 600; margin: 20px 0 0; letter-spacing: -.01em; }
.intro-slide p { font-size: 13px; line-height: 1.85; color: var(--text-2); margin: 10px 0 0; max-width: 300px; }
.intro-cta { margin-top: 24px; padding: 11px 34px; font-size: 13.5px; }
.intro-dots { display: flex; justify-content: center; gap: 7px; padding: 14px 0 calc(20px + env(safe-area-inset-bottom)); }
.intro-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--line-2); cursor: pointer; overflow: hidden; position: relative; transition: width .3s; }
.intro-dots i.on { width: 26px; background: var(--surface-3); }
.intro-dots i.on::after { content: ''; display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--brand); transform-origin: left; animation: introDot 3.6s linear infinite; }
@keyframes introDot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.iscene { width: 236px; height: 172px; position: relative; display: grid; place-items: center; }

/* 场景 1：一键部署（下载进度 → 就绪） */
.is1-card {
  width: 216px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 15px 13px; box-shadow: var(--shadow-sm); animation: introFloat 3.6s ease-in-out infinite;
}
.is1-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.is1-ico { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(145deg, var(--brand-soft), var(--surface-3)); color: var(--brand); display: grid; place-items: center; }
.is1-stage { position: relative; height: 84px; margin: 11px 0 8px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.is1-prog { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 14px; animation: introDl 3.6s linear infinite; }
.is1-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.is1-frame { position: absolute; inset: 0; opacity: 0; animation: introFrame 3.6s ease infinite; }
.is1-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is1-frame span {
  position: absolute; left: 8px; bottom: 7px; font-size: 10px; color: #fff; padding: 2px 8px;
  border-radius: 999px; background: rgba(10, 14, 22, .55); backdrop-filter: blur(3px);
}
.is1-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #6a9bff); animation: introBar 3.6s ease-in-out infinite; }
.is1-status { font-size: 10.5px; color: var(--text-3); position: relative; height: 15px; }
.is1-status span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; }
.is1-dl { animation: introDl 3.6s linear infinite; }
.is1-ok { color: var(--ok); animation: introOk 3.6s ease infinite; }
@keyframes introBar { 0% { width: 5%; } 58% { width: 100%; } 100% { width: 100%; } }
@keyframes introFrame { 0%, 62% { opacity: 0; transform: scale(1.04); } 70%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes introDl { 0%, 60% { opacity: 1; } 70%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes introOk { 0%, 62% { opacity: 0; transform: translateY(4px); } 72%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 场景 2：六大场景封面（3×2 网格）+ 卖点文字在下方 slide 标题区，不再重复 */
.is2 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 250px; }
.is2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; }
.is2-grid figure {
  margin: 0; /* 修复：Chrome 默认给 figure 加 1em 40px 外边距，82px 列宽被压成 2px 竖线 */
  height: 66px; border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  animation: introCap 3.6s ease infinite;
}
.is2-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is2-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; color: #fff; text-align: center;
  padding: 9px 0 3px; background: linear-gradient(transparent, rgba(10, 14, 22, .68));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes introCap { 0%, 6% { opacity: 0; transform: translateY(10px) scale(.92); } 16%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes introBadge { 0%, 40% { opacity: 0; transform: translateY(6px); } 52%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 场景 3：商用许可盖章 */
.is3-shield {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok);
  box-shadow: inset 0 0 0 1px rgba(15, 157, 110, .18);
  animation: introFloat 3.6s ease-in-out infinite;
}
.is3-stamp {
  position: absolute; font-size: 11px; color: var(--text-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; white-space: nowrap;
  animation: introStamp 3.6s ease infinite;
}
.is3-stamp:nth-of-type(1) { top: 22px; right: 6px; }
.is3-stamp:nth-of-type(2) { bottom: 26px; right: 12px; }
.is3-stamp:nth-of-type(3) { bottom: 8px; left: 10px; }
@keyframes introStamp { 0%, 12% { opacity: 0; transform: scale(.6) rotate(-8deg); } 22%, 88% { opacity: 1; transform: scale(1) rotate(0); } 96%, 100% { opacity: 0; } }

/* 场景 4：开始使用 */
.is4-logo {
  width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-soft), var(--surface-3)); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14), 0 10px 26px rgba(37, 99, 235, .16);
  animation: introFloat 3.6s ease-in-out infinite; position: relative; z-index: 1;
}
.is4-ring { position: absolute; width: 74px; height: 74px; border-radius: 24px; border: 1.5px solid var(--brand); opacity: 0; }
.is4-ring.r1 { animation: introRing 3.6s ease-out infinite; }
.is4-ring.r2 { animation: introRing 3.6s ease-out infinite .9s; }
@keyframes introRing { 0% { opacity: .5; transform: scale(1); } 55%, 100% { opacity: 0; transform: scale(1.75); } }

/* ================================================================
   电脑版宽屏布局（≥900px）
   手机端保持原样；宽屏下把「手机模拟框」变成居中桌面应用窗口：
   隐藏假状态条、底部导航改左侧竖排、卡片改双列、弹层改居中对话框。
   ================================================================ */
@media (min-width: 900px) {
  .stage { padding: 24px; gap: 0; }
  .stage-intro { display: none !important; }

  .device {
    width: 100%; max-width: 1280px;
    height: min(900px, calc(100vh - 48px)); min-height: 640px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(16, 32, 64, .16);
  }
  .statusbar { display: none; }
  .gate { inset: 0; }
  .gate-inner { max-width: 460px; margin: 0 auto; padding: 40px 20px; }

  .app { position: relative; }
  .topbar { height: 68px; padding: 0 26px; }
  .topbar-t h2 { font-size: 18px; }
  .view { padding: 22px 26px 40px; margin-left: 200px; }
  .page { max-width: 980px; margin: 0 auto; }
  .page-me, .page-recommend { max-width: 780px; }

  /* 底部标签栏 → 左侧竖排导航 */
  .tabbar {
    position: absolute; left: 0; top: 68px; bottom: 0; width: 200px; height: auto;
    display: flex; flex-direction: column; justify-content: flex-start;
    border-top: 0; border-right: 1px solid var(--line);
    padding: 16px 12px 16px 0; background: var(--surface);
  }
  .tab {
    flex-direction: row; justify-content: flex-start; gap: 12px;
    height: 46px; padding: 0 18px; margin: 0 0 4px 12px; border-radius: 10px;
  }
  .tab svg { width: 19px; height: 19px; }
  .tab span { font-size: 12.5px; }
  .tab:hover { background: var(--surface-2); }
  .tab.on::before {
    top: 11px; bottom: 11px; left: 0; width: 3px; height: auto;
    border-radius: 0 3px 3px 0;
  }

  /* 卡片双列 */
  .tool-grid, .cat-grid, .model-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; align-items: start;
  }
  .tool-grid .tool-card, .cat-grid .cat-card, .model-grid .model-row { margin-bottom: 0; }
  .cat-grid .cat-card { height: 100%; }
  .vip-banner { padding: 16px 20px; }
  .grid3 { gap: 12px; }

  /* 弹层：贴底抽屉 → 居中对话框 */
  .sheet {
    left: 50%; right: auto; bottom: 50%;
    transform: translate(-50%, 82%); opacity: 0;
    width: min(560px, calc(100% - 80px)); max-height: min(86%, 760px);
    border-radius: 18px; border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(10, 20, 40, .28);
    transition: transform .3s cubic-bezier(.22, .8, .3, 1), opacity .26s;
  }
  .sheet.open { transform: translate(-50%, 50%); opacity: 1; }
  .sheet-handle { display: none; }
  .sheet-head { padding: 16px 22px 14px; }
  .sheet-body { padding: 18px 22px 28px; }
  .toast-root { bottom: 26px; }
  .fab { right: 26px; bottom: 26px; }

  /* 介绍页：宽屏下演示图与文字放大 */
  .iscene { transform: scale(1.3); }
  .intro-slide h2 { font-size: 27px; }
  .intro-slide p { font-size: 14.5px; max-width: 460px; }
  .intro-cta { padding: 12px 40px; font-size: 14px; }
}

/* 中等宽度窗口（900–1120px）：内容区不足以并排两列，退回单列 */
@media (min-width: 900px) and (max-width: 1120px) {
  .tool-grid, .cat-grid, .model-grid { grid-template-columns: 1fr; }
  .view { margin-left: 176px; }
  .tabbar { width: 176px; }
}
