/* ============================================================
   MODO® — 站点共享样式
   设计源自文章页 DEMO，扩展了首页 / 专栏 / 笔记 / 关于的组件
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #efece6;
  --paper:     #f9f7f3;
  --ink:       #0d0d0d;
  --ink-2:     #4a4640;
  --ink-3:     #8a847b;
  --accent:    #ff3d00;
  --hl:        #d8f24a;
  --line:      #d8d3c9;
  --line-2:    #b0aaa0;

  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Grotesk', ui-monospace, monospace;
  --font-num:  'Space Grotesk', 'JetBrains Mono', sans-serif;

  --maxw: 1280px;
}

html[data-theme="dark"] {
  --bg:        #0d0d0d;
  --paper:     #161616;
  --ink:       #f2efe9;
  --ink-2:     #b0aaa0;
  --ink-3:     #6e6963;
  --accent:    #ff5c26;
  --hl:        #d8f24a;
  --line:      #2a2a2a;
  --line-2:    #3a3a3a;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s ease, color .35s ease;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .08s linear;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 900;
}

.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand sup {
  font-size: .55em;
  color: var(--accent);
  font-weight: 500;
  top: -0.6em;
}

.nav {
  display: flex;
  gap: 4px;
  justify-self: center;
}

.nav a {
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-2);
  border-radius: 100px;
  transition: color .2s, background-color .2s;
}

.nav a:hover { color: var(--ink); }

.nav a.active {
  background: var(--ink);
  color: var(--bg);
}

.issue {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.cover-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 32px 56px;
  position: relative;
  z-index: 2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.kicker-num {
  font-family: var(--font-num);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.kicker-line {
  width: 48px;
  height: 1px;
  background: var(--line-2);
}

.cover-title {
  font-size: clamp(2.6rem, 8.4vw, 6.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  max-width: 15ch;
  color: var(--ink);
}

/* 首页两行式标题：与文章页统一权重，仅放宽行间呼吸 */
.cover-title-home {
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
}

@media (max-width: 820px) {
  .cover-title-home {
    line-height: 1.06;
  }
}

.cover-deck {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 56px;
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 820px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 20px;
}

.meta-item + .meta-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.meta-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.meta-value {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.cover-bg-num {
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: clamp(16rem, 38vw, 34rem);
  font-weight: 700;
  line-height: 0.8;
  color: var(--ink);
  opacity: .035;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 56px;
  align-items: start;
}

/* ============================================================
   SIDEBAR / TOC
   ============================================================ */
.sidebar {
  position: sticky;
  top: 92px;
  padding: 56px 0;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li { margin: 0; }

.toc-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}

.toc-list a:hover { color: var(--ink); }

.toc-list a.active {
  color: var(--accent);
  font-weight: 700;
}

.toc-list .num {
  font-family: var(--font-num);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.toc-list a.active .num { color: var(--accent); }

/* ============================================================
   ARTICLE — 排版核心
   ============================================================ */
.article {
  padding: 56px 0 100px;
  min-width: 0;
  max-width: 720px;
}

/* 正文基础段落 */
.article > p {
  margin: 0 0 1.65rem;
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.002em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.article > p strong {
  color: var(--ink);
  font-weight: 700;
}

/* 首段特殊处理 */
.article > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.88;
}

/* 首字下沉 */
.article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-num);
  font-size: 4.8rem;
  line-height: 0.78;
  font-weight: 700;
  color: var(--accent);
  margin: 0.06em 0.14em 0 0;
  letter-spacing: -0.05em;
}

/* 章节标题 */
.chapter {
  margin: 5rem 0 2rem;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
  scroll-margin-top: 90px;
}

.chapter-num {
  font-family: var(--font-num);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--accent);
}

.chapter h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

/* 子标题 */
.article h3 {
  margin: 3rem 0 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: 90px;
}

.article h3::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

/* 列表 */
.article ul, .article ol {
  padding-left: 0;
  margin: 0 0 1.65rem;
  list-style: none;
}

.article li {
  position: relative;
  padding-left: 30px;
  margin: 0.65rem 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 3px;
  background: var(--accent);
}

.article li strong { color: var(--ink); font-weight: 700; }

/* 嵌套列表 */
.article li ul,
.article li ol {
  margin: 0.5rem 0 0.5rem;
}

.article li li {
  margin: 0.4rem 0;
  padding-left: 26px;
  font-size: .97rem;
}

.article li li::before {
  width: 10px;
  background: var(--ink-3);
}

/* 高亮 */
.hl {
  background: var(--hl);
  color: #0d0d0d;
  padding: 0.04em 0.28em;
  font-weight: 700;
  font-feature-settings: "tnum";
  border-radius: 2px;
}

/* 行内代码 */
.article code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
}

/* 代码块 */
.article pre {
  background: #111111;
  color: #e8e4dc;
  border-left: 4px solid var(--accent);
  padding: 26px 28px;
  margin: 2rem 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.78;
  border-radius: 0 6px 6px 0;
  position: relative;
}

html[data-theme="dark"] .article pre {
  background: #060606;
}

.article pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6a6a6a;
  font-weight: 500;
}

.article pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  display: block;
}

.article pre::-webkit-scrollbar { height: 6px; }
.article pre::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
}

/* 数据卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2.4rem 0;
  border: 2px solid var(--ink);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}

.stat-value .unit {
  font-size: .48em;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 3px;
  letter-spacing: 0;
}

.stat-value .arrow {
  color: var(--accent);
  font-weight: 500;
  margin: 0 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.stat.highlight {
  background: var(--hl);
}

.stat.highlight .stat-value { color: #0d0d0d; }
.stat.highlight .stat-label { color: #4a4a2a; }

/* 表格 */
.table-wrap {
  margin: 2.2rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow-x: auto;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.article th {
  text-align: left;
  padding: 14px 20px 14px 0;
  font-family: var(--font-mono);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.article th:last-child { padding-right: 0; }

.article td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.65;
}

.article td:last-child { padding-right: 0; }

.article tbody tr:last-child td { border-bottom: none; }

.article td.num {
  font-family: var(--font-mono);
  font-size: .82em;
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.article td strong { color: var(--ink); font-weight: 700; }

/* 引用 */
.pullquote {
  margin: 3.5rem 0;
  padding: 32px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -0.25em;
  left: -0.05em;
  font-family: var(--font-num);
  font-size: 7rem;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  font-weight: 700;
}

.pullquote p {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* 提示 */
.note {
  margin: 2rem 0;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-size: .93rem;
  line-height: 1.78;
  color: var(--ink-2);
  display: flex;
  gap: 16px;
  border-radius: 0 4px 4px 0;
}

.note-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}

.note p { margin: 0; }
.note strong { color: var(--ink); font-weight: 700; }

/* 结尾 */
.ending {
  margin-top: 4.5rem;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ending-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ending-tags span {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
  border-radius: 100px;
  transition: all .2s;
}

.ending-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-top {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, background-color .2s;
}

.back-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   RIGHT RAIL
   ============================================================ */
.rail-right {
  position: sticky;
  top: 92px;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  writing-mode: vertical-rl;
  align-self: flex-end;
  height: 120px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.rail-num {
  font-family: var(--font-num);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: .09;
  align-self: flex-end;
  transition: opacity .3s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.footer-brand sup {
  font-size: .5em;
  color: var(--accent);
  font-weight: 500;
  top: -0.7em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  display: grid;
  place-items: center;
  z-index: 900;
  transition: transform .25s, background-color .25s, border-color .25s, color .25s;
  box-shadow: 4px 4px 0 var(--accent);
}

.theme-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.theme-btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--accent);
}

/* ============================================================
   PAGE COMMON — 子页面通用容器与区块头
   ============================================================ */
.page-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 110px;
}

.narrow { max-width: 880px; }

.section-head {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  margin-bottom: 42px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head.gap { margin-top: 96px; }

.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* 通用标签 */
.tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
  border-radius: 100px;
  transition: all .2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   INDEX — 主打文章 + 文章列表
   ============================================================ */
.featured {
  display: block;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.featured:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--accent);
}

.featured-num {
  position: absolute;
  right: 24px;
  top: 16px;
  font-family: var(--font-num);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: .05;
  pointer-events: none;
  user-select: none;
}

.featured-tag {
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.featured-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 18px 0 16px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.featured-deck {
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 28px;
  font-size: 1.02rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.featured-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.featured-meta {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.read-more {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}

.read-more .arrow {
  font-family: var(--font-num);
  transition: transform .2s;
}

.featured:hover .read-more { color: var(--accent); }
.featured:hover .read-more .arrow { transform: translateX(5px); }

/* 文章列表 */
.post-list {
  border-top: 2px solid var(--ink);
}

.post-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 200px;
  gap: 36px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.post-idx {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  opacity: .14;
  transition: opacity .2s, color .2s;
}

.post-row:hover .post-idx {
  opacity: 1;
  color: var(--accent);
}

.post-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  transition: color .2s;
}

.post-row:hover .post-title { color: var(--accent); }

.post-deck {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 56ch;
}

.post-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.post-meta-line {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.post-arrow {
  font-family: var(--font-num);
  font-size: 1.2rem;
  color: var(--ink-3);
  transition: transform .2s, color .2s;
}

.post-row:hover .post-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* ============================================================
   COLUMNS — 专栏卡片
   ============================================================ */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.series-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.series-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--hl);
}

.series-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.series-num {
  font-family: var(--font-num);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: .9;
  color: var(--accent);
}

.series-status {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}

.series-status.on {
  background: var(--hl);
  border-color: var(--hl);
  color: #0d0d0d;
  font-weight: 700;
}

.series-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.series-desc {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.7;
}

.series-meta {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 14px;
  margin-top: auto;
}

.series-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.series-list li { margin: 0; }

.series-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-2);
  transition: color .2s;
}

.series-list li:last-child a { border-bottom: none; }

.series-list a:hover { color: var(--ink); }

.series-list .num {
  font-family: var(--font-num);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-3);
}

.series-list .arrow {
  font-family: var(--font-num);
  color: var(--ink-3);
  transition: transform .2s, color .2s;
}

.series-list a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ============================================================
   NOTES — 时间线
   ============================================================ */
.tl-group { margin-bottom: 72px; }
.tl-group:last-child { margin-bottom: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.tl-item:first-child { padding-top: 6px; }

.tl-date {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .04em;
  padding-top: 4px;
}

.tl-body p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
}

.tl-body p:last-child { margin-bottom: 0; }

.tl-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT — 链接列表
   ============================================================ */
.link-rows {
  border-top: 2px solid var(--ink);
  margin: 0 0 2rem;
}

.link-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.link-key {
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.link-val {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: color .2s;
}

.link-val .arrow {
  color: var(--ink-3);
  transition: transform .2s, color .2s;
}

.link-row:hover .link-val { color: var(--accent); }
.link-row:hover .link-val .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* 关于页正文章距微调：复用 .article 排版但去掉外层留白 */
.page-main .article {
  padding-top: 0;
  padding-bottom: 0;
  max-width: 720px;
}

/* ============================================================
   ABOUT — 作者名片 / 写作方向 / Colophon
   ============================================================ */

/* 作者名片 */
.author-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 40px 44px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.author-glyph {
  font-family: var(--font-num);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: var(--ink);
  text-align: center;
  position: relative;
}

.author-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--accent);
}

.author-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.author-role {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}

.author-bio {
  margin: 0;
  font-size: .97rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.author-bio strong { color: var(--ink); font-weight: 700; }

/* 写作方向网格 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}

.topic-card {
  padding: 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}

.topic-card:nth-child(2n) { border-right: none; }
.topic-card:nth-last-child(-n+2) { border-bottom: none; }

.topic-card:hover { background: var(--paper); }

.topic-num {
  display: block;
  font-family: var(--font-num);
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.topic-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.topic-desc {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Colophon 定义列表 */
.colophon {
  margin: 0 0 2.5rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.colophon-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.colophon-row:last-child { border-bottom: none; }

.colophon dt {
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.colophon dd {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 关于页正文段落（脱离 .article 容器） */
.article-body {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.article-body strong { color: var(--ink); font-weight: 700; }

@media (max-width: 820px) {
  .author-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 26px;
    text-align: left;
  }
  .author-glyph { font-size: 5.5rem; text-align: left; }
  .author-glyph::after { left: 0; transform: none; }

  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { border-right: none; }
  .topic-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }

  .colophon-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }
  .rail-right { display: none; }

  .series-grid { grid-template-columns: 1fr; }

  .post-row { grid-template-columns: 64px minmax(0, 1fr) 170px; gap: 24px; }
}

@media (max-width: 820px) {
  .masthead-inner {
    padding: 0 22px;
    gap: 20px;
  }
  .nav { display: none; }
  .issue { font-size: .6rem; }

  .cover-inner { padding: 48px 22px 40px; }
  .cover-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }
  .meta-item:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .meta-item:nth-child(4) {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 22px;
    gap: 0;
  }

  .sidebar {
    position: static;
    padding: 32px 0 0;
    border-bottom: 1px solid var(--line);
  }

  .toc-label { margin-bottom: 14px; }

  .toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }

  .article { padding: 36px 0 72px; }
  .page-main .article { padding: 0; }

  /* 移动端排版调整 */
  .article > p {
    font-size: 1rem;
    line-height: 1.82;
    margin-bottom: 1.5rem;
  }

  .article > p:first-of-type {
    font-size: 1.02rem;
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4rem;
  }

  .chapter-num { font-size: 2.4rem; }
  .chapter h2 { font-size: 1.4rem; }

  .article h3 {
    margin-top: 2.4rem;
    font-size: 1.08rem;
  }

  .article li {
    font-size: .97rem;
    line-height: 1.75;
  }

  .article pre {
    padding: 22px 20px;
    font-size: .76rem;
    margin: 1.6rem 0;
  }

  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .stat { padding: 24px 22px; }

  .article > p:first-of-type::first-letter { font-size: 3.6rem; }

  .pullquote { margin: 2.6rem 0; }
  .pullquote p { font-size: 1.3rem; }

  .note {
    padding: 16px 20px;
    font-size: .9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 22px;
    gap: 28px;
  }

  .theme-btn { right: 18px; bottom: 18px; }

  /* —— 子页面组件 —— */
  .page-main { padding: 44px 22px 80px; }

  .section-head { margin-bottom: 30px; }
  .section-head.gap { margin-top: 64px; }

  .featured { padding: 30px 26px; }
  .featured-num { font-size: 6rem; right: 14px; top: 10px; }

  .post-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }
  .post-idx { font-size: 1.4rem; }
  .post-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
  }

  .series-card { padding: 26px 24px; }

  .tl-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
}

@media (max-width: 520px) {
  .cover-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .cover-deck { font-size: .95rem; }

  .cover-meta { grid-template-columns: 1fr; gap: 16px; }
  .meta-item + .meta-item {
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .toc-list { grid-template-columns: 1fr; }

  .featured-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
