:root {
  --brand: #315efb;
  --ink: #0b1736;
  --ink-soft: #24304d;
  --accent: #13a89e;
  --surface: #f7f9fc;
  --border: #dfe4ec;
  --muted: #5d6b86;
  --white: #fff;
  --hero: #07111f;
  --ok: #e7f6f4;
  --bad: #fdecea;
  --wrap: 1120px;
  --header: 82px;
  --shadow: none;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 64px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 620; }
h2 { font-size: 40px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 620; }
h3 { font-size: 22px; line-height: 1.35; font-weight: 600; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 228, 236, 0.9);
}
.bar { min-height: var(--header); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-weight: 650;
}
.logo.light .logo-mark { background: var(--white); color: var(--ink); }
.logo-word { font-weight: 680; font-size: 18px; display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.logo-word small { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 560; }
.logo.light .logo-word, .logo.light .logo-word small { color: var(--white); }
.nav-main, .nav-tools { display: flex; align-items: center; gap: 22px; }
.nav-main { flex: 1; justify-content: center; min-width: 0; }
.nav-tools { flex-shrink: 0; gap: 16px; }
.auth-links { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.nav-main a, .text-link { text-decoration: none; color: var(--ink-soft); }
.nav-main a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav-tools form { margin: 0; }
.user-name { color: var(--muted); font-size: 14px; }
.nav-toggle, .nav-burger, .nav-panel { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 100ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-line { background: var(--white); border-color: var(--border); min-height: 36px; padding: 0 12px; border-radius: 999px; }
.as-button { background: none; border: 0; padding: 0; cursor: pointer; }

.hero, .page-hero, .closing, .site-footer, .article-hero { background: var(--hero); color: var(--white); }
.site-notice { margin: 0; padding: 12px 20px; text-align: center; background: #e8edfb; color: #0b1736; font-size: 14px; }
.contact-note { margin: 0 0 20px; max-width: 36em; }
.hero { padding: 72px 0 28px; }
.hero-copy { text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--brand); font-size: 13px; letter-spacing: 0.08em; }
.eyebrow span { width: 18px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow.light, .light { color: rgba(255,255,255,.78); }
.eyebrow.center { justify-content: center; }
.lede { font-size: 18px; max-width: 640px; }
.hero .lede { margin: 18px auto 28px; }
.hero-actions, .chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chips { list-style: none; padding: 22px 0 0; margin: 0; }
.chips a {
  display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.2); text-decoration: none; color: var(--white); font-size: 14px;
}
.block .chips a { border-color: var(--border); color: var(--ink); }
.path-strip { margin-top: 48px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 22px 14px; }
.path-strip ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0; }
.path-strip li { display: flex; flex-direction: column; gap: 2px; }
.path-strip span, .index, .path-list > li > span { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.path-strip small, .role-card small, .q-list .meta { color: var(--muted); }
.quiet { display: inline-flex; margin-top: 8px; color: rgba(255,255,255,.7); text-decoration: none; font-size: 13px; }

.block { padding: 88px 0; }
.block-muted { background: var(--surface); }
.block-ink { background: var(--hero); color: var(--white); }
.split-head, .section-head, .path-layout, .preview, .hero-row, .cta-row, .footer-grid, .article-top, .bank-grid, .article-grid {
  display: grid; gap: 32px;
}
.split-head, .section-head, .preview, .hero-row, .cta-row { grid-template-columns: 1.2fr .8fr; align-items: end; }
.path-layout { grid-template-columns: .8fr 1.2fr; align-items: start; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.role-card, .q-card, .feature-story, .story-stack a, .article-index article, .continue-card, .empty, .side, .diagnosis {
  border: 1px solid var(--border); border-radius: 18px; background: var(--white);
}
.role-card { position: relative; min-height: 230px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; }
.role-card h3 { margin-top: auto; }
.role-card p { color: var(--muted); margin-bottom: 18px; }
.role-card .arrow { position: absolute; right: 24px; top: 24px; }
.path-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.path-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--border); }
.path-list p { margin: 0; color: var(--muted); }
.text-arrow { color: var(--brand); text-decoration: none; font-weight: 600; }
.q-card { color: var(--ink); padding: 28px; }
.q-card header, .q-card footer, .list-head, .footer-base, .byline, .filter-links { display: flex; justify-content: space-between; gap: 12px; }
.q-card header p, .q-kicker, .cat, .kicker { color: var(--brand); font-size: 13px; }
.hint { background: #eef8f7; border-radius: 12px; padding: 12px 14px; }
.hint p { margin: 4px 0 0; }
.guide-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.feature-story { display: grid; grid-template-columns: 240px 1fr; text-decoration: none; overflow: hidden; min-height: 280px; }
.feature-story > div:last-child, .story-stack a, .article-index article { padding: 22px; }
.cover {
  background: #12306b;
  color: white; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
}
.cover strong { font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; }
.story-stack { display: grid; gap: 16px; }
.story-stack a { text-decoration: none; display: flex; flex-direction: column; }
.closing { text-align: center; padding: 96px 0; }
.closing h2 { margin-bottom: 28px; }
.site-footer { padding: 56px 0 28px; }
.footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-footer h2 { font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; color: rgba(255,255,255,.78); text-decoration: none; margin: 8px 0; }
.footer-base { margin-top: 28px; color: rgba(255,255,255,.62); font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

.page-hero { padding: 36px 0 48px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: inherit; }
.crumbs.dark, .crumbs.dark a { color: var(--muted); }
.progress-card, .continue-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; }
.progress-card strong { display: block; font-size: 32px; }
.bank-body { background: var(--surface); }
.bank-grid { grid-template-columns: 280px 1fr; align-items: start; }
.side { padding: 18px; }
.side h2, .article-side h2 { font-size: 14px; }
.side-links { list-style: none; padding: 0; margin: 0 0 18px; }
.side-links a { display: flex; justify-content: space-between; text-decoration: none; padding: 10px 8px; border-radius: 10px; }
.side-links a[aria-current="page"], .side-links a[aria-current="true"] { background: #e8eeff; color: var(--brand); }
.diagnosis { background: var(--ink); color: white; padding: 18px; margin-top: 12px; }
.diagnosis a { color: white; }
.continue-card { display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: white; border: 0; }
.continue-card p { margin: 0; opacity: .8; }
.tracks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 0; }
.tracks li { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.list-head { align-items: end; margin-top: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filters label, .stack-form label, .stack-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.filters select, .filters input, .stack-form input, .stack-form textarea, .answer-form textarea {
  border: 1px solid var(--border); border-radius: 10px; background: white; padding: 8px 10px; min-height: 36px;
}
.filter-links { color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.filter-links a { margin-right: 10px; }
.q-list { list-style: none; padding: 0; margin: 12px 0 0; }
.q-list li, .hits li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--surface); border-radius: 999px; padding: 2px 8px; font-size: 12px; color: var(--ink-soft); }
.q-list h3 { font-size: 18px; margin: 6px 0; }
.q-list h3 a, .hits a, .article-index a { text-decoration: none; }
.empty { padding: 28px; }
.question-page h1 { font-size: 40px; }
.answer-form fieldset, .stack-form fieldset { border: 1px solid var(--border); border-radius: 16px; padding: 8px 16px 16px; }
.answer-form label, .stack-form fieldset label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.banner { border-radius: 12px; padding: 12px 14px; }
.banner.ok { background: var(--ok); }
.banner.bad { background: var(--bad); }
.framework { background: var(--surface); border-radius: 16px; padding: 8px 20px 12px; margin: 20px 0; }
.article-hero { padding: 88px 0 72px; }
.article-lead { width: min(720px, calc(100% - 48px)); margin: 0 auto; }
.article-hero h1 { font-size: 44px; font-weight: 560; line-height: 1.25; max-width: 14em; }
.article-meta { margin: 0 0 20px; font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,.62); }
.article-hero .byline { margin-top: 32px; font-size: 14px; justify-content: flex-start; gap: 10px; }
.byline { align-items: center; color: rgba(255,255,255,.8); }
.byline span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--ink); font-size: 13px; }
.article-jump { width: min(720px, calc(100% - 48px)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 0; }
.article-jump a { text-decoration: none; color: var(--ink-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.article-jump a:hover { border-color: var(--ink); color: var(--ink); }
.article-body { width: min(680px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 72px; }
.article .prose h2 { font-size: 28px; margin: 8px 0 16px; }
.article .prose p { font-size: 17px; line-height: 1.85; color: var(--ink-soft); }
.article .prose > section { margin: 0; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.article .prose > section:first-of-type { border-top: 0; padding-top: 8px; }
.article-next { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.article-next a { color: var(--brand); text-decoration: none; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 12px 8px; vertical-align: top; }
.note { background: #eef8f7; border-radius: 14px; padding: 12px 14px; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.facts { display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
.rewrite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rewrite section { border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.rewrite section:last-child { background: var(--ink); }
.article .prose .rewrite section:last-child,
.article .prose .rewrite section:last-child h3,
.article .prose .rewrite section:last-child p { color: #fff; }
details { border-bottom: 1px solid var(--border); padding: 8px 0 12px; }
summary { cursor: pointer; font-weight: 650; }
.article-end form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-side { display: grid; gap: 12px; }
.article-side ul { list-style: none; padding: 0; margin: 0; }
.article-side li { border-top: 1px solid var(--border); }
.article-side a { display: flex; flex-direction: column; text-decoration: none; padding: 10px 0; }
.inline-cta { background: var(--surface); padding: 28px 0 48px; }
.cta-row { background: var(--ink); color: white; border-radius: 18px; padding: 28px; align-items: center; }
.article-index { display: grid; gap: 14px; }
.article-index article h2 { font-size: 28px; }
.guides-hero { padding: 72px 0 64px; }
.guides-hero h1 { font-size: 56px; font-weight: 560; letter-spacing: -0.03em; }
.guides-hero .lede { margin: 18px 0 0; }
.guides-stage { padding-top: 28px; }
.guide-feature {
  display: grid; grid-template-columns: 300px 1fr; min-height: 320px;
  text-decoration: none; color: inherit; background: var(--white);
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
}
.guide-feature .cover { min-height: 100%; border-radius: 0; }
.guide-feature .cover strong { font-size: 36px; line-height: 1.2; max-width: 4em; }
.guide-feature > div:last-child { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.guide-feature h2 { font-size: 32px; margin: 10px 0 12px; letter-spacing: -0.03em; }
.guide-feature p { color: var(--ink-soft); max-width: 36em; }
.guide-feature small, .guide-card small { color: var(--muted); }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.guide-card {
  display: flex; flex-direction: column; min-height: 260px; padding: 28px;
  text-decoration: none; color: inherit; background: var(--white);
  border: 1px solid var(--border); border-radius: 22px;
}
.guide-card h2 { font-size: 24px; margin: 12px 0; letter-spacing: -0.02em; }
.guide-card p { color: var(--ink-soft); margin: 0 0 auto; }
.guide-card small { margin-top: 24px; }
.guide-feature:hover, .guide-card:hover { border-color: var(--ink); }
.prose-page { width: min(760px, calc(100% - 48px)); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.about-page, .about-split { width: min(1040px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.about-page .lede { max-width: 680px; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0 0; margin: 28px 0 0; }
.about-facts li { border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; background: var(--surface); }
.about-facts span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.about-facts strong { font-size: 18px; font-weight: 640; line-height: 1.4; }
.about-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.about-copy p { font-size: 17px; }
.about-steps { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--border); }
.about-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.about-steps span { color: var(--accent); font-variant-numeric: tabular-nums; }
.about-steps p { margin: 6px 0 0; color: var(--ink-soft); }
.about-note { color: var(--muted); font-size: 14px; max-width: 720px; }
.about-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.search-page { width: min(760px, calc(100% - 48px)); }
.search-page .lede { margin-bottom: 0; }
.search-form {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px; padding: 6px 6px 6px 18px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white);
}
.search-form:focus-within { border-color: var(--brand); }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  min-height: 48px; padding: 0; outline: none;
}
.search-form .btn { flex: none; }
.search-suggest { margin-top: 22px; }
.search-suggest p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.search-suggest ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.search-suggest a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--ink);
}
.search-suggest a:hover { border-color: var(--brand); color: var(--brand); }
.search-count { margin: 28px 0 12px; color: var(--muted); }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result-list a {
  display: grid; gap: 4px; padding: 16px 18px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 16px; background: var(--white);
}
.result-list span { color: var(--brand); font-size: 13px; }
.result-list strong { font-size: 18px; font-weight: 640; line-height: 1.4; }
.result-list small { color: var(--muted); }
.empty h2 { font-size: 28px; }
.stack-form { display: grid; gap: 12px; max-width: 560px; }
.contact-page { width: min(1040px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.contact-page .lede { max-width: 680px; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; }
.wecom-card { border: 1px solid var(--border); border-radius: 20px; padding: 24px; background: var(--surface); }
.wecom-card h2 { font-size: 28px; margin-bottom: 8px; }
.wecom-card p { color: var(--ink-soft); }
.wecom-mark { width: 48px; height: 48px; margin: 0 0 16px; border-radius: 14px; background: #07c160; color: #fff; display: grid; place-items: center; font-weight: 700; }
.wecom-card img { display: block; width: 180px; height: 180px; margin: 18px 0; border-radius: 12px; background: #fff; }
.wecom-card .btn { margin-top: 8px; }
.admin-page { width: min(1040px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.admin-total { font-size: 18px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 13px; font-weight: 560; }
.admin-table a { text-decoration: none; font-weight: 640; }
.admin-meter { display: block; height: 8px; margin-top: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.admin-meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.admin-page h1, .prose-page h2 { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
@media (max-width: 960px) {
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
  .split-head, .section-head, .preview, .hero-row, .path-layout, .guide-grid, .article-top, .article-grid, .footer-grid, .cta-row, .feature-story, .rewrite, .bank-grid, .about-split, .about-facts, .contact-grid, .guide-feature, .guide-cards {
    grid-template-columns: 1fr;
  }
  .toc { position: static; }
  .cards-3, .path-strip ol, .tracks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .nav-main, .nav-tools { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; }
  .nav-panel { display: none; padding-bottom: 16px; }
  .nav-toggle:checked ~ .nav-panel { display: grid; }
  .nav-panel a, .nav-panel button { text-decoration: none; padding: 8px 0; text-align: left; }
}
@media (max-width: 820px) {
  .bar { min-height: 68px; }
  .q-list li { grid-template-columns: 1fr; }
  .steps li, .facts div { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .narrow, .prose-page, .search-page, .about-page, .about-split, .contact-page, .article-lead, .article-jump, .article-body { width: min(100% - 32px, var(--wrap)); }
  .article-hero { padding: 56px 0 48px; }
  .article-hero h1 { font-size: 34px; }
  .search-form { padding-left: 14px; }
  h1 { font-size: 36px; }
  .cards-3, .path-strip ol, .tracks { grid-template-columns: 1fr; }
  .hero, .block { padding: 48px 0; }
  .path-list li { grid-template-columns: 36px 1fr; }
  .path-list small { grid-column: 2; }
}
