/* 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: 980px; margin: 0 auto; padding: 0 22px; }
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; }
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: 980px;
  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; }
.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: 980px; 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;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--fill-2) 0); }
.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 40px; color: var(--faint); font-size: 12px; line-height: 1.5; background: var(--bg); }
.foot p { margin: 0; max-width: 60em; }

#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; flex: none; position: sticky; top: 0; height: 100vh; 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; }
.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; }
  .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; }
}
