:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --ink: #172038;
  --muted: #536079;
  --line: #dde2ee;
  --accent: #304ec4;
  --accent-dark: #263da0;
  --pale: #e9edff;
  --navy: #171f3f;
  --radius: 18px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #6680f3; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 16px; background: white; border-radius: 8px; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #dfe6ff; background: #273c91; flex: 0 0 auto; }
.main-nav { display: flex; gap: clamp(13px, 3.7vw, 44px); align-self: stretch; align-items: stretch; }
.main-nav a { display: grid; place-items: center; position: relative; font-size: .9rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; width: 22px; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
.header-guide { justify-self: end; display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 9px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.header-guide:hover { border-color: var(--accent); color: var(--accent); }
.home { padding-block: 37px 75px; }
.hero { display: grid; min-height: 420px; grid-template-columns: 1fr 1.04fr; overflow: hidden; border-radius: 23px; background: var(--navy); color: white; }
.hero-copy { padding: clamp(35px, 5.3vw, 65px); align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #c8d3ff; font-size: .88rem; font-weight: 730; letter-spacing: .055em; margin-bottom: 20px; }
.eyebrow span { width: 17px; height: 3px; border-radius: 3px; background: #9fb4ff; }
.hero h1 { font-size: clamp(2.55rem, 4.65vw, 4.38rem); line-height: 1.14; font-weight: 820; letter-spacing: -.045em; }
.hero-description { max-width: 330px; margin-top: 23px; font-size: 1rem; color: #d8dff6; line-height: 1.8; }
.hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: fit-content; padding: 10px 17px; border-radius: 9px; font-size: .9rem; line-height: 1.35; font-weight: 750; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: var(--accent-dark); }
.hero .primary { color: #182952; background: #cad6ff; }
.hero .primary:hover { background: #e1e8ff; }
.light { color: white; border: 1px solid #7583af; }
.light:hover { background: #344268; }
.hero-image { position: relative; min-width: 0; background: #25345c; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 48%; }
.latest { margin-top: 47px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px 26px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.65rem, 2.9vw, 2.2rem); line-height: 1.25; letter-spacing: -.04em; }
.section-head > a { color: var(--accent-dark); font-weight: 700; }
.section-head > a:hover { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 9px; padding: 7px 13px; font-size: .85rem; font-weight: 650; }
.filters a:hover { color: var(--accent-dark); border-color: #9eace0; }
.filters .selected { color: #fff; background: #263a88; border-color: #263a88; }
.filters .selected:hover { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.card { min-width: 0; }
.card-link { height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.card-link:hover { border-color: #9eace0; box-shadow: 0 7px 18px rgba(37, 58, 119, .09); }
.card-link:hover h3 { color: var(--accent-dark); }
.card img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; background: #dfe6f6; }
.card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 19px 21px 21px; }
.tag { display: inline-flex; align-items: center; color: #2f448f; background: var(--pale); border-radius: 6px; padding: 3px 8px; font-size: .8rem; font-weight: 730; white-space: nowrap; }
a.tag { min-height: 36px; padding-inline: 11px; }
a.tag:hover { background: #d8dfff; }
.card h3 { margin-top: 10px; font-size: 1.2rem; line-height: 1.45; font-weight: 760; letter-spacing: -.018em; overflow-wrap: anywhere; }
.card p { margin-block: 8px 17px; color: var(--muted); font-size: .93rem; line-height: 1.7; overflow-wrap: anywhere; }
.card time { margin-top: auto; color: #5e6a86; font-size: .81rem; font-variant-numeric: tabular-nums; }
.footer { background: #eef1f9; border-top: 1px solid var(--line); }
.footer-inner { min-height: 155px; padding-block: 27px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 15px 20px; }
.footer p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.footer nav { display: flex; gap: 20px; padding-top: 10px; color: var(--muted); font-size: .88rem; }
.footer nav a:hover { color: var(--accent); text-decoration: underline; }
.footer small { color: var(--muted); font-size: .8rem; }
.article-page, .category-page { padding-block: 25px 72px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 5px 9px; color: var(--muted); font-size: .86rem; }
.breadcrumbs li + li::before { content: "/"; color: #64728f; margin-right: 9px; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.post-header { max-width: 930px; margin: 38px auto 26px; }
.post-header h1 { margin-top: 13px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.23; letter-spacing: -.038em; overflow-wrap: anywhere; }
.post-deck { font-size: 1.09rem; color: var(--muted); margin-top: 17px; }
.meta { margin-top: 17px; color: var(--muted); font-size: .88rem; }
.post-image { max-width: 930px; width: 100%; aspect-ratio: 2.44 / 1; margin-inline: auto; object-fit: cover; border-radius: var(--radius); background: #e4eafb; }
.reading-grid { max-width: 990px; margin: 39px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 222px; gap: clamp(22px, 4vw, 55px); align-items: start; }
.prose { grid-column: 1; grid-row: 1; font-size: 1.05rem; line-height: 1.91; overflow-wrap: anywhere; }
.prose p, .prose > ul, .prose > ol, .prose > blockquote { margin-block: 0 17px; }
.prose > ul, .prose > ol { padding-inline-start: 1.45em; }
.prose li + li { margin-top: 6px; }
.prose h2, .prose h3 { line-height: 1.36; margin-block: 29px 11px; font-weight: 760; letter-spacing: -.022em; }
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.78rem); }
.prose h3 { font-size: 1.2rem; }
.prose > blockquote { margin-inline: 0; border-left: 3px solid #8397e3; padding-left: 14px; color: var(--muted); }
.prose a:not(.button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--pale); padding: 1px 4px; border-radius: 4px; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 25px; padding: 17px 18px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.toc p { font-weight: 780; font-size: .95rem; }
.toc ol { margin: 9px 0 0; padding: 0; list-style: none; }
.toc li + li { border-top: 1px solid #edf0f5; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.toc .depth-3 { padding-inline-start: 10px; }
.guide-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 25px 0 28px; padding: 18px 20px; border: 1px solid #cad4ff; border-left: 4px solid #6178dc; background: #ecf0ff; border-radius: 11px; }
.guide-label { display: block; margin-bottom: 4px; color: #354a9a; font-size: .78rem; font-weight: 770; letter-spacing: .05em; }
.guide-card p { margin: 0; color: #1d2a51; font-size: .96rem; font-weight: 700; line-height: 1.6; }
.guide-card .button { background: var(--accent); color: #fff; }
.guide-card .button:hover { background: var(--accent-dark); }
.flow { margin: 25px 0; padding: 21px; border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.flow figcaption { color: #273f96; font-size: .93rem; font-weight: 750; }
.flow ol { list-style: none; counter-reset: flow; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.flow ol li { display: inline-flex; align-items: center; gap: 6px; min-height: 39px; counter-increment: flow; margin: 0; padding: 6px 9px; background: #f0f3ff; border: 1px solid #dce3fb; color: #293960; border-radius: 7px; font-size: .83rem; line-height: 1.25; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: #394fa5; border-radius: 5px; font-size: .72rem; }
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.category-intro { margin-block: 42px 26px; }
.category-intro h1, .missing h1 { font-size: clamp(2.25rem, 5vw, 3.65rem); line-height: 1.2; letter-spacing: -.035em; }
.category-intro p, .missing p { margin-top: 10px; color: var(--muted); }
.category-posts { margin-top: 23px; min-height: 220px; }
.empty { padding: 26px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.missing { padding-block: 90px; }
.missing .button { margin-top: 18px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 15px; }
  .hero { min-height: 390px; }
  .hero-copy { padding: 34px; }
  .hero h1 { font-size: clamp(2.35rem, 5.3vw, 3.4rem); }
  .cards { gap: 14px; }
  .card-copy { padding: 14px; }
  .card h3 { font-size: 1.09rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 8px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand-mark { width: 33px; height: 33px; border-radius: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 0; justify-content: space-between; }
  .main-nav a { min-height: 43px; padding-inline: 6px; font-size: .85rem; }
  .header-guide { min-height: 38px; }
  .home { padding-block: 22px 46px; }
  .hero { display: flex; flex-direction: column; min-height: 0; border-radius: 17px; }
  .hero-copy { align-self: stretch; padding: 30px 25px; }
  .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
  .hero-description { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .hero-image { aspect-ratio: 1.83; }
  .hero-image img { object-position: 50% 45%; }
  .latest { margin-top: 33px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 15px; gap: 11px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; }
  .footer nav { flex-wrap: wrap; padding-block: 3px 6px; gap: 16px; }
  .post-header { margin-block: 25px 19px; }
  .post-image { aspect-ratio: 2 / 1; }
  .reading-grid { display: block; margin-top: 23px; }
  .toc { position: static; margin-bottom: 25px; }
  .article-page, .category-page { padding-block: 17px 48px; }
  .prose { font-size: 1rem; }
  .related { margin-top: 34px; padding-top: 24px; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .card-copy { padding: 16px 18px 18px; }
  .filters { gap: 5px; }
  .filters a { min-height: 42px; padding-inline: 8px; font-size: .8rem; }
  .toc a { padding-block: 11px; }
}
