/* 选品工作台 · 全站样式（用户端和后台共用） */

:root {
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-bright: #14b8a6;
  --brand-soft: #f0fdfa;
  --brand-line: #99f6e4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f6f8fa;
  --card: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --info: #1d4ed8;
  --info-soft: #eff6ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { 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);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }

img { max-width: 100%; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 16px; }

/* ---------- 顶部 ---------- */

.site-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo img { display: block; }

.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .sep { color: var(--line-strong); margin: 0 6px; }
.nav-account { font-family: var(--mono); font-size: 13.5px; }

.inline-form { display: inline; margin: 0; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
}
.link-button:hover { color: var(--brand); }

/* ---------- 底部 ---------- */

.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 64px; padding: 24px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { color: var(--muted); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-strong); color: #fff; text-decoration: none; }
.btn:focus-visible, .link-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .35);
  outline-offset: 1px;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn-secondary:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.btn-plain { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.btn-plain:hover { background: #f8fafc; color: var(--ink); border-color: var(--muted); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row[data-center] { justify-content: center; }
.notice .button-row { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- 卡片和提示 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

.flash, .alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid;
}
.flash { margin-top: 20px; }
.flash-ok, .alert-ok { background: var(--ok-soft); border-color: #a7f3d0; color: var(--ok); }
.flash-error, .alert-error { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
.flash-info, .alert-info { background: var(--info-soft); border-color: #bfdbfe; color: var(--info); }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: var(--warn); }
.alert strong { font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-disabled { background: #e2e8f0; color: #475569; }
.badge-member { background: #ede9fe; color: #5b21b6; }
.badge-member::before, .badge-regular::before { display: none; }
.badge-regular { background: #f1f5f9; color: #475569; }

/* ---------- 表单 ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: 13px; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-bright); outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
input[type="file"] { font: inherit; font-size: 14px; }

.input-row { display: flex; gap: 10px; }
.input-row > input { flex: 1 1 auto; min-width: 0; }
.input-row > .btn { flex: 0 0 auto; min-height: 44px; }

.captcha-image {
  flex: 0 0 auto;
  width: 118px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.captcha-image img { display: block; width: 100%; height: 100%; object-fit: fill; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checkbox input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--brand); }

.form-status { font-size: 13px; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }

/* ---------- 登录、注册这类页面 ---------- */

.auth { padding: 48px 0 24px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- 首页 ---------- */

.hero { padding: 64px 0 56px; background: radial-gradient(1200px 400px at 85% -10%, #ccfbf1 0, transparent 60%), linear-gradient(#fff, var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; padding: 2px 12px; margin-bottom: 16px; }
.hero h1 { font-size: 40px; letter-spacing: -.01em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero .muted { margin-top: 14px; font-size: 13px; }

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  overflow: hidden;
  font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-bar span { margin-left: 8px; font-weight: 600; color: var(--ink-2); }
.mock-body { padding: 16px; display: grid; gap: 14px; }
.mock-section { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mock-title { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.mock-title small { font-weight: 400; color: var(--muted); }
.mock-store { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 8px; }
.mock-store b { font-weight: 500; font-family: var(--mono); font-size: 12px; }
.mock-store em { font-style: normal; color: var(--muted); font-size: 12px; }
.mock-progress { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.mock-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.w-90 { width: 90%; } .w-62 { width: 62%; } .w-28 { width: 28%; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th, .mock-table td { padding: 6px 4px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.mock-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.mock-table td { font-family: var(--mono); font-size: 12px; }
.mock-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mock-chip { border-radius: 6px; padding: 4px 10px; font-size: 12px; background: var(--brand); color: #fff; }
.mock-chip.light { background: var(--brand-soft); color: var(--brand); }

.section { padding: 56px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; list-style: none; padding: 0; margin: 0; }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; counter-increment: flow; }
.flow li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.flow h3 { margin-bottom: 4px; }
.flow p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { margin-top: 56px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, var(--brand), #0e7490); color: #fff; border-radius: var(--radius); }
.cta h2 { color: #fff; margin-bottom: 4px; }
.cta p { margin: 0; color: #ccfbf1; }
.cta .btn { background: #fff; color: var(--brand); }
.cta .btn:hover { background: var(--brand-soft); }

/* ---------- 页面标题 ---------- */

.page { padding: 36px 0 0; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; }

/* ---------- 待开通、微信 ---------- */

.notice { text-align: center; }
.notice-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-soft); color: var(--ok); }
.notice-icon svg { width: 28px; height: 28px; }
.notice-icon.warn { background: var(--warn-soft); color: var(--warn); }

.wechat { display: grid; justify-items: center; gap: 12px; margin: 20px 0 8px; }
.wechat-id { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed var(--brand-line); background: var(--brand-soft); border-radius: var(--radius-sm); padding: 6px 6px 6px 14px; }
.wechat-id code { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink); }
.wechat-qr { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 8px; }
.wechat-inline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wechat-inline .wechat-qr { width: 120px; height: 120px; }

/* ---------- 账户页 ---------- */

.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.account-grid .span-2 { grid-column: 1 / -1; }

.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }

.quota { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 16px; }
.quota-item { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.quota-item span { display: block; color: var(--muted); font-size: 13px; }
.quota-item strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.quota-item.main { background: var(--brand-soft); border-color: var(--brand-line); }
.quota-item.main strong { color: var(--brand); }
progress.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 10px; color: var(--brand); }
progress.meter::-webkit-progress-bar { background: #e2e8f0; border-radius: 999px; }
progress.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: 999px; }

.unavailable { display: flex; align-items: center; gap: 10px; color: var(--muted); background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px; }

/* ---------- 下载页 ---------- */

.download-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.version { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.version strong { color: var(--ink); }
.notes { white-space: pre-line; color: var(--ink-2); margin: 0; }

.install { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.install li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; }
.install-text h3 { display: flex; align-items: center; gap: 10px; }
.install-text h3::before { content: counter(step); display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.install-text p { color: var(--ink-2); margin: 0; }
.install-text code { font-family: var(--mono); background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.install figure { margin: 0; }
.install figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.install figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }

/* ---------- 协议页 ---------- */

.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.placeholder { border: 1px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }

/* ---------- 错误页 ---------- */

.error-page { text-align: center; padding: 80px 0 40px; }
.error-page h1 { font-size: 26px; }

/* ---------- 后台 ---------- */

.admin-body { background: #f3f5f8; }
.admin-header { background: #0f172a; color: #e2e8f0; }
.admin-header .header-inner { height: 56px; }
.admin-header .logo { color: #fff; font-size: 16px; }
.admin-header .logo small { font-weight: 500; color: #94a3b8; font-size: 13px; }
.admin-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.admin-nav a, .admin-nav .link-button { color: #cbd5e1; padding: 6px 12px; border-radius: 6px; }
.admin-nav a:hover, .admin-nav .link-button:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.admin-nav a.active { color: #fff; background: rgba(255, 255, 255, .14); }
.admin-main { padding: 28px 0 0; }
.admin-main .container { max-width: 1200px; }
.admin-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-title h1 { font-size: 22px; margin: 0; }
.admin-title .count { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.admin-banner { margin: 0 0 20px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #edf1f5; white-space: nowrap; }
.table th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 13px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #f8fafc; }
.table .empty { text-align: center; color: var(--muted); padding: 40px 14px; }
.table a.mono { font-weight: 600; }
.neg { color: var(--danger); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; }
.tabs a { padding: 6px 14px; border-radius: 6px; color: var(--ink-2); font-size: 14px; }
.tabs a:hover { text-decoration: none; background: #f1f5f9; }
.tabs a.active { background: var(--brand); color: #fff; }
.search { display: flex; gap: 8px; }
.search input { width: 220px; min-height: 38px; padding: 6px 12px; }
.search .btn { min-height: 38px; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.pager .button-row { gap: 8px; }

.pending-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pending-list > li { padding: 14px 18px; border-bottom: 1px solid #edf1f5; }
.pending-list > li:last-child { border-bottom: 0; }
.pending-row { display: flex; align-items: center; gap: 16px; }
.pending-row .who { flex: 1 1 auto; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.pending-row .who a { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.activate > summary { list-style: none; }
.activate > summary::-webkit-details-marker { display: none; }
.activate > summary { cursor: pointer; }
.activate[open] > summary .btn { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.activate .when-open, .activate[open] .when-closed { display: none; }
.activate[open] .when-open { display: inline; }
.activate-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; padding: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); }
.activate-form .field { min-width: 140px; }
.activate-form input, .activate-form select { min-height: 40px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: start; }
.actions { display: grid; gap: 14px; }
.action { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.action h3 { margin: 0; font-size: 15px; }
.action p { margin: 0; font-size: 13px; color: var(--muted); }
.action .input-row input, .action .input-row select { min-height: 40px; }
.action .input-row .btn { min-height: 40px; }
.action-danger { border-color: #fecaca; }

.settings-form { display: grid; gap: 20px; max-width: 760px; }
.settings-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.settings-form legend { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-current { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-current img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.form-actions { display: flex; gap: 12px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, #f3f5f8 30%); }

dialog.confirm { border: 0; border-radius: var(--radius); padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(15, 23, 42, .3); }
dialog.confirm::backdrop { background: rgba(15, 23, 42, .45); }
.confirm-body { padding: 24px; }
.confirm-body h2 { font-size: 18px; }
.confirm-body p { color: var(--ink-2); margin: 0; white-space: pre-line; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; background: #f8fafc; border-top: 1px solid var(--line); }

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .install li { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 380px) {
  .nav-download-long { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .logo span { font-size: 16px; }
  .nav { gap: 12px; font-size: 13.5px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15.5px; }
  .features, .flow { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .card { padding: 20px; }
  .auth { padding: 24px 0 8px; }
  .account-grid { grid-template-columns: 1fr; }
  .quota { grid-template-columns: 1fr; }
  .quota-item { display: flex; justify-content: space-between; align-items: baseline; }
  .quota-item strong { font-size: 20px; }
  .two-cols { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .search { width: 100%; }
  .admin-header .logo small { display: none; }
  .admin-nav a, .admin-nav .link-button { padding: 6px 8px; }
  .pending-row { flex-wrap: wrap; }
  .captcha-image { width: 104px; }
  .site-footer { margin-top: 40px; }
}
