/* 问答台样式：照 shadcn/ui dashboard-01 —— 内嵌式侧栏、黑白灰、细边框、小阴影 */
/* Inter（SIL OFL 1.1，自托管，只含拉丁字符）：数字和英文用它，中文仍用系统字体 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #FFFFFF;
  --page: #FAFAFA;
  --sidebar: #FAFAFA;
  --card: #FFFFFF;
  --line: #E5E5E5;
  --line-2: #EFEFEF;
  --input: #E5E5E5;
  --text: #0A0A0A;
  --text-2: #262626;
  --text-3: #525252;
  --muted: #737373;
  --soft: #F5F5F5;
  --hover: #F5F5F5;
  --primary: #171717;
  --ring: rgba(163, 163, 163, .5);
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #DC2626;
  --r-bg: #FEF2F2;
  --r-line: #FECACA;
  --radius: 10px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: 0 0 auto; }
img { max-width: 100%; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-3); }
.strong { font-weight: 600; }
.small { font-size: 12px; }
.r { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; word-break: break-word; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.plus { color: #15803D; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.empty { padding: 36px 12px 32px; text-align: center; color: var(--muted); }
.empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.empty .btn { display: flex; width: max-content; margin: 14px auto 0; }
.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vsep { display: inline-block; width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.sep { display: inline-block; width: 1px; height: 16px; background: var(--line); }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.pad { padding: 24px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
.card-title svg { width: 16px; height: 16px; color: var(--muted); }
.card-title.center { justify-content: center; }
.page-head { margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
.page-head .sub { margin-bottom: 0; }
.section-title { font-size: 16px; font-weight: 600; margin: 28px 0 12px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; }
.back:hover { color: var(--text); }
.head-row { margin-bottom: 4px; align-items: flex-end; }
.form-card { max-width: 480px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--primary); background: var(--primary); color: #FAFAFA;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: var(--shadow-xs); transition: background .15s, opacity .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #2E2E2E; color: #FAFAFA; }
.btn:focus-visible, .input:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-o { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-o:hover { background: var(--hover); color: var(--text); }
.btn-g { background: transparent; color: var(--text-3); border-color: transparent; box-shadow: none; }
.btn-g:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: var(--card); color: var(--red); border-color: var(--line); }
.btn-danger:hover { background: var(--r-bg); color: var(--red); }
.btn-sm { height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; }
.btn-lg { height: 40px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-sm + .btn-sm, .inline + .btn-sm, .inline + .inline, .btn-sm + .inline { margin-left: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--hover); }

/* ---------- 表单 ---------- */
.input {
  display: block; width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid var(--input); border-radius: 8px; background: transparent;
  font-size: 14px; color: var(--text); box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: #A3A3A3; box-shadow: 0 0 0 3px var(--ring); }
textarea.input { height: auto; min-height: 64px; padding: 8px 12px; line-height: 1.6; resize: vertical; }
select.input { padding-right: 8px; background: var(--card); }
.input-sm { width: 150px; height: 32px; font-size: 13px; }
.input-xs { width: 72px; }
.input-search { width: 220px; }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.label.nomargin { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid-btn { display: flex; align-items: flex-end; }
.row-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-form .input:not(.input-sm):not(.input-xs) { flex: 1 1 180px; width: auto; }
.add-row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.inline-search { margin-bottom: 12px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 112px; padding: 16px; border: 1px dashed #D4D4D4; border-radius: 10px; background: var(--page);
  text-align: center; cursor: pointer; color: var(--muted);
}
.dropzone svg { width: 22px; height: 22px; }
.dropzone:hover { background: var(--soft); }
.dropzone strong { font-size: 14px; font-weight: 500; color: var(--text); }
.dropzone .hint { margin: 0; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { border-color: #A3A3A3; box-shadow: 0 0 0 3px var(--ring); }
.file-list { font-size: 13px; color: var(--text); font-weight: 500; }
.file-list:empty { display: none; }

.fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--muted); }
.fee strong { font-size: 24px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fee .hint { margin: 0; }

.seg-input { display: inline-flex; padding: 3px; background: var(--soft); border-radius: 10px; }
.seg-input label { position: relative; }
.seg-input input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-input span { display: inline-flex; align-items: center; height: 29px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgba(0, 0, 0, .6); }
.seg-input input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-input input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }

/* ---------- 标签：描边 + 状态小圆点（dashboard-01 表格里的状态样式） ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; text-decoration: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #A3A3A3; }
.b-g::before { background: var(--green); }
.b-y::before { background: var(--amber); }
.b-n::before { background: #A3A3A3; }
.b-o { color: var(--text); border-radius: 999px; }
.b-o::before { display: none; }
a.badge:hover { background: var(--hover); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.card.table-wrap { box-shadow: none; border-radius: 10px; }
.table-wrap.bordered { border: 1px solid var(--line); }
.card .table-wrap { box-shadow: none; }
.scroll-y { max-height: 360px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { height: 40px; padding: 0 12px; text-align: left; font-weight: 500; color: var(--text); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(245, 245, 245, .5); }
tr.sel, tbody tr.sel:hover { background: var(--soft); }
td.clip { min-width: 220px; max-width: 420px; }
.row-link { text-decoration: none; }
.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
tr.link-row, tr[data-href] { cursor: pointer; }
td .btn-sm { height: 28px; padding: 0 10px; }

/* ---------- 统计卡（dashboard-01 SectionCards） ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background-image: linear-gradient(to top, rgba(0, 0, 0, .04), var(--card)); box-shadow: var(--shadow-xs); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-chip { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); background: var(--card); }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: 13px; }
.stat-foot b { font-weight: 500; }
.stat-foot span { color: var(--muted); }

.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); box-shadow: var(--shadow-xs); margin-bottom: 8px; }
.metrics > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-left: 1px solid var(--line); }
.metrics > div:first-child { border-left: 0; }
.metrics span { color: var(--muted); font-size: 13px; }
.metrics b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .metrics > div:nth-child(4) { border-left: 0; } .metrics > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics > div { border-left: 0; border-top: 1px solid var(--line); } .metrics > div:nth-child(-n+2) { border-top: 0; } .metrics > div:nth-child(even) { border-left: 1px solid var(--line); } }

/* ---------- 布局 ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.split-main { flex: 999 1 560px; min-width: 0; }
.split-side { flex: 1 1 360px; min-width: 0; }
.narrow { max-width: 520px; margin: 40px auto; }

/* ---------- 应用外壳：侧栏 + 内嵌主区（dashboard-01 sidebar inset） ---------- */
.sb-wrap { display: flex; min-height: 100vh; background: var(--sidebar); }
.sb { width: 256px; flex: 0 0 256px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 8px; background: var(--sidebar); }
.sb-head { padding: 6px 8px 8px; }
.sb-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.sb-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: #FFF; display: inline-flex; align-items: center; justify-content: center; }
.sb-logo svg { width: 13px; height: 13px; }
.sb-content { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.sb-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-label { display: flex; align-items: center; height: 32px; padding: 0 8px; margin-top: 12px; font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, .7); }
.sb-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; }
.sb-item:hover { background: var(--soft); }
.sb-item.on { background: #EFEFEF; font-weight: 500; }
.sb-cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #FFF; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.sb-secondary { margin-top: auto; padding-top: 12px; }
.sb-user { display: flex; align-items: center; gap: 8px; padding: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.sb-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: #E5E5E5; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.sb-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sb-who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-who small { color: var(--muted); font-size: 12px; }
.sb-user .icon-btn { color: var(--muted); }
.sb-user .icon-btn:hover { color: var(--text); }
.sb-backdrop { display: none; }

.inset { flex: 1 1 auto; min-width: 0; margin: 8px 8px 8px 0; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.inset-head { display: flex; align-items: center; gap: 8px; height: 48px; flex: 0 0 48px; padding: 0 24px 0 16px; border-bottom: 1px solid var(--line); }
.inset-title { font-size: 15px; font-weight: 500; }
.inset-body { flex: 1; padding: 24px; max-width: 1480px; width: 100%; }
html.sb-collapsed .sb { display: none; }
html.sb-collapsed .inset { margin-left: 8px; }

/* 首页顶部栏（访客） */
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.brand svg { width: 20px; height: 20px; }

/* 提示 */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.flash-success { border-color: #BBF7D0; background: #F0FDF4; color: #15803D; }
.flash-error { border-color: var(--r-line); background: var(--r-bg); color: var(--red); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: var(--page); border-radius: 10px; color: var(--text-3); font-size: 13px; }
.notice svg { width: 16px; height: 16px; margin-top: 2px; }
.steps { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* 充值联系方式 */
.qr-cell img { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; display: block; }
.contact-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-xs); }
.contact-btn:hover { background: var(--hover); }
.contact-btn svg { width: 16px; height: 16px; }
.contact-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(340px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0, 0, 0, .15); }
.contact-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.contact-dialog .dlg { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.contact-dialog h3 { font-size: 16px; font-weight: 600; }
.contact-dialog .num { font-size: 22px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.contact-dialog img { width: 200px; height: 200px; object-fit: contain; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }

/* 详情 */
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: 0 0 96px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kv dd { margin: 0; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.link-box { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-xs); }
.answer-text { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.75; width: 100%; }
.rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-3); }
.answer-item { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.answer-item:last-child { border-bottom: 0; }

/* ---------- 页签：统一为 shadcn Tabs（灰底胶囊，选中项白底） ---------- */
.seg, .pills { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 3px; background: var(--soft); border-radius: 10px; border: 0; }
.pills { margin: 0 0 16px; }
.seg a, .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, .6); text-decoration: none; background: transparent; white-space: nowrap; }
.seg a:hover, .pill:hover { color: var(--text); }
.seg a.on, .pill.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

/* 登录注册（shadcn login 区块） */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px 16px; background: var(--soft); }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.auth-card { width: 100%; max-width: 384px; display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.auth-card.center { align-items: center; text-align: center; }
.auth-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.auth-title { font-size: 20px; font-weight: 600; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a, .auth-back:hover { color: var(--text); text-underline-offset: 4px; }
.auth-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo svg { width: 16px; height: 16px; }
.err-code { font-size: 48px; font-weight: 600; color: var(--muted); }
.big-icon { color: var(--muted); margin-bottom: 8px; }

/* ---------- 公开首页 ---------- */

/* ---------- 充值方式后台 ---------- */
.contact-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; }
.contact-form .span-all { grid-column: 1 / -1; }
.contact-form .span-2 { grid-column: span 2; }
.contact-form .input-sm { width: 100%; }
.form-actions { display: flex; gap: 8px; }
.file-input { height: auto; padding: 6px 10px; }
.check-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--text-3); }
.preview-box { max-width: 420px; }

/* ---------- 提问页 ---------- */

/* ---------- 问题大厅 ---------- */
.hall2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 24px; align-items: start; }
.hall2 .stats { margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-panel { padding: 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.hall-panel h2.panel-title { font-size: 16px; font-weight: 600; }
.hall-panel h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.hall-panel .q-text { font-size: 15px; line-height: 1.75; }
.meta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--muted); }
.meta-strip > span { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-left: 1px solid var(--line); }
.meta-strip > span:first-child { padding-left: 0; border-left: 0; }
.meta-strip b { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.guide { border: 1px solid var(--line); background: var(--page); border-radius: 10px; padding: 14px 16px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; }
.guide-head span { display: inline-flex; align-items: center; gap: 8px; }
.guide-head svg { width: 16px; height: 16px; color: var(--muted); }
.guide-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.guide-steps i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 11px; font-weight: 600; margin-right: 6px; color: var(--text); }
.guide-steps .arrow { color: #A3A3A3; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 22px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text-3); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.input-sort { width: 140px; height: 36px; }

/* ---------- 回答审核 ---------- */
.review2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 16px; align-items: stretch; }
.rv-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.rv-q { font-size: 16px; font-weight: 600; line-height: 1.6; margin: 8px 0 12px; }
.rv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; }
.rv-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.rv-row > span:first-child svg { width: 16px; height: 16px; }
.rv-row.top { align-items: start; }
.rv-row.top > span:first-child { padding-top: 6px; }
.rv-money { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.rv-money b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-money .sub-k { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.rv-money .sub-k svg { width: 16px; height: 16px; }
.link-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; box-shadow: var(--shadow-xs); }
.link-field a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.link-field svg { width: 16px; height: 16px; }
.shot-box { border: 1px solid var(--line); border-radius: 10px; background: var(--page); padding: 8px; }
.shot-box img { display: block; max-height: 220px; margin: 0 auto; border-radius: 6px; }
.review-side, .review-form { display: flex; flex-direction: column; }
.grow-form { flex: 1; }
.review-note-label { margin-top: 16px; }
.review-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.review2 .answer-text { display: block; max-height: 200px; }
.settle-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.settle-form .input-sm { width: 130px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .hall2, .review2 { grid-template-columns: minmax(0, 1fr); }
  .hall-panel { position: static; }
}
@media (max-width: 860px) {
  .sb { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  html.sb-open .sb { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  html.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); }
  html.sb-collapsed .sb { display: flex; }
  .inset, html.sb-collapsed .inset { margin: 0; border-radius: 0; box-shadow: none; }
  .inset-head { padding: 0 16px 0 12px; position: sticky; top: 0; z-index: 20; background: var(--bg); }
  .inset-body { padding: 16px; }
  .pad { padding: 18px 16px; }
  .page-title { font-size: 20px; }
  .stats, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat-value { font-size: 22px; }
  .stat-foot, .stat-chip { display: none; }
  .stat-label { font-size: 12px; }
  .input-search { width: 100%; }
  .meta-strip > span { padding: 0 10px; }
  .rv-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-form .span-2 { grid-column: 1 / -1; }
  .seg, .pills { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- 用户分布：科幻地球 ---------- */
.scifi {
  --sf-cyan: 103, 232, 249; --sf-amber: 251, 191, 36;
  position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 56px);
  border-radius: 16px; overflow: hidden; color: #cfe3f5; border: 1px solid #1c2a40;
  background: radial-gradient(ellipse at 45% 45%, #0f1b30 0%, #08101e 55%, #04070d 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.scifi::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--sf-cyan), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--sf-cyan), .035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.scifi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px);
}
.sf-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(var(--sf-amber), .7); z-index: 2; pointer-events: none; }
.sf-corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.sf-corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.sf-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.sf-corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.sf-top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 24px 28px 8px; }
.sf-kicker, .sf-h, .sf-stats span, .sf-status, .sf-rank-no, .sf-tip { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.sf-kicker { font-size: 11px; letter-spacing: .32em; color: rgba(var(--sf-cyan), .75); }
.sf-title { font-size: 26px; font-weight: 700; color: #f1f7ff; letter-spacing: .08em; text-shadow: 0 0 18px rgba(var(--sf-cyan), .35); }
.sf-tabs { display: flex; gap: 6px; }
.sf-tabs a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid rgba(var(--sf-cyan), .28); border-radius: 6px; color: #9fc3dc; text-decoration: none; font-size: 13px; background: rgba(8, 16, 30, .6); }
.sf-tabs a:hover { border-color: rgba(var(--sf-cyan), .6); color: #e6f6ff; }
.sf-tabs a.on { border-color: rgba(var(--sf-amber), .8); color: rgb(var(--sf-amber)); background: rgba(var(--sf-amber), .1); box-shadow: 0 0 12px rgba(var(--sf-amber), .25) inset; }
.sf-body { position: relative; z-index: 1; flex: 1; display: flex; flex-wrap: wrap; }
.sf-stage { position: relative; flex: 999 1 520px; min-height: 560px; }
.sf-stage canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
.sf-stage canvas:active { cursor: grabbing; }
.sf-stats { position: absolute; top: 12px; left: 28px; display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 14px 28px; pointer-events: none; }
.sf-stats span { display: block; font-size: 11px; letter-spacing: .12em; color: rgba(var(--sf-cyan), .7); }
.sf-stats b { display: block; font-size: 28px; font-weight: 700; color: rgb(var(--sf-amber)); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(var(--sf-amber), .55); }
.sf-stats b.dim { color: #8aa3b8; text-shadow: none; }
.sf-empty { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; color: rgba(var(--sf-cyan), .8); font-size: 13px; letter-spacing: .1em; pointer-events: none; }
.sf-btn { position: absolute; right: 22px; bottom: 20px; height: 34px; padding: 0 14px; border: 1px solid rgba(var(--sf-cyan), .4); border-radius: 6px; background: rgba(8, 16, 30, .7); color: #cfe3f5; font-size: 13px; cursor: pointer; }
.sf-btn:hover { border-color: rgba(var(--sf-amber), .8); color: rgb(var(--sf-amber)); }
.sf-tip { position: absolute; z-index: 3; padding: 6px 10px; border: 1px solid rgba(var(--sf-amber), .55); border-radius: 4px; background: rgba(5, 10, 20, .92); color: #fdf3d0; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 0 14px rgba(var(--sf-amber), .25); }
.sf-panel { flex: 1 1 280px; max-width: 360px; padding: 12px 28px 24px 20px; border-left: 1px solid rgba(var(--sf-cyan), .12); }
.sf-h { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: rgba(var(--sf-cyan), .85); margin: 14px 0 12px; }
.sf-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-rank li { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; row-gap: 5px; }
.sf-rank-no { font-size: 11px; color: rgba(var(--sf-cyan), .55); }
.sf-rank-name { color: #e8f2fb; font-size: 14px; }
.sf-rank-name small { margin-left: 6px; color: #7f97ad; font-size: 11px; }
.sf-rank-n { color: rgb(var(--sf-amber)); font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-bar { grid-column: 2 / 4; height: 3px; background: rgba(255, 255, 255, .06); border-radius: 2px; overflow: hidden; }
.sf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(var(--sf-cyan), .9), rgb(var(--sf-amber))); box-shadow: 0 0 8px rgba(var(--sf-amber), .6); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.sf-countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; }
.sf-countries li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(var(--sf-cyan), .15); padding-bottom: 4px; }
.sf-countries b { color: rgb(var(--sf-amber)); }
.sf-none { color: #6c8296; }
.sf-note { margin-top: 18px; font-size: 12px; line-height: 1.7; color: #7f97ad; }
.sf-status { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 12px 28px 16px; border-top: 1px solid rgba(var(--sf-cyan), .12); font-size: 12px; color: rgba(var(--sf-cyan), .75); }
.sf-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: sf-blink 1.6s infinite; }
@keyframes sf-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sf-live { animation: none; } .sf-bar i { transition: none; } }
@media (max-width: 860px) {
  .scifi { min-height: 0; border-radius: 12px; }
  .sf-stage { min-height: 380px; flex-basis: 100%; }
  .sf-stats { position: relative; top: auto; left: auto; padding: 8px 20px 0; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .sf-stats b { font-size: 20px; }
  .sf-panel { max-width: none; border-left: 0; border-top: 1px solid rgba(var(--sf-cyan), .12); padding: 8px 20px 20px; }
  .sf-top { padding: 20px 20px 4px; }
  .sf-status { padding: 12px 20px; }
}
.page-title + :not(.sub) { margin-top: 20px; }
.hall2 td.clip { min-width: 180px; }

/* 订单进度 */

/* 面积图（dashboard-01 ChartAreaInteractive） */
.chart-card { margin-top: 16px; margin-bottom: 8px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chart-head .card-title { margin-bottom: 4px; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-xs); }
.toggle a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-weight: 500; text-decoration: none; border-left: 1px solid var(--line); }
.toggle a:first-child { border-left: 0; }
.toggle a:hover { background: var(--hover); }
.toggle a.on { background: var(--soft); }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart .ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ln-asked { stroke: #F54A00; }
.chart .ln-done { stroke: #009689; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(0, 0, 0, .04); }
.chart-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.lg { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg:first-child { margin-left: 0; }
.lg-asked { background: #F54A00; }
.lg-done { background: #009689; }
@media (max-width: 860px) { .chart svg { height: 180px; } .chart-x span:nth-child(even) { display: none; } }

/* ================= 方案 A：消费级简洁（首页、答题者入口、提问者） ================= */
.a-page { --a-fg: #0A0A0A; --a-mut: #71717A; --a-ln: #ECECEE; --a-soft: #F6F6F7; --a-ok: #16A34A; --a-wait: #D97706; --a-blue: #2563EB;
  background: #FFFFFF; color: var(--a-fg); font-size: 14px; }
.tb { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.tb-in { height: 56px; padding: 0 28px; display: flex; align-items: center; gap: 20px; }
.tb-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.tb-logo i { width: 22px; height: 22px; border-radius: 7px; background: var(--a-fg); }
.tb-nav { display: flex; gap: 18px; }
.tb-nav a { color: var(--a-mut); text-decoration: none; }
.tb-nav a:hover { color: var(--a-fg); }
.tb-nav a.on { color: var(--a-fg); font-weight: 500; }
.tb-tag { color: var(--a-mut); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-bal { color: var(--a-mut); text-decoration: none; }
.tb-bal b { color: var(--a-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-text { color: var(--a-fg); text-decoration: none; font-weight: 500; }
.tb-menu { position: relative; }
.tb-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.tb-menu summary::-webkit-details-marker { display: none; }
.tb-av { width: 28px; height: 28px; border-radius: 50%; background: var(--a-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.tb-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px; background: #FFF; border: 1px solid var(--a-ln); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .1); z-index: 30; }
.tb-who { padding: 6px 10px 8px; border-bottom: 1px solid var(--a-ln); margin-bottom: 4px; font-weight: 500; }
.tb-who small { display: block; color: var(--a-mut); font-weight: 400; font-size: 12px; }
.tb-pop a, .tb-pop button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; cursor: pointer; }
.tb-pop a:hover, .tb-pop button:hover { background: var(--a-soft); }
.tb-main { padding: 0 24px 72px; }
.a-flash { max-width: 720px; margin: 0 auto; }
.a-flash .flashes { margin: 12px 0 0; }

.a-col { max-width: 720px; margin: 0 auto; padding-top: 44px; }
.a-h { font-size: 30px; font-weight: 700; letter-spacing: -.02em; text-align: center; margin: 0 0 6px; text-wrap: balance; }
.a-sub { text-align: center; color: var(--a-mut); margin: 0 0 28px; }
.a-sub-left { text-align: left; margin: 0; }
.a-note { text-align: center; color: var(--a-mut); font-size: 12.5px; margin-top: 12px; }

.a-box { border: 1px solid var(--a-ln); border-radius: 18px; background: #FFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06); overflow: hidden; }
.a-box:focus-within { border-color: #D4D4D8; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 32px rgba(0, 0, 0, .09); }
.a-ta { display: block; width: 100%; height: 120px; min-height: 120px; padding: 20px 22px 8px; border: 0; outline: none; resize: vertical; font-size: 16px; line-height: 1.65; background: transparent; }
.a-ta::placeholder { color: #A1A1AA; }
.a-models { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 16px; margin: 0; border: 0; }
.a-m { position: relative; cursor: pointer; }
.a-m input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.a-m span { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--a-ln); border-radius: 999px; line-height: 32px; transition: background .15s, border-color .15s; }
.a-m small { color: var(--a-mut); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.a-m:hover span { border-color: #D4D4D8; }
.a-m input:checked + span { background: var(--a-fg); border-color: var(--a-fg); color: #FFF; }
.a-m input:checked + span small { color: #D4D4D8; }
.a-m input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10, 10, 10, .15); }
.a-bf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 22px; background: var(--a-soft); border-top: 1px solid var(--a-ln); }
.a-bf-in { margin: 20px -22px -22px; }
.a-fee { color: var(--a-mut); font-size: 13px; }
.a-fee b { color: var(--a-fg); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-warn { color: #DC2626; }
.a-warn:not(:empty) { margin-left: 8px; }
.a-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--a-fg); color: #FFF; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.a-btn:hover { background: #27272A; color: #FFF; }
.a-btn svg { width: 15px; height: 15px; }
.a-btn-sm { height: 32px; padding: 0 14px; font-weight: 500; }
.a-form { padding: 22px; }

.a-sec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 40px 0 8px; scroll-margin-top: 72px; }
.a-sec h2 { margin: 0; font-size: 15px; font-weight: 700; }
.a-count { color: var(--a-mut); font-size: 13px; }
.a-list { display: flex; flex-direction: column; }
.a-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 2px; border-bottom: 1px solid var(--a-ln); text-decoration: none; color: inherit; }
a.a-row:hover { background: #FCFCFC; }
a.a-row:hover .a-q { text-decoration: underline; text-underline-offset: 3px; }
.a-q { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.a-q a { color: inherit; }
.a-meta { grid-column: 1; color: var(--a-mut); font-size: 12.5px; }
.a-st { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; font-size: 12.5px; }
.a-steps { display: inline-flex; gap: 3px; }
.a-steps i { width: 18px; height: 4px; border-radius: 2px; background: var(--a-ln); }
.a-steps i.f { background: var(--a-fg); }
.a-steps.done i { background: var(--a-ok); }
.a-tag { font-weight: 500; color: var(--a-wait); font-size: 12.5px; white-space: nowrap; }
.a-tag.t-done { color: var(--a-ok); }
.a-tag.t-reviewing { color: var(--a-wait); }
.a-tag.t-refunded { color: var(--a-mut); }
.a-amt { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.a-amt.plus { color: var(--a-ok); }
.a-list .empty { border-bottom: 1px solid var(--a-ln); }

.a-help { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 16px; margin-top: 28px; color: var(--a-mut); font-size: 13px; }
.a-link { padding: 0; border: 0; background: none; color: var(--a-fg); font: inherit; cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--a-fg); }
.a-link:hover { color: #3F3F46; }

.a-how { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.a-how li { counter-increment: s; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 2px solid var(--a-fg); }
.a-how li::before { content: counter(s); font-size: 12px; color: var(--a-mut); font-variant-numeric: tabular-nums; }
.a-how b { font-weight: 600; }
.a-how span { color: var(--a-mut); font-size: 13px; }

/* 订单详情 */
.a-qhead { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.a-title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.a-meta-line { color: var(--a-mut); margin: 4px 0 24px; }
.a-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.a-track li { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 4px solid var(--a-ln); color: var(--a-mut); }
.a-track li.f { border-top-color: var(--a-fg); color: var(--a-fg); }
.a-track li.now { border-top-color: #A1A1AA; }
.a-track b { font-weight: 600; font-size: 13px; }
.a-track small { font-size: 12px; color: var(--a-mut); min-height: 18px; }
.a-tip { margin: 14px 0 0; padding: 12px 14px; background: var(--a-soft); border-radius: 12px; color: #3F3F46; }
.a-callout { padding: 12px 14px; background: var(--a-soft); border-radius: 12px; color: #3F3F46; }
.a-block { margin-top: 36px; }
.a-block h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.a-qtext { line-height: 1.75; font-size: 15px; }
.a-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.a-link-row .link-box { border-radius: 999px; padding-left: 16px; }
.a-sub-head { margin-bottom: 8px; font-weight: 500; }
.a-big { font-size: 44px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.a-big + .a-help { justify-content: flex-start; margin-top: 8px; }
.a-page .page-head { margin-bottom: 20px; }
.a-page .form-card { max-width: none; }

@media (max-width: 640px) {
  .tb-in { padding: 0 16px; gap: 16px; }
  .tb-main { padding: 0 16px 56px; }
  .a-col { padding-top: 24px; }
  .a-h { font-size: 24px; }
  .a-how, .a-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .a-st .a-steps { display: none; }
  .tb-bal { display: none; }
}
.a-page .auth { background: #FFFFFF; gap: 20px; }
.a-page .auth-brand .sb-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--a-fg); }
.a-page .auth-brand .sb-logo svg { display: none; }
.a-page .auth-card { border-color: var(--a-ln); border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06); padding: 28px; }
.a-page .auth-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.a-page .btn { border-radius: 999px; }
.a-page .auth .btn { height: 40px; font-weight: 600; }
.a-page .input { border-color: var(--a-ln); border-radius: 10px; height: 40px; box-shadow: none; }
.a-page .input:focus { border-color: #A1A1AA; box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.a-page .link-box { border-color: var(--a-ln); box-shadow: none; }
#recharge, #apply { scroll-margin-top: 72px; }

/* 邮箱验证码 */
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-btn { flex: 0 0 auto; height: 40px; }
.code-btn:disabled { opacity: .55; cursor: default; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.label-row a { font-size: 13px; color: var(--muted); text-decoration: none; }
.label-row a:hover { color: var(--text); }
.a-form .span-all.stack { gap: 16px; }
.a-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .a-form .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* 提问图片 */
.a-img { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px dashed #D4D4D8; border-radius: 999px; color: var(--a-mut); background: none; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.a-img:hover { color: var(--a-fg); border-color: #A1A1AA; }
.a-img input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.a-img:focus-within { box-shadow: 0 0 0 3px rgba(10, 10, 10, .12); }
.a-img.full { opacity: .45; pointer-events: none; }
.a-img[hidden] { display: none; }
.a-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 22px 4px; }
.a-thumbs[hidden] { display: none; }
.a-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--a-ln); background: var(--a-soft); }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-thumb-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(10, 10, 10, .72); color: #FFF; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.a-thumb-x:hover { background: #0A0A0A; }
.a-break { color: var(--a-mut); }
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.img-grid a { display: block; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.img-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-grid a:hover { border-color: #A3A3A3; }
.img-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .a-attach { margin-left: 0; } .img-grid a { width: 96px; height: 96px; } }

/* 提问文档 */
.a-attach { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.a-attach:empty { display: none; }
.a-docs { display: flex; flex-direction: column; gap: 6px; padding: 4px 22px 4px; }
.a-docs[hidden] { display: none; }
.a-docitem { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--a-ln); border-radius: 10px; background: var(--a-soft); font-size: 13px; }
.a-docname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-docitem small { color: var(--a-mut); white-space: nowrap; }
.a-doc-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--a-mut); font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.a-doc-x:hover { background: #E4E4E7; color: var(--a-fg); }
.a-doc-tip { color: var(--a-mut); font-size: 12px; }
.doc-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.doc-list a:hover { background: var(--soft); }
.doc-list svg { color: var(--muted); }
.doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.doc-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.doc-dl { font-size: 13px; color: var(--text); white-space: nowrap; }
@media (max-width: 640px) { .a-attach { margin-left: 0; } }
