:root {
  --bg: #f5f1e8;
  --paper: #fffdf9;
  --ink: #17304a;
  --text: #344350;
  --muted: #6f7881;
  --line: #dfd7cb;
  --red: #aa482b;
  --green: #56705b;
  --soft-green: #edf2ee;
  --soft-red: #fff5ef;
  --shadow: 0 16px 42px rgba(22, 43, 67, 0.08);
  --max: 1160px;
  --reading: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fbfaf6 0, var(--bg) 760px);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #2b6cb0;
  outline-offset: 3px;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.reading { width: min(var(--reading), calc(100% - 40px)); margin-inline: auto; }
.serif { font-family: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-150%); padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(223, 215, 203, 0.92);
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.1; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.desktop-nav a, .mobile-nav a { border-radius: 999px; color: #425267; font-size: 14px; font-weight: 750; }
.desktop-nav a { padding: 9px 12px; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: #fff; color: var(--ink);
}
.menu-button {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  color: var(--ink); cursor: pointer; font-size: 21px;
}
.mobile-nav { display: none; }

.breadcrumbs { padding-top: 24px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #a19a90; }

.hero { padding: 40px 0 58px; }
.hero-box {
  display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: 30px;
  background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow);
}
.hero-copy {
  padding: 58px 48px;
  background: radial-gradient(280px 110px at 15% 100%, rgba(135, 145, 155, 0.13), transparent 72%), linear-gradient(180deg, #fffdf9, #f7f4ee);
}
.eyebrow, .kicker { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 {
  margin: 13px 0 18px; color: #0f3155; font-size: clamp(48px, 7vw, 80px);
  line-height: 1.03; letter-spacing: -0.045em;
}
.hero h1 span {
  display: block; margin-top: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 0.27em; font-weight: 750; letter-spacing: 0.03em; line-height: 1.45;
}
.hero p { max-width: 620px; margin: 0; color: #4e5c68; font-size: 18px; }
.hero-photo { min-height: 600px; background: #e8e1d7; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 800;
}
.button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button:hover { transform: translateY(-1px); }

.section { padding: 72px 0; border-top: 1px solid rgba(223, 215, 203, 0.85); scroll-margin-top: 90px; }
.section-title { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; margin-bottom: 28px; }
h2, .page-title { color: var(--ink); font-size: clamp(31px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.03em; }
h2 { margin: 0; }
h3, h4 { color: var(--ink); }
.lead { max-width: 820px; margin: 11px 0 0; color: #586571; font-size: 18px; }
.definition { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; }
.panel, .card {
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
  box-shadow: 0 7px 24px rgba(23, 48, 74, 0.04);
}
.panel { padding: 28px; }
.definition-copy { font-size: 20px; }
.definition-copy p { margin: 0; }
.fact-list { display: grid; gap: 12px; }
.fact { padding: 15px 16px; border-radius: 16px; background: var(--soft-green); }
.fact small { display: block; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 4px; color: var(--ink); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 22px; }
a.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
a.card:hover { transform: translateY(-2px); border-color: #cbbfb0; box-shadow: 0 14px 30px rgba(23, 48, 74, 0.09); }
.card h2, .card h3, .card h4 { margin: 0 0 7px; font-size: 21px; line-height: 1.35; }
.card p { margin: 0; color: #5a6671; }
.card .more { display: inline-block; margin-top: 16px; color: #294763; font-size: 14px; font-weight: 850; }
.term-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.term { min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.75); }
.term strong { color: var(--ink); font-size: 18px; }
.term p { margin: 5px 0 0; color: #5d6872; font-size: 14px; line-height: 1.62; }
.quote-strip { padding: 52px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.quote-strip blockquote { margin: 0; font-size: clamp(27px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.quote-strip cite { display: block; margin-top: 12px; color: #ced9e3; font-size: 14px; font-style: normal; }

.page-head { padding: 58px 0 44px; }
.page-title { margin: 12px 0 14px; }
.page-head .lead { max-width: 860px; font-size: 19px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 52px; align-items: start; }
.article-body { min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 48px 0 15px; font-size: 32px; scroll-margin-top: 100px; }
.article-body h3 { margin: 32px 0 10px; font-size: 23px; line-height: 1.35; scroll-margin-top: 100px; }
.article-body p, .article-body li { color: #414e5a; font-size: 17px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin: 8px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.article-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #596674; font-size: 12px; font-weight: 800; }
.callout, .key-quote { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; background: var(--soft-red); color: #65483c; }
.key-quote { font-family: "Songti SC", STSong, serif; font-size: 21px; }
.callout.green { border-left-color: var(--green); background: var(--soft-green); color: #3d5042; }
.formula { overflow-x: auto; margin: 18px 0; padding: 17px 19px; border-radius: 16px; background: #11283f; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.75; white-space: nowrap; }
.toc { position: sticky; top: 98px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 249, 0.94); }
.toc strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: #566573; font-size: 13px; line-height: 1.45; }
.toc a:hover { color: var(--red); }
.law { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.law-number { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; background: var(--ink); color: #fff; font-weight: 850; }
.law h2 { margin-bottom: 8px; font-size: 30px; }
.article-card-meta { display: flex; gap: 8px; margin-bottom: 10px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.portrait-card { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 28px; align-items: center; }
.portrait-card img { width: 100%; max-height: 560px; border-radius: 20px; object-fit: cover; object-position: center 28%; }
.gallery { columns: 2 320px; column-gap: 14px; }
.gallery figure { break-inside: avoid; overflow: hidden; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.gallery figcaption { padding: 9px 12px; color: var(--muted); font-size: 13px; }
.related { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 18px; font-size: 28px; }
.outline-wrap { max-width: 900px; }
.zg-head { padding: 58px 0 30px; }
.zg-head h1 { margin: 12px 0 14px; color: var(--ink); font-size: clamp(36px, 5vw, 56px); line-height: 1.18; letter-spacing: -0.035em; }
.zg-version { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zg-version span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #596674; font-size: 12px; font-weight: 800; }
.zg-intro { margin: 22px 0; color: #4b5966; font-size: 18px; }
.zg-intro p { margin: 0 0 14px; }
.zg-toc { margin: 26px 0 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.zg-toc summary { cursor: pointer; padding: 16px 0; color: var(--ink); font-weight: 900; }
.zg-toc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; padding-bottom: 18px; }
.zg-toc-grid a { padding: 5px 0; border-bottom: 1px dashed #eee5db; color: #526170; font-size: 14px; }
.zg-sec { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.zg-sec h2 { margin: 0 0 16px; color: var(--ink); font-size: 29px; line-height: 1.35; }
.zg-sec h4 { margin: 25px 0 9px; color: var(--ink); font-size: 21px; }
.zg-sec p, .zg-sec li { color: #414e5a; font-size: 17px; }
.zg-sec p { margin: 0 0 14px; }
.zg-sec ul { padding-left: 24px; }
.zg-sec li { margin: 7px 0; }
.zg-quote { margin: 21px 0; padding: 18px 20px; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; background: var(--soft-red); color: #68483b; font-size: 20px; }
.zg-formula { overflow-x: auto; margin: 15px 0; padding: 17px 19px; border-radius: 16px; background: #11283f; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; white-space: nowrap; }
.zg-layer { margin: 11px 0; padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.zg-layer b { display: block; margin-bottom: 4px; color: var(--ink); }
.zg-navline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.zg-navline a { color: #294763; font-weight: 850; }
.zg-note { color: #737d86 !important; font-size: 14px !important; }
.site-footer { padding: 38px 0 46px; border-top: 1px solid var(--line); color: #6b747d; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.copy-button { margin-top: 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.copy-status { min-height: 1.5em; margin-top: 7px; color: var(--green); font-size: 13px; }

@media (max-width: 1020px) {
  .term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; place-items: center; }
  .mobile-nav.open { display: grid; gap: 4px; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-nav a { padding: 9px 12px; }
  .hero-box, .definition, .portrait-card { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 28px 36px; }
  .hero-photo { min-height: auto; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; object-position: center 32%; }
  .section-title { grid-template-columns: 1fr; gap: 8px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap, .reading { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 66px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 10px; }
  .hero { padding: 22px 0 42px; }
  .hero-box { border-radius: 22px; }
  .hero-copy { padding: 34px 22px 30px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 17px; }
  .section { padding: 52px 0; }
  .page-head { padding: 42px 0 32px; }
  .grid-2, .grid-3, .grid-4, .term-grid { grid-template-columns: 1fr; }
  .panel, .card { padding: 20px; border-radius: 18px; }
  .definition-copy { font-size: 18px; }
  .term { min-height: auto; }
  .article-body h2 { margin-top: 40px; font-size: 28px; }
  .article-body h3 { font-size: 21px; }
  .article-body p, .article-body li { font-size: 16.5px; }
  .formula { margin-inline: -4px; font-size: 13px; }
  .law { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .law-number { width: 44px; height: 44px; border-radius: 14px; }
  .law h2 { font-size: 25px; }
  .zg-toc-grid { grid-template-columns: 1fr; }
  .zg-sec h2 { font-size: 24px; }
  .zg-sec p, .zg-sec li { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
