:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #101010;
  --line: #252525;
  --text: #eeeeee;
  --muted: #9a9a9a;
  --soft: #cfcfcf;
  --accent: #ffffff;
  --bg-image: none;
  --bg-opacity: 0.18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(9, 9, 9, calc(1 - var(--bg-opacity))),
      rgba(9, 9, 9, calc(1 - var(--bg-opacity)))
    ),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.reading-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px clamp(24px, 5vw, 104px) 104px;
}

.article-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin-bottom: 86px;
  padding: 0 0 14px;
  border-bottom: 1px solid #222;
  color: var(--muted);
}

.article-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.article-tools a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  max-width: 1500px;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
}

#intro {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
  margin: 18px 0 16px;
  max-width: 1120px;
}

#subtitle {
  color: var(--soft);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
  font-weight: 700;
  margin: 18px 0 22px;
  max-width: 1280px;
}

.article-meta-footer,
.article-meta-top {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 48px;
}

.article-meta-footer {
  margin: 56px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-body {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none;
}

.doc-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  margin: 20px 0 26px;
}

.section-title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  margin: 52px 0 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.sub-title {
  color: var(--soft);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  margin: 30px 0 10px;
}

.paragraph {
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 14px;
  white-space: pre-wrap;
  max-width: 1180px;
}

.numbered {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  color: #dcdcdc;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 8px;
  max-width: 1180px;
}

.numbered span {
  color: var(--accent);
  font-weight: 800;
}

.meta-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 1180px;
}

.source-link {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.8;
  margin: 22px 0;
  max-width: 1180px;
}

.source-link a {
  color: #bdbdbd;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.source-link a:hover {
  color: #ffffff;
}

.empty {
  color: var(--muted);
}

.paywall-gate {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

#body .paywall-kicker {
  margin: 0 0 18px;
  color: var(--muted) !important;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.paywall-gate h2,
.paywall-window-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
}

#body .paywall-gate > p:not(.paywall-kicker),
#body .paywall-note,
#body .paywall-qr-missing {
  color: var(--muted) !important;
  line-height: 1.8;
}

.paywall-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.paywall-price span {
  color: var(--muted);
  font-size: 13px;
}

.paywall-price strong {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.paywall-gate button,
.paywall-window-card > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0 22px;
  cursor: pointer;
  font-weight: 750;
}

.paywall-window[hidden] {
  display: none;
}

.paywall-window {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.paywall-window-card {
  position: relative;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 46px);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.paywall-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 20px;
}

.paywall-method {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
}

.paywall-method h3 {
  margin: 0 0 12px;
  color: #222;
  font-size: 17px;
  text-align: center;
}

.paywall-method img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

#body .paywall-qr-missing {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

#body .paywall-note {
  margin: 20px 0;
  text-align: center;
}

.paywall-window-card > a {
  width: 100%;
  box-sizing: border-box;
}

body.paywall-window-open {
  overflow: hidden;
}

.media-block {
  width: 100%;
  max-width: 1480px;
  margin: 34px 0 42px;
}

.media-block img,
.media-block video {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #050505;
  border: 1px solid var(--line);
}

.media-block figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .reading-shell {
    padding: 28px 18px 64px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .article-tools {
    margin-bottom: 36px;
    width: 100%;
  }

  #intro {
    font-size: 16px;
    margin-bottom: 34px;
  }

  .doc-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .paywall-gate,
  .paywall-window-card {
    border-radius: 24px;
  }

  .paywall-window {
    align-items: end;
    padding: 10px;
  }

  .paywall-methods {
    grid-template-columns: 1fr;
  }
}

body[data-content-type="longform"] .reading-shell{width:min(1080px,100%);margin:auto;padding-top:40px}
body[data-content-type="longform"] .article-tools{margin-bottom:72px}
body[data-content-type="longform"] h1{max-width:900px;font-size:clamp(46px,7vw,84px);letter-spacing:-.055em;text-wrap:balance}
body[data-content-type="longform"] #subtitle,body[data-content-type="longform"] #intro,body[data-content-type="longform"] .article-meta-top,body[data-content-type="longform"] .article-meta-footer{max-width:760px}
body[data-content-type="longform"] .article-body{display:block;max-width:760px;font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:18px;line-height:2}
body[data-content-type="longform"] .article-body p{margin:0 0 1.35em;color:var(--soft)}
body[data-content-type="longform"] .article-body h1,body[data-content-type="longform"] .article-body h2,body[data-content-type="longform"] .article-body h3{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;line-height:1.28;letter-spacing:-.035em}
body[data-content-type="longform"] .article-body h1{font-size:34px;margin:2em 0 .7em}
body[data-content-type="longform"] .article-body h2{font-size:28px;margin:1.8em 0 .65em}
body[data-content-type="longform"] .article-body h3{font-size:22px;margin:1.6em 0 .6em}
body[data-content-type="longform"] .article-body blockquote{margin:1.8em 0;padding:5px 0 5px 22px;border-left:3px solid #687970;color:var(--muted)}
body[data-content-type="longform"] .article-body ul,body[data-content-type="longform"] .article-body ol{padding-left:1.5em}
body[data-content-type="longform"] .article-body li{margin:.55em 0}
body[data-content-type="longform"] .article-body .task-item{display:flex;gap:10px;list-style:none}
body[data-content-type="longform"] .article-body code{border-radius:5px;background:#1a1d1b;padding:.12em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em}
body[data-content-type="longform"] .article-body pre{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#050706;padding:20px;line-height:1.65}
body[data-content-type="longform"] .article-body pre code{background:transparent;padding:0}
body[data-content-type="longform"] .article-body figure{margin:2.2em 0}
body[data-content-type="longform"] .article-body img{display:block;max-width:100%;border:1px solid var(--line)}
body[data-content-type="longform"] .article-body figcaption{margin-top:10px;color:var(--muted);font-size:13px}
body[data-content-type="longform"] .article-body hr{border:0;border-top:1px solid var(--line);margin:3em 0}
body[data-content-type="longform"] .article-body a{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){body[data-content-type="longform"] .article-tools{margin-bottom:42px}body[data-content-type="longform"] .article-body{font-size:17px;line-height:1.95}}

/* Unified minimal reading layout — 2026-10-28 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e8e8e5;
  --text: #171717;
  --muted: #777772;
  --soft: #343432;
  --accent: #171717;
}

html,
body {
  background: #ffffff;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  display: none;
}

.reading-shell,
body[data-content-type="longform"] .reading-shell,
html body.visitor-browse-mode .reading-shell {
  width: min(1440px, calc(100% - 96px)) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 40px 0 140px !important;
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.article-tools,
body[data-content-type="longform"] .article-tools,
html body.visitor-browse-mode .article-tools {
  width: 100% !important;
  max-width: 1120px !important;
  min-height: 36px !important;
  margin: 0 auto 92px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

.article-tools a,
html body.visitor-browse-mode .article-tools #back-link {
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}

.article-tools a:hover,
html body.visitor-browse-mode .article-tools #back-link:hover {
  color: var(--text) !important;
}

.kicker {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1,
body[data-content-type="longform"] h1,
html body.visitor-browse-mode .reading-shell > h1 {
  max-width: 1120px !important;
  margin: 0 auto !important;
  color: var(--text) !important;
  font-size: clamp(52px, 6.8vw, 88px) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

#subtitle,
body[data-content-type="longform"] #subtitle {
  width: 100%;
  max-width: 1120px;
  margin: 30px auto 0;
  color: var(--soft);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 520;
  line-height: 1.5;
}

#intro,
body[data-content-type="longform"] #intro {
  width: 100%;
  max-width: 1120px;
  margin: 28px auto 0;
  color: #52524f;
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: 0.012em;
}

.article-meta-top,
body[data-content-type="longform"] .article-meta-top {
  max-width: 960px;
  margin: 30px auto 76px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.article-meta-top {
  display: none !important;
}

.article-body,
body[data-content-type="longform"] .article-body {
  display: block;
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  color: #252523;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 2.02;
  letter-spacing: 0.01em;
}

.paragraph,
body[data-content-type="longform"] .article-body p,
html body.visitor-browse-mode .article-body p {
  max-width: 1040px;
  margin: 0 0 1.42em;
  color: #252523 !important;
  font-size: inherit;
  line-height: inherit;
  text-align: justify;
  text-justify: inter-ideograph;
}

.doc-title,
body[data-content-type="longform"] .article-body h1 {
  margin: 2.8em 0 0.9em;
  color: var(--text);
  font-family: inherit;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.section-title,
body[data-content-type="longform"] .article-body h2 {
  margin: 3em 0 0.9em;
  padding: 0;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.sub-title,
body[data-content-type="longform"] .article-body h3 {
  margin: 2.5em 0 0.8em;
  color: var(--text);
  font-family: inherit;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.55;
  letter-spacing: 0;
}

.numbered {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  max-width: 1040px;
  margin: 0 0 0.9em;
  color: #292927;
  font-size: inherit;
  line-height: 1.8;
}

.numbered span {
  color: var(--muted);
  font-weight: 600;
}

.numbered b {
  font-weight: 600;
}

body[data-content-type="longform"] .article-body ul,
body[data-content-type="longform"] .article-body ol {
  margin: 1.2em 0 1.5em;
  padding-left: 1.4em;
}

body[data-content-type="longform"] .article-body li {
  margin: 0.5em 0;
  padding-left: 0.2em;
}

body[data-content-type="longform"] .article-body blockquote {
  margin: 2em 0;
  padding: 0 0 0 18px;
  border-left: 2px solid #c9c9c4;
  color: #5d5d58;
}

.meta-line,
.source-link {
  max-width: 1040px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.source-link a,
.article-body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.media-block,
body[data-content-type="longform"] .article-body figure {
  width: 100%;
  max-width: 1240px;
  margin: 56px auto;
}

.media-block img,
.media-block video,
body[data-content-type="longform"] .article-body img,
html body.visitor-browse-mode .media-block img,
html body.visitor-browse-mode .media-block video {
  border: 0 !important;
  border-radius: 0 !important;
  background: #f5f5f3 !important;
}

.media-block figcaption,
body[data-content-type="longform"] .article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.article-meta-footer,
body[data-content-type="longform"] .article-meta-footer {
  width: 100%;
  max-width: 1120px;
  margin: 88px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.035em;
}

.article-meta-footer::before {
  content: "ARTICLE RECORD";
  display: block;
  margin-bottom: 10px;
  color: #9a9a95;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.16em;
}

.paywall-gate,
.paywall-window-card {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: none;
}

@media (max-width: 700px) {
  .reading-shell,
  body[data-content-type="longform"] .reading-shell,
  html body.visitor-browse-mode .reading-shell {
    width: min(100% - 36px, 1440px) !important;
    padding: 22px 0 72px !important;
  }

  .article-tools,
  body[data-content-type="longform"] .article-tools,
  html body.visitor-browse-mode .article-tools {
    margin-bottom: 52px !important;
  }

  h1,
  body[data-content-type="longform"] h1,
  html body.visitor-browse-mode .reading-shell > h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
    line-height: 1.15 !important;
  }

  #subtitle {
    font-size: 21px;
  }

  #intro {
    font-size: 17px;
    line-height: 1.85;
  }

  .article-meta-top {
    margin-bottom: 48px;
  }

  .article-body,
  body[data-content-type="longform"] .article-body {
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0.012em;
  }

  .doc-title,
  body[data-content-type="longform"] .article-body h1 {
    font-size: 27px;
  }

  .section-title,
  body[data-content-type="longform"] .article-body h2 {
    font-size: 23px;
  }

  .sub-title,
  body[data-content-type="longform"] .article-body h3 {
    font-size: 19px;
  }

  .media-block,
  body[data-content-type="longform"] .article-body figure {
    margin: 32px 0;
  }
}
