/* 仙帝速刷 · 暗夜鎏金 | 本地资源、移动优先 */

/* 01 · 设计变量 */
:root {
  color-scheme: dark;
  --bg: #0B0D10;
  --bg-soft: #12151A;
  --card: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.08);
  --text: #E8EAED;
  --text-dim: #8B93A1;
  --gold: #E7C173;
  --gold-2: #F3DCA6;
  --danger: #FF6B6B;
  --ok: #4ADE80;
  --fg: var(--text);
  --fg-soft: #BCC1CB;
  --muted: var(--text-dim);
  --pri: var(--gold);
  --pri-2: var(--gold-2);
  --bad: var(--danger);
  --warn: var(--gold);
  --ok-soft: rgba(231,193,115,.06);
  --warn-soft: rgba(231,193,115,.06);
  --bad-soft: rgba(255,107,107,.07);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.28);
  --font: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* 02 · 基础与可访问性 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-width: 0; min-height: 100%; background: var(--bg); scroll-behavior: auto; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { appearance: none; -webkit-appearance: none; color: inherit; }
button, a { -webkit-user-select: none; user-select: none; }
a { color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:disabled, .btn:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none; }
.muted { color: var(--text-dim); font-size: 13px; }
.center { text-align: center; }
.block { display: block; width: 100%; }
.mono, .ck-idx, .ck-uid, .cmt-number, .cmt-idx, .message-meta { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ok, .warn { color: var(--gold); }
.bad, .danger { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 20px; height: 20px; flex-basis: 20px; }
.noscript { margin: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--text-dim); background: var(--bg-soft); }

/* 03 · 按钮与输入 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: transform 140ms ease, background 140ms ease, border-color 140ms ease; }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: scale(.97); }
.btn.block { display: flex; }
.btn.primary { color: #201A10; border-color: rgba(243,220,166,.42); background: linear-gradient(110deg, var(--gold), var(--gold-2)); box-shadow: 0 2px 14px rgba(231,193,115,.10); }
.btn.ghost { background: transparent; color: var(--fg-soft); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,107,.25); }
.btn.small, .btn.tiny { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text-dim); cursor: pointer; transition: transform 140ms ease, background 140ms ease; }
.btn-label { min-width: 0; }
.is-busy { cursor: progress; }
.input { display: block; min-width: 0; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--text); outline: none; font-size: 16px; line-height: 1.5; transition: border-color 140ms ease, background 140ms ease; }
.input:focus { border-color: var(--gold); background: #16191F; }
.input::placeholder, .chat-input::placeholder { color: var(--text-dim); opacity: 1; }
textarea.input.ta { resize: vertical; min-height: 112px; max-height: 240px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { color: var(--fg-soft); font-size: 13px; font-weight: 500; }
.inline { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.inline > .field { flex: 1; min-width: 0; }
.inline > .input { flex: 1; width: 0; min-width: 0; }
.inline > .btn { flex: 0 0 auto; align-self: flex-end; white-space: nowrap; }
.captcha { display: block; width: 116px; height: 48px; flex: 0 0 116px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); cursor: pointer; }
.captcha-button { display: block; width: 116px; min-width: 116px; min-height: 48px; align-self: flex-end; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.captcha-button .captcha { display: block; }
.link-line { text-align: center; }
.link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--gold); font-size: 13px; cursor: pointer; }
.tips, .warn-tip { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--text-dim); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.warn-tip { white-space: pre-line; }

/* 04 · 入口与登录 */
.center-box { display: flex; min-height: 100vh; padding: 24px 16px; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: var(--text-dim); }
.spinner { width: 24px; height: 24px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 50%; }
.auth-wrap { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px; width: 100%; min-height: 100vh; min-height: 100dvh; padding: 40px 16px; }
.auth-brand-panel { width: 100%; max-width: 392px; text-align: center; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid rgba(231,193,115,.24); border-radius: 14px; color: var(--gold); background: rgba(231,193,115,.04); }
.brand-eyebrow { margin-bottom: 8px; font: 11px/1.5 var(--mono); color: var(--text-dim); letter-spacing: .18em; text-transform: uppercase; }
.brand { color: var(--gold); font-size: clamp(34px,8vw,44px); line-height: 1.35; font-weight: 600; letter-spacing: .12em; }
.brand-sub { margin-top: 12px; color: var(--fg-soft); font-size: 14px; line-height: 1.8; letter-spacing: .02em; }
.brand-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-dim); font-size: 12px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.auth-card { width: 100%; max-width: 392px; padding: 20px; background: rgba(255,255,255,.025); }
.auth-form-title { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.auth-caption { margin-bottom: 20px; color: var(--text-dim); font-size: 13px; }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tab { flex: 1; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-dim); font-size: 14px; font-weight: 500; cursor: pointer; transition: transform 140ms ease, background 140ms ease; }
.tab.active { border-color: var(--line); background: var(--bg-soft); color: var(--gold); }
.tab:active { transform: scale(.98); }
.auth-body { display: flex; flex-direction: column; gap: 16px; }
.auth-body > .btn.primary { margin-top: 8px; }

/* 05 · 首页与八项功能 */
.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 16px 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 16px; }
.topbar-left { min-width: 0; }
.topbar-title { color: var(--gold); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.topbar-sub { margin-top: 2px; color: var(--text-dim); font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.topbar-right .btn { padding-right: 12px; padding-left: 12px; font-size: 12px; }
.home-heading { margin: 8px 0 16px; }
.home-eyebrow { margin-bottom: 4px; color: var(--text-dim); font: 10px/1.5 var(--mono); letter-spacing: .12em; }
.home-title { color: var(--text); font-size: clamp(22px,5.6vw,28px); line-height: 1.45; font-weight: 600; letter-spacing: .02em; }
.home-intro { margin-top: 4px; color: var(--text-dim); font-size: 12px; }
.section-title { margin: 16px 0 8px; color: var(--text-dim); font-size: 12px; font-weight: 500; line-height: 20px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.fcard { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); font-family: var(--font); text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; }
.fcard:active { transform: scale(.97); border-color: rgba(231,193,115,.4); background: rgba(231,193,115,.04); }
.ficon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-bottom: 6px; color: #BCC1CB; }
.ficon .icon { width: 24px; height: 24px; }
.fname { display: block; font-size: 14px; line-height: 21px; font-weight: 600; }
.fdesc { display: block; width: 100%; overflow: hidden; color: var(--text-dim); font-size: 11px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.footer-note { margin-top: 24px; color: var(--text-dim); font-size: 11px; line-height: 1.7; text-align: center; }

/* 06 · 轻量账号状态与账号列表 */
.ck-status-line { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--text-dim); font-size: 12px; text-align: left; }
button.ck-status-line { cursor: pointer; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--text-dim); }
.ck-status-line.ok .status-dot { background: var(--gold); }
.ck-status-line.bad .status-dot, .ck-status-line.has-error .status-dot { background: var(--danger); }
.status-copy { flex: 1; min-width: 0; color: var(--fg-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status-detail { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }
.status-action { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; flex: 0 0 auto; color: var(--text-dim); font-size: 12px; }
.ck-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ck-head { color: var(--text); font-size: 14px; font-weight: 600; }
.ck-sub { margin-top: 4px; color: var(--text-dim); font-size: 12px; }
.ck-card > .btn { margin-top: 16px; }
.ck-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ck-row { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.ck-idx { min-width: 20px; flex: 0 0 auto; color: var(--text-dim); font-size: 11px; }
.ck-main { flex: 1; min-width: 0; }
.ck-nick { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.ck-uid { margin-top: 2px; overflow: hidden; color: var(--text-dim); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.ck-ops { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ck-ops .btn { min-width: 44px; min-height: 44px; padding: 8px; font-size: 11px; }
.tag { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; background: var(--card); color: var(--text-dim); font-size: 11px; line-height: 20px; }
.tag.ok { background: var(--ok-soft); color: var(--gold); }
.tag.bad { background: var(--bad-soft); color: var(--danger); }

/* 07 · 对话执行页 */
.chat-page { position: fixed; inset: 0; display: flex; flex-direction: column; width: 100%; max-width: 1040px; min-width: 0; height: 100%; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg); }
.chat-top { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 64px; flex: 0 0 64px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-top > .btn { padding: 10px 12px; }
.chat-top-title { flex: 1; min-width: 0; }
.ct-name { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ct-sub { margin-top: 1px; overflow: hidden; color: var(--text-dim); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.chat-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 16px; width: 100%; min-width: 0; min-height: 0; padding: 24px 16px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.chat-intro { width: 100%; margin: 0 0 16px; padding: 8px 0 16px; }
.chat-intro-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--gold); background: var(--card); }
.chat-intro-title { color: var(--text); font-size: 23px; font-weight: 600; line-height: 1.5; }
.chat-intro-text { max-width: 440px; margin-top: 8px; color: var(--text-dim); font-size: 13px; line-height: 1.75; }
.chat-intro-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chat-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-dim); font-size: 10px; line-height: 20px; }
.chat-step .icon { width: 20px; height: 20px; flex-basis: 20px; }
.msg { display: flex; flex: 0 0 auto; min-width: 0; animation: message-in 180ms ease-out both; }
.msg.me { justify-content: flex-end; }
.msg.ai { justify-content: flex-start; }
.bubble { min-width: 0; max-width: min(92%,680px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; background: var(--card); color: var(--text); font-size: 13px; line-height: 1.8; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me .bubble { border-color: rgba(255,255,255,.10); border-radius: 16px 16px 6px 16px; background: #1C2027; color: var(--text); }
.bubble.ok { border-color: rgba(231,193,115,.22); }
.bubble.bad { border-color: rgba(255,107,107,.25); }
.bubble .icon { margin-right: 6px; vertical-align: -4px; }
.message-meta { display: block; margin-top: 8px; color: var(--text-dim); font-size: 11px; white-space: normal; }
.parsed-summary { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 500; white-space: normal; }
.parsed-summary .icon { margin: 0; }
.parsed-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; white-space: normal; }
.parsed-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.parsed-label { color: var(--text-dim); font-size: 11px; }
.parsed-value { color: var(--text); font-size: 12px; line-height: 1.7; word-break: break-word; overflow-wrap: anywhere; }
.bubble .dl-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; font-weight: 600; }
.chat-bar { position: relative; z-index: 20; display: flex; align-items: flex-end; gap: 8px; width: 100%; max-width: 1040px; min-width: 0; flex: 0 0 auto; margin: 0 auto; padding: 12px 16px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.chat-input { display: block; flex: 1; width: 0; min-width: 0; min-height: 48px; max-height: 120px; margin: 0; padding: 12px 14px; resize: none; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--bg-soft); color: var(--text); font: 16px/1.5 var(--font); overflow-x: hidden; transition: border-color 140ms ease; }
.chat-input:focus { border-color: var(--gold); }
.chat-bar .btn { min-height: 48px; flex: 0 0 auto; padding: 12px 16px; }
@keyframes message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 08 · 评论序号与下载结果 */
.bubble.comment-host { width: 100%; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cmt-card { margin: 8px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); white-space: normal; }
.cmt-title { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 11px; line-height: 1.7; }
.cmt-wrap { display: flex; min-width: 0; border-bottom: 1px solid var(--line); }
.cmt-wrap:last-child { border-bottom: 0; }
.cmt-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; min-height: 64px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font: 13px/1.6 var(--font); text-align: left; cursor: pointer; overflow-wrap: anywhere; transition: background 140ms ease; }
.cmt-wrap > .cmt-row { flex: 1; width: 0; border-bottom: 0; }
.cmt-row:last-child { border-bottom: 0; }
.cmt-row.selected { background: rgba(231,193,115,.07); }
.cmt-row:active { background: rgba(231,193,115,.07); }
.cmt-number, .cmt-idx { display: inline-flex; justify-content: center; min-width: 24px; padding-top: 2px; flex: 0 0 24px; color: var(--gold); font-size: 12px; font-weight: 500; }
.cmt-content { flex: 1; min-width: 0; }
.cmt-name { display: block; margin-bottom: 2px; color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.cmt-preview { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text); font-size: 12px; white-space: normal; }
.cmt-preview.expanded { display: block; }
.cmt-meta { color: var(--text-dim); font-size: 11px; }
.cmt-body { color: var(--text); }
.cmt-check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: var(--gold); }
.cmt-row:not(.selected) .cmt-check { opacity: 0; }
.cmt-more, .cmt-expand { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--text-dim); font-size: 11px; cursor: pointer; }
.cmt-wrap > .cmt-expand { align-self: center; flex: 0 0 44px; }
.cmt-card.done .cmt-row:not(.selected) { opacity: .55; }
.cmt-card.done .cmt-row { cursor: default; }
.cmt-card.done .cmt-row.selected:disabled { opacity: 1; }
.download-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; white-space: normal; }
.download-title { display: flex; align-items: center; color: var(--text); font-size: 15px; font-weight: 600; }
.download-title .icon { color: var(--gold); }
.download-note { color: var(--text-dim); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.download-select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: 13px; }
.download-action { width: 100%; min-height: 48px; }

/* 09 · 面板与提示 */
.mask { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; background: rgba(0,0,0,.68); opacity: 0; }
.mask.show { opacity: 1; }
.sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: var(--bg-soft); box-shadow: var(--shadow-lg); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; min-height: 64px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.sheet-title { color: var(--text); font-size: 16px; font-weight: 600; }
.sheet-head .btn { padding: 10px 12px; }
.sheet-summary, .sheet-note { color: var(--text-dim); font-size: 12px; line-height: 1.7; }
.sheet-summary { padding: 12px 16px; }
.sheet-note { margin-bottom: 16px; }
.sheet-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-height: 72px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-list .ck-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; padding: 12px; }
.sheet-list .ck-ops { grid-column: 2 / -1; justify-content: flex-end; }
.sheet-foot { flex: 0 1 auto; max-height: 58vh; padding: 16px 16px max(16px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.sheet-body { display: flex; flex-direction: column; gap: 16px; margin-top: 0; }
.toast { position: fixed; top: max(16px,env(safe-area-inset-top)); left: 50%; z-index: 9999; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #20242B; color: var(--text); font-size: 13px; line-height: 1.7; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(-50%); pointer-events: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast.show { opacity: 1; }
.toast.ok { border-color: rgba(231,193,115,.25); color: var(--gold); }
.toast.bad { border-color: rgba(255,107,107,.25); color: var(--danger); }

/* 10 · 响应式、触控与减少动态效果 */
@media (hover: hover) and (pointer: fine) {
  .fcard:hover { transform: translateY(-3px); border-color: rgba(231,193,115,.30); background: rgba(255,255,255,.055); }
  .btn.ghost:hover, .icon-btn:hover { background: var(--card); }
  .btn.primary:hover { background: linear-gradient(110deg,var(--gold-2),var(--gold)); }
  .cmt-row:hover { background: rgba(255,255,255,.04); }
}
@media (max-height: 700px) and (max-width: 767px) {
  .page { padding-top: 12px; padding-bottom: 12px; }
  .topbar { margin-bottom: 8px; }
  .topbar-sub, .home-eyebrow, .home-intro, .page > .section-title, .page > .footer-note { display: none; }
  .home-heading { margin: 0 0 12px; }
  .home-title { font-size: 22px; line-height: 32px; }
  .ck-status-line { margin-bottom: 8px; }
  .auth-wrap { justify-content: flex-start; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
  .brand-mark { margin-bottom: 8px; }
  .brand-note { margin-top: 16px; }
}
@media (max-width: 374px) {
  .topbar-right .btn { gap: 6px; padding-right: 10px; padding-left: 10px; }
  .chat-top > .btn { padding: 10px; }
  .ck-row { gap: 6px; padding-right: 8px; padding-left: 8px; }
  .ck-ops { gap: 0; }
  .ck-idx { min-width: 16px; }
  .tag { padding: 2px 6px; font-size: 10px; }
}
@media (min-width: 768px) {
  .auth-wrap { flex-direction: row; gap: clamp(48px,8vw,112px); max-width: 1040px; margin: 0 auto; padding: 48px 32px; }
  .auth-brand-panel { flex: 1; max-width: 400px; text-align: left; }
  .brand { font-size: 44px; }
  .brand-sub { font-size: 15px; }
  .brand-note { justify-content: flex-start; margin-top: 32px; }
  .auth-card { flex: 0 1 392px; padding: 24px; }
  .page { padding: 32px; }
  .topbar { margin-bottom: 32px; }
  .topbar-title { font-size: 21px; }
  .home-heading { margin-bottom: 24px; }
  .home-title { font-size: 28px; }
  .home-intro { font-size: 13px; }
  .ck-status-line { margin-bottom: 24px; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .fcard { height: 136px; padding: 20px; }
  .ficon { margin-bottom: 12px; }
  .fname { font-size: 15px; }
  .fdesc { margin-top: 4px; font-size: 12px; }
  .chat-page { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
  .chat-top { padding-right: 24px; padding-left: 24px; }
  .chat-list { gap: 16px; padding: 32px 32px 24px; }
  .chat-intro { padding-bottom: 24px; }
  .chat-intro-title { font-size: 28px; }
  .chat-bar { padding-right: 32px; padding-left: 32px; }
  .bubble { max-width: min(82%,680px); font-size: 14px; }
  .mask { align-items: center; padding: 32px; }
  .sheet { max-height: min(88vh,840px); border-bottom: 1px solid var(--line); border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .icon-btn, .input, .chat-input, .fcard, .tab, .cmt-row { transition: none; }
  .msg { animation: none; }
  .fcard:hover, .fcard:active, .btn:active:not(:disabled), .icon-btn:active:not(:disabled), .tab:active { transform: none; }
}
