/* =============================================================================
   金兔子开放平台 · 样式表
   设计基调：暖金 + 深墨，圆角卡片，克制的阴影；移动优先，375px 起可用。
   ========================================================================== */

:root {
  --gold: #f6a723;
  --gold-strong: #e8890b;
  --gold-soft: #fff4e0;
  --gold-line: #ffe0ad;
  --ink: #1c2230;
  --ink-2: #3d4657;
  --ink-3: #6b7485;
  --line: #e8eaf0;
  --line-2: #f2f4f8;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-warm: #fffdf8;
  --ok: #16a34a;
  --ok-soft: #e9f8ef;
  --warn: #d97706;
  --warn-soft: #fff7e6;
  --err: #dc2626;
  --err-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #eef4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(24, 32, 48, .05);
  --shadow: 0 6px 24px rgba(24, 32, 48, .07);
  --shadow-lg: 0 18px 50px rgba(24, 32, 48, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  --side-w: 236px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  word-break: break-word;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 3px solid rgba(246, 167, 35, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.neg { color: var(--err); }
.pos { color: var(--ok); }
.mt { margin-top: 18px; }
.mt-sm { margin-top: 10px; }
.mt-lg { margin-top: 26px; }
.mb { margin-bottom: 16px; }
.mb-lg { margin-bottom: 26px; }
.inline-form { display: inline-block; margin: 0; }

/* ---------------------------------- 按钮 --------------------------------- */
.btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--btn-bd);
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, #f9b53f, #ef9311);
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: 0 6px 18px rgba(239, 147, 17, .28);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(239, 147, 17, .34); }
.btn-ghost { --btn-bg: #fff; --btn-fg: var(--ink-2); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--gold-line); --btn-fg: var(--gold-strong); }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--err); --btn-bd: #f6cccc; }
.btn-danger:hover { --btn-bg: var(--err); --btn-fg: #fff; --btn-bd: var(--err); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-xs { min-height: 26px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------------------------------- 表单 --------------------------------- */
.form { margin: 0; }
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.req { color: var(--err); font-style: normal; }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.55; }
select.input { background-image: none; padding-right: 34px; }
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 167, 35, .16);
  outline: none;
}
.input[disabled], fieldset[disabled] .input { background: var(--bg-soft); color: var(--ink-3); }
.input-sm { min-height: 34px; padding: 4px 9px; font-size: 13px; border-radius: 8px; width: auto; }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .input { flex: 1 1 auto; min-width: 0; }
.input-group .btn { flex: 0 0 auto; }
.hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.hint code { font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13.5px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-strong); flex: 0 0 auto; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.check-inline input { width: 17px; height: 17px; accent-color: var(--gold-strong); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter-bar .input { flex: 1 1 220px; min-height: 40px; }
.filter-bar .btn { min-height: 40px; }

/* ---------------------------------- 卡片 --------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--gold-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-hd h2 { margin: 0; }
.card-hd p { margin: 0; flex-basis: 100%; }
.card-bd > :last-child { margin-bottom: 0; }
.card-ft { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; flex-wrap: wrap; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.row-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 0; }

/* ---------------------------------- 页头 --------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-text { font-size: 16.5px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}
.nav-link:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.nav-link.is-active { color: var(--gold-strong); background: var(--gold-soft); }
.nav-actions { display: flex; gap: 8px; margin-left: 8px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
  justify-content: space-between;
  flex-direction: column;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; }

.main { min-height: 60vh; }
.page-hd { padding: 46px 0 10px; }
.page-hd h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }

/* ---------------------------------- 首页 --------------------------------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(1000px 460px at 12% -10%, #fff3d9 0%, rgba(255, 243, 217, 0) 62%),
    radial-gradient(760px 420px at 96% 4%, #fff8ea 0%, rgba(255, 248, 234, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-title { font-size: clamp(30px, 5vw, 50px); line-height: 1.16; letter-spacing: -.02em; margin-bottom: 14px; }
.hero-sub { font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-2); max-width: 34em; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex: 0 0 auto; }

.hero-visual { display: flex; justify-content: center; }
.auth-preview {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: rotate(-1.4deg);
}
.auth-preview-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.preview-app, .preview-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.preview-logo, .preview-brand img {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-strong);
  font-weight: 800; font-size: 13px;
}
.preview-brand img { background: none; }
.preview-arrow { color: var(--ink-3); }
.auth-preview-perms { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.preview-row { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 13.5px; }
.preview-row + .preview-row { border-top: 1px solid var(--line-2); }
.auth-preview-ft { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

.trust { border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 20px; }
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item b { font-size: 22px; letter-spacing: -.02em; }
.trust-item span { font-size: 13px; color: var(--ink-3); }

.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-hd { max-width: 720px; margin-bottom: 26px; }
.section-title { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 8px; }
.section-sub { color: var(--ink-3); margin: 0; }

.feature { display: flex; flex-direction: column; gap: 8px; }
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--ink-3); font-size: 14px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-strong);
  font-weight: 800; font-size: 16px;
  border: 1px solid var(--gold-line);
}

.steps4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps4 li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps4 b { display: block; margin: 10px 0 4px; }
.steps4 p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.step-no {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #fff; font-weight: 800; font-size: 14px;
}

.platform-card { display: flex; flex-direction: column; gap: 8px; }
.platform-hd { display: flex; align-items: center; gap: 10px; }
.platform-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.platform-card p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.link-more { color: var(--gold-strong); font-weight: 600; font-size: 13.5px; }

.cta-band { padding: 40px 0 56px; }
.cta-in {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1f2634, #2c3547);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}
.cta-in h2 { color: #fff; margin-bottom: 6px; }
.cta-in p { margin: 0; color: rgba(255, 255, 255, .72); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-actions .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }

/* ---------------------------------- 页脚 --------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 18px; margin-top: 20px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 2fr; gap: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-logo { width: 40px; height: 40px; }
.footer-title { font-weight: 800; margin-bottom: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-h { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.footer-col a { color: var(--ink-3); font-size: 13.5px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.footer-legal { display: flex; gap: 14px; }

/* ---------------------------------- 徽标/标签 --------------------------------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.7;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: #12813c; border-color: #c8eed6; }
.badge-warn { background: var(--warn-soft); color: #a9610a; border-color: #ffe1b0; }
.badge-err { background: var(--err-soft); color: #b91c1c; border-color: #f7c9c9; }
.badge-info { background: var(--info-soft); color: #1d4ed8; border-color: #d3e2ff; }
.badge-muted { background: var(--line-2); color: var(--ink-3); border-color: var(--line); }
.tag {
  display: inline-block; margin-left: 7px; padding: 0 7px;
  font-size: 11.5px; font-weight: 600; font-style: normal;
  border-radius: 5px; background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line);
}
.tag-warn { background: var(--warn-soft); color: #a9610a; border-color: #ffe1b0; }
.chip {
  display: inline-block; margin: 2px 4px 2px 0; padding: 1px 9px;
  font-size: 12px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.chip-strong { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-strong); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------------------------------- 表格 --------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
.table th { font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--bg-soft); white-space: nowrap; }
.table th:first-child { border-top-left-radius: 9px; }
.table th:last-child { border-top-right-radius: 9px; }
.table tbody tr:hover { background: #fcfcfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.price-table .col-price { width: 150px; }
.price-cell b { font-size: 15px; }

/* ---------------------------------- 提示 --------------------------------- */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  margin-bottom: 18px;
}
.alert b { font-weight: 700; }
.alert-info { background: var(--info-soft); border-color: #d8e4ff; color: #1e40af; }
.alert-ok { background: var(--ok-soft); border-color: #c8eed6; color: #146c33; }
.alert-warn { background: var(--warn-soft); border-color: #ffe1b0; color: #8a4f07; }
.alert-err { background: var(--err-soft); border-color: #f7c9c9; color: #a71818; }
.alert a { color: inherit; text-decoration: underline; }

.toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 220px;
  max-width: min(92vw, 560px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .3s ease both;
}
.toast-ok { background: #14803f; }
.toast-err { background: #b91c1c; }
.toast-warn { background: #a9610a; }
.toast.is-hiding { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -10px); } }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14px;
}
.callout b { display: block; margin-bottom: 4px; }
.callout ul { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 7px; font-size: 14px; }
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
ol { padding-left: 1.35em; }
ol li { margin-bottom: 6px; }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty-icon { font-size: 30px; opacity: .5; margin-bottom: 6px; }

/* ---------------------------------- 分页 --------------------------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0 4px; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink-2); font-size: 13.5px;
}
.pager-btn:hover { border-color: var(--gold-line); text-decoration: none; }
.pager-btn.is-active { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }
.pager-btn.is-disabled { opacity: .45; }
.pager-info { margin-left: 6px; }

/* ---------------------------------- 登录/注册 --------------------------------- */
.auth-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 40px 16px 60px;
  background:
    radial-gradient(720px 360px at 50% -8%, #fff4de 0%, rgba(255, 255, 255, 0) 65%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.auth-card-wide { max-width: 520px; }
.auth-hd { text-align: center; margin-bottom: 20px; }
.auth-hd h1 { font-size: 21px; margin-bottom: 4px; }
.auth-logo { width: 58px; height: 58px; object-fit: contain; margin: 0 auto 10px; }
.auth-ft { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.auth-legal { text-align: center; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.page-bare { background: #ededed; }
.bare-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.bare-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.bare-brand img { width: 30px; height: 30px; }
.bare-body { width: 100%; display: flex; justify-content: center; flex: 1 0 auto; align-items: flex-start; }
.bare-foot { margin-top: 22px; font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.done-check {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); font-size: 26px; font-weight: 800;
}

/* ---------------------------------- OAuth 授权页（微信风格） --------------------------------- */
.wx { width: 100%; max-width: 420px; margin: 4px auto 0; }
.wx-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 30px 24px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.wx-app { text-align: center; }
.wx-app-icon {
  width: 60px; height: 60px; border-radius: 12px; object-fit: cover;
  margin: 0 auto 12px; display: block; background: #f5f5f5;
}
.wx-app-icon-ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f9b53f, #ef9311);
  color: #fff; font-size: 26px; font-weight: 600;
}
.wx-app-name { font-size: 17px; font-weight: 600; color: #111; line-height: 1.4; word-break: break-word; }
.wx-app-tip { margin-top: 5px; font-size: 13px; color: #9a9a9a; }

.wx-scopes {
  margin-top: 22px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  padding: 12px 14px;
}
.wx-scopes-hd { font-size: 12.5px; color: #9a9a9a; margin-bottom: 4px; }
.wx-scope-list { list-style: none; margin: 0; padding: 0; }
.wx-scope {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid #f1f1f1;
}
/* 微信式的灰色暗勾：细、低调、不抢视线 */
.wx-scope-tick {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  color: #b8b8b8;
  transform: translateY(-1px);
}
.wx-scope:last-child { border-bottom: 0; }
.wx-scope-name { font-size: 15px; color: #222; display: inline-flex; align-items: center; gap: 6px; }
.wx-scope-sensitive {
  font-style: normal; font-size: 11px; line-height: 1.6; padding: 0 4px;
  color: #d9820a; background: #fff7e8; border: 1px solid #ffe4b8; border-radius: 3px;
}

.wx-account {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 12px;
  border: 1px solid #eee; border-radius: 6px;
}
.wx-account-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto; background: #f2f2f2;
}
.wx-account-avatar-ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f9b53f, #ef9311);
  color: #fff; font-weight: 600; font-size: 15px;
}
.wx-account-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.wx-account-meta b {
  font-size: 14px; font-weight: 600; color: #222;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wx-account-meta span { font-size: 12px; color: #9a9a9a; }
.wx-account-tag {
  margin-left: auto; font-size: 11px; color: #9a9a9a;
  border: 1px solid #eee; border-radius: 10px; padding: 1px 7px; white-space: nowrap;
}

.wx-note { margin: 14px 0 0; font-size: 12px; line-height: 1.75; color: #9a9a9a; }
.wx-error {
  margin-top: 12px; padding: 8px 10px; border-radius: 4px;
  background: #fdecec; border: 1px solid #f7c9c9; color: #b91c1c; font-size: 13px;
}
.wx-actions { margin-top: 20px; display: grid; gap: 10px; }
.wx-btn {
  height: 46px; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s;
}
.wx-btn-primary { background: #f5a623; color: #fff; border: 1px solid #f5a623; }
.wx-btn-primary:hover { background: #ec9a12; }
.wx-btn-primary:active { background: #e08f0c; }
.wx-btn-plain { background: #fff; color: #555; border: 1px solid #e2e2e2; }
.wx-btn-plain:hover { border-color: #cfcfcf; }
.wx-foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: #b2b2b2; }
.wx-foot a { color: #9a9a9a; }
.wx-demo {
  display: inline-block; margin-left: 6px; padding: 0 4px; font-size: 10.5px;
  color: #d9820a; background: #fff8ec; border: 1px solid #ffe4b8; border-radius: 3px;
}
.wx-legal { margin-top: 14px; text-align: center; font-size: 11.5px; color: #b2b2b2; }
.wx-legal a { color: #9a9a9a; }


/* ---------------------------------- 控制台/后台框架 --------------------------------- */
.page-console, .page-admin { background: var(--bg-soft); }
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  overflow-y: auto;
}
.side-admin { background: #1b2230; border-right-color: #232c3c; }
.side-admin .brand { color: #fff; }
.side-admin .brand-text { color: #fff; }
.side-brand { margin-bottom: 18px; }
.side-brand .brand-text { font-size: 14.5px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
  min-height: 42px;
}
.side-link:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.side-link.is-active { background: var(--gold-soft); color: var(--gold-strong); }
.side-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.side-badge {
  margin-left: auto; font-size: 11px; font-style: normal; font-weight: 700;
  background: var(--err); color: #fff; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center;
}
.side-admin .side-link { color: #b9c2d2; }
.side-admin .side-link:hover { background: #232c3c; color: #fff; }
.side-admin .side-link.is-active { background: rgba(246, 167, 35, .16); color: #ffc861; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.side-admin .side-foot { border-top-color: #232c3c; }
.shell-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: calc(8px + env(safe-area-inset-top));
}
.topbar-title { font-weight: 700; font-size: 15px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 999px; color: var(--ink); }
.user-chip:hover { background: var(--bg-soft); text-decoration: none; }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip-text b { font-size: 13px; }
.user-chip-text i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.hamburger {
  display: none; width: 40px; height: 40px; padding: 11px 9px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.hamburger span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; }
.content { padding: 20px; flex: 1 1 auto; min-width: 0; }
.content-foot { padding: 6px 20px 22px; }
.side-mask { display: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 21px; margin-bottom: 2px; }
.page-head p { margin: 0; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }

/* 统计卡 */
.stat-card { display: flex; flex-direction: column; gap: 2px; }
.stat-l { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat-v { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.stat-card-primary { background: linear-gradient(135deg, #fff8ec, #fffdf8); border-color: var(--gold-line); }
.stat-card-warn { border-color: #ffe1b0; background: #fffdf7; }
.g-6 .stat-v { font-size: 20px; }

/* 进度/引导 */
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.progress li { display: flex; gap: 11px; align-items: flex-start; }
.p-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; margin-top: 4px; background: #fff; }
.progress .is-done .p-dot { background: var(--ok); border-color: var(--ok); }
.progress .is-doing .p-dot { background: var(--gold); border-color: var(--gold); }
.progress .is-todo .p-dot { border-color: var(--line); }
.progress b { font-size: 14px; }
.progress p { margin: 0; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 2px; color: var(--ink);
}
.quick:hover { border-color: var(--gold-line); background: var(--bg-warm); text-decoration: none; }
.quick b { font-size: 14px; }

/* 通知 */
.msg-list { list-style: none; padding: 0; margin: 0; }
.msg-item { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.msg-item:last-child { border-bottom: 0; }
.msg-item.is-unread .msg-title::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--err); margin-right: 7px; vertical-align: middle;
}
.msg-list-lg .msg-item { padding: 16px 0; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-head .muted { margin-left: auto; }
.msg-title { font-size: 14.5px; }
.msg-body { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; }

/* 应用列表 */
.app-list { display: grid; gap: 12px; }
.app-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; }
.app-card-main { display: flex; gap: 13px; align-items: center; min-width: 0; }
.app-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.app-logo-lg { width: 52px; height: 52px; border-radius: 14px; }
.app-logo-sm { width: 30px; height: 30px; border-radius: 8px; }
.app-logo-ph { display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-strong); font-weight: 800; }
.app-card-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; }
.app-card-go { font-size: 13.5px; color: var(--gold-strong); font-weight: 600; white-space: nowrap; }
.app-inline { display: flex; align-items: center; gap: 9px; }

/* 分段器 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.seg-item { padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg-item:hover { text-decoration: none; color: var(--ink); }
.seg-item.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-count { font-style: normal; font-size: 11px; margin-left: 5px; color: var(--err); font-weight: 700; }
.seg-lg { margin-bottom: 16px; }
.seg-lg .seg-item { padding: 7px 15px; font-size: 13.5px; }

/* 键值表 */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }
.kv-wide { grid-template-columns: 118px 1fr; }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uploader { display: flex; flex-direction: column; gap: 6px; }
.uploader-box {
  position: relative; aspect-ratio: 4 / 3; border-radius: 11px;
  border: 1.5px dashed var(--line);
  background: var(--bg-soft) center/cover no-repeat;
  display: grid; place-items: center;
  cursor: pointer; overflow: hidden;
  transition: border-color .15s, background-color .15s;
}
.uploader-box:hover { border-color: var(--gold); background-color: var(--gold-soft); }
.uploader-box.has-img { border-style: solid; }
.uploader-box.has-img .uploader-tip { opacity: 0; }
.uploader-box.has-img:hover .uploader-tip { opacity: 1; background: rgba(0, 0, 0, .45); color: #fff; }
.uploader-tip { font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-radius: 8px; text-align: center; }
.uploader-label { font-size: 12.5px; color: var(--ink-2); }
.uploader-sm { margin-top: 8px; }
.uploader-sm .uploader-box { aspect-ratio: 3 / 1.4; }

.field-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.field-check {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px;
  cursor: pointer; background: #fff;
}
.field-check:hover { border-color: var(--gold-line); background: var(--bg-warm); }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-strong); flex: 0 0 auto; }
.fc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-name { font-weight: 700; font-size: 14px; }
.fc-name .tag { font-weight: 500; }
.fc-price { font-size: 12.5px; color: var(--ink-3); }

/* 凭证 */
.secret-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.secret-box code { background: #fff; font-size: 13px; padding: 6px 10px; word-break: break-all; }

/* 材料图 */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.material { margin: 0; }
.material img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 11px; border: 1px solid var(--line); background: var(--bg-soft);
}
.material figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* 图表 */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; overflow-x: auto; }
.bar-col { flex: 1 0 26px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar { width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #fbc766, #f2a01b); }
.bar-lbl { font-size: 10px; color: var(--ink-3); writing-mode: vertical-rl; transform: rotate(180deg); max-height: 46px; }
.meter-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; margin-bottom: 9px; }
.meter-name { font-size: 13px; color: var(--ink-2); }
.meter { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f9c369, #ef9311); }
.meter-val { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 资料预览 */
.profile-row { display: flex; gap: 13px; align-items: center; }
.profile-row b { display: block; font-size: 15px; }

/* 对公信息 */
.bank { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 11px; padding: 12px 14px; }
.bank-h { font-weight: 700; font-size: 13px; color: #8a5207; margin-bottom: 4px; }
.bank p { margin: 0; white-space: pre-wrap; color: #7a4a06; }

.price-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* 文档 */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 34px 20px 60px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.docs-nav-h { font-weight: 800; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.docs-nav a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.docs-nav a.is-active { background: var(--gold-soft); color: var(--gold-strong); font-weight: 700; }
.docs-nav-sep { height: 1px; background: var(--line); margin: 12px 0; }
.docs-body { min-width: 0; }
.docs-body h1 { font-size: 27px; margin-bottom: 10px; }
.docs-body h2 { margin-top: 32px; font-size: 19px; padding-bottom: 7px; border-bottom: 1px solid var(--line-2); }
.docs-body h3 { margin-top: 22px; font-size: 15.5px; }
.docs-body p, .docs-body li { font-size: 14.5px; }
.lead { font-size: 15.5px !important; color: var(--ink-2); }
.docs-body .table { margin: 12px 0 18px; }
pre.code {
  background: #1b2230;
  color: #e6ebf5;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.7;
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-sm { font-size: 12px; padding: 10px 12px; }
.faq { border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.faq p { margin: 9px 0 0; font-size: 14px; color: var(--ink-2); }
.legal h2 { font-size: 18px; margin-top: 26px; }
.legal .lead { margin-bottom: 18px; }

/* ---------------------------------- 响应式 --------------------------------- */
@media (max-width: 1100px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; }
  .auth-preview { transform: none; max-width: 100%; }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .g-side { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr; gap: 24px; }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .wx-card { border-left: 0; border-right: 0; border-radius: 0; padding: 26px 18px 20px; }
  .wx { max-width: 100%; margin-top: 0; }

  /* 侧边栏改为抽屉 */
  .side {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-102%);
    transition: transform .24s ease;
    box-shadow: var(--shadow-lg);
    width: 262px; flex-basis: 262px;
    height: 100%;
  }
  .side.is-open { transform: none; }
  .hamburger { display: flex; }
  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(16, 22, 34, .42);
    opacity: 0; pointer-events: none; transition: opacity .24s ease;
  }
  .side-mask.is-on { opacity: 1; pointer-events: auto; }
  .content { padding: 16px 14px; }
  .topbar { padding-inline: 14px; }
  .docs { grid-template-columns: 1fr; padding: 22px 14px 44px; }
  .docs-nav {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
  }
  .docs-nav-h, .docs-nav-sep { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 11px 12px; }
  .nav-actions { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-actions .btn { width: 100%; }

  .hero { padding: 34px 0 28px; }
  .section { padding: 38px 0; }
  .section-tight { padding: 18px 0 38px; }
  .hero-title { font-size: 28px; }
  .cta-in { padding: 22px; border-radius: var(--radius); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }

  .grid { gap: 12px; }
  .g-2, .g-3, .g-4, .g-6 { grid-template-columns: 1fr; }
  .g-6.mb-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps4 { grid-template-columns: 1fr; }
  .trust-item b { font-size: 19px; }
  .card { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-checks { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 表格转卡片 */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    border: 1px solid var(--line); border-radius: 12px;
    padding: 6px 12px; margin-bottom: 10px; background: #fff;
  }
  .table td {
    border: 0; padding: 7px 0; display: flex; align-items: flex-start; gap: 10px;
    text-align: left !important;
  }
  .table td::before {
    content: attr(data-label);
    flex: 0 0 76px; font-size: 12px; font-weight: 700; color: var(--ink-3);
  }
  .table td:not(:last-child) { border-bottom: 1px dashed var(--line-2); }
  .table td > * { min-width: 0; }
  .table-wrap { overflow: visible; }
  .price-table td::before { flex-basis: 60px; }

  .seg-lg { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .seg-lg .seg-item { white-space: nowrap; }

  .app-card { flex-direction: column; align-items: flex-start; }
  .app-card-go { align-self: flex-end; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head > .badge { align-self: flex-start; }
  .page-head .btn { width: 100%; }
  .app-head { flex-direction: column; align-items: flex-start; }

  .auth-page { padding: 20px 12px 40px; }
  .auth-card { padding: 22px 18px; border-radius: var(--radius); }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .kv, .kv-wide { grid-template-columns: 88px 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .meter-row { grid-template-columns: 62px 1fr auto; }
  .topbar-title { font-size: 14px; }
  .user-chip-text { display: none; }
  .docs-body h1 { font-size: 22px; }
  .docs-body h2 { font-size: 17px; }
  pre.code { font-size: 12px; }
  .chart { height: 140px; }
  .filter-bar .input { flex: 1 1 100%; }
  .filter-bar .btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 25px; }
  .stat-v { font-size: 21px; }
  .trust-in { gap: 12px; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 14px; }
  .btn-lg { padding: 0 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印：后台审核单可打印存档 */
@media print {
  .nav, .side, .topbar, .footer, .side-mask, .btn, .seg, .pager { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
