/* ==========================================================================
   刘老师分享屋 · 视觉系统
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --paper-2: #f6f1e7;
  --paper-3: #efe8da;
  --surface: #ffffff;
  --ink: #1b2429;
  --ink-soft: #3d4b52;
  --muted: #6f7c83;
  --muted-2: #8b979d;
  --line: #e8e2d7;
  --line-strong: #d7cfc0;
  --brand: #d2562a;
  --brand-deep: #b4431d;
  --brand-tint: #fbeade;
  --amber: #e8ad45;
  --amber-tint: #fbf1dd;
  --deep: #16272d;
  --deep-2: #1e3a42;
  --ok: #3c7a5a;
  --err: #b4431d;

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Noto Serif CJK SC",
    "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(27, 36, 41, 0.04), 0 2px 10px rgba(27, 36, 41, 0.035);
  --shadow-md: 0 16px 40px -22px rgba(27, 36, 41, 0.28);
  --shadow-lg: 0 30px 70px -34px rgba(27, 36, 41, 0.35);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(210, 86, 42, 0.18);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 背景水印 & 防复制 ---------- */
.watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/watermark.svg") repeat;
  background-size: 340px 226px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.article {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.article img {
  -webkit-user-drag: none;
  user-select: none;
}

.wechat-qr img {
  -webkit-touch-callout: default;
  -webkit-user-drag: auto;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 顶部阅读进度 ---------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 90;
  background: transparent;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--brand));
  transition: width 0.1s linear;
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(27, 36, 41, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-width: 0;
}

.brand picture {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 31px;
  width: auto;
}

.brand-rule {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(232, 173, 69, 0.12);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, 4px) scale(0.4);
  opacity: 0;
  transition: 0.22s var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.menu-btn {
  display: none;
}

.menu-btn .close-icon {
  display: none;
}

.menu-btn[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-btn[aria-expanded="true"] .close-icon {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 8px 0 20px;
}

.mobile-nav .m-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-nav .m-link span {
  font-family: var(--serif);
  font-size: 18px;
}

.mobile-nav .m-link em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-left: auto;
}

.mobile-nav .m-link .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  margin-left: 4px;
}

.mobile-nav .m-link em + .icon {
  margin-left: 10px;
}

/* ==========================================================================
   通用区块
   ========================================================================== */
main {
  display: block;
  min-height: 50vh;
  outline: none;
}

main:focus,
main:focus-visible {
  outline: none;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 52ch;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: 0.2s var(--ease);
  white-space: nowrap;
}

.section-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.section-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.section-link:hover .icon {
  transform: translateX(3px);
}

.divider {
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(232, 173, 69, 0.16), transparent 62%),
    radial-gradient(760px 420px at 12% 8%, rgba(210, 86, 42, 0.07), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 36, 41, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 560px;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero-badge-top .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(210, 86, 42, 0.14);
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hero h1 .accent {
  color: var(--brand);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(232, 173, 69, 0.85);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.hero-lead {
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: 0.22s var(--ease);
  cursor: pointer;
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.22s var(--ease);
}

.btn-primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(22, 39, 45, 0.9);
}

.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.btn-primary:hover .icon {
  transform: translateX(3px);
}

.btn-ghost {
  padding: 13px 4px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: rgba(210, 86, 42, 0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-stat strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-stat span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-stat + .hero-stat {
  position: relative;
  padding-left: 26px;
}

.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: var(--line-strong);
}

/* 头像视觉 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 18px 10px 0;
}

.hero-arcs {
  position: absolute;
  left: -26px;
  bottom: 26px;
  width: 300px;
  height: 300px;
  color: var(--amber);
  opacity: 0.55;
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(100%, 344px);
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(27, 36, 41, 0.08);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-card {
  position: absolute;
  z-index: 2;
  left: -4px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card-icon {
  flex: none;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(27, 36, 41, 0.12);
}

.hero-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.hero-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.35;
}

.hero-card-text span {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ==========================================================================
   专栏卡片
   ========================================================================== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.module-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.module-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.module-heading {
  flex: 1;
  min-width: 0;
}

.module-card:nth-child(n + 4) {
  grid-column: span 3;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 173, 69, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--brand-tint), var(--paper-2));
  border: 1px solid rgba(210, 86, 42, 0.12);
  color: var(--brand);
  margin: 0;
}

.module-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
}

.module-en {
  margin: 0 0 1px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.module-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.module-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.module-arrow {
  flex: none;
  color: var(--muted-2);
  display: inline-flex;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.module-arrow .icon {
  width: 17px;
  height: 17px;
}

.module-card:hover .module-arrow {
  transform: translateX(4px);
  color: var(--brand);
}

.module-desc {
  margin: 0;
}

.module-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.module-foot span:last-child {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ==========================================================================
   精选阅读
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 16px;
}

.feature-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 36px 30px;
  border-radius: var(--r-lg);
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  min-height: 340px;
  transition: box-shadow 0.3s var(--ease);
}

.feature-main::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035),
    0 0 0 68px rgba(255, 255, 255, 0.025);
}

.feature-main:hover {
  box-shadow: var(--shadow-lg);
}

.feature-main:hover .feature-title {
  color: #f7d9a8;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(232, 173, 69, 0.16);
  border: 1px solid rgba(232, 173, 69, 0.3);
  color: #f0c987;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.feature-title {
  position: relative;
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.feature-summary {
  position: relative;
  margin: 0 0 26px;
  font-size: 13.8px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
  max-width: 42ch;
}

.feature-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.feature-meta .icon {
  width: 14px;
  height: 14px;
}

.feature-meta .go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.feature-mini {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: 0.25s var(--ease);
}

.feature-mini:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-mini .kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.feature-mini h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.feature-mini p {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-mini .meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   文章列表
   ========================================================================== */
@media (min-width: 721px) {
  .group-nav {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.group-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 16px;
  background: linear-gradient(var(--paper) 72%, rgba(251, 250, 247, 0));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.group-nav::-webkit-scrollbar {
  display: none;
}

.group-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.18s var(--ease);
}

.group-chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}

.group-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.group-chip.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.group-chip.is-active em {
  color: rgba(255, 255, 255, 0.62);
}

.module-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.post-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
}

.post-group-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.post-group-head span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.post-group .post-list {
  border-top: 0;
}

.post-list {
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s var(--ease);
}

.post-row:hover {
  background: rgba(246, 241, 231, 0.5);
}

.post-date {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.post-main {
  min-width: 0;
}

.post-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.post-kicker .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.post-kicker .cat {
  color: var(--muted);
}

.post-title {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.post-row:hover .post-title {
  color: var(--brand-deep);
}

.post-summary {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.post-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.post-aside .icon {
  width: 14px;
  height: 14px;
}

.post-aside .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: 0.22s var(--ease);
}

.post-row:hover .post-aside .go {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.post-row:hover .post-aside .go .icon {
  width: 15px;
  height: 15px;
}

/* 空状态 */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.5);
}

.empty-state .icon {
  width: 30px;
  height: 30px;
  color: var(--muted-2);
  margin: 0 auto 14px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   关于条 / 免责
   ========================================================================== */
.about-strip {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 40px 44px;
  background: var(--paper-2);
  border-radius: var(--r-xl);
  border: 1px solid rgba(215, 207, 192, 0.5);
}

.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}

.about-strip h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.about-strip p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 62ch;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(215, 207, 192, 0.7);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 72px;
  padding: 58px 0 26px;
  background: linear-gradient(180deg, #f8f3ea 0%, #f2ebdd 100%);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(210, 86, 42, 0.08);
  box-shadow: 0 0 0 48px rgba(210, 86, 42, 0.025),
    0 0 0 96px rgba(210, 86, 42, 0.018);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 16px;
  align-items: center;
  max-width: 44ch;
}

.footer-mark {
  width: 44px;
  height: 44px;
  opacity: 0.95;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.footer-line {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.footer-title {
  margin: 4px 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  color: var(--ink-soft);
  width: fit-content;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   搜索
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 9vh 20px 20px;
  overflow-y: auto;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 30, 36, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.2s var(--ease);
}

.search-panel {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.24s var(--ease);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-field .icon {
  width: 21px;
  height: 21px;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 16.5px;
  padding: 4px 0;
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-esc {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.search-body {
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px;
}

.search-hint {
  margin: 0;
  padding: 26px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.search-group-label {
  margin: 10px 10px 4px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.search-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.15s var(--ease);
}

.search-item[aria-selected="true"],
.search-item:hover {
  background: var(--paper-2);
}

.search-item .s-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.search-item .s-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted-2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-item mark {
  background: rgba(232, 173, 69, 0.5);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 1px;
  font-weight: 600;
}

.search-item[aria-selected="true"] {
  box-shadow: inset 2px 0 0 var(--brand);
}

.search-foot {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 11px;
  color: var(--muted-2);
}

.search-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 4px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

/* ==========================================================================
   专栏页
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(210, 86, 42, 0.12);
  box-shadow: 0 0 0 40px rgba(232, 173, 69, 0.06),
    0 0 0 80px rgba(232, 173, 69, 0.03);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted-2);
  flex-wrap: nowrap;
  overflow: hidden;
}

.breadcrumb > a,
.breadcrumb > .icon {
  flex: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .icon {
  width: 12px;
  height: 12px;
}

.breadcrumb span.current {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.page-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title .module-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0;
}

.page-title .module-icon .icon {
  width: 26px;
  height: 26px;
}

.page-desc {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

.page-meta .pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 6px;
  flex-wrap: wrap;
}

.list-toolbar .count {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  min-width: 230px;
  transition: border-color 0.2s var(--ease);
}

.filter-field:focus-within {
  border-color: var(--line-strong);
}

.filter-field .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.filter-field input {
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  width: 100%;
}

/* ==========================================================================
   文章页
   ========================================================================== */
.article-hero {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.55), transparent);
}

.article-hero-inner {
  max-width: 780px;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.article-title {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.005em;
}

.article-summary {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 62ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.article-meta .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-meta .author {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.article-meta .sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.article-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta .item .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.article-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-copy,
.article-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  transition: 0.2s var(--ease);
  white-space: nowrap;
}

.article-copy:hover,
.article-share:hover {
  color: var(--brand-deep);
  border-color: rgba(210, 86, 42, 0.35);
  background: var(--brand-tint);
}

.article-copy .icon,
.article-share .icon {
  width: 13px;
  height: 13px;
}

.article-share {
  color: var(--brand-deep);
  border-color: rgba(210, 86, 42, 0.28);
  background: rgba(210, 86, 42, 0.05);
  font-weight: 500;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 208px;
  gap: 52px;
  align-items: start;
  padding: 40px 0 20px;
}

.article-main {
  min-width: 0;
  max-width: 720px;
}

/* 目录 */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 12.5px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.toc-title {
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc .toc-link {
  display: block;
  width: 100%;
  padding: 6px 0 6px 13px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  color: var(--muted);
  line-height: 1.6;
  transition: 0.18s var(--ease);
  cursor: pointer;
}

.toc .toc-link:hover {
  color: var(--ink);
}

.toc .toc-link.is-active {
  color: var(--brand-deep);
  border-left-color: var(--brand);
  font-weight: 600;
  font-size: 12.5px;
}

.toc .toc-link.lv3 {
  padding-left: 25px;
  font-size: 11.5px;
}

.toc-mobile {
  display: none;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.toc-mobile summary {
  padding: 13px 16px;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}

.toc-mobile-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

.toc-mobile-meta .icon {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  transition: transform 0.2s var(--ease);
}

.toc-mobile[open] .toc-mobile-meta .icon {
  transform: rotate(-90deg);
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile nav {
  padding: 4px 8px 12px;
}

.toc-mobile .toc-link {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

/* 正文排版 */
.prose {
  font-size: 17px;
  line-height: 1.95;
  color: #2b373d;
  letter-spacing: 0.012em;
  word-break: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose h2 {
  margin: 2.5em 0 0.9em;
  font-family: var(--serif);
  font-size: 1.46rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  margin-bottom: 16px;
}

.prose h3 {
  margin: 2em 0 0.7em;
  font-size: 1.09rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 0.98rem;
  font-weight: 600;
}

.prose a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-color: rgba(210, 86, 42, 0.35);
  text-underline-offset: 3px;
  transition: 0.18s var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--brand);
  background: rgba(232, 173, 69, 0.14);
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose em {
  font-style: normal;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.5em 0;
  padding-left: 0.2em;
}

.prose li::marker {
  color: var(--brand);
}

.prose li > ul,
.prose li > ol {
  margin: 0.4em 0 0.2em;
}

.prose blockquote {
  margin: 1.9em 0;
  padding: 18px 22px;
  background: var(--paper-2);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.prose blockquote p {
  margin: 0 0 0.8em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote strong {
  color: var(--brand-deep);
}

.prose hr {
  height: 1px;
  margin: 2.8em 0;
  border: 0;
  background: var(--line);
}

.prose img {
  margin: 1.8em 0;
  border-radius: 12px;
}

.prose figure {
  margin: 1.8em 0;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--brand-deep);
}

.prose pre {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--deep);
  color: #ece5d8;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose .table-wrap {
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
  min-width: 460px;
}

.prose thead th {
  padding: 12px 15px;
  text-align: left;
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.prose tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:nth-child(even) {
  background: rgba(246, 241, 231, 0.4);
}

/* 文章尾部 */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-tags .tag {
  padding: 5px 12px;
  font-size: 11.5px;
}

.copyright {
  margin: 20px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.disclaimer {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  background: rgba(246, 241, 231, 0.35);
}

.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 30px 0 0;
  padding: 24px;
  background: var(--paper-2);
  border-radius: var(--r-lg);
}

.author-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  flex: none;
}

.author-card h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.author-card .role {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}

.author-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 微信二维码卡片 */
.wechat-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 22px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fff 10%, var(--paper-2));
}

.wechat-qr {
  margin: 0;
  text-align: center;
}

.wechat-qr img {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.wechat-qr figcaption {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.wechat-copy .eyebrow {
  margin-bottom: 6px;
}

.wechat-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.wechat-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.wechat-copy .wechat-note {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: 0.22s var(--ease);
}

.post-nav a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.post-nav .dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.post-nav .dir .icon {
  width: 13px;
  height: 13px;
}

.post-nav .t {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav .next {
  text-align: right;
  align-items: flex-end;
}

.post-nav .placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  pointer-events: none;
}

.post-nav .placeholder .dir {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* 相关文章 */
.related {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.related-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.related-list {
  display: grid;
  gap: 2px;
}

.related-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  transition: color 0.18s var(--ease);
}

.related-item:hover {
  color: var(--brand-deep);
}

.related-item span {
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  font-family: var(--mono);
}

/* ==========================================================================
   关于页
   ========================================================================== */
.about-page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 56px 0 20px;
}

.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.about-photo img {
  width: 100%;
  border-radius: 160px 160px 20px 20px;
  background: var(--paper-2);
  border: 1px solid rgba(215, 207, 192, 0.55);
  box-shadow: var(--shadow-md);
}

.about-photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.about-body h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 600;
}

.about-role {
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
}

.about-body .prose {
  max-width: 62ch;
}

.about-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.principles {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.principles .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  padding-top: 3px;
}

/* ==========================================================================
   内容管理页
   ========================================================================== */
.admin-body {
  background: var(--paper);
}

.admin-header .brand-name {
  font-size: 17px;
}

.admin-main {
  padding: 40px 0 80px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-head h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
}

.admin-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.45);
}

.panel-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.panel-head .hint {
  font-size: 11.5px;
  color: var(--muted-2);
}

.panel-body {
  padding: 22px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 42px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  background: rgba(251, 250, 247, 0.7);
  text-align: center;
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.dropzone .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.dropzone strong {
  font-size: 14px;
  font-weight: 600;
}

.dropzone span {
  font-size: 12px;
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field-row label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.select,
.text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.select:focus,
.text-input:focus {
  border-color: var(--brand);
}

.file-queue {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  background: var(--paper);
}

.queue-item .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.queue-item .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item .state {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.queue-item.ok .state {
  color: var(--ok);
}

.queue-item.err .state {
  color: var(--err);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: 0.2s var(--ease);
}

.btn-sm:hover {
  border-color: var(--ink-soft);
}

.btn-sm.primary {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.btn-sm.primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-sm.danger:hover {
  border-color: var(--err);
  color: var(--err);
}

.btn-sm[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  flex: none;
}

.admin-tips {
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.admin-tips li {
  margin-bottom: 4px;
}

.admin-tips strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-list {
  display: grid;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
}

.admin-item .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item .m {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.icon-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--muted);
  border: 1px solid transparent;
}

.icon-mini:hover {
  border-color: var(--line-strong);
  color: var(--err);
}

.icon-mini .icon {
  width: 14px;
  height: 14px;
}

.preview-pane {
  padding: 22px;
  min-height: 260px;
}

.preview-pane .prose {
  font-size: 14.5px;
  line-height: 1.85;
}

.preview-pane .prose h2 {
  font-size: 1.2rem;
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
}

.preview-empty .icon {
  width: 26px;
  height: 26px;
}

.code-block {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--deep);
  color: #e7e0d3;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}

.note {
  margin: 0 0 18px;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--amber-tint);
  border: 1px solid rgba(232, 173, 69, 0.35);
  font-size: 12px;
  line-height: 1.8;
  color: #7a5a1f;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 150;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  background: var(--err);
}

/* ==========================================================================
   动效
   ========================================================================== */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise 0.55s var(--ease) both;
}

.rise-2 { animation-delay: 0.06s; }
.rise-3 { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 40px;
  }
}

@media (max-width: 1080px) {
  .nav {
    gap: 0;
  }
  .nav-link {
    padding: 8px 9px;
    font-size: 14px;
  }
  .header-inner {
    gap: 16px;
  }
  .brand-rule {
    display: none;
  }
  .brand-name {
    font-size: 16.5px;
  }
  .hero-grid {
    gap: 32px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .mobile-nav {
    display: block;
  }
  .brand-logo {
    height: 28px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 40px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-visual {
    order: -1;
    padding: 0;
  }
  .portrait-frame {
    width: min(74vw, 300px);
  }
  .hero-arcs {
    left: 50%;
    margin-left: -170px;
    bottom: 0;
    width: 250px;
    height: 250px;
  }
  .hero-card {
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    bottom: 10px;
    padding: 9px 15px 9px 9px;
    gap: 10px;
  }
  .hero-card-icon {
    width: 36px;
    height: 36px;
  }
  .hero-card strong {
    font-size: 14px;
  }
  .hero-card-text span {
    font-size: 11px;
  }
  .hero-stats {
    margin-top: 30px;
    gap: 20px;
  }
  .hero-stat + .hero-stat {
    padding-left: 20px;
  }
  .module-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .module-card,
  .module-card:nth-child(n + 4) {
    grid-column: span 2;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .feature-side {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px;
  }
  .toc {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .article-main {
    max-width: none;
  }
  .article-hero-inner {
    max-width: none;
  }
  .about-page {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
  }
  .about-strip {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 32px 28px;
    gap: 22px;
  }
  .about-avatar {
    width: 76px;
    height: 76px;
  }
  .about-strip .section-link {
    grid-column: 2;
    justify-self: start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }
  .wrap {
    padding: 0 20px;
  }
  .section {
    padding: 46px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
  }
  .section-link {
    font-size: 12.5px;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
  }
  .hero-lead {
    font-size: 15.5px;
  }
  .hero-badge-top {
    margin-bottom: 18px;
  }
  .hero-actions {
    gap: 16px;
  }
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 11.5px;
  }
  .hero-stat + .hero-stat {
    padding-left: 16px;
  }
  .module-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .module-card,
  .module-card:nth-child(n + 4) {
    grid-column: span 1;
    padding: 15px 16px 13px;
    gap: 9px;
  }
  .module-top {
    gap: 11px;
  }
  .module-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .module-icon .icon {
    width: 23px;
    height: 23px;
  }
  .module-card h3 {
    font-size: 18px;
  }
  .module-en {
    font-size: 9.5px;
  }
  .module-desc {
    font-size: 12.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .module-foot {
    padding-top: 10px;
    font-size: 11.5px;
  }
  .module-foot span:last-child {
    font-size: 11px;
  }
  .module-arrow .icon {
    width: 16px;
    height: 16px;
  }
  .feature-main {
    padding: 26px 24px 24px;
    min-height: 290px;
  }
  .feature-side {
    grid-template-columns: 1fr;
  }
  .feature-mini {
    padding: 20px;
  }
  .post-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 20px 2px;
  }
  .post-date {
    order: -1;
    padding: 0;
    font-size: 11px;
  }
  .post-title {
    font-size: 17.5px;
  }
  .post-aside {
    display: none;
  }
  .post-summary {
    -webkit-line-clamp: 3;
  }
  .page-hero {
    padding: 32px 0 30px;
  }
  .page-hero::after {
    display: none;
  }
  .page-title {
    font-size: 1.75rem;
    gap: 12px;
  }
  .page-title .module-icon {
    width: 42px;
    height: 42px;
  }
  .list-toolbar {
    padding-top: 18px;
  }
  .filter-field {
    width: 100%;
    min-width: 0;
  }
  .article-hero {
    padding: 24px 0 26px;
  }
  .article-title {
    font-size: 1.55rem;
    line-height: 1.45;
    margin: 14px 0 14px;
  }
  .article-summary {
    font-size: 14px;
    padding-left: 12px;
  }
  .article-meta {
    gap: 10px;
    font-size: 11.5px;
  }
  .article-meta .avatar {
    width: 28px;
    height: 28px;
  }
  .article-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .wechat-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    align-items: start;
  }
  .wechat-qr img {
    max-width: 108px;
    padding: 4px;
  }
  .wechat-qr figcaption {
    font-size: 9px;
  }
  .wechat-copy h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .wechat-copy p {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .wechat-copy .wechat-note {
    margin-top: 5px;
    font-size: 11px;
  }
  .group-nav {
    padding-bottom: 12px;
  }
  .group-chip {
    padding: 6px 11px;
    font-size: 12px;
  }
  .post-group-head h2 {
    font-size: 17px;
  }
  .prose {
    font-size: 16.5px;
    line-height: 1.9;
  }
  .prose h2 {
    font-size: 1.28rem;
    margin-top: 2.1em;
  }
  .prose h3 {
    font-size: 1.05rem;
  }
  .prose blockquote {
    padding: 16px 18px;
    font-size: 15px;
  }
  .prose table {
    font-size: 13px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav .next {
    text-align: left;
    align-items: flex-start;
  }
  .author-card {
    padding: 20px;
    gap: 14px;
  }
  .author-card img {
    width: 50px;
    height: 50px;
  }
  .about-page {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .about-photo {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }
  .page-hero + .section {
    padding-top: 30px;
  }
  .about-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-avatar {
    width: 68px;
    height: 68px;
  }
  .about-strip .section-link {
    grid-column: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .search-modal {
    padding: 0;
  }
  .search-panel {
    width: 100%;
    min-height: 100%;
    border-radius: 0;
  }
  .search-body {
    max-height: calc(100vh - 180px);
  }
  .search-foot {
    display: none;
  }
  .admin-main {
    padding: 24px 0 60px;
  }
  .admin-head h1 {
    font-size: 1.55rem;
  }
  .panel-body {
    padding: 16px;
  }
  .preview-pane {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 26px;
  }
  .brand-name {
    font-size: 15.5px;
    letter-spacing: 0.02em;
  }
  .header-inner {
    gap: 10px;
  }
  .hero-stats {
    row-gap: 10px;
  }
  .hero-stat + .hero-stat::before {
    display: none;
  }
  .hero-stat + .hero-stat {
    padding-left: 0;
  }
}

/* 打印：正文友好 */
@media print {
  .site-header,
  .site-footer,
  .toc,
  .toc-mobile,
  .post-nav,
  .related,
  .read-progress,
  .search-modal,
  .author-card,
  .watermark,
  .wechat-card,
  .article-actions,
  .group-nav {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .article-layout {
    display: block;
    padding: 0;
  }
  .prose {
    font-size: 11.5pt;
  }
}
