/* i589.win — 视觉遵循 Apple 的设计语言：大量留白、克制的黑白灰、单一蓝色强调、胶囊按钮、无边框圆角面板。 */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --fill: #f5f5f7;
  --fill-2: #e8e8ed;
  --brand: #0071e3;
  --brand-hi: #0077ed;
  --link: #0066cc;
  --red: #d70015;
  --amber: #b25000;
  --green: #1d7a36;
  --blue: #0071e3;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 600; color: var(--ink); }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.17; letter-spacing: -0.012em; }
h3 { font-size: 19px; line-height: 1.26; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 600; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
main.wrap { padding-top: 44px; padding-bottom: 88px; min-height: 72vh; }
main.narrow { max-width: 480px; padding-top: 72px; }
main.narrow h1 { font-size: 32px; text-align: center; margin-bottom: 20px; }

/* ---------- 注册 / 登录：左侧品牌面板 + 右侧表单 ---------- */
.auth { max-width: 1040px; margin: 0 auto; padding: 56px 22px 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  border-radius: 28px 0 0 28px; color: #f5f5f7; padding: 56px 48px; display: flex; align-items: flex-end; min-height: 600px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(41, 151, 255, .55) 0%, rgba(41, 151, 255, 0) 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(120, 90, 255, .38) 0%, rgba(120, 90, 255, 0) 62%),
    #0b0b0f;
}
.auth-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .62); margin: 0 0 14px; }
.auth-side h2 { color: #fff; font-size: 38px; line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 14px; }
.auth-lead { color: rgba(255, 255, 255, .74); margin: 0 0 30px; max-width: 22em; }
.auth-points { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.auth-points li { display: flex; gap: 10px; align-items: baseline; }
.auth-points li::before { content: "✓"; color: #5ab0ff; font-weight: 600; }
.auth-main { background: #fff; border-radius: 0 28px 28px 0; padding: 56px 48px; display: flex; align-items: center; justify-content: center; }
.auth-form { width: 100%; max-width: 360px; }
.auth-form h1 { font-size: 32px; margin: 0 0 8px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.auth-sub a { margin-left: 4px; }
.auth-form .field { margin: 0 0 16px; }
.auth-form .field > label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=text] {
  background: var(--fill); border-color: transparent; border-radius: 12px; padding: 14px 16px;
}
.auth-form input:hover { background: var(--fill-2); }
.auth-form input:focus { background: #fff; border-color: var(--brand); }
.pw { position: relative; }
.pw input { padding-right: 64px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--link); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { background: rgba(0, 0, 0, .05); }
.auth-btn, button.auth-btn { display: block; width: 100%; margin-top: 26px; padding: 14px 22px; font-size: 17px; }
.auth-note { color: var(--faint); font-size: 13px; text-align: center; margin: 18px 0 0; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; padding: 20px 16px 56px; }
  .auth-side { border-radius: 22px 22px 0 0; min-height: 0; padding: 28px 24px; }
  .auth-side h2 { font-size: 26px; margin-bottom: 8px; }
  .auth-lead { margin: 0; font-size: 15px; }
  .auth-points { display: none; }
  .auth-main { border-radius: 0 0 22px 22px; padding: 32px 24px 36px; }
  .auth-form { max-width: none; }
}
main.bleed { min-height: 72vh; }
.muted { color: var(--muted); }
.sm { font-size: 14px; line-height: 1.43; }

/* ---------- 顶部导航：半透明毛玻璃 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--faint); font-weight: 400; }
.logo .tag { margin-left: 10px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a:not(.btn) { color: var(--ink); opacity: .82; }
.top nav a:not(.btn):hover { opacity: 1; text-decoration: none; }
.top nav form { display: flex; }
.inline { display: inline; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); opacity: .82; cursor: pointer; }
.link:hover { opacity: 1; }

/* ---------- 按钮：胶囊 ---------- */
.btn, button.btn {
  display: inline-block; background: var(--brand); color: #fff !important; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 22px; font: inherit; font-size: 17px; font-weight: 400; line-height: 1.18; letter-spacing: -0.01em;
  text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn:hover { background: var(--brand-hi); text-decoration: none; }
.btn:active { background: #006edb; }
.btn:focus-visible, a:focus-visible, .link:focus-visible { outline: 4px solid rgba(0, 125, 250, .6); outline-offset: 2px; }
.btn.sm { padding: 7px 15px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--link) !important; border-color: var(--link); }
.btn.ghost:hover { background: var(--link); color: #fff !important; }
.btn.warn { background: var(--ink); }
.btn.danger { background: transparent; color: var(--red) !important; border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.danger:hover { text-decoration: underline; }
.btn[disabled] { background: var(--fill-2); color: var(--faint) !important; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 22px; }
.more::after { content: " ›"; }

/* ---------- 面板 ---------- */
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 32px; margin: 0 0 20px; }
fieldset.card { min-width: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid .card { margin: 0; }
a.card { transition: transform .3s ease, box-shadow .3s ease; }
a.card:hover { transform: scale(1.012); box-shadow: 0 8px 28px rgba(0, 0, 0, .08); text-decoration: none; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card [style*="border-top"] { border-top-color: var(--hair) !important; padding: 18px 0 !important; }

/* ---------- 表单 ---------- */
.field { margin: 22px 0; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.help { color: var(--muted); font-size: 14px; line-height: 1.43; margin: 0 0 8px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type=file] { padding: 11px 12px; font-size: 14px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 120px; line-height: 1.47; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 125, 250, .18); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.col { flex-direction: column; gap: 10px; }
.choice { font-weight: 400; display: flex; gap: 10px; align-items: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: var(--faint); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
form > .choice { display: inline-flex; }

/* ---------- 提示 ---------- */
.flash, .notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.43; }
.flash.ok { background: #e9f7ee; color: var(--green); }
.flash.err { background: #fff0f1; color: var(--red); }
.notice { background: var(--fill); color: var(--ink); }
.card .notice { background: var(--fill); }
main > form > .notice, main > .notice { background: #fff; }

.tag { display: inline-block; font-size: 12px; font-weight: 400; line-height: 1.33; padding: 3px 10px; border-radius: 980px; background: var(--fill-2); color: var(--muted); margin-left: 10px; vertical-align: middle; white-space: nowrap; letter-spacing: 0; }
.tag.green { background: #e3f5e8; color: var(--green); }

/* ---------- 案件导航 ---------- */
.case-head { margin-bottom: 32px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 0 13px; color: var(--ink); opacity: .78; white-space: nowrap; font-size: 14px; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs a:hover { opacity: 1; text-decoration: none; }
.tabs a.on { opacity: 1; border-bottom-color: var(--ink); font-weight: 600; }
.tabs a.locked { opacity: .36; }
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subtabs a { padding: 7px 15px; border-radius: 8px; color: var(--ink); font-size: 14px; background: var(--fill-2); transition: background .2s ease; }
.subtabs a:hover { background: #dcdce1; text-decoration: none; }
.subtabs a.on { background: var(--ink); color: #fff; }

/* ---------- 评分 ---------- */
.score { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; flex: none; display: grid; place-items: center;
  --sc: hsl(calc(var(--p) * 1.3) 70% 40%); --sc: color-mix(in oklch, #d92d20, #12a150 calc(var(--p) * 1%)); /* 分数越高越绿，越低越红 */
  background: conic-gradient(var(--sc) calc(var(--p) * 1%), var(--fill-2) 0); }
.ring b { color: var(--sc); }
.ring b { width: 74px; height: 74px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.score-label { font-weight: 600; font-size: 21px; line-height: 1.2; margin-bottom: 4px; }

.issues { list-style: none; padding: 0; margin: 0; }
.issues li { background: var(--fill); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.issues .tag { margin: 0 10px 0 0; background: #fff; }
.issues li.sev-high .tag { color: var(--red); }
.issues li.sev-medium .tag { color: var(--amber); }
.issues li.sev-low .tag { color: var(--blue); }
.issues p { margin: 6px 0 0; font-size: 15px; }
.list-block { margin-top: 24px; }
.list-block h3 { font-size: 17px; }
.list-block ul { margin: 0; padding-left: 20px; }
.list-block li { margin-bottom: 4px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 22px 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill-2); color: var(--muted); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps li.done::before { content: "✓"; background: var(--brand); color: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: 6px; width: 1px; background: var(--line); }
.steps b { display: block; }

/* ---------- 表格与文档 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.43; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 400; }
.table-wrap { overflow-x: auto; }
pre.doc { white-space: pre-wrap; word-break: break-word; background: var(--fill); border: 0; border-radius: 12px; padding: 20px; font: inherit; font-size: 15px; max-height: 520px; overflow: auto; }
pre.raw { white-space: pre-wrap; word-break: break-word; background: #1d1d1f; color: #f5f5f7; border-radius: 12px; padding: 16px; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; max-height: 420px; overflow: auto; }
details { margin: 12px 0; }
details.card { margin: 0 0 20px; }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--faint); }

/* ---------- 首页 ---------- */
.hero { background: #fff; text-align: center; padding: 96px 22px 104px; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.hero h1 { font-size: 64px; line-height: 1.08; letter-spacing: -0.03em; max-width: 14em; margin: 0 auto 18px; }
.hero .lead { font-size: 24px; line-height: 1.33; color: var(--muted); max-width: 30em; margin: 0 auto; font-weight: 400; }
.hero .actions { justify-content: center; margin-top: 34px; gap: 14px 30px; }
.hero .actions a:not(.btn) { font-size: 19px; }
.band { padding: 88px 0; }
.band.white { background: #fff; }
.band-head { text-align: center; margin-bottom: 48px; }
.band-head h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 12px; }
.band-head p { font-size: 21px; line-height: 1.38; color: var(--muted); max-width: 30em; margin: 0 auto; }
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tile { background: #fff; border-radius: 28px; padding: 36px 32px 40px; min-height: 230px; }
.band.white .tile { background: var(--fill); }
.tile .num { font-size: 14px; font-weight: 600; color: var(--faint); margin-bottom: 44px; letter-spacing: .02em; }
.tile h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.012em; margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; font-size: 17px; }
.tile.wide { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; min-height: 0; }
.tile.full .num { margin-bottom: 24px; }
.pricing { text-align: center; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.price small { font-size: 17px; color: var(--muted); font-weight: 400; letter-spacing: -0.01em; }
.pricing .price { font-size: 96px; letter-spacing: -0.04em; }
.pricing .price small { display: block; font-size: 21px; margin-top: 6px; }
.pricing p.lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 24px auto 0; }
.price a { color: inherit; }

/* ---------- 模拟面谈：对话气泡 ---------- */
.chat-log { max-height: 520px; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; padding: 10px 16px; border-radius: 20px; white-space: pre-wrap; font-size: 16px; line-height: 1.4; }
.msg.officer { background: #e9e9eb; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.applicant { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg small { display: none; }

.foot { border-top: 1px solid var(--hair); padding: 22px 0 36px; color: var(--muted); font-size: 12px; line-height: 1.6; background: var(--bg); }
.foot p { margin: 0; }
.foot-notes { margin: 0 0 16px; padding: 0 0 16px 1.6em; border-bottom: 1px solid var(--hair); }
.foot-notes li { margin: 0 0 .75em; padding-left: .2em; }
.foot-notes li:last-child { margin-bottom: 0; }
.foot-notes li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.foot-links > * { padding: 0 12px; border-left: 1px solid var(--line); color: var(--muted); }
.foot-links > :first-child { padding-left: 0; border-left: 0; }
.foot-links a:hover { color: var(--ink); }

#busy { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; z-index: 50; }
#busy[hidden] { display: none; }
.busy-box { background: rgba(255, 255, 255, .96); padding: 36px 40px; border-radius: 22px; text-align: center; max-width: 340px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.busy-box p { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.spin { width: 30px; height: 30px; border: 3px solid var(--fill-2); border-top-color: var(--faint); border-radius: 50%; margin: 0 auto; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 834px) {
  .hero { padding: 64px 22px 72px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 21px; }
  .band { padding: 64px 0; }
  .band-head h2 { font-size: 36px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pricing .price { font-size: 72px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 28px; padding-bottom: 56px; }
  main.narrow { padding-top: 40px; }
  .card { padding: 22px 20px; border-radius: 16px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 19px; }
  .band-head h2 { font-size: 30px; }
  .band-head p { font-size: 17px; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; border-radius: 22px; padding: 28px 24px; }
  .tile .num { margin-bottom: 24px; }
  .top nav { gap: 18px; }
  .msg { max-width: 90%; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0s !important; }
}
.top nav form, .top nav a { display: flex; align-items: center; height: 52px; }
.top nav a.btn { height: auto; }
.link { line-height: 1; }
h1, h2, .lead, .band-head p { text-wrap: balance; }
form { margin: 0; }

/* ---------- 管理后台：左侧导航 + 右侧内容 ---------- */
body.adm { display: flex; min-height: 100vh; background: var(--bg); font-size: 15px; }
.side { width: 232px; position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--hair); padding: 22px 14px 16px; overflow-y: auto; }
.side-brand { display: block; padding: 0 10px 22px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.side-brand:hover { text-decoration: none; }
.side-brand span { color: var(--faint); font-weight: 400; }
.side-brand small { display: block; font-size: 12px; font-weight: 400; color: var(--faint); letter-spacing: 0; margin-top: 2px; }
.side-nav { flex: 1; }
.side-group { margin-bottom: 20px; }
.side-title { font-size: 12px; color: var(--faint); padding: 0 10px 6px; }
.side-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.3; margin-bottom: 2px; }
.side-nav a:hover { background: var(--fill); text-decoration: none; }
.side-nav a.on { background: var(--fill-2); font-weight: 600; }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.side-foot .link { font-size: 13px; color: var(--muted); opacity: 1; }
.adm-main { flex: 1; min-width: 0; margin-left: 232px; }
.adm-head { position: sticky; top: 0; z-index: 10; padding: 18px 36px; background: rgba(245, 245, 247, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.adm-head h1 { font-size: 22px; margin: 0; letter-spacing: -0.015em; }
.adm-body { padding: 28px 36px 64px; max-width: 1120px; }
.adm .card { padding: 24px; border-radius: 14px; margin-bottom: 16px; }
.adm .grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.adm h2 { font-size: 18px; }
.adm h3 { font-size: 16px; }
.adm .price { font-size: 30px; }
.adm .field { margin: 16px 0; }
.adm input[type=text], .adm input[type=password], .adm input[type=number], .adm select, .adm textarea { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.adm .btn { font-size: 15px; padding: 9px 18px; }
.adm .btn.sm { font-size: 13px; padding: 6px 13px; }
.adm form .field input[type=text], .adm form .field input[type=password], .adm form .field input[type=number], .adm form .field select { max-width: 520px; }
@media (max-width: 820px) {
  body.adm { display: block; }
  .adm-main { margin-left: 0; }
  .side { position: static; width: auto; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
  .side-brand { padding: 0 8px 0 4px; white-space: nowrap; }
  .side-brand small, .side-title { display: none; }
  .side-nav { display: flex; gap: 2px; }
  .side-group { display: flex; gap: 2px; margin: 0; }
  .side-nav a { white-space: nowrap; margin: 0; }
  .side-foot { border: 0; padding: 0 4px; }
  .side-user { display: none; }
  .adm-head { position: static; padding: 16px; }
  .adm-body { padding: 16px 16px 48px; }
}
/* 后台内容区铺满右侧；超宽屏时限制最大宽度并居中 */
.adm-body { max-width: 1680px; margin: 0 auto; }
.adm-head h1 { max-width: 1608px; margin: 0 auto; }
.adm .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 后台：并排字段与价格行 */
.adm .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--hair); }
.price-row:first-of-type { border-top: 0; }
.price-row .nm { font-weight: 600; }
.price-row .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.price-in { display: flex; align-items: center; gap: 8px; flex: none; color: var(--muted); }
.adm .price-in input[type=text] { width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
.price-in .unit { width: 34px; white-space: nowrap; }

/* 后台：密钥页 */
.keycard { scroll-margin-top: 90px; }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.key-head h3 { margin: 0; }
.key-head .tag { margin: 0; }
.keycard > p.muted { margin: 6px 0 14px; }
.howto { background: var(--fill); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.howto summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.howto ol { margin: 12px 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.howto li { margin-bottom: 4px; }
.howto code { background: #fff; border-radius: 6px; padding: 1px 6px; font: 13px ui-monospace, "SF Mono", Menlo, monospace; }
.howto .btn { background: #fff; }
.key-item { padding: 14px 0; border-top: 1px solid var(--hair); margin: 0; }
.key-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.key-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.key-hint { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--fill); border-radius: 6px; padding: 2px 8px; }
.key-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.key-item > .key-row { margin-top: 10px; }
.key-edit[hidden] { display: none; }
.howto { margin-bottom: 4px !important; }
.key-row { display: flex; align-items: center; gap: 10px; }
.key-row input { flex: 1; min-width: 0; }
.key-row .btn { flex: none; }
.key-test { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.key-test .btn { flex: none; }
.test-out.ok { color: var(--green); }
.test-out.bad { color: var(--red); }
.field-block { margin: 12px 0 0; }
.field-block[hidden] { display: none; }
.run-input { margin-top: 18px; }
.run-input summary { font-size: 15px; font-weight: 400; color: var(--link); }
.run-del { margin-top: 16px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-head form { margin: 0; }
.dash-head + p { margin-top: 10px; }
.next-list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.next-list li { background: var(--fill); border-radius: 12px; padding: 14px 18px; }
.next-list b { display: block; margin-bottom: 2px; }
.next-list span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.actions form { margin: 0; }

/* 选了被拦截的选项（非中国籍）：只留这一题、提示和「删除草稿」 */
form.is-blocked fieldset:not(:has([data-block])),
form.is-blocked .field:not(:has([data-block])),
form.is-blocked .actions button:not([formaction$="/delete"]),
form.is-blocked .wiz-nav, form.is-blocked .wiz-progress, form.is-blocked .wiz-save, form.is-blocked .wiz-saved,
form.is-blocked .wiz-eyebrow, form.is-blocked .step-intro { display: none; }

/* 逐条填写的经历 */
.periods { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.period-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.period-row input[type=text] { flex: 1 1 200px; width: auto; }
.period-ym { display: flex; gap: 6px; }
.period-ym select { width: auto; padding: 14px 34px 14px 14px; background-position: right 12px center; }
.period-sep { color: var(--muted); }
.period-del { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.period-del:hover { background: var(--fill); color: var(--red); }

/* 日期选择器 */
.datepick { position: relative; }
.date-btn { width: 100%; padding: 14px 44px 14px 16px; font: inherit; text-align: left; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='13' height='12' rx='2.5'/%3E%3Cpath d='M2.5 7.5h13M6 2v3M12 2v3'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.date-btn.empty { color: var(--faint); }
.date-btn:focus, .datepick.open .date-btn { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 125, 250, .18); }
.date-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 320px; max-width: 100%; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
.date-pop[hidden] { display: none; }
.date-head { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.date-head select { flex: 1; width: auto; min-width: 0; padding: 8px 28px 8px 12px; border-radius: 10px; font-size: 15px; background-position: right 10px center; }
.date-nav { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.date-nav:hover, .date-day:hover { background: var(--fill); }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; justify-items: center; }
.date-week { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.date-day { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.date-day.today { color: var(--brand); font-weight: 600; }
.date-day.on, .date-day.on:hover { background: var(--brand); color: #fff; }
.date-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.date-link { border: 0; background: none; color: var(--link); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 6px; }
.period-row > select { flex: 1 1 180px; width: auto; }
input.year-input { width: 140px; font-variant-numeric: tabular-nums; }

/* ---------- 中文排版：中西文之间自动留空、标点不落行首、标题均衡换行 ---------- */
body { text-autospace: normal; line-break: strict; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p, li, label { text-wrap: pretty; }

/* ---------- 分步问卷（资格评估） ---------- */
.wiz { max-width: 760px; margin: 0 auto; }
.wiz-head { margin: 8px 0 22px; }
.wiz-head h1 { font-size: 34px; margin-bottom: 12px; }
.wiz-lede { font-size: 19px; line-height: 1.53; margin: 0 0 8px; max-width: 33em; }
.wiz-quota { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.wiz-quota b { color: var(--ink); }

.wiz-progress { position: sticky; top: 53px; z-index: 10; margin: 0 -22px 16px; padding: 12px 22px 12px; background: rgba(245, 245, 247, .88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
.wiz-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
.wiz-meta span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-meta span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wiz-bar { height: 6px; border-radius: 980px; background: var(--fill-2); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 0; border-radius: 980px; background: var(--brand); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.wiz-dots { display: flex; gap: 6px; margin-top: 10px; }
.wiz-dots button { flex: 1; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.wiz-dots button::before { content: ""; display: block; height: 4px; border-radius: 980px; background: var(--fill-2); transition: background .25s ease; }
.wiz-dots button:hover::before { background: var(--line); }
.wiz-dots button.done::before { background: var(--green); }
.wiz-dots button.cur::before { background: var(--ink); }

.wiz-on .wiz-step { display: none; }
.wiz-on .wiz-step.cur { display: block; }
.wiz-on .wiz-step.in-next { animation: wiz-next .42s cubic-bezier(.2, .8, .2, 1) both; }
.wiz-on .wiz-step.in-prev { animation: wiz-prev .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wiz-next { from { opacity: 0; transform: translateX(36px); } }
@keyframes wiz-prev { from { opacity: 0; transform: translateX(-36px); } }
@media (prefers-reduced-motion: reduce) {
  .wiz-on .wiz-step.cur { animation: none; }
  .wiz-bar i { transition: none; }
}

.wiz-step { padding: 40px 44px 26px; }
.wiz-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--brand); }
.wiz-eyebrow span { color: var(--faint); font-weight: 400; }
.wiz-step h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-intro { font-size: 16px; line-height: 1.5; margin: 0; max-width: 34em; }
.wiz .field { margin: 0; padding: 28px 0 6px; border-top: 1px solid var(--hair); }
.wiz .wiz-step > .field:first-of-type { margin-top: 26px; }
.wiz .field > label { font-size: 18px; line-height: 1.44; letter-spacing: -0.012em; margin-bottom: 10px; max-width: 33em; }
.wiz .help { font-size: 15px; line-height: 1.53; margin: -4px 0 14px; max-width: 37em; }
.q-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 980px; background: var(--fill); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }
.wiz .choice { padding: 13px 18px; border-radius: 14px; line-height: 1.4; }
.wiz .choice:has(input:checked) { background: rgba(0, 113, 227, .05); }
.wiz textarea { min-height: 170px; line-height: 1.6; }
.wiz .field-block { font-size: 15px; }

.wiz-nav { display: flex; gap: 12px; margin-top: 4px; }
.wiz-nav .btn { padding: 14px 32px; }
.wiz-nav [data-wiz-next], .wiz-nav .wiz-final { margin-left: auto; }
.wiz-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; margin-top: 26px; font-size: 14px; color: var(--muted); }
.wiz-saved::before { content: "✓ "; color: var(--green); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

@media (max-width: 600px) {
  .wiz-head h1 { font-size: 28px; }
  .wiz-lede { font-size: 17px; }
  .wiz-step { padding: 28px 22px 18px; }
  .wiz-step h2 { font-size: 25px; }
  .wiz .field > label { font-size: 17px; }
  .wiz-nav .btn { flex: 1; padding: 14px 16px; }
  .wiz-nav [data-wiz-next], .wiz-nav .wiz-final { margin-left: 0; }
}
.wiz-nav [hidden], .wiz-sub [hidden] { display: none; }
main:has(.wiz) { overflow-x: clip; } /* 切换动画的横向位移不撑出横向滚动条 */
/* 进度只保留一条分段的步骤条：答完的步骤蓝色，当前步骤黑色 */
.wiz-dots { margin-top: 0; }
.wiz-dots button { height: 18px; }
.wiz-dots button::before { height: 6px; }
.wiz-dots button.done::before { background: var(--brand); }
.wiz-dots button.cur::before { background: var(--ink); }
.choice[hidden] { display: none; }

/* ---------- 弹窗（代替浏览器自带的 alert / confirm） ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 22px; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: modal-fade .2s ease both; }
.modal { width: 100%; max-width: 420px; padding: 30px 30px 24px; background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); animation: modal-pop .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.modal-title { font-size: 21px; margin: 0 0 8px; }
.modal-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.modal-acts .btn { padding: 11px 24px; min-width: 96px; }
.btn.modal-danger { background: var(--red); }
.btn.modal-danger:hover { background: #b80012; }
.modal-back.out { animation: modal-fade .18s ease reverse both; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 600px) { .modal-acts { flex-direction: column-reverse; } .modal-acts .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal { animation: none; } }
.field-note, .wiz .help.field-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--faint); }
.tag.amber { background: #fff4e5; color: var(--amber); }
.steps li.soon b { color: var(--muted); }

/* ---------- 左右两栏：左边内容，右边固定的操作栏（手机上顺序排列） ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.cols-side { position: sticky; top: 72px; }
.cols-side .card { padding: 26px; }
.cols-side h3 { margin-bottom: 8px; }
.cols-side .price { font-size: 40px; }
.cols-side .field { margin: 14px 0; }
.btn.block { display: block; width: 100%; }
.pay-note { margin: 14px 0 0; }
.side-price { margin: 16px 0 12px; font-size: 15px; color: var(--muted); }
.side-price b { font-size: 26px; color: var(--ink); letter-spacing: -0.02em; margin: 0 2px; }
.cols-side .next-list { margin: 14px 0 0; }
.cols-side .next-list li { padding: 12px 14px; }
.cols-side .next-list span { font-size: 13px; }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .cols-side { position: static; }
}

/* ---------- 审查页 ---------- */
.tag.red { background: #fff0f1; color: var(--red); }
.tl { list-style: none; margin: 8px 0 0; padding: 0; }
.tl li { position: relative; padding: 0 0 20px 26px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 1px; background: var(--line); }
.tl time { display: block; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl b { display: block; font-weight: 400; }
.cover { list-style: none; margin: 0; padding: 0; }
.cover li { padding: 14px 0; border-top: 1px solid var(--hair); }
.cover li:first-child { border-top: 0; padding-top: 4px; }
.cover .tag { margin: 0 10px 0 0; }
.cover p { margin: 4px 0 0; }
.cmp { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 15px; }
.cmp dt { color: var(--muted); white-space: nowrap; }
.cmp dd { margin: 0; }
.cols-side .card { padding: 22px 24px; margin-bottom: 14px; }

/* ---------- 问卷选项（重做）：不显示原生圆点，选中整块变色 ----------
   pills：两三个短选项并排；grid：很多短选项排成等宽网格；col：长选项或多选，一行一个，左侧带勾选标记 */
.choices { gap: 10px; }
.choices.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.choices .choice { position: relative; padding: 13px 18px; border: 1.5px solid transparent; border-radius: 12px; background: var(--fill); line-height: 1.4; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.choices .choice:hover { background: var(--fill-2); border-color: transparent; }
.choices .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choices .choice:has(input:checked) { background: rgba(0, 113, 227, .09); border-color: var(--brand); box-shadow: none; color: #0058b0; font-weight: 500; }
.choices .choice:has(input:focus-visible) { outline: 4px solid rgba(0, 125, 250, .35); outline-offset: 1px; }
.choices.pills .choice, .choices.grid .choice { justify-content: center; text-align: center; }
.choices.pills .choice { min-width: 112px; padding-left: 24px; padding-right: 24px; }
.choices.col .choice { gap: 12px; }
.choices.col .choice::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #b9b9c0; background: #fff center / 12px no-repeat; transition: border-color .15s ease, background-color .15s ease, border-width .15s ease; }
.choices.col .choice:has(input[type=checkbox])::before { border-radius: 6px; }
.choices.col .choice:has(input[type=radio]:checked)::before { border: 6px solid var(--brand); }
.choices.col .choice:has(input[type=checkbox]:checked)::before { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* 分步问卷：题与题之间只用留白分隔，追问缩进，输入框用浅底 */
.wiz-step { padding: 44px 48px 44px; }
.wiz .field { border-top: 0; padding: 0; margin: 40px 0 0; }
.wiz .wiz-step > .field:first-of-type { margin-top: 28px; padding-top: 32px; border-top: 1px solid var(--hair); }
.wiz .field[data-when] { margin-top: 20px; padding: 2px 0 2px 18px; border-left: 2px solid var(--fill-2); }
.wiz .field[data-when] > label { font-size: 16px; }
.wiz .field > label { margin-bottom: 12px; }
.wiz .choice, .wiz .choice:has(input:checked) { border-radius: 12px; }
.wiz .choice:has(input:checked) { background: rgba(0, 113, 227, .09); }
.wiz input[type=text], .wiz textarea, .wiz select, .wiz .date-btn { background-color: var(--fill); border-color: transparent; }
.wiz input[type=text]:hover, .wiz textarea:hover, .wiz select:hover, .wiz .date-btn:hover { background-color: var(--fill-2); }
.wiz input[type=text]:focus, .wiz textarea:focus, .wiz select:focus, .wiz .date-btn:focus, .wiz .datepick.open .date-btn { background-color: #fff; border-color: var(--brand); }
.wiz .date-btn { max-width: 320px; }
.wiz .date-pop select { background-color: #fff; border-color: var(--line); }
.field-note, .wiz .help.field-note { max-width: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--fill); color: var(--muted); font-size: 13px; line-height: 1.65; }
.wiz .period-row { padding: 0; }
.wiz-nav { margin-top: 8px; }
@media (max-width: 600px) {
  .wiz-step { padding: 28px 20px 30px; }
  .wiz .field { margin-top: 32px; }
  .choices.grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .choices.pills .choice { flex: 1; min-width: 0; }
}

/* 评估结果里的关键信息标记 */
mark.hl { padding: 1px 2px; margin: 0; border-radius: 5px; font-weight: 600; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.hl.good { background: #dff5e6; color: #116b34; }
mark.hl.bad { background: #fde3e1; color: #b3261e; }

/* 评估改名 */
.rename-btn { margin-left: 8px; font-size: 13px; }
.rename-form { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; vertical-align: middle; }
.rename-form[hidden] { display: none; }
.rename-form input { width: 240px; max-width: 50vw; padding: 6px 10px; font-size: 14px; border-radius: 8px; }
/* 报告页的答卷对照 */
.sheet { margin-top: 26px; }
.sheet h3 { margin: 0 0 4px; font-size: 15px; }
.sheet dl { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sheet dt, .sheet dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.55; }
.sheet dt { color: var(--muted); padding-right: 20px; }
.sheet dd { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) {
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .sheet dd { padding-top: 2px; }
}

/* 工作台的评估卡片：标题不折行，下面一行操作 */
.eval-card { display: flex; flex-direction: column; padding-bottom: 18px; }
.eval-link { display: block; flex: 1; color: inherit; text-decoration: none; }
.eval-link:hover { text-decoration: none; }
.eval-link:hover .eval-title { color: var(--link); }
.eval-link h3 { display: flex; align-items: flex-start; gap: 8px; margin-top: 0; }
.eval-title { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; transition: color .15s ease; }
.eval-link h3 .tag { flex: none; margin: 3px 0 0; }
.card-acts { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; }
.card-acts[hidden] { display: none; }
.card-acts .link-btn { font-size: 13px; }
.card-rename { display: flex; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); }
.card-rename input[type=text] { flex: 1; width: auto; min-width: 0; max-width: none; }

/* 评估结果页：已建立的案件 */
.made-list { list-style: none; margin: 10px 0 0; padding: 0; }
.made-list li { padding: 10px 0; border-top: 1px solid var(--hair); line-height: 1.5; }
.made-list li:first-child { border-top: 0; padding-top: 0; }
.made-list li:last-child { padding-bottom: 0; }
.made-list a { font-weight: 600; }
.made-list .muted { display: block; }

/* 评估报告页：结论卡（分数 | 总体判断，底部一条操作栏）+ 左分析右答卷 */
.rep-hero { padding: 0; overflow: hidden; }
.rep-top { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.rep-score { padding: 40px 28px 36px; text-align: center; border-right: 1px solid var(--hair); }
.rep-score .ring { width: 132px; height: 132px; margin: 0 auto 18px; }
.rep-score .ring b { width: 112px; height: 112px; font-size: 44px; letter-spacing: -0.03em; }
.rep-verdict { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; word-break: keep-all; }
.rep-meta { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--faint); }
.rep-stats { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.rep-stat { display: block; padding: 8px 12px; border-radius: 10px; font-size: 13px; text-decoration: none; }
.rep-stat:hover { text-decoration: none; filter: brightness(.97); }
.rep-stat b { font-size: 15px; margin-right: 2px; }
.rep-stat.bad { background: #fdeceb; color: #b3261e; }
.rep-stat.good { background: #e6f6ec; color: #116b34; }
.rep-main { padding: 40px 48px 36px; }
.rep-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.rep-summary { font-size: 18px; line-height: 1.8; margin: 0; max-width: 46em; }
.rep-main .flash { margin: 20px 0 0; }
.rep-legend { margin: 22px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.rep-legend mark.hl { font-size: 12px; padding: 1px 5px; }
.rep-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 28px 20px 36px; background: #fafafc; border-top: 1px solid var(--hair); }
.rep-bar-text { min-width: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rep-bar-text > b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.rep-made { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rep-made a { font-weight: 600; }
.rep-made .tag { margin-left: 6px; }
.rep-bar-acts { display: flex; flex: none; gap: 10px; }
.rep-bar-acts .btn { white-space: nowrap; }
.rep-fine { margin: 0; padding: 12px 36px 14px; background: #fafafc; border-top: 1px solid var(--hair); font-size: 12px; line-height: 1.6; color: var(--faint); }
.rep-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rep-body .card { margin: 0; padding: 36px 40px; }
.rep-body h2 { margin: 0 0 6px; }
.rep-anchor { display: block; position: relative; top: -72px; }
.rg { margin-top: 30px; }
.rg h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0 0 12px; font-size: 17px; border-bottom: 2px solid var(--ink); }
.rg.bad h3 { border-color: #d93025; color: #b3261e; }
.rg.good h3 { border-color: #1f9d55; color: #116b34; }
.rg-n { padding: 1px 9px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.rg.bad .rg-n { background: #fdeceb; color: #b3261e; }
.rg.good .rg-n { background: #e6f6ec; color: #116b34; }
.rg-list { list-style: none; margin: 0; padding: 0; counter-reset: rg; }
.rg-list li { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.75; }
.rg-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rg-t { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.rg-list.num li { position: relative; padding-left: 38px; counter-increment: rg; }
.rg-list.num li::before { content: counter(rg); position: absolute; left: 0; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 24px; text-align: center; }
.rep-disclaimer { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); }
/* 答卷按自然高度排，和分析一起随页面滚动，不再有内部滚动框 */
.rep-body .rep-sheet { padding: 30px 30px 32px; }
.rep-sheet h2 { font-size: 20px; }
.rep-sheet .sheet { margin-top: 24px; }
.rep-sheet .sheet h3 { margin: 0 0 6px; padding: 6px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; color: var(--muted); }
.rep-sheet .sheet dl { display: block; }
.rep-sheet .sheet dt { padding: 10px 12px 0; border: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.rep-sheet .sheet dd { padding: 2px 12px 10px; font-size: 14px; line-height: 1.6; }
.rep-sheet .sheet dd:last-child { border-bottom: 0; }
@media (max-width: 1000px) {
  .rep-top { grid-template-columns: 1fr; }
  .rep-score { padding: 28px 22px 24px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .rep-stats { flex-direction: row; justify-content: center; }
  .rep-main { padding: 26px 22px; }
  .rep-summary { font-size: 17px; }
  .rep-bar { flex-direction: column; align-items: stretch; padding: 20px 22px; }
  .rep-bar-acts { flex-direction: column-reverse; }
  .rep-bar-acts .btn { width: 100%; }
  .rep-fine { padding: 12px 22px 14px; }
  .rep-body { grid-template-columns: 1fr; }
  .rep-body .card, .rep-body .rep-sheet { padding: 26px 20px; }
}

/* 报告页底部的悬浮操作条：上面的操作栏滚出屏幕后出现 */
.rep-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 28px 18px; pointer-events: none; opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.rep-dock.show { opacity: 1; transform: none; }
.rep-dock-in { max-width: 1184px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 20px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
.rep-dock.show .rep-dock-in { pointer-events: auto; }
.rep-dock-score { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rep-dock-score > b { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; line-height: 44px; text-align: center; }
.rep-dock-score span { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.rep-dock-score small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-dock-acts { display: flex; flex: none; gap: 10px; }
.rep-dock-acts .btn { white-space: nowrap; }
body:has(.rep-dock) main.wrap { padding-bottom: 130px; }
@media (max-width: 700px) {
  .rep-dock { padding: 0 10px 10px; }
  .rep-dock-in { padding: 10px; gap: 10px; }
  .rep-dock-score { display: none; }
  .rep-dock-acts { flex: 1; }
  .rep-dock-acts form:last-child { flex: 1; }
  .rep-dock-acts form:last-child .btn { width: 100%; }
}

/* 工作台：左评估、右案件两个面板，里面是一行一条的列表 */
.dash-top { margin-bottom: 28px; }
.dash-top h1 { margin: 0 0 8px; }
.dash-top p { margin: 0; font-size: 17px; color: var(--muted); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { margin: 0; padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 28px 22px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.panel-head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.panel-head form { margin: 0; flex: none; }
.panel-n { padding: 1px 9px; border-radius: 980px; background: var(--fill-2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.panel-empty { margin: 0; padding: 26px 28px 30px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; padding: 0 20px 0 28px; border-top: 1px solid var(--hair); transition: background .15s ease; }
.row:hover { background: #fafafc; }
.row-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 16px 0; color: inherit; text-decoration: none; }
.row-link:hover { text-decoration: none; }
.row-link:hover .row-title { color: var(--link); }
.row-badge { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.row-badge.score { background: var(--ink); color: #fff; font-size: 17px; letter-spacing: -0.02em; }
.row-badge.draft { border: 1.5px dashed var(--line); color: var(--faint); }
.row-badge.case { background: var(--fill-2); color: var(--muted); border-radius: 12px; }
.row-badge.paid { background: #e6f6ec; color: #116b34; border-radius: 12px; }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.row-meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .row-acts { flex: none; display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; border: 0; }
.row .row-acts[hidden] { display: none; }
.row-go { padding: 6px 12px; border-radius: 8px; background: var(--fill); color: var(--ink); font-size: 13px; white-space: nowrap; }
.row-go:hover { background: var(--fill-2); text-decoration: none; }
.row .row-rename { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.row .row-rename[hidden] { display: none; }
.row .row-rename input[type=text] { width: 200px; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .panel-head { padding: 22px 18px 18px; }
  .row { flex-wrap: wrap; padding: 0 18px; gap: 0; }
  .row-link { flex: 1 1 100%; padding-bottom: 8px; }
  .row .row-acts { padding: 0 0 14px 62px; }
  .row .row-rename { flex: 1 1 100%; padding: 0 0 14px; }
  .row .row-rename input[type=text] { flex: 1; width: auto; }
}

.row-meta.wrap-ok { white-space: normal; overflow: visible; line-height: 1.5; }
.row:has(.wrap-ok) { align-items: flex-start; }
.row:has(.wrap-ok) .row-acts, .row:has(.wrap-ok) .row-rename { margin-top: 18px; }

/* 分数着色：0 分红、50 分橙黄、100 分绿，用在工作台的分数圆环和报告页悬浮条上 */
.sc { --p: 0; --sc: hsl(calc(var(--p) * 1.3) 70% 40%); --sc: color-mix(in oklch, #d92d20, #12a150 calc(var(--p) * 1%)); }
.row-badge.score { width: 50px; height: 50px; background: conic-gradient(var(--sc) calc(var(--p) * 1%), var(--fill-2) 0); }
.row-badge.score b { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--sc); display: grid; place-items: center; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.row:hover .row-badge.score b { background: #fafafc; }
.rep-dock-score > b.sc { background: var(--sc); }
.rep-verdict { color: var(--ink); }

/* 带图标的两列选项（宗教信仰） */
.choices.grid.two { grid-template-columns: 1fr 1fr; }
.choices.grid.two .choice { justify-content: flex-start; text-align: left; gap: 12px; padding: 14px 18px; }
.choice .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.flash.warn { background: #fff4e5; color: #8a3d00; }
.field-warn { margin: 14px 0 0; font-size: 14px; line-height: 1.65; }
.field-warn[hidden], .field-note[hidden] { display: none; }
@media (max-width: 420px) { .choices.grid.two .choice { padding: 12px 12px; gap: 9px; } .choice .ico { width: 30px; height: 30px; font-size: 16px; } }

/* ---------- 一次性提示：顶部浮层，几秒后自己消失 ---------- */
.flash.toast { position: fixed; z-index: 60; top: 72px; left: 50%; max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 11px 20px 11px 16px; display: flex; align-items: center; gap: 10px; border-radius: 980px; background: rgba(29, 29, 31, .94); color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 34px rgba(0, 0, 0, .2); transform: translateX(-50%); pointer-events: none; animation: toast-in .35s cubic-bezier(.2, .8, .2, 1) both, toast-out .4s ease 4.2s forwards; }
.flash.toast::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6'/%3E%3C/svg%3E") center / 18px no-repeat; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }
.adm .flash.toast { top: 20px; }

/* ---------- 工作台：上下结构 ---------- */
.dash { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dash-top { margin-bottom: 32px; }
.panel-head { align-items: center; padding: 30px 32px 24px; }
.panel-head h2 { font-size: 24px; letter-spacing: -0.015em; }
.panel-head p { font-size: 14px; max-width: 46em; }
.row { padding: 0 24px 0 32px; }
.row-link { padding: 18px 0; }
.row-title { font-size: 17px; }
.panel-empty { padding: 44px 32px 48px; text-align: center; font-size: 15px; line-height: 1.6; }
.panel-empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 14px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.8h7l4 4V19a1.2 1.2 0 0 1-1.2 1.2H7A1.2 1.2 0 0 1 5.8 19V5A1.2 1.2 0 0 1 7 3.8z'/%3E%3Cpath d='M14 3.8V8h4M9 12.5h6M9 16h4'/%3E%3C/svg%3E") center / 24px no-repeat; }
.dash-invite { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 22px 32px; }
.dash-invite b { display: block; font-size: 17px; margin-bottom: 2px; }
.dash-invite span { font-size: 14px; color: var(--muted); }
.dash-invite .btn { flex: none; }
@media (max-width: 600px) {
  .panel-head { align-items: flex-start; padding: 22px 18px 18px; }
  .row { padding: 0 18px; }
  .panel-empty { padding: 32px 18px 36px; }
  .dash-invite { flex-direction: column; align-items: flex-start; padding: 20px 18px; }
}

/* ---------- 账户 ---------- */
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; align-items: start; }
.acct-stat { margin: 0; padding: 28px 32px 30px; }
.acct-stat h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.acct-num { margin: 0 0 8px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.acct-stat > .muted { margin: 0 0 18px; min-height: 4.5em; }
.acct-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-act { margin: 0; }
.acct-act > summary { list-style: none; cursor: pointer; user-select: none; }
.acct-act > summary::-webkit-details-marker { display: none; }
.acct-act[open] { flex: 1 1 100%; }
.acct-act[open] > summary { background: var(--fill-2); border-color: transparent; color: var(--ink) !important; }
.acct-act form { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.acct-act form .field { margin: 0 0 14px; }
.acct-act form .field > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.acct-act form > p { margin: 12px 0 0; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 0; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .15s ease; }
.chip input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.acct-stats ~ .panel { margin-bottom: 24px; }
.panel > .table-wrap { border-top: 1px solid var(--hair); padding: 6px 32px 18px; }
.panel > .table-wrap th { font-size: 13px; }
.panel > .table-wrap td, .panel > .table-wrap th { padding-left: 0; padding-right: 20px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num.pos { color: var(--green); }
td.num.neg { color: var(--ink); }
.cell-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tag.flat { margin: 0; }
.row > .row-badge { margin: 16px 0; }
.row > .row-badge + .row-text { margin-left: 4px; }
.row-badge.paid, .row-badge.case { width: auto; min-width: 46px; padding: 0 10px; font-size: 14px; }
.invite-box { display: flex; gap: 10px; padding: 0 32px 18px; }
.invite-box input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill); font: inherit; font-size: 15px; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.invite-rules { margin: 0; padding: 0 32px 26px 50px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.invite-note { margin: 0 0 20px; padding: 13px 16px; border-radius: 12px; background: #e9f7ee; color: #116b34; font-size: 14px; line-height: 1.5; }
.quote { margin: 14px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 14px; }
.quote > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.quote dt, .quote dd { margin: 0; }
.quote dt { color: var(--muted); }
.quote dd { font-variant-numeric: tabular-nums; }
.quote .due { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); font-weight: 600; }
.quote .due dt { color: var(--ink); }
.wd { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--hair); }
.wd-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wd-info b { font-size: 20px; }
.wd-form { display: flex; align-items: center; gap: 8px; margin: 0; flex: 1 1 420px; justify-content: flex-end; }
.wd-form input { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .acct-stats { grid-template-columns: 1fr; } .acct-stat > .muted { min-height: 0; } }
@media (max-width: 600px) {
  .acct-stat { padding: 22px 18px 24px; }
  .panel > .table-wrap { padding: 6px 18px 14px; }
  .invite-box { flex-direction: column; padding: 0 18px 16px; }
  .invite-rules { padding: 0 18px 22px 36px; }
}

.acct-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .acct-stats.two { grid-template-columns: 1fr; } }

/* ---------- 案件共享 ---------- */
.crumbs a.crumbs-share { float: right; color: var(--link); font-size: 14px; }
.share-page { max-width: 760px; margin: 0 auto; }
.share-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff4e5; color: #8a3d00; font-size: 14px; line-height: 1.5; }
/* 只读：提交按钮一律不可用（服务端也会拦） */
main:has(.case-ro) form[method="post" i] button, main:has(.case-ro) button[data-ai] { opacity: .35; pointer-events: none; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--hair); }
.member:first-of-type { border-top: 0; }
.member-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.member-who b { font-size: 16px; overflow-wrap: anywhere; }
.member-acts { display: flex; align-items: center; gap: 10px; margin: 0; }
.member-acts form { margin: 0; display: flex; align-items: center; gap: 8px; }
.member-acts select { width: auto; padding: 8px 34px 8px 12px; font-size: 14px; }
.share-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-top: 16px; }
.share-form select { width: auto; }
@media (max-width: 600px) { .share-form { grid-template-columns: 1fr; } .crumbs-share { float: none; display: block; margin-top: 6px; } }

/* ---------- 邮箱验证提示 ---------- */
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: #fff4e5; color: #8a3d00; font-size: 14px; line-height: 1.5; }
.verify-bar .btn { flex: none; }
.auth-note a { color: var(--link); }

.acct-danger { margin: 0; padding: 18px 32px 24px; border-top: 1px solid var(--hair); }
.acct-danger > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.acct-danger p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 46em; }
.acct-danger .field { max-width: 360px; }
.acct-danger .btn.danger { padding-left: 0; }
.acct-danger form { margin-top: 14px; }
@media (max-width: 600px) { .acct-danger { padding: 16px 18px 20px; } }

/* ---------- 条款页 ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 44px 44px; background: #fff; border-radius: var(--radius); font-size: 16px; line-height: 1.75; }
.legal h1 { margin: 0 0 6px; }
.legal-date { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 34px 0 10px; font-size: 20px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-nav { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; gap: 20px; font-size: 14px; }
@media (max-width: 600px) { .legal { padding: 26px 20px 30px; } }

/* 账户页的表格在手机上不挤压成竖排，改为左右滑动 */
.panel > .table-wrap th { white-space: nowrap; }
@media (max-width: 700px) {
  .panel > .table-wrap table { min-width: 600px; }
  .panel > .table-wrap td { white-space: nowrap; }
  .panel > .table-wrap td:has(.cell-sub) { white-space: normal; min-width: 150px; }
}
