:root {
  color-scheme: light;
  --ink: #11151d;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #f6f5f1;
  --white: #ffffff;
  --accent: #ef625f;
  --night: #090c11;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 5vw; border-bottom: 1px solid rgba(17,21,29,.1); background: rgba(246,245,241,.9); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: white; background: var(--night); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #4b5563; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header .nav-cta { padding: 10px 16px; border-radius: 999px; color: white; background: var(--night); }

.reading-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: clamp(42px, 7vw, 100px); width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 120px; }
.toc { position: sticky; top: 112px; align-self: start; padding-top: 4px; }
.toc p { margin: 0 0 16px; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.toc a { color: #667085; font-size: 12px; line-height: 1.55; text-decoration: none; }
.toc a:hover { color: var(--accent); }

.article { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #98a2b3; font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: #667085; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.article-meta span:first-child { color: var(--accent); font-weight: 800; }
.article h1 { max-width: 880px; margin: 0 0 26px; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 1.04; letter-spacing: -.045em; }
.article h2 { margin: 72px 0 22px; padding-top: 8px; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 94px; }
.article h3 { margin: 38px 0 12px; font-size: 1.18rem; line-height: 1.45; }
.article p, .article li { color: #374151; font-size: 16px; line-height: 1.95; }
.article p { margin: 0 0 22px; }
.article ul, .article ol { margin: 16px 0 28px; padding-left: 24px; }
.article li { margin: 8px 0; padding-left: 4px; }
.article a { text-decoration-color: rgba(239,98,95,.45); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article blockquote { margin: 30px 0; padding: 22px 24px; border: 0; border-left: 4px solid var(--accent); background: white; box-shadow: 0 12px 35px rgba(17,21,29,.05); }
.article blockquote p { margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.75; }
.article table { width: 100%; margin: 30px 0 38px; border-collapse: collapse; border: 1px solid var(--line); background: white; font-size: 13px; }
.article th, .article td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.65; }
.article th { color: var(--ink); background: #f0f0ec; font-weight: 700; }
.article code { padding: 2px 5px; border-radius: 4px; background: #e9e8e3; font-family: ui-monospace, monospace; font-size: .9em; }
.article hr { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }
.article-cta { margin-top: 80px; padding: 36px; border-radius: 24px; color: white; background: var(--night); }
.article-cta p { margin: 0 0 10px; color: #f49b96; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article-cta h2 { margin: 0 0 24px; padding: 0; font: 700 clamp(1.55rem, 3vw, 2.3rem)/1.25 "SF Pro Display", "PingFang SC", sans-serif; }
.article-cta a { display: inline-flex; gap: 16px; align-items: center; padding: 12px 18px; border-radius: 999px; color: var(--night); background: white; font-size: 13px; font-weight: 800; text-decoration: none; }

.resource-main { min-height: calc(100vh - 144px); }
.resource-hero { padding: clamp(72px, 10vw, 150px) max(5vw, 24px) 80px; color: white; background: var(--night); }
.resource-hero > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.resource-hero p { margin-bottom: 24px; color: #f49b96; font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.resource-hero h1 { margin-top: 0; margin-bottom: 24px; font-family: "Songti SC", serif; font-size: clamp(3.5rem, 9vw, 7.8rem); line-height: .95; letter-spacing: -.055em; }
.resource-hero div { max-width: 680px; color: #98a2b3; font-size: 17px; line-height: 1.8; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 120px; }
.resource-card { display: flex; min-height: 360px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.resource-card > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.resource-card h2 { margin: 42px 0 18px; font-family: "Songti SC", serif; font-size: 28px; line-height: 1.28; letter-spacing: -.025em; }
.resource-card h2 a { text-decoration: none; }
.resource-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.resource-card .read-link { margin-top: auto; padding-top: 28px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.resource-card:hover { border-color: rgba(239,98,95,.5); transform: translateY(-3px); transition: .25s ease; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 5vw; border-top: 1px solid var(--line); color: #98a2b3; font-size: 12px; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .reading-layout { grid-template-columns: 1fr; padding-top: 44px; }
  .toc { display: none; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 280px; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand strong { display: none; }
  .reading-layout { width: min(100% - 28px, 760px); padding-bottom: 80px; }
  .article h1 { font-size: 2.65rem; }
  .article p, .article li { font-size: 15px; }
  .article table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-cta { padding: 26px; }
  .resource-hero { padding-left: 20px; padding-right: 20px; }
  .site-footer { flex-direction: column; }
}
