/* ============================================
   账号诊断 Agent — 暖白杂志风设计系统
   Paper: 暖白底 / 墨黑衬线标题 / 细线分割 / 大留白
   ============================================ */
:root {
  --paper: #ffffff;
  --paper-2: #fafafa;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #8a8a8a;
  --rule: #ebebeb;
  --rule-soft: #f3f3f3;
  --accent: #111111;
  --accent-ink: #111111;
  --accent-soft: #f4f4f6;
  --ok: #4a7c59;
  --warn: #b07d3a;
  --todo: #a89f92;
  --serif: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --sans: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }

.eyebrow { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.num { font-family: var(--serif); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }

/* 顶栏 */
.topbar {
  height: 60px;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; padding: 0 32px; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand { font-family: var(--serif); font-size: 16.5px; letter-spacing: .02em; }
.topbar .brand small { font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); margin-left: 10px; text-transform: uppercase; }
.topbar .sp { flex: 1; }
.topbar nav a { font-size: 13px; color: var(--ink-2); margin-left: 24px; padding-bottom: 2px; }
.topbar nav a.active { color: var(--ink); border-bottom: 1.5px solid var(--accent); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 36px 32px 80px; }

/* ============ 登录页 ============ */
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 60px); }
.login .cover {
  padding: 72px 64px; border-right: 1px solid var(--rule);
  background: linear-gradient(180deg, #faf8f5 0%, #f4f0ea 100%);
  display: flex; flex-direction: column;
}
.login .cover h1 { font-size: 40px; line-height: 1.28; margin: 18px 0 0; }
.login .cover h1 em { font-style: normal; color: var(--accent); }
.login .cover .lead { color: var(--ink-2); font-size: 15px; margin-top: 18px; max-width: 30em; }
.login .facts { margin-top: auto; display: flex; gap: 40px; padding-top: 40px; }
.login .facts div .v { font-family: var(--serif); font-size: 26px; }
.login .facts div .k { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }
.login .panel { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; background: var(--card); }
.login .panel h2 { font-size: 22px; margin: 0 0 6px; }
.field { margin-top: 20px; }
.field label { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 0; font-size: 15px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-family: var(--sans);
}
.field input:focus { outline: 0; border-bottom-color: var(--accent); }
.btn {
  display: inline-block; padding: 12px 26px; background: var(--ink); color: #fff;
  border: 0; font-size: 14px; letter-spacing: .06em; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.note { margin-top: 22px; font-size: 12px; color: var(--warn); border-left: 2px solid var(--warn); padding-left: 12px; }

/* ============ 首页 ============ */
.hero { padding: 8px 0 34px; border-bottom: 1px solid var(--rule); margin-bottom: 34px; }
.hero h1 { font-size: 34px; margin: 12px 0 10px; line-height: 1.3; }
.hero p { margin: 0; color: var(--ink-2); max-width: 42em; }
.entries { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: var(--card); }
.entry { padding: 34px 30px 30px; border-right: 1px solid var(--rule); color: var(--ink); display: block; transition: background .18s ease; }
.entry:last-child { border-right: 0; }
.entry:hover { background: var(--paper-2); text-decoration: none; }
.entry .num { display: block; margin-bottom: 18px; }
.entry h3 { font-size: 20px; margin: 0 0 10px; }
.entry p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.entry .go { margin-top: 20px; font-size: 12.5px; color: var(--accent-ink); letter-spacing: .05em; }
.entry .go::after { content: " →"; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin: 46px 0 16px; }
.section-title h2 { font-size: 19px; margin: 0; }
.status { border: 1px solid var(--rule); background: var(--card); }
.status .row { display: grid; grid-template-columns: 150px 190px 1fr; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; align-items: baseline; }
.status .row:last-child { border-bottom: 0; }
.status .row .k { font-family: var(--serif); }
.status .row .d { color: var(--ink-3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }

/* ============ 知识页 ============ */
.klayout { display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--rule); background: var(--card); align-items: start; }
.side { border-right: 1px solid var(--rule); padding: 22px 18px; position: sticky; top: 60px; max-height: calc(100vh - 60px); overflow: auto; background: var(--paper); }
.side .searchwrap { position: relative; margin-bottom: 18px; }
.side input { width: 100%; padding: 9px 12px 9px 28px; font-size: 13px; font-family: var(--sans); border: 1px solid var(--rule); background: var(--card); color: var(--ink); }
.side input:focus { outline: 0; border-color: var(--accent); }
.side .searchwrap::before { content: "⌕"; position: absolute; left: 9px; top: 4px; color: var(--ink-3); font-size: 15px; }
.blk { font-family: var(--serif); font-size: 13px; color: var(--accent-ink); margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); letter-spacing: .04em; }
.blk:first-of-type { margin-top: 4px; }
.mitem { padding: 7px 9px; cursor: pointer; font-size: 13.2px; display: flex; gap: 9px; line-height: 1.55; border-left: 2px solid transparent; }
.mitem:hover { background: var(--paper-2); }
.mitem.sel { background: var(--accent-soft); border-left-color: var(--accent); }
.mitem .id { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; }
.mitem.status-rewrite .t { color: var(--ink-3); }
.hit { padding: 8px 9px; border-bottom: 1px solid var(--rule-soft); font-size: 12.8px; cursor: pointer; line-height: 1.6; }
.hit:hover { background: var(--paper-2); }
.hit b { color: var(--accent-ink); background: #fdf3e7; }
.reader { padding: 46px 56px 70px; }
.reader .meta { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.reader h1 { font-size: 27px; margin: 0 0 6px; line-height: 1.4; }
.reader h2 { font-size: 20px; margin: 34px 0 10px; padding-top: 8px; }
.reader h3 { font-size: 16.5px; margin: 26px 0 8px; }
.reader p { color: var(--ink-2); }
.reader ul { padding-left: 20px; color: var(--ink-2); }
.reader li { margin: 5px 0; }
.reader img { max-width: 100%; border: 1px solid var(--rule); }
.reader table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 14px 0; }
.reader td { border: 1px solid var(--rule); padding: 8px 10px; }
.reader blockquote { margin: 14px 0; padding: 6px 16px; border-left: 2px solid var(--accent); color: var(--ink-2); background: var(--accent-soft); }
.reader code { background: var(--paper-2); padding: 1px 5px; font-size: 12.5px; }
.reader hr { border: 0; height: 1px; background: var(--rule); margin: 30px 0; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: .08em; color: var(--todo); border: 1px dashed var(--rule); padding: 0 6px; margin-left: 6px; vertical-align: 1px; }

/* ============ 诊断页 ============ */
.query { border: 1px solid var(--rule); background: var(--card); padding: 34px 36px; }
.query h2 { font-size: 24px; margin: 0 0 6px; }
.query .lead { color: var(--ink-2); margin: 0 0 22px; }
.qrow { display: flex; gap: 12px; }
.qrow input { flex: 1; padding: 13px 14px; font-size: 15px; font-family: var(--sans); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.qrow input:focus { outline: 0; border-color: var(--accent); }
.qrow .btn { padding: 13px 30px; }
.steps { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--rule); border-top: 0; background: var(--card); }
.step { padding: 12px 10px; border-right: 1px solid var(--rule-soft); font-size: 11.5px; color: var(--ink-3); text-align: center; }
.step:last-child { border-right: 0; }
.step b { display: block; font-family: var(--serif); font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.step.llm { background: var(--accent-soft); }
.samples { display: flex; gap: 10px; margin: 18px 0 14px; flex-wrap: wrap; }
.samples .btn { padding: 9px 18px; font-size: 13px; }
.report { border: 1px solid var(--rule); background: var(--card); padding: 40px 46px 60px; }
.report h1 { font-size: 26px; margin: 0 0 4px; }
.report .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.report h2 { font-size: 19px; margin: 30px 0 10px; }
.report table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0; }
.report td { border: 1px solid var(--rule); padding: 8px 11px; }
.report blockquote { margin: 12px 0; padding: 8px 16px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px; }
.report ul { color: var(--ink-2); padding-left: 20px; }
.report p { color: var(--ink-2); }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login .cover { border-right: 0; border-bottom: 1px solid var(--rule); padding: 48px 32px; }
  .login .panel { padding: 48px 32px; }
  .entries { grid-template-columns: 1fr; }
  .entry { border-right: 0; border-bottom: 1px solid var(--rule); }
  .klayout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .reader { padding: 30px 24px 50px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .wrap { padding: 24px 20px 60px; }
  .status .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ v2 追加：登录交互 / 脚本工作台 / 用户区 ============ */
.login .err { margin-top: 14px; font-size: 12.5px; color: #b4232a; background: #fdf2f2; border-left: 2px solid #b4232a; padding: 8px 12px; display: none; }
.login .err.show { display: block; }
.btn[disabled] { opacity: .6; cursor: default; }
.whoami { font-size: 12.5px; color: var(--ink-3); }
.whoami b { color: var(--ink); font-weight: 600; }

/* 脚本工作台（iframe 承载） */
.wb-shell { border: 1px solid var(--rule); background: var(--card); margin-top: 4px; }
.wb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.wb-bar .t { font-family: var(--serif); font-size: 15px; }
.wb-bar .sp { flex: 1; }
.wb-frame { display: block; width: 100%; height: calc(100vh - 210px); min-height: 620px; border: 0; background: #05050c; }
.wb-tip { padding: 10px 18px; border-top: 1px solid var(--rule); }
.types { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: var(--card); margin-bottom: 18px; }
.types > div { padding: 20px 22px; border-right: 1px solid var(--rule); }
.types > div:last-child { border-right: 0; }
.types h4 { margin: 0 0 6px; font-size: 15.5px; }
.types p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 980px) { .types { grid-template-columns: 1fr; } .types > div { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ============================================================
   v3 追加：作业台（卡片墙 / 待办 / 问诊台 / 场景手册 / 脚本库）
   ============================================================ */
.muted { color: var(--ink-3); }

/* 顶部数字条 */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); background: var(--card); margin-bottom: 26px; }
.statbar > div { padding: 18px 22px; border-right: 1px solid var(--rule); }
.statbar > div:last-child { border-right: 0; }
.statbar .v { font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.statbar .k { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; margin-top: 2px; }

/* 区块头 */
.blk-head { display: flex; align-items: baseline; gap: 14px; margin: 40px 0 14px; }
.blk-head h2 { font-size: 19px; margin: 0; }

/* 账号卡片墙 */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.acct-card { border: 1px solid var(--rule); background: var(--card); padding: 18px 20px 16px; cursor: pointer; transition: border-color .16s, box-shadow .16s; position: relative; }
.acct-card:hover { border-color: var(--accent); box-shadow: 0 2px 14px rgba(139,94,60,.09); }
.acct-card .top { display: flex; align-items: flex-start; gap: 12px; }
.acct-card .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--serif); font-size: 16px; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.acct-card .nm { font-family: var(--serif); font-size: 16px; line-height: 1.35; word-break: break-all; }
.acct-card .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.acct-card .scoreline { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.acct-card .sc { font-family: var(--serif); font-size: 30px; line-height: 1; }
.acct-card .gr { font-size: 12px; color: var(--ink-2); }
.acct-card .delta { font-size: 12px; margin-left: auto; }
.acct-card .foot { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); display: flex; gap: 10px; }
.acct-card .flag { position: absolute; top: 12px; right: 14px; font-size: 10.5px; letter-spacing: .06em; padding: 1px 7px; border: 1px solid; }
.flag.red { color: #b4232a; border-color: #e3b7b9; background: #fdf2f2; }
.flag.amber { color: #9a6a1f; border-color: #e6d3aa; background: #fdf7ea; }
.lamp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lamp.g { background: #4a7c59; } .lamp.y { background: #d8a22e; } .lamp.o { background: #c2703a; } .lamp.r { background: #b4232a; } .lamp.n { background: #c9c2b6; }
.acct-add { border: 1px dashed var(--rule); background: transparent; display: flex; align-items: center; justify-content: center; min-height: 152px; color: var(--ink-3); font-size: 13px; cursor: pointer; }
.acct-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* 今日待办 */
.todo { border: 1px solid var(--rule); background: var(--card); }
.todo .item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; }
.todo .item:last-child { border-bottom: 0; }
.todo .item .t { color: var(--ink-2); }
.todo .item .t b { font-family: var(--serif); color: var(--ink); }
.todo .item .go { margin-left: auto; font-size: 12.5px; color: var(--accent-ink); white-space: nowrap; }
.todo .empty { padding: 18px 20px; color: var(--ink-3); font-size: 13px; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(31,29,26,.42); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 60; }
.mask.show { display: flex; }
.modal { width: 460px; max-width: calc(100vw - 40px); background: var(--card); border: 1px solid var(--rule); }
.modal .mh { padding: 18px 24px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 16.5px; display: flex; align-items: center; }
.modal .mb { padding: 22px 24px; }
.modal .mf { padding: 14px 24px; border-top: 1px solid var(--rule); display: flex; gap: 10px; justify-content: flex-end; }
.modal .hint { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.inp { width: 100%; padding: 11px 12px; font-size: 14px; font-family: var(--sans); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.inp:focus { outline: 0; border-color: var(--accent); }

/* 问诊台：结论先行 */
.concl { border: 1px solid var(--rule); background: var(--card); padding: 30px 34px; }
.concl .big { font-family: var(--serif); font-size: 25px; line-height: 1.45; margin: 8px 0 0; }
.concl .big em { font-style: normal; color: var(--accent); }
.concl .sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.scorebox { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.scorebox .n { font-family: var(--serif); font-size: 46px; line-height: 1; }
.scorebox .meta { font-size: 12.5px; color: var(--ink-3); }
.scorebox .hist { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-2); }

/* 行动建议 */
.adv { border: 1px solid var(--rule); background: var(--card); margin-top: 16px; }
.adv .a { padding: 22px 30px; border-bottom: 1px solid var(--rule-soft); }
.adv .a:last-child { border-bottom: 0; }
.adv .ah { display: flex; align-items: baseline; gap: 12px; }
.adv .ah .n { font-family: var(--serif); font-size: 13px; color: var(--ink-3); }
.adv .ah h3 { font-size: 17.5px; margin: 0; }
.adv .lv { font-size: 10.5px; letter-spacing: .08em; padding: 1px 8px; border: 1px solid; margin-left: auto; white-space: nowrap; }
.lv.high { color: #b4232a; border-color: #e3b7b9; background: #fdf2f2; }
.lv.mid { color: #9a6a1f; border-color: #e6d3aa; background: #fdf7ea; }
.lv.low { color: #4a7c59; border-color: #bcd3c2; background: #f1f7f3; }
.adv .why { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.adv ol { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); }
.adv ol li { margin: 5px 0; font-size: 13.5px; }
.adv .mods { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 12.5px; color: var(--ink-3); }
.adv .mods a { margin-right: 14px; white-space: nowrap; }

/* 指标条 */
.mrow { display: grid; grid-template-columns: 152px 1fr 96px 112px; gap: 14px; align-items: center; padding: 11px 22px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; }
.mrow:last-child { border-bottom: 0; }
.mrow .mk { font-family: var(--serif); }
.mbar { height: 6px; background: var(--paper-2); position: relative; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); display: block; }
.mrow .mv { text-align: right; font-variant-numeric: tabular-nums; }
.mrow .mg { text-align: right; font-size: 12.5px; }

/* 场景手册 */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.scene { border: 1px solid var(--rule); background: var(--card); padding: 20px 22px; cursor: pointer; }
.scene:hover { border-color: var(--accent); background: var(--accent-soft); }
.scene h4 { margin: 10px 0 6px; font-size: 16px; }
.scene p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.scene .ic { font-size: 20px; }
.qa { border: 1px solid var(--rule); background: var(--card); margin-top: 16px; }
.qa .q { padding: 14px 22px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; display: flex; gap: 12px; font-size: 14px; }
.qa .q:hover { background: var(--paper-2); }
.qa .q .ar { margin-left: auto; color: var(--ink-3); }

/* 脚本库 */
.slist { border: 1px solid var(--rule); background: var(--card); }
.slist .s { padding: 14px 22px; border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center; gap: 14px; }
.slist .s:last-child { border-bottom: 0; }
.slist .s .t { font-family: var(--serif); font-size: 15px; }
.slist .s .m { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.slist .s .ops { margin-left: auto; display: flex; gap: 8px; }
.mini { font-size: 12px; padding: 5px 12px; border: 1px solid var(--rule); background: transparent; cursor: pointer; color: var(--ink-2); font-family: var(--sans); }
.mini:hover { border-color: var(--accent); color: var(--accent-ink); }
.mini.danger:hover { border-color: #b4232a; color: #b4232a; }

/* 空态 */
.empty-box { border: 1px dashed var(--rule); padding: 46px 30px; text-align: center; color: var(--ink-3); background: var(--card); }
.empty-box h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink-2); }
.empty-box p { margin: 0 0 18px; font-size: 13px; }

/* 提示条 */
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: 76px; background: var(--ink); color: #fff; padding: 10px 20px; font-size: 13px; z-index: 90; display: none; }
.toast.show { display: block; }

@media (max-width: 980px) {
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar > div:nth-child(2) { border-right: 0; }
  .mrow { grid-template-columns: 110px 1fr 70px; }
  .mrow .mg { display: none; }
  .scorebox { flex-wrap: wrap; gap: 12px; }
  .scorebox .hist { margin-left: 0; text-align: left; width: 100%; }
}


/* ============================================================
   v4 全站换肤：黑白极简（2026-09-11 · 暖棕 #8b5e3c 退役）
   令牌：墨黑 #111 / 纯白 / 浅灰 #F4F4F6 / 细边框 rgba(0,0,0,.12)
   字体：Inter（西文·数字）+ Noto Sans SC 思源黑体（中文）
   动效：cubic-bezier(.16,1,.3,1) 错峰滑入
   ============================================================ */

/* ---------- 基础 ---------- */
body { font-family: var(--sans); font-size: 14px; background: #fff; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; letter-spacing: -.02em; }
a { color: var(--ink); }
a:hover { text-decoration: none; }
.wrap { max-width: 1160px; padding: 32px 32px 80px; }
.eyebrow { letter-spacing: .16em; color: var(--ink-3); font-size: 10.5px; }

/* ---------- 顶栏 ---------- */
.topbar { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); border-bottom: .5px solid var(--rule); padding: 0 32px; height: 58px; }
.topbar .brand { font-size: 14.5px; font-weight: 500; letter-spacing: -.02em; }
.topbar .brand small { display: none; }
.topbar nav a { margin-left: 22px; font-size: 12.5px; color: var(--ink-3); }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.whoami { font-size: 12px; color: var(--ink-3); margin-left: 22px; }
.whoami b { font-weight: 500; color: var(--ink); }

/* ---------- 胶囊按钮 / 圆角卡片 ---------- */
.btn { border-radius: 999px; padding: 10px 22px; font-size: 13px; letter-spacing: .02em; transition: background .18s, border-color .18s, color .18s; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(0,0,0,.35); }
.btn.ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.mini { border-radius: 999px; padding: 5px 13px; font-size: 12px; }
.mini:hover { border-color: var(--ink); color: var(--ink); }
.qa, .status, .klayout, .acct-card, .concl, .adv, .todo, .scene, .slist,
.empty-box, .modal, .statbar, .entries, .entry, .side { border-radius: 14px; }
.statbar { overflow: hidden; }
.entries { overflow: hidden; }
.side { border-radius: 14px 0 0 14px; }
.acct-add { border-radius: 14px; }
.inp { border-radius: 10px; }
.side input { border-radius: 10px; }

/* ---------- 入场动效（复刻 motion 的缓动曲线与错峰延时） ---------- */
@keyframes qRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes qFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qZoom { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
.rise { animation: qRise .8s cubic-bezier(.16,1,.3,1) both; }
.fade { animation: qFade .8s cubic-bezier(.16,1,.3,1) both; }
.zoom { animation: qZoom 1.8s cubic-bezier(.16,1,.3,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
.d4 { animation-delay: .4s; } .d5 { animation-delay: .5s; } .d6 { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .fade, .zoom { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   登录页：全屏视频 hero（v4）
   ============================================================ */
.lg { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; background: #fff; overflow: hidden; }
.lg-video { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.lg-video video { width: 80%; height: 80%; object-fit: cover; background: #111; }
@media (min-width: 768px) { .lg-video video { width: 100%; height: 100%; } }

.lg-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px; pointer-events: none; }
.lg-nav > * { pointer-events: auto; }
@media (min-width: 768px) { .lg-nav { padding: 24px 32px; } }
.lg-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; display: block; }
.lg-brand { display: none; font-size: 13.5px; font-weight: 500; letter-spacing: -.02em; }
@media (min-width: 768px) { .lg-brand { display: inline; } }
.lg-menu { display: inline-flex; align-items: center; gap: 7px; background: #111; border-radius: 999px; padding: 3px 12px 3px 3px; margin-left: 8px; cursor: pointer; border: 0; }
.lg-menu .circ { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .lg-menu .circ { width: 28px; height: 28px; } }
.lg-menu em { font-style: normal; font-size: 11px; color: #fff; }
.lg-tags { display: none; background: #F4F4F6; border-radius: 999px; padding: 5px 13px; gap: 11px; margin-left: 6px; }
@media (min-width: 768px) { .lg-tags { display: inline-flex; } }
.lg-tags b { font-size: 11px; font-weight: 400; color: #333; }
.lg-right { display: none; }
@media (min-width: 768px) {
  .lg-right { display: inline-flex; align-items: center; gap: 7px; background: #F4F4F6; border-radius: 999px; padding: 3px 13px 3px 3px; }
}
.lg-right .circ { width: 26px; height: 26px; border-radius: 50%; background: #111; display: grid; place-items: center; }
.lg-right b { font-size: 11px; font-weight: 400; color: #333; }

.lg-foot { position: relative; z-index: 30; margin-top: auto; background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,.8) 50%, rgba(255,255,255,0) 100%); padding: 64px 24px 26px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 768px) { .lg-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 84px 32px 32px; } }
.lg-sub { display: flex; align-items: center; gap: 7px; }
.lg-sub i { width: 8px; height: 8px; border-radius: 50%; background: #111; display: block; flex: 0 0 8px; }
.lg-sub span { font-size: 13px; color: rgba(0,0,0,.55); }
.lg-title { font-weight: 300; font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: -.03em; line-height: 1; margin: 14px 0 0; }
@media (min-width: 768px) { .lg-title { font-size: clamp(2.5rem, 5.5vw, 4.5rem); } }
.lg-acts { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.lg-btn { border-radius: 999px; padding: 11px 22px; font-size: 13px; cursor: pointer; font-family: var(--sans); border: 0; }
.lg-btn.dark { background: #111; color: #fff; }
.lg-btn.dark:hover { background: #000; }
.lg-btn.line { background: transparent; color: #111; border: 1px solid rgba(0,0,0,.35); }
.lg-btn.line:hover { border-color: #111; }
.lg-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-pills span { background: #fff; border: .5px solid rgba(0,0,0,.12); border-radius: 999px; padding: 6px 13px; font-size: 11px; color: #111; }

/* 登录弹层 */
.lg-mask { position: fixed; inset: 0; z-index: 70; background: rgba(17,17,17,.42); display: none; align-items: center; justify-content: center; padding: 20px; }
.lg-mask.on { display: flex; }
.lg-card { width: 100%; max-width: 372px; background: #fff; border-radius: 16px; padding: 26px 26px 22px; animation: qRise .5s cubic-bezier(.16,1,.3,1) both; }
.lg-card h3 { font-size: 17px; margin: 0 0 4px; font-weight: 500; }
.lg-card .sub { font-size: 12px; color: var(--ink-3); }
.lg-card .field { margin-top: 18px; }
.lg-card label { display: block; font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 6px; }
.lg-card input { width: 100%; padding: 11px 13px; font-size: 14px; border: 1px solid var(--rule); border-radius: 10px; font-family: var(--sans); color: var(--ink); background: #fff; }
.lg-card input:focus { outline: 0; border-color: #111; }
.lg-card .row { display: flex; gap: 10px; margin-top: 20px; }
.lg-card .row button { flex: 1; }
.lg-close { margin-left: auto; display: block; background: none; border: 0; font-size: 20px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.lg-err { color: #b4232a; font-size: 12px; margin-top: 12px; min-height: 16px; }

/* ---------- 内页入场：hero 与首块错峰滑入 ---------- */
.hero { animation: qRise .8s cubic-bezier(.16,1,.3,1) both; }
.wrap > .statbar, .wrap > .slist, .wrap > .qa:first-of-type { animation: qRise .8s .15s cubic-bezier(.16,1,.3,1) both; }

/* ---------- 大标题层级（黑白极简：细字重大字） ---------- */
.hero h1 { font-weight: 300; letter-spacing: -.03em; }
.concl .big { font-weight: 300; letter-spacing: -.02em; }
.scorebox .n { font-weight: 300; letter-spacing: -.03em; }
.acct-card .sc { font-weight: 300; letter-spacing: -.02em; }
.statbar .v { font-weight: 300; letter-spacing: -.02em; }

/* ---------- 状态灯/旗标维持语义色（黑白之上唯一彩色） ---------- */
.lamp.g { background: #3b7a4d; } .lamp.y { background: #c98f1f; } .lamp.o { background: #b05c28; } .lamp.r { background: #b4232a; } .lamp.n { background: #c9c9c9; }

/* --- v5 新增：账号基础数据卡片（诊断页，分数正下方） --- */
.base { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.base > div { background: var(--card); padding: 16px 18px; }
.base .k { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.base .v { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin-top: 7px; font-variant-numeric: tabular-nums; }
.base .v small { font-family: inherit; font-size: 11.5px; color: var(--ink-3); margin-left: 3px; }
.base .v.wide { font-size: 16px; word-break: break-all; }
@media (max-width: 860px) { .base { grid-template-columns: repeat(2, 1fr); } }
