/* 星途径 · 北京市考选岗 —— 蓝色系、规整、数据一目了然（参照考公类小程序） */
:root {
  --bg: #F3F6FC;
  --card: #FFFFFF;
  --ink: #141B2D;
  --ink-2: #4A5468;
  --ink-3: #8790A3;
  --line: #E5EAF3;
  --blue: #1F5BFF;
  --blue-2: #3D7BFF;
  --blue-deep: #1544C9;
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FF;
  --ok: #0E9F6E;
  --ok-bg: #E3F6EE;
  --check: #E57200;
  --check-bg: #FFF1E2;
  --no: #8790A3;
  --no-bg: #EFF2F7;
  --hot: #F0443A;
  --radius: 16px;
  --shadow: 0 6px 18px -6px rgba(31, 75, 190, .14), 0 1px 2px rgba(31, 75, 190, .06);
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom);
  --num: "DIN Alternate", "DIN", "Bahnschrift", "Helvetica Neue", -apple-system, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--blue);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--blue-100); color: var(--ink); }
#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
b, .num { font-variant-numeric: tabular-nums; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 12px 0; }

/* ---------- 首页 ---------- */
#view-home { background: linear-gradient(180deg, #CFE1FF 0, #E4EEFF 260px, var(--bg) 420px) no-repeat; }
.hero { position: relative; overflow: hidden; padding: 18px 20px 22px; }
.hero-watermark { position: absolute; right: -10px; top: -14px; font-size: 128px; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .55); pointer-events: none; user-select: none; }
.hero-brand { position: relative; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-deep); }
.mark { width: 20px; height: 20px; }
.hero-title { position: relative; margin: 14px 0 2px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: .02em; color: #0E1E4D; }
.hero-sub { position: relative; margin: 0; font-size: 13px; color: #4C5C82; }

.start { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; margin-top: 0; }
.start > div { flex: 1; min-width: 0; }
.start h2 { margin: 0; font-size: 17px; font-weight: 700; }
.start h2 .hi { font-family: var(--num); font-size: 26px; color: var(--blue); margin: 0 2px; vertical-align: -2px; }
.start p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.primary.pill { width: auto; flex: none; padding: 10px 18px; border-radius: 999px; font-size: 15px; text-decoration: none; text-align: center; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 12px 0; }
.kpi { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 10px 10px; text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.kpi .k-label { font-size: 13px; color: var(--ink-2); }
.kpi .k-num { font-family: var(--num); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--blue); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .k-num small { font-size: 14px; margin-left: 1px; }
.kpi .k-sub { font-size: 11.5px; line-height: 1.3; padding: 3px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-deep); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kpi.hot .k-num { color: var(--hot); }
.kpi.hot .k-sub { background: var(--check-bg); color: var(--check); }
.kpi.cold .k-num { color: var(--ok); }
.kpi.cold .k-sub { background: var(--ok-bg); color: var(--ok); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px 6px; }
.grid a, .grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 2px 14px; background: none; border: 0;
  font-size: 13px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #6EA6FF 0%, #2D69FF 55%, #1C4FE8 100%);
  box-shadow: 0 6px 12px -4px rgba(31, 91, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tile .ic { width: 24px; height: 24px; }
.grid a:active .tile, .grid button:active .tile { transform: scale(.94); }

.sec-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 17px; font-weight: 700; }
.sec-title .ic { color: var(--blue); width: 20px; height: 20px; }
.sec-note { margin: 2px 0 0 26px; font-size: 12px; color: var(--ink-3); }
.timeline { padding: 16px 18px 14px; }
.timeline ol { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.timeline ol::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 10px; width: 2px; background: var(--blue-100); border-radius: 2px; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 5px 0 5px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.timeline li:first-child::before { background: var(--blue); }
.timeline li b { font-weight: 600; color: var(--blue-deep); }
.timeline li span { color: var(--ink-2); text-align: right; }

.rank { padding: 16px 14px 6px; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--blue); }
.toggle button { border: 0; background: none; color: #fff; padding: 3px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.toggle button.on { background: #fff; color: var(--blue); }
.chips { display: flex; gap: 8px; margin: 12px 4px 10px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--blue-100); background: #fff; color: var(--blue-deep); border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rank-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.rank-table th { background: var(--blue-50); color: var(--ink-2); font-weight: 400; padding: 8px 6px; text-align: left; }
.rank-table th:first-child { border-radius: 10px 0 0 10px; text-align: center; width: 44px; }
.rank-table th:last-child { border-radius: 0 10px 10px 0; text-align: right; padding-right: 10px; }
.rank-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tbody tr { cursor: pointer; }
.rank-table tbody tr:active { background: var(--blue-50); }
.rank-table td.r { text-align: center; }
.rank-table td.r i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-style: normal; font-family: var(--num); font-weight: 700; font-size: 13px; color: var(--ink-3); background: var(--no-bg); }
.rank-table tr:nth-child(1) td.r i { background: #FFE5DE; color: #E2462E; }
.rank-table tr:nth-child(2) td.r i { background: #FFEFD9; color: #DD7A00; }
.rank-table tr:nth-child(3) td.r i { background: #FFF6CF; color: #B98A00; }
.rank-table td.j b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.rank-table td.j span { color: var(--ink-3); font-size: 12px; }
.rank-table td.v { text-align: right; white-space: nowrap; padding-right: 10px; font-family: var(--num); font-weight: 700; font-size: 16px; color: var(--blue); }
.rank-table td.v small { display: block; font-family: inherit; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.cold-mode .rank-table td.v { color: var(--ok); }
.more-link { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 12px 0 10px; font-size: 14px; color: var(--blue); text-decoration: none; }
.more-link .ic { width: 16px; height: 16px; }
.svc { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); padding: 14px 14px 14px 16px; border: 0; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #4C8DFF 0%, #2462FF 55%, #1747D6 100%); }
.svc-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.svc-ic .ic { width: 26px; height: 26px; }
.svc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-t b { font-size: 16px; }
.svc-t small { font-size: 12px; color: rgba(255, 255, 255, .86); margin-top: 2px; }
.svc-btn { flex: none; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--blue); font-size: 14px; font-weight: 600; }
.svc-tip { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--blue-100);
  background: var(--blue-50); color: var(--blue-deep); font-size: 13px; text-align: left; cursor: pointer; }
.svc-tip span { flex: 1; }
.svc-tip b { flex: none; padding: 2px 11px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.svc-after { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.free { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.sv-points { margin: 10px 0 14px; padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.sv-points li { margin: 4px 0; }
.sv-gap { margin-top: 16px; }
.sv-btn-gap { margin-top: 10px; }
.hint.center { text-align: center; }
.source { margin: 16px 20px 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 页头（选岗、岗位库、收藏） ---------- */
.page-head { padding: 22px 20px 4px; background: linear-gradient(180deg, #DCE9FF, var(--bg)); }
.page-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #0E1E4D; }
.page-head p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ---------- 表单 ---------- */
form { padding: 4px 0 8px; }
fieldset, details.more { border: 0; margin: 12px 12px 0; padding: 16px 16px 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
legend { float: left; width: 100%; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; margin-bottom: 12px; color: var(--ink); }
legend .ic, details.more summary .ic { color: var(--blue); }
.field { margin-bottom: 16px; clear: both; position: relative; }
.label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.hint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.5; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 0; min-width: 0; padding: 9px 6px; background: var(--bg); border: 1px solid transparent; border-radius: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.seg button.on { background: var(--blue-50); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.seg.wrap button { flex: 1 1 40%; }
.radios label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.radios label:has(input:checked) { background: var(--blue-50); border-color: var(--blue); color: var(--blue-deep); }
.radios input { margin-top: 3px; accent-color: var(--blue); }
input[type=search], input[type=number], select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
input::placeholder { color: #A3ABBC; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 91, 255, .12); }
.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.inline input { width: 96px; }
.chk { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.sub-legend { font-size: 14px; color: var(--ink-2); margin: 14px 0 2px; }
details.more summary { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; padding-bottom: 12px; list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary span { font-weight: 400; color: var(--ink-3); font-size: 13px; }
details.more summary::after { content: "展开"; margin-left: auto; font-weight: 400; font-size: 13px; color: var(--blue); }
details.more[open] summary::after { content: "收起"; }
.suggest { list-style: none; margin: 4px 0 0; padding: 4px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-height: 260px; overflow: auto; position: absolute; left: 0; right: 0; z-index: 4; box-shadow: 0 12px 28px -8px rgba(20, 40, 100, .25); }
.suggest li { padding: 9px 12px; font-size: 14px; cursor: pointer; }
.suggest li:active { background: var(--blue-50); }
.suggest li small { color: var(--ink-3); margin-left: 6px; }
.suggest li.custom { color: var(--check); border-top: 1px solid var(--line); }
.picked { margin: 8px 0 0; font-size: 13px; color: var(--ok); }
.picked.custom { color: var(--check); }
.form-error { color: #D92D20; font-size: 14px; margin: 10px 16px 0; }

/* ---------- 底部按钮条 & 导航 ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); max-width: 640px; margin: 0 auto; padding: 10px 12px; z-index: 6;
  background: linear-gradient(180deg, rgba(243, 246, 252, 0), var(--bg) 35%); }
#app:has(.action-bar:not([hidden])) { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 84px); }
.action-bar.two { display: flex; gap: 10px; }
.action-bar.two .primary { flex: 1.5; }
.action-bar.two .secondary-btn { flex: 1; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 8px 16px -6px rgba(31, 91, 255, .55); }
.primary:active { filter: brightness(.94); }
.primary:disabled { opacity: .55; }
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; background: #fff; border: 1px solid var(--blue-100); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.secondary-btn.on { background: var(--blue-50); border-color: var(--blue); }
.secondary-btn.wide { width: 100%; margin-bottom: 14px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-2); text-decoration: none; }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar a.on { color: var(--blue); font-weight: 600; }
.tabbar a.on .ic { stroke-width: 2.2; }
.badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--hot); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center; font-family: var(--num); }

/* ---------- 结果 ---------- */
.summary { margin: 0; padding: 18px 16px 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #4C8DFF 0, #2462FF 45%, #1747D6 100%); border-radius: 0 0 24px 24px; }
.summary-top { display: flex; align-items: center; gap: 12px; }
.profile-line { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .86); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit { flex: none; color: #fff; font-size: 13px; text-decoration: none; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tally button { border: 0; background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 6px 8px; color: #fff; text-align: center; }
.tally b { display: block; font-family: var(--num); font-size: 30px; line-height: 1.15; font-weight: 700; }
.tally span { font-size: 13px; opacity: .9; }
.tally button.on { background: #fff; color: var(--blue); box-shadow: 0 6px 14px -6px rgba(0, 20, 80, .45); }
.tally button.on[data-tab=ok] { color: var(--ok); }
.tally button.on[data-tab=check] { color: var(--check); }
.tally button.on[data-tab=no] { color: var(--ink-2); }
.tally-bar { display: flex; height: 5px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.tally-bar i { display: block; height: 100%; }
.b-ok { background: #5BE3AE; } .b-check { background: #FFC266; } .b-no { background: rgba(255, 255, 255, .35); }
.tab-note { margin: 12px 18px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px; position: sticky; top: 0; background: var(--bg); z-index: 3; }
.filters input { grid-column: 1 / -1; }
.filters select { font-size: 13px; padding: 8px 6px; }
.filters .chips { grid-column: 1 / -1; margin: 0; }

.jobs { list-style: none; margin: 4px 0 0; padding: 0 12px; }
.job { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 14px; cursor: pointer; }
.job:active { transform: scale(.99); }
.job .top { display: flex; align-items: flex-start; gap: 8px; }
.job .unit { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.st { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; line-height: 1.5; }
.st.ok { background: var(--ok-bg); color: var(--ok); } .st.check { background: var(--check-bg); color: var(--check); } .st.no { background: var(--no-bg); color: var(--no); }
.job .title { font-size: 16px; font-weight: 700; margin: 3px 0 8px; }
.job .title .code { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 6px; font-family: var(--num); }
.job .fav-mark { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: #F5A300; }
.job .fav-mark .ic { width: 16px; height: 16px; fill: currentColor; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.facts .ref { background: var(--blue-50); color: var(--blue-deep); font-weight: 600; }
.facts .ref.unitref { background: var(--bg); color: var(--ink-2); font-weight: 400; }
.facts .suits { background: var(--check-bg); color: var(--check); font-weight: 600; }
.why { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--check); line-height: 1.5; }
.job .why.no { color: var(--ink-3); }
.more-btn { display: block; margin: 4px auto 0; padding: 9px 22px; background: #fff; border: 1px solid var(--blue-100); border-radius: 999px; font-size: 14px; color: var(--blue); }
.empty { padding: 28px 18px; color: var(--ink-2); font-size: 14px; background: var(--card); border-radius: 14px; text-align: center; }

/* ---------- 浮层 ---------- */
.sheet { position: fixed; inset: 0; background: rgba(12, 22, 48, .45); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { background: var(--bg); width: 100%; max-width: 640px; height: 92vh; border-radius: 20px 20px 0 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
#detail { flex: 1; overflow: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; }
.sheet-panel.small { height: auto; max-height: 92vh; padding: 22px 18px calc(22px + var(--safe-b)); background: var(--card); display: block; overflow: auto; }
.sheet-panel.small h2 { font-size: 18px; margin: 0 52px 8px 0; line-height: 1.4; }
.sheet-bar { padding: 10px 12px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.sheet-bar.two { display: flex; gap: 10px; }
.sheet-bar.two .primary { flex: 1; }
.close { position: absolute; right: 12px; top: 12px; border: 0; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); z-index: 2; }
.d-head { padding: 22px 18px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #4C8DFF 0, #2462FF 45%, #1747D6 100%); }
.d-head .unit { font-size: 13px; color: rgba(255, 255, 255, .85); padding-right: 64px; }
.d-head h2 { font-size: 22px; margin: 4px 0 6px; font-weight: 800; }
.d-head .code { font-size: 13px; color: rgba(255, 255, 255, .75); font-family: var(--num); }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.d-tags span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; }
.verdict { margin: -10px 12px 0; position: relative; padding: 14px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.verdict h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.verdict.ok h3 { color: var(--ok); } .verdict.check h3 { color: var(--check); } .verdict.no h3 { color: var(--ink-2); }
.verdict ul { margin: 0; padding-left: 18px; font-size: 14px; }
.verdict li { margin: 4px 0; }
.verdict .minor { color: var(--ink-2); font-size: 13px; }
.block { background: var(--card); margin: 12px 12px 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.block h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.block h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--blue); }
.block .note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.6; }
table.hist { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.hist th { text-align: left; font-weight: 400; color: var(--ink-2); font-size: 12px; padding: 7px 6px; background: var(--blue-50); }
table.hist th:first-child { border-radius: 8px 0 0 8px; } table.hist th:last-child { border-radius: 0 8px 8px 0; }
table.hist td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.hist tr:last-child td { border-bottom: 0; }
table.hist td.s { font-family: var(--num); font-weight: 700; font-size: 16px; color: var(--blue); }
table.hist .sub { display: block; font-size: 11px; color: var(--ink-3); }
dl.kv { margin: 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 8px 12px; font-size: 14px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; white-space: pre-line; word-break: break-all; }
.qr { width: 200px; height: 200px; margin: 14px auto; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 10px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.ask-text { white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-family: inherit; line-height: 1.7; margin: 0 0 14px; }
.teacher-name { text-align: center; margin: 8px 0 0; font-weight: 700; }
.unlock-label { margin-top: 4px; }
.unlock-row { display: flex; gap: 10px; }
.unlock-row input { flex: 1; min-width: 0; font-family: var(--num); font-size: 22px; letter-spacing: .3em; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.unlock-row .primary { width: auto; flex: 1.2; }
a.as-btn { text-decoration: none; margin-bottom: 10px; }
.faq dt { font-weight: 700; margin-top: 16px; font-size: 15px; display: flex; gap: 8px; }
.faq dt::before { content: "问"; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.faq dd { margin: 6px 0 0 30px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.faq-src { margin: 18px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------- 收藏对比 ---------- */
.compare-wrap { overflow-x: auto; margin: 12px 12px 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.compare th { position: sticky; left: 0; background: var(--blue-50); color: var(--ink-2); font-weight: 400; text-align: left; padding: 9px 10px; white-space: nowrap; border-bottom: 1px solid #fff; z-index: 1; }
table.compare td { padding: 9px 10px; min-width: 150px; max-width: 200px; vertical-align: top; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); word-break: break-all; }
table.compare tr.head td { font-weight: 700; font-size: 14px; }
table.compare tr.head a { color: var(--ink); text-decoration: none; }
table.compare .st-ok { color: var(--ok); font-weight: 700; } table.compare .st-check { color: var(--check); font-weight: 700; } table.compare .st-no { color: var(--no); font-weight: 700; }
table.compare .score { font-family: var(--num); font-weight: 700; color: var(--blue); font-size: 15px; }
table.compare button { border: 0; background: none; color: var(--ink-3); font-size: 12px; padding: 0; text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 90px); transform: translateX(-50%); background: rgba(14, 22, 44, .9); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: 90vw; }

@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) .sheet-panel { animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
  @keyframes rise { from { transform: translateY(32px); opacity: .5; } to { transform: none; opacity: 1; } }
  .job, .tile { transition: transform .12s ease-out; }
}
@media (min-width: 640px) {
  .filters { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .filters input { grid-column: auto; }
}
