:root {
  color-scheme: light;
  --paper: #fffdf7;
  --ivory: #f6f1e5;
  --ink: #17231d;
  --green: #16362b;
  --jade: #128467;
  --gold: #d6a64b;
  --gold-soft: #f1d391;
  --muted: #68776f;
  --line: rgba(22, 54, 43, 0.14);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei UI", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 2%, rgba(214, 166, 75, 0.13), transparent 25rem),
    linear-gradient(135deg, #f8f3e7, #fffdf7 44%, #ede6d6);
  color: var(--ink);
}

a { color: inherit; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(18px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.site-brand img { width: 38px; height: 38px; border-radius: 5px; }
.site-head nav { display: flex; gap: 18px; font-family: "Microsoft YaHei UI", sans-serif; font-size: 13px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--jade); }

.article-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #0b261d, var(--green) 58%, #205240);
  color: #fffdf7;
}

.article-hero::after {
  position: absolute;
  right: -170px;
  bottom: -280px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(241, 211, 145, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(241, 211, 145, 0.035), 0 0 0 140px rgba(241, 211, 145, 0.02);
  content: '';
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 112px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 6.8vw, 78px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.dek {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.76);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  color: rgba(255, 253, 247, 0.58);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 72px;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.article-body { min-width: 0; }
.article-body > p:first-child { margin-top: 0; font-size: 20px; color: var(--green); }
.article-body p, .article-body li { font-family: "Microsoft YaHei UI", sans-serif; font-size: 16px; line-height: 1.95; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 8px; }

.article-body h2 {
  margin: 56px 0 20px;
  border-left: 4px solid var(--gold);
  padding-left: 15px;
  color: var(--green);
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.3;
}

.article-body h3 { margin: 34px 0 14px; color: var(--green); font-size: 21px; }
.article-body strong { color: var(--green); }

.example,
.risk-box {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.78);
  padding: 22px 24px;
  box-shadow: 0 15px 36px rgba(22, 54, 43, 0.07);
}

.example > strong,
.risk-box > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--jade);
}

.risk-box { border-color: rgba(214, 166, 75, 0.36); background: rgba(255, 248, 223, 0.72); }
.risk-box > strong { color: #7b5817; }
.risk-box p:last-child, .example p:last-child { margin-bottom: 0; }

.checklist { margin: 28px 0; padding: 0; list-style: none; }
.checklist li { position: relative; border-bottom: 1px solid var(--line); padding: 12px 0 12px 28px; }
.checklist li::before { position: absolute; left: 0; color: var(--jade); content: '✓'; font-weight: 900; }

.article-side { align-self: start; position: sticky; top: 90px; }
.toc, .side-cta { border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 253, 247, 0.78); padding: 20px; }
.toc > strong, .side-cta > strong { display: block; color: var(--green); }
.toc ol { margin: 14px 0 0; padding-left: 20px; }
.toc li { margin: 9px 0; color: var(--muted); font-family: "Microsoft YaHei UI", sans-serif; font-size: 13px; line-height: 1.5; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--jade); }
.side-cta { margin-top: 14px; background: var(--green); color: white; }
.side-cta > strong { color: var(--gold-soft); }
.side-cta p { color: rgba(255,255,255,.7); font-family: "Microsoft YaHei UI", sans-serif; font-size: 13px; line-height: 1.7; }
.side-cta a { display: block; border-radius: 5px; background: var(--gold-soft); padding: 11px 14px; color: var(--green); font-family: "Microsoft YaHei UI", sans-serif; font-size: 13px; font-weight: 900; text-align: center; text-decoration: none; }

.related {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.62);
  padding: 48px 18px;
}

.related-inner { width: min(1100px, 100%); margin: 0 auto; }
.related h2 { margin: 0 0 20px; color: var(--green); font-size: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-grid a { min-height: 110px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: 18px; color: var(--green); font-size: 17px; font-weight: 900; line-height: 1.45; text-decoration: none; }
.related-grid a:hover { border-color: rgba(18, 132, 103, .4); }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  background: #0b261d;
  padding: 28px max(18px, calc((100vw - 1100px) / 2));
  color: rgba(255,255,255,.58);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 12px;
}

.site-foot a { color: var(--gold-soft); text-decoration: none; }

@media (max-width: 860px) {
  .site-head nav a:not(:last-child) { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; }
  .article-side { position: static; order: -1; }
  .toc ol { columns: 2; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-head { padding: 10px 14px; }
  .site-brand span { font-size: 14px; }
  .hero-inner, .article-layout { width: min(100% - 28px, 1100px); }
  .hero-inner { padding: 48px 0 58px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  h1 { font-size: 40px; }
  .article-layout { padding-bottom: 56px; }
  .article-body > p:first-child { font-size: 18px; }
  .article-body p, .article-body li { font-size: 15px; }
  .toc ol { columns: 1; }
  .example, .risk-box { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
