:root {
  --ink: #172019;
  --muted: #64706a;
  --surface: #f7f7f2;
  --panel: #ffffff;
  --soft: #e9eee8;
  --line: #d8e0d8;
  --brand: #1f6b52;
  --brand-2: #cfe7da;
  --accent: #d97a3d;
  --accent-soft: #fff0e4;
  --button-ink: #ffffff;
  --shadow: 0 16px 48px rgba(24, 51, 36, .1);
}
[data-theme="swiss"] { --ink:#181818; --muted:#646464; --surface:#f3f3f3; --panel:#fff; --soft:#e8e8e8; --line:#cfcfcf; --brand:#e13c2f; --brand-2:#ffd9d5; --accent:#111; --accent-soft:#eee; }
[data-theme="archive"] { --ink:#30251e; --muted:#756458; --surface:#f4ecdd; --panel:#fffaf0; --soft:#e9dcc6; --line:#d9c8ad; --brand:#7a4d2e; --brand-2:#ead2b3; --accent:#b56e31; --accent-soft:#f7e3cb; }
[data-theme="night"] { --ink:#e8f0eb; --muted:#a8b8ae; --surface:#142019; --panel:#1b2b22; --soft:#273a2e; --line:#385341; --brand:#71d8a2; --brand-2:#214c37; --accent:#ffad68; --accent-soft:#4a3324; --button-ink:#102117; --shadow:0 18px 60px rgba(0,0,0,.28); }
[data-theme="studio"] { --ink:#25213a; --muted:#6b6681; --surface:#f3f0ff; --panel:#fff; --soft:#e9e3ff; --line:#d9d0f1; --brand:#6554c0; --brand-2:#ded7ff; --accent:#d35f88; --accent-soft:#ffe1ec; }
* { box-sizing: border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--surface); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; line-height:1.65; }
a { color:var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }
.site-header { position:sticky; top:0; z-index:10; background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav { max-width:1180px; margin:auto; padding:14px 24px; display:flex; align-items:center; gap:22px; }
.logo { display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:800; letter-spacing:.02em; white-space:nowrap; }
.logo-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:var(--button-ink); background:var(--brand); font-weight:900; }
.nav-links { display:flex; gap:6px; flex-wrap:wrap; margin-left:auto; }
.nav-links a { padding:7px 11px; border-radius:9px; color:var(--muted); font-size:14px; }
.nav-links a:hover,.nav-links a.active { color:var(--brand); background:var(--brand-2); text-decoration:none; }
.theme-select { border:1px solid var(--line); color:var(--muted); background:var(--panel); border-radius:9px; padding:7px 9px; }
.wrap { max-width:1180px; margin:auto; padding:0 24px; }
.hero { padding:70px 0 46px; display:grid; grid-template-columns:1.2fr .8fr; gap:42px; align-items:center; }
.eyebrow { color:var(--brand); font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1 { margin:12px 0 16px; font-size:clamp(38px,6vw,70px); line-height:1.04; letter-spacing:-.055em; }
h2 { font-size:clamp(24px,3vw,36px); letter-spacing:-.03em; margin:0 0 14px; line-height:1.2; }
h3 { margin:0 0 8px; line-height:1.25; }
.lead { max-width:670px; color:var(--muted); font-size:18px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--brand); background:var(--brand); color:var(--button-ink); padding:11px 16px; border-radius:10px; font-weight:750; }
.button:hover { filter:brightness(1.06); text-decoration:none; }
.button.secondary { color:var(--brand); background:transparent; }
.hero-card { background:var(--panel); border:1px solid var(--line); border-radius:24px; padding:25px; box-shadow:var(--shadow); }
.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px; }
.stat { padding:14px; border-radius:14px; background:var(--soft); }
.stat b { display:block; font-size:24px; color:var(--brand); }
.stat span { color:var(--muted); font-size:12px; }
.section { padding:42px 0; }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:18px; }
.section-head p { color:var(--muted); margin:0; }
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:21px; }
.card p { color:var(--muted); margin:8px 0 0; }
.card .tag { display:inline-flex; margin-bottom:12px; color:var(--brand); background:var(--brand-2); border-radius:999px; padding:3px 9px; font-size:12px; font-weight:700; }
.icon { font-size:25px; margin-bottom:10px; }
.callout { margin:20px 0; border-left:4px solid var(--accent); background:var(--accent-soft); padding:15px 18px; border-radius:0 12px 12px 0; }
.progress-shell { background:var(--soft); border-radius:999px; height:12px; overflow:hidden; }
.progress-bar { height:100%; background:var(--brand); width:0; transition:width .2s ease; }
.progress-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; margin:7px 0 10px; }
.course-table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.course-table th,.course-table td { text-align:left; padding:13px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.course-table th { color:var(--muted); font-size:13px; background:var(--soft); }
.course-table tr:last-child td { border-bottom:0; }
.page-title { padding:52px 0 22px; }
.page-title p { color:var(--muted); max-width:760px; }
.filters { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin:16px 0 22px; }
.filters input,.filters select { min-height:40px; border:1px solid var(--line); border-radius:9px; padding:8px 11px; background:var(--panel); color:var(--ink); }
.filters input { min-width:250px; flex:1; }
.pill { border:1px solid var(--line); background:var(--panel); color:var(--muted); border-radius:999px; padding:7px 12px; cursor:pointer; }
.pill.active { color:var(--brand); border-color:var(--brand); background:var(--brand-2); }
.question-list { display:grid; gap:13px; }
.question { background:var(--panel); border:1px solid var(--line); border-radius:15px; padding:17px 18px; }
.question.done { border-color:var(--brand); box-shadow:inset 4px 0 var(--brand); }
.q-top { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.q-id { color:var(--brand); font-weight:800; }
.q-text { font-size:17px; font-weight:700; margin:8px 0 12px; line-height:1.45; }
.q-actions { display:flex; gap:8px; flex-wrap:wrap; }
.small-button { border:1px solid var(--line); color:var(--brand); background:var(--panel); border-radius:8px; padding:7px 10px; cursor:pointer; }
.small-button:hover { background:var(--brand-2); }
.answer { display:none; margin-top:12px; padding:12px 14px; background:var(--soft); border-radius:10px; }
.answer.show { display:block; }
.answer strong { color:var(--brand); }
.source-line { color:var(--muted); font-size:12px; margin-top:8px; }
.empty { padding:30px; color:var(--muted); text-align:center; border:1px dashed var(--line); border-radius:14px; }
.footer { margin-top:50px; padding:30px 0 46px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.checklist { display:grid; gap:9px; padding:0; list-style:none; }
.checklist li { padding-left:26px; position:relative; }
.checklist li::before { content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:900; }
@media (max-width: 820px) { .hero { grid-template-columns:1fr; padding-top:44px; } .grid { grid-template-columns:1fr 1fr; } .nav { padding:11px 14px; gap:10px; } .nav-links { order:3; width:100%; margin-left:0; overflow:auto; flex-wrap:nowrap; } .site-header .nav { flex-wrap:wrap; } }
@media (max-width: 560px) { .wrap { padding:0 15px; } .grid { grid-template-columns:1fr; } .stat-row { grid-template-columns:1fr 1fr 1fr; } .stat { padding:10px; } .stat b { font-size:20px; } .course-table { font-size:13px; } .course-table th,.course-table td { padding:10px 8px; } h1 { font-size:43px; } .lead { font-size:16px; } }
