:root { --ink:#18221c; --muted:#68746c; --line:#dce4de; --paper:#fff; --bg:#f5f7f5; --green:#176b45; --green-soft:#e8f5ed; --red:#b23a36; --red-soft:#fceceb; --accent:#1e6847; --shadow:0 14px 40px rgba(24,34,28,.07); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; line-height:1.55; }
button,input { font:inherit; }
button { color:inherit; }
.topbar { height:68px; padding:0 max(24px,calc((100vw - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.92); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; backdrop-filter:blur(16px); }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:700; white-space:nowrap; }
.brand-mark { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; color:#fff; background:var(--accent); }
.tabs { display:flex; height:100%; gap:6px; }
.tab { padding:0 16px; border:0; background:none; color:var(--muted); cursor:pointer; position:relative; }
.tab:hover,.tab.is-active { color:var(--ink); }
.tab.is-active::after { content:""; height:3px; border-radius:3px 3px 0 0; background:var(--accent); position:absolute; left:14px; right:14px; bottom:0; }
main { width:min(1120px,calc(100% - 40px)); margin:0 auto; padding:52px 0 80px; }
.view { display:none; }.view.is-active { display:block; }
.hero { text-align:center; max-width:780px; margin:16px auto 48px; }
h1 { margin:4px 0 10px; font-size:clamp(30px,4vw,46px); line-height:1.18; letter-spacing:-.04em; }
h2,h3,p { margin-top:0; }.hero>p:not(.eyebrow),.lead,.muted { color:var(--muted); }
.eyebrow { color:var(--green); margin-bottom:8px; font-size:13px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.search-box { margin-top:28px; display:flex; align-items:center; gap:12px; padding:8px 10px 8px 18px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); text-align:left; }
.search-box:focus-within { border-color:#6c9a81; box-shadow:0 0 0 4px rgba(30,104,71,.1); }
.search-box input { flex:1; min-width:0; padding:7px 0; border:0; outline:0; font-size:16px; }
kbd { padding:4px 8px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--muted); font-size:12px; }
.filter-row { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:18px; }
.filter-chip { padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; }
.filter-chip.is-active { border-color:var(--accent); color:#fff; background:var(--accent); }
.result-heading { display:flex; align-items:baseline; gap:10px; margin-bottom:16px; }.result-heading h2 { margin-bottom:0; }.result-heading span { color:var(--muted); }
.question-list { display:grid; gap:12px; }
.panel,.question-item,.question-card,.history-card { background:var(--paper); border:1px solid var(--line); border-radius:16px; box-shadow:0 2px 12px rgba(24,34,28,.035); }
.question-item { padding:20px 22px; }
.question-meta { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; margin-bottom:9px; }
.question-card>.question-meta { padding-right:44px; }
.badge { padding:2px 8px; border-radius:999px; color:var(--green); background:var(--green-soft); font-size:12px; }
.question-stem { margin:0; font-size:16px; font-weight:600; white-space:pre-wrap; }
.query-options { display:grid; gap:6px; margin-top:12px; color:#465149; }
.query-answer { margin:14px 0 0; padding:12px 14px; border-radius:10px; background:var(--green-soft); color:var(--green); }
details summary { margin-top:12px; color:var(--green); cursor:pointer; width:max-content; }
.primary-button,.secondary-button { border:0; border-radius:10px; padding:11px 20px; font-weight:650; cursor:pointer; }
.primary-button { color:#fff; background:var(--accent); }.primary-button:hover { background:#15583b; }.primary-button:disabled { opacity:.45; cursor:not-allowed; }
.secondary-button { border:1px solid var(--line); background:#fff; }.wide { display:block; margin:22px auto; }
.text-button { padding:7px 8px; border:0; background:none; color:var(--green); cursor:pointer; }
.danger-button { padding:9px 13px; border:1px solid #e1aaa6; border-radius:10px; color:var(--red); background:#fff; font-weight:650; cursor:pointer; }
.danger-button:hover { border-color:var(--red); background:var(--red-soft); }
.danger-button:focus-visible { outline:3px solid rgba(178,58,54,.2); outline-offset:2px; }
.setup-panel { max-width:760px; margin:20px auto; padding:clamp(24px,5vw,48px); }
.field-group { padding:0; margin:32px 0; border:0; }.field-group legend { margin-bottom:12px; font-weight:700; }
.choice-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.practice-overview { margin:28px 0 8px; padding:18px; border-radius:13px; background:var(--bg); }
.progress-copy { display:flex; justify-content:space-between; gap:16px; margin-bottom:10px; }
.progress-track { height:8px; overflow:hidden; border-radius:99px; background:#dce5df; }
.progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:var(--accent); transition:width .25s ease; }
.progress-breakdown { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:11px; color:var(--muted); font-size:13px; }
.practiced-badge { color:#536259; background:#edf1ee; }
.check-card { position:relative; display:flex; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }.check-card:has(input:checked) { border-color:var(--accent); background:var(--green-soft); }.check-card input { accent-color:var(--accent); }
.session-bar,.exam-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; padding:13px 18px; background:#fff; border:1px solid var(--line); border-radius:13px; position:sticky; top:82px; z-index:10; }.session-bar>div,.exam-toolbar>div:first-child { display:flex; gap:8px; align-items:center; }
.dot,.sheet-dot { width:8px; height:8px; display:inline-block; border-radius:50%; background:var(--line); }.correct-dot,.sheet-dot.answered { background:#2f9564; }
.question-card { padding:clamp(22px,4vw,38px); }.question-card h2 { font-size:clamp(19px,2.5vw,25px); white-space:pre-wrap; }
.question-card { position:relative; }
.favorite-toggle { position:absolute; top:20px; right:20px; width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:#7a857d; background:#fff; cursor:pointer; font-size:21px; line-height:1; }
.favorite-toggle:hover { border-color:#d4a737; color:#a87500; background:#fff9e8; }
.favorite-toggle.is-active { border-color:#e0bd5e; color:#a87500; background:#fff7dc; }
.options { display:grid; gap:11px; margin-top:26px; }
.option { width:100%; display:flex; align-items:flex-start; gap:12px; padding:14px 16px; text-align:left; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; transition:.15s; }.option:hover:not(:disabled) { border-color:#81a891; background:#fafcfb; }.option-key { flex:0 0 27px; height:27px; display:grid; place-items:center; border:1px solid #bdc8c0; border-radius:50%; font-size:13px; }.option.selected { border-color:var(--accent); background:var(--green-soft); }.option.correct { border-color:#4a9c70; color:#0e633d; background:var(--green-soft); }.option.wrong { border-color:#d56a64; color:#982e2a; background:var(--red-soft); }.option:disabled { cursor:default; }
.answer-panel { margin-top:20px; padding:16px 18px; border-radius:12px; background:var(--green-soft); }.answer-panel.wrong { background:var(--red-soft); }.answer-panel strong { display:block; margin-bottom:4px; }.card-actions { display:flex; justify-content:space-between; align-items:center; margin-top:24px; }.hint { color:var(--muted); font-size:13px; }
.exam-settings { margin:30px 0 16px; border-top:1px solid var(--line); }.exam-setting,.time-setting { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:15px 0; border-bottom:1px solid var(--line); }.exam-setting small,.time-setting small { display:block; color:var(--muted); }.exam-setting input,.time-setting input { width:76px; padding:8px; text-align:center; border:1px solid var(--line); border-radius:8px; }.setup-footer { display:flex; align-items:center; justify-content:space-between; margin-top:28px; }.small { padding:8px 15px; }.timer { font-variant-numeric:tabular-nums; font-size:20px; font-weight:700; }.timer.urgent { color:var(--red); }
.exam-layout { display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:18px; align-items:start; }.answer-sheet { padding:18px; position:sticky; top:152px; }.answer-sheet h3 { margin-bottom:14px; }.answer-sheet p { margin:15px 0 0; color:var(--muted); font-size:12px; }.answer-sheet p span+span { margin-left:10px; }#answer-sheet-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; }.sheet-number { aspect-ratio:1; border:1px solid var(--line); border-radius:7px; background:#fff; cursor:pointer; font-size:12px; }.sheet-number.answered { color:#fff; border-color:var(--accent); background:var(--accent); }.sheet-number.current { outline:2px solid #76a78b; outline-offset:2px; }
.section-title { display:flex; justify-content:space-between; align-items:end; margin-bottom:24px; }.section-title h1 { margin-bottom:0; }.history-card { display:flex; justify-content:space-between; align-items:center; padding:20px 22px; margin-bottom:11px; cursor:pointer; }.history-card:hover { border-color:#a6b8ac; }.history-score { font-size:28px; font-weight:750; color:var(--green); }.empty { padding:60px 20px; text-align:center; color:var(--muted); }.result-hero { padding:36px; text-align:center; }.score-circle { width:130px; height:130px; display:grid; place-items:center; margin:22px auto; border-radius:50%; background:var(--green-soft); color:var(--green); font-size:38px; font-weight:800; }.score-circle small { display:block; font-size:12px; font-weight:500; }.result-stats { display:flex; justify-content:center; gap:34px; margin-bottom:24px; }.review-list { display:grid; gap:12px; margin-top:20px; }.review-list .question-card { padding:22px; }.review-answer { display:flex; gap:16px; margin-top:14px; font-size:14px; }.right-text { color:var(--green); }.wrong-text { color:var(--red); }
.collection-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; padding:14px 18px; }
.collection-toolbar>div { display:flex; gap:8px; }
.collection-list { display:grid; gap:12px; }
.collection-card { padding:20px 22px; }
.collection-card-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:10px; }
.collection-card-head .question-meta { margin:0; }
.collection-actions { display:flex; gap:5px; white-space:nowrap; }
.collection-card .query-answer { margin-top:12px; }
.data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.data-card { display:flex; align-items:flex-start; flex-direction:column; gap:18px; padding:28px; }
.data-card h2 { margin-bottom:7px; }.data-card p { color:var(--muted); }
.data-card>button { margin-top:auto; }
.data-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; color:var(--green); background:var(--green-soft); font-size:24px; font-weight:700; }
.data-summary { padding:10px 12px; border-radius:9px; background:var(--bg); color:var(--muted); font-size:13px; }
.danger-zone { border-color:#ebcecb; }.danger-zone .data-icon { color:var(--red); background:var(--red-soft); }
.warning-copy { color:var(--red)!important; font-size:13px; font-weight:650; }
.privacy-note { margin-top:18px; color:var(--muted); text-align:center; font-size:13px; }
#toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); padding:10px 16px; border-radius:9px; color:#fff; background:#233128; opacity:0; pointer-events:none; transition:.2s; z-index:50; }#toast.show { opacity:1; transform:translate(-50%,0); }
@media (max-width:760px) { .topbar { height:auto; padding:12px 16px 0; align-items:flex-start; flex-direction:column; }.tabs { width:100%; overflow:auto; }.tab { flex:0 0 auto; height:46px; padding:0 11px; }main { width:min(100% - 24px,1120px); padding-top:28px; }.hero { margin-top:4px; }.choice-grid { grid-template-columns:1fr; }.exam-layout { grid-template-columns:1fr; }.answer-sheet { position:static; order:-1; }.session-bar,.exam-toolbar { top:106px; }.answer-sheet { display:none; }.exam-toolbar .muted { display:none; }.history-card { align-items:flex-start; }.review-answer { flex-direction:column; gap:4px; }kbd { display:none; }.setup-footer { align-items:stretch; flex-direction:column-reverse; gap:10px; }.setup-footer button { width:100%; }.data-grid { grid-template-columns:1fr; }.data-card>button { width:100%; } }
