:root {
  color-scheme: light;
  --ink: #16273e;
  --body: #35485d;
  --muted: #526579;
  --blue: #3d65fd;
  --blue-deep: #2747bd;
  --rule: #d9e1ea;
  --wash: #f3f6fb;
  --paper: #fff;
  --dark: #16273e;
  --gutter: clamp(20px, 5vw, 72px);
  --header: 72px;
  scrollbar-gutter: stable;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, dl, dd, figure, ol, ul { margin: 0; }
body { font-size: 17px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
i { font-style: normal; }
:focus-visible { outline: 3px solid #7d95f0; outline-offset: 3px; }
.nb { white-space: nowrap; }

.wide, .wrap { width: calc(100% - var(--gutter) * 2); margin-inline: auto; }
.wide { max-width: 1280px; }
.wrap { max-width: 1120px; }
.skip { position: fixed; z-index: 40; top: 8px; left: var(--gutter); padding: 6px 16px; background: #fff; box-shadow: 0 6px 18px #16273e26; transform: translateY(-220%); }
.skip:focus { transform: none; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header); }
.brand-line { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.site-name { padding-left: 14px; border-left: 1px solid #cad3dd; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.2; letter-spacing: .06em; }
.chapters { display: flex; align-self: stretch; align-items: stretch; gap: clamp(16px, 2.4vw, 38px); }
.chapters a { position: relative; display: inline-flex; align-items: center; color: var(--body); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chapters a::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: transparent; }
.chapters a:hover { color: var(--blue); }
.chapters a:hover::after { background: var(--blue); }

/* ---------- cover ---------- */
.cover { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 130% at 86% 4%, rgba(61, 101, 253, .34), transparent 58%), #16273e; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 64px 64px; }
.cover-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 3.4vw, 54px); min-height: clamp(460px, 38vw, 600px); padding-block: clamp(44px, 5vw, 84px); }
.cover h1 { margin: 18px 0 20px; font-weight: 760; letter-spacing: -.03em; }
.cover-kicker { display: block; color: #a8c1e2; font-size: clamp(16px, 1.55vw, 21px); font-weight: 600; line-height: 1.4; letter-spacing: .04em; }
.cover-tags { color: #a8c1e2; font-size: clamp(14px, 1.1vw, 16px); font-weight: 650; letter-spacing: .1em; }
.cover-claim { display: block; margin-top: 10px; color: #fff; font-size: clamp(31px, 3.85vw, 55px); font-weight: 760; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
.cover-intro { max-width: 30em; color: #e6eefa; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.85; }
.cover-action { display: inline-flex; align-items: center; gap: 26px; min-height: 46px; margin-top: 26px; padding: 8px 18px; border-radius: 4px; background: #fff; color: #16273e; font-size: 15px; font-weight: 650; }
.cover-action:hover { background: #dbe5ff; }
.cover-figure { min-width: 0; }
.cover-figure .zoom { display: block; padding: 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.cover-figure img { width: 100%; border-radius: 4px; }
.cover-caption { margin-top: 10px; color: #aec4e0; font-size: 13px; line-height: 1.6; text-align: right; }

/* ---------- fact strip ---------- */
.fact-strip { border-bottom: 1px solid var(--rule); background: var(--wash); }
.case-facts { display: grid; grid-template-columns: 1fr 1.15fr; padding-block: 20px; }
.case-facts > div + div { padding-left: clamp(20px, 3.4vw, 56px); border-left: 1px solid #cdd8e4; }
.case-facts dt { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .06em; }
.case-facts dd { margin-top: 2px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 650; }

/* ---------- lede ---------- */
.lede-block { padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.lede-grid { display: block; }
.lede { max-width: 46em; color: var(--body); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.92; }

/* ---------- chapters ---------- */
.chapter { padding-block: clamp(56px, 6.4vw, 96px); scroll-margin-top: var(--header); }
.chapter--wash { background: linear-gradient(var(--wash), #fff 70%); }
.chapter-label { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.chapter-label::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.chapter h2 { margin: 12px 0 clamp(20px, 2.6vw, 32px); font-size: clamp(30px, 3.2vw, 47px); font-weight: 730; line-height: 1.24; letter-spacing: -.03em; text-wrap: balance; }
.chapter h3 { font-weight: 680; line-height: 1.45; letter-spacing: -.01em; }
.chapter p { max-width: 46em; color: var(--body); }
.statement { max-width: 34em; margin-top: clamp(16px, 2vw, 24px); color: var(--ink); font-size: clamp(20px, 2vw, 28px); font-weight: 640; line-height: 1.62; letter-spacing: -.015em; }
.text-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3.6vw, 52px); margin-top: clamp(20px, 2.4vw, 32px); }
.wide-line { margin-top: clamp(20px, 2.4vw, 32px); }
.pull-line { max-width: 40em; margin-top: clamp(24px, 3vw, 40px); padding-left: clamp(16px, 2vw, 26px); border-left: 3px solid var(--blue); color: var(--ink); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; }
.micro-label { margin-top: clamp(22px, 2.6vw, 34px); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; }

/* ---------- rule cards ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: 14px; padding: 0; list-style: none; counter-reset: rule; }
.rule-grid > li { position: relative; counter-increment: rule; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(22, 39, 62, .05); }
.rule-grid > li::before { content: "0" counter(rule); position: absolute; top: clamp(12px, 1.8vw, 20px); right: clamp(16px, 2vw, 24px); color: #e4ebf7; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.rule-grid h3 { font-size: clamp(19px, 1.7vw, 23px); }
.rule-grid p { max-width: 32em; margin-top: 8px; font-size: 17px; line-height: 1.85; }

/* ---------- ask cards ---------- */
.ask-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: clamp(20px, 2.6vw, 30px); padding: 0; list-style: none; counter-reset: ask; }
.ask-grid > li { counter-increment: ask; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--rule); border-bottom: 3px solid var(--blue); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(22, 39, 62, .05); }
.ask-grid > li::before { content: "0" counter(ask); display: block; margin-bottom: 10px; color: var(--blue-deep); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.ask-grid h3 { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.ask-grid p { max-width: 26em; margin-top: 10px; font-size: 16px; line-height: 1.8; }

/* ---------- figures ---------- */
.panel-figure { margin-top: clamp(24px, 3vw, 40px); padding: clamp(12px, 1.8vw, 22px); border: 1px solid #cbd7e5; border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(22, 39, 62, .07); }
.panel-figure .zoom { display: block; cursor: zoom-in; }
.panel-figure img { width: 100%; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(24px, 3vw, 38px); }
.screen-link { display: block; overflow: hidden; border: 1px solid #c5d2e3; border-radius: 8px; background: #fff; cursor: zoom-in; }
.screen-link:hover { border-color: #7b93e8; box-shadow: 0 12px 28px rgba(22, 39, 62, .1); }
.screen-bar { display: flex; justify-content: flex-end; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: #f7f9fd; color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.screen-window { display: block; height: clamp(150px, 17vw, 220px); overflow: hidden; background: #f4f7fb; }
.screen-window img { width: 100%; }
.screen-figure figcaption { font-size: 14px; }

.hero-figure { margin-top: clamp(24px, 3vw, 38px); padding: clamp(10px, 1.6vw, 18px); border: 1px solid #cbd7e5; border-radius: 14px; background: linear-gradient(#f7faff, #fff); box-shadow: 0 18px 48px rgba(22, 39, 62, .1); }
.hero-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(10px, 1.4vw, 16px); padding: 2px 6px 12px; border-bottom: 1px solid var(--rule); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9d5e6; }
.hero-bar-note { color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hero-window { display: block; max-height: min(74vh, 760px); overflow: hidden; border: 1px solid #dbe3ee; border-radius: 8px; background: #f4f7fb; }
.hero-window img { width: 100%; }

/* ---------- dark chapter ---------- */
.chapter--dark { background: radial-gradient(115% 120% at 10% 0%, #24406b, #16273e 55%, #101d2f); color: #e7eefb; }
.chapter--dark .chapter-label { color: #a9c2e6; }
.chapter--dark h2 { color: #fff; }
.chapter--dark p { color: #cbd9ec; }
.dark-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(24px, 4vw, 64px); }
.dark-side .statement { color: #fff; font-size: clamp(21px, 2.2vw, 30px); }
.dark-body p + p { margin-top: clamp(16px, 1.8vw, 22px); }

/* ---------- axiom ---------- */
.axiom-band { margin-top: clamp(34px, 4vw, 56px); padding-block: clamp(28px, 3.4vw, 44px); background: #101d2f; color: #fff; }
.axiom { max-width: 34em; }
.axiom-lead { display: block; margin-bottom: 10px; color: #9db7da; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.axiom strong { color: #fff; font-size: clamp(23px, 2.6vw, 34px); font-weight: 740; line-height: 1.45; letter-spacing: -.02em; }
.axiom-band--light { margin-top: clamp(28px, 3.4vw, 42px); padding: clamp(22px, 3vw, 36px); border: 1px solid #dbe4f1; border-radius: 12px; background: #fff; color: var(--ink); }
.axiom-band--light .axiom-lead { color: var(--blue-deep); }
.axiom-band--light strong { color: var(--ink); }

/* ---------- brand action ---------- */
.brand-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(34px, 4vw, 54px); padding: clamp(20px, 2.6vw, 30px); border-radius: 12px; background: radial-gradient(120% 140% at 90% 0%, #29436e, #16273e 60%); color: #fff; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.cta { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 20px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; }
.cta:hover { background: #2d4fd8; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; color: var(--muted); font-size: 14px; }
.foot-in a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- css-only lightbox ---------- */
/* 关闭目标：固定在视口原点的零点锚。片段导航到固定定位元素不会改变页面滚动位置，
   所以点空白处或「关闭 ✕」之后仍停在原来的阅读位置。 */
.zoom-exit { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lightbox { display: none; }
.lightbox:target { display: flex; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(11, 22, 36, .93); }
.lightbox-body { position: relative; display: flex; max-width: min(1200px, 100%); max-height: calc(100dvh - clamp(24px, 6vw, 64px)); }
.lightbox-body img { width: auto; max-width: 100%; max-height: calc(100dvh - clamp(48px, 8vw, 96px)); border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: fixed; top: 16px; right: 16px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.lightbox-close:hover { background: #dbe5ff; }
/* 放大时锁住背景滚动；配合 :root 的 scrollbar-gutter 预留，开合不产生横向重排 */
body:has(.lightbox:target) { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cover-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: clamp(30px, 5vw, 48px); }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-facts > div + div { padding-left: 0; border-left: 0; }
  .dark-grid, .text-pair, .rule-grid, .screen-pair, .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .dark-grid, .text-pair { gap: clamp(16px, 3vw, 24px); }
  .screen-figure { max-width: 620px; }
}

@media (max-width: 760px) {
  :root { --header: auto; --gutter: clamp(16px, 5vw, 34px); }
  body { font-size: 16px; line-height: 1.88; }
  .mast-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding-block: 10px; }
  .chapters { grid-column: 1 / -1; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters a { min-height: 34px; font-size: 13px; }
  .chapters a::after { display: none; }
  .case-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 16px; }
  .statement { font-size: clamp(19px, 4.8vw, 24px); }
  .dark-side .statement { font-size: clamp(20px, 5vw, 25px); }
  .chapter { padding-block: 46px; }
  .chapter h2 { margin-bottom: 16px; }
  .chapter-label { font-size: 12.5px; }
  .rule-grid p, .ask-grid p { font-size: 16px; }
  .panel-figure { padding: 10px; }
  .cover-caption { text-align: left; }
  .foot-in { min-height: 68px; font-size: 13px; }
}

@media (max-width: 460px) {
  .cover-claim { font-size: clamp(27px, 8.4vw, 36px); }
  .cover-figure .zoom { padding: 6px; }
  .cover-action { width: 100%; justify-content: center; }
  .pull-line { padding-left: 14px; }
  .axiom-band--light { padding: 18px; }
  .brand-action { flex-direction: column; align-items: stretch; }
  .cta { justify-content: center; }
  .lightbox-close { top: 10px; right: 10px; min-height: 34px; padding: 0 11px; font-size: 13px; }
}

@media print {
  .masthead, .cover-action, .site-foot, .lightbox, .zoom-exit { display: none; }
  .cover { color: #000; background: #fff; }
  .cover::before { display: none; }
  .cover-tags, .cover-kicker, .cover-intro, .cover-caption { color: #333; }
  .chapter { padding-block: 24px; break-inside: avoid-page; }
  .wide, .wrap { width: 100%; }
  .chapter--dark, .axiom-band { background: #fff; color: #000; }
  .chapter--dark p, .chapter--dark h2, .dark-side .statement, .axiom strong { color: #000; }
}