/* =========================================================
   旧刊 Moyu — Z-BlogPHP Theme
   A quiet island for long-form writing.
   ========================================================= */

:root {
  --paper: #f5f1e8;
  --paper-2: #fbf8f1;
  --paper-3: #ece6d9;
  --ink: #202a25;
  --ink-2: #46534b;
  --muted: #7c857d;
  --line: rgba(32, 42, 37, .12);
  --line-strong: rgba(32, 42, 37, .22);
  --accent: #c4553b;
  --accent-deep: #9e3f2c;
  --accent-soft: #f4ded6;
  --on-accent: #fff9f1;
  --forest: #2d463a;
  --forest-2: #1b2b22;
  --cream: #f7f2e8;
  --shadow-sm: 0 10px 30px -24px rgba(32, 42, 37, .45);
  --shadow-md: 0 30px 80px -46px rgba(32, 42, 37, .55);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 86px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #151b17;
  --paper-2: #1c241f;
  --paper-3: #232d26;
  --ink: #f0ece2;
  --ink-2: #c1c8bf;
  --muted: #8c978e;
  --line: rgba(240, 236, 226, .12);
  --line-strong: rgba(240, 236, 226, .24);
  --accent: #e07a5f;
  --accent-deep: #f0a18c;
  --accent-soft: rgba(224, 122, 95, .14);
  --on-accent: #24130e;
  --forest: #a9c0ae;
  --forest-2: #0e1510;
  --cream: #f0ece2;
  --shadow-sm: 0 12px 34px -26px rgba(0, 0, 0, .8);
  --shadow-md: 0 34px 90px -46px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 3%, rgba(196, 85, 59, .06), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(45, 70, 58, .055), transparent 34%),
    radial-gradient(rgba(32, 42, 37, .08) .55px, transparent .55px);
  background-size: auto, auto, 24px 24px;
  opacity: .8;
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 8% 4%, rgba(224, 122, 95, .07), transparent 32%),
    radial-gradient(circle at 94% 15%, rgba(169, 192, 174, .055), transparent 36%),
    radial-gradient(rgba(240, 236, 226, .07) .55px, transparent .55px);
  background-size: auto, auto, 26px 26px;
  opacity: .75;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button {
  color: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin-top: 0;
}

svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.container {
  width: min(1400px, calc(100% - 80px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-slash {
  margin: 0 4px;
  color: var(--line-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink-2);
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  background: var(--forest-2);
  color: rgba(247, 242, 232, .66);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
}

.topbar-note {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.topbar-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.topbar-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 242, 232, .82);
}

.topbar-rss:hover {
  color: var(--cream);
}

.topbar-rss svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -40px rgba(20, 30, 24, .7);
}

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

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

.brand-banner {
  display: block;
  width: auto;
  max-width: 300px;
  max-height: 46px;
  object-fit: contain;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--accent);
}

.brand-mark svg,
.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

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

.brand-tagline {
  display: block;
  max-width: 252px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-list > li > a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.nav-list > li.is-active > a,
.nav-list > li.current-menu-item > a {
  color: var(--accent);
}

.nav-list > li.is-active > a::after,
.nav-list > li.current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  flex: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.icon-button:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: 999px;
  gap: 7px;
  font-size: 11.5px;
}

.search-toggle svg {
  width: 15px;
  height: 15px;
}

.theme-icon {
  display: grid;
  place-items: center;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: grid;
}

.menu-toggle {
  display: none;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.is-reading .reading-progress {
  opacity: 1;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .1s linear;
}

.header-ad {
  margin-top: 20px;
}

.header-ad img,
.article-ad img,
.widget-ad img {
  margin-inline: auto;
  border-radius: 12px;
}

/* =========================================================
   Drawers
   ========================================================= */

.search-drawer,
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

[hidden] {
  display: none !important;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 16, .52);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.search-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 38px 0 60px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  animation: drawer-down .28s ease both;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.drawer-top .eyebrow {
  margin: 0;
}

.search-drawer .search-form-large {
  max-width: 840px;
}

.search-shortcuts {
  max-width: 840px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.shortcut-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shortcut-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  transition: .2s ease;
}

.shortcut-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shortcut-links span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted);
  font-size: 9.5px;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100%;
  padding: 28px 30px 40px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  animation: drawer-left .3s ease both;
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-top .eyebrow {
  margin: 0;
}

.mobile-nav {
  margin: 34px 0 28px;
}

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.3;
  color: var(--ink);
}

.mobile-nav li a::after {
  content: "↗";
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
}

.mobile-nav li a:hover {
  color: var(--accent);
}

.mobile-tagline {
  max-width: 30ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.mobile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mobile-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10.5px;
}

.mobile-socials svg {
  width: 14px;
  height: 14px;
}

.mobile-copy {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.drawer-open {
  overflow: hidden;
}

@keyframes drawer-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawer-left {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =========================================================
   Layout
   ========================================================= */

.site-main {
  padding: 50px 0 96px;
}

.site-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 316px;
  gap: 40px;
  align-items: stretch;
}

.rail {
  align-self: start;
}

.layout-two .site-layout {
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 64px;
}

.layout-two .rail {
  display: none;
}

.layout-two .inline-toc {
  display: block;
}

.content-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-tail {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-top: 38px;
  padding: 30px 20px 18px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 85, 59, .055), transparent 62%);
}

.content-tail-inner {
  max-width: 460px;
  text-align: center;
}

.content-tail-inner .eyebrow {
  margin-bottom: 10px;
}

.content-tail-note {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
}

.content-tail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.content-tail-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.content-tail-link:hover svg {
  transform: translateX(3px);
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  min-width: 0;
}

.rail-sticky {
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: none;
}

.rail-sticky::-webkit-scrollbar {
  display: none;
}

.rail-profile {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.rail-avatar {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.rail-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.88) contrast(.98);
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .25s ease, transform .25s ease;
}

.rail-avatar:hover .avatar-ring {
  border-color: var(--accent);
  transform: rotate(14deg) scale(1.02);
}

.rail-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rail-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
}

.rail-name a:hover {
  color: var(--accent);
}

.rail-bio {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.rail-socials {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.rail-socials a {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: .2s ease;
}

.rail-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.rail-socials svg {
  width: 14px;
  height: 14px;
}

.rail-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 25px 0 10px;
}

.rail-label {
  margin: 0;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rail-en {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-style: italic;
}

.rail-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6.5px 0;
  font-size: 12.5px;
}

.rail-nav a {
  color: var(--ink-2);
  transition: color .2s ease;
}

.rail-nav a:hover {
  color: var(--accent);
}

.rail-nav li.is-current a {
  color: var(--accent);
  font-weight: 600;
}

.rail-count {
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.rail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rail-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
}

.rail-stats span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.rail-quote {
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-style: normal;
  line-height: 1.9;
}

.rail-quote span {
  color: var(--accent);
}

.rail-subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 11px;
  transition: .2s ease;
}

.rail-subscribe span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rail-subscribe svg {
  width: 14px;
  height: 14px;
}

.rail-subscribe:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rail-modules {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
}

.rail-modules .widget {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rail-modules .widget:first-child {
  padding-top: 0;
  border-top: 0;
}

.rail-modules .widget-head {
  margin-bottom: 11px;
}

.rail-modules .widget-title {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rail-modules .widget-en {
  font-size: 9px;
}

.rail-modules .module-post-item {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.rail-modules .module-post-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.rail-modules .module-post-title {
  font-size: 11.5px;
  line-height: 1.5;
}

.rail-modules .module-post-meta {
  margin-top: 1px;
  font-size: 8.5px;
}

.rail-modules .module-list li {
  padding: 7px 0;
  font-size: 11.5px;
}

.rail-modules .module-div {
  font-size: 11.5px;
}

.rail-modules #divSearchPanel form {
  padding-left: 11px;
}

.rail-modules #divSearchPanel input[type="text"] {
  font-size: 11px;
}

.rail-modules #divSearchPanel input[type="submit"] {
  height: 28px;
  padding: 0 10px;
  font-size: 10px;
}

.rail-modules .widget-note {
  padding: 18px;
  border-radius: 12px;
}

.rail-toc {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper-2) 82%, transparent);
}

.rail-toc .rail-label-row {
  margin: 0 0 12px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: flex;
  gap: 7px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  transition: color .2s ease;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 9.5px;
  line-height: 1.9;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--accent);
}

.toc-list .toc-sub a {
  padding-left: 15px;
  font-size: 10.5px;
}

.toc-progress {
  height: 2px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--line);
}

.toc-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .1s linear;
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.widget {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.widget-title {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.widget-en {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-style: italic;
}

.widget-body {
  min-width: 0;
}

#divSearchPanel form {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

#divSearchPanel form label {
  flex: 1;
  min-width: 0;
}

#divSearchPanel input[type="text"] {
  width: 100%;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}

#divSearchPanel input[type="submit"] {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  cursor: pointer;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}

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

.search-form button[type="submit"] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

.search-form button[type="submit"] svg {
  width: 14px;
  height: 14px;
}

.search-form-large {
  padding: 7px 8px 7px 22px;
  border-radius: 999px;
  background: var(--paper-2);
}

.search-form-large input {
  font-size: 16px;
}

.search-form button.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease;
}

.search-submit:hover {
  background: var(--accent-deep);
}

.search-submit svg {
  width: 15px;
  height: 15px;
}

.hot-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.hot-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hot-num {
  flex: none;
  min-width: 25px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
  opacity: .75;
}

.hot-content {
  min-width: 0;
}

.hot-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-title:hover {
  color: var(--accent);
}

.hot-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .04em;
}

.widget-module .widget-head {
  margin-bottom: 13px;
}

.module-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.module-list li:last-child {
  border-bottom: 0;
}

.module-list a {
  color: var(--ink-2);
  transition: color .2s ease;
}

.module-list a:hover {
  color: var(--accent);
}

.module-list small,
.module-list span {
  color: var(--muted);
  font-size: 9.5px;
}

#divComments .module-list a {
  display: block;
  line-height: 1.7;
}

#divComments .module-list a::before {
  content: attr(title);
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.module-div {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}

.module-div ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-div li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.module-div li:last-child {
  border-bottom: 0;
}

.module-div a {
  color: var(--ink-2);
}

.module-div a:hover {
  color: var(--accent);
}

.module-div table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.module-div th,
.module-div td {
  padding: 4px;
  text-align: center;
}

.module-div th a,
.module-div td a {
  display: block;
  padding: 3px 0;
  border-radius: 4px;
}

.module-div th a:hover,
.module-div td a:hover {
  background: var(--paper-3);
  color: var(--accent);
}

.widget-ad {
  padding: 15px;
  text-align: center;
}

.widget-note {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border-color: transparent;
  background: var(--forest-2);
  color: rgba(247, 242, 232, .82);
}

.note-mark {
  display: block;
  height: 32px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: .9;
  opacity: .8;
}

.widget-note p {
  margin: 0 0 13px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.75;
}

.note-sign {
  color: rgba(247, 242, 232, .45);
  font-size: 10px;
  letter-spacing: .08em;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .88fr);
  gap: 22px;
  margin-bottom: 58px;
}

.hero--single {
  grid-template-columns: 1fr;
}

.hero-main {
  position: relative;
  min-height: 524px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--forest-2);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--forest-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.hero-main:hover .hero-media img {
  transform: scale(1.035);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 13, 0) 0%,
    rgba(10, 18, 13, 0) 24%,
    rgba(10, 18, 13, .2) 38%,
    rgba(10, 18, 13, .48) 48%,
    rgba(10, 18, 13, .76) 64%,
    rgba(10, 18, 13, .94) 88%,
    rgba(10, 18, 13, .97) 100%
  );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .18;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .5) .55px, transparent .55px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  max-width: 640px;
  padding: 36px 38px 32px;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(10, 18, 13, .34);
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cream);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.hero-kicker-en {
  color: rgba(247, 242, 232, .42);
  font-family: var(--font-display);
  font-size: 10px;
  font-style: italic;
}

.hero-cat {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(247, 242, 232, .28);
  border-radius: 999px;
  color: rgba(247, 242, 232, .86);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.hero-cat:hover {
  background: var(--cream);
  color: var(--forest-2);
}

.hero-title {
  max-width: 20ch;
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.28;
  text-wrap: balance;
}

.hero-title a {
  color: var(--cream);
}

.hero-title a:hover {
  color: #fff;
}

.hero-excerpt {
  max-width: 50ch;
  margin: 0 0 18px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(247, 242, 232, .7);
  font-size: 13px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(247, 242, 232, .56);
  font-size: 10px;
  letter-spacing: .08em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.hero-side-card {
  position: relative;
  display: grid;
  grid-template-columns: 43% 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

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

.hero-side-media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper-3);
}

.hero-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.hero-side-card:hover .hero-side-media img {
  transform: scale(1.045);
}

.hero-side-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 20px 19px;
}

.hero-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-side-no {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .1em;
}

.hero-side-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-side-card h3 a:hover {
  color: var(--accent);
}

.hero-side-meta {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .04em;
}

.mini-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

a.mini-cat:hover {
  color: var(--accent-deep);
}

/* =========================================================
   Section & cards
   ========================================================= */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.25;
}

.section-count {
  flex: none;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.section-count strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.section-count span {
  margin: 0 3px;
  color: var(--line-strong);
}

.section-head-small {
  margin-top: 68px;
  margin-bottom: 24px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.section-link svg {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

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

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

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 最后一篇落在单列时横向铺满，避免列表底部出现半块空白。 */
.post-grid > .post-card:last-child:nth-child(odd) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}

.post-grid > .post-card:last-child:nth-child(odd) .card-media {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.post-grid > .post-card:last-child:nth-child(odd) .card-body {
  padding: 24px 0 0 28px;
}

.post-grid > .post-card--text:last-child:nth-child(odd) {
  grid-template-columns: 1fr;
}

.post-grid > .post-card--text:last-child:nth-child(odd) .card-body {
  padding: 17px 2px 0;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2, .7, .2, 1);
}

.post-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 22, 16, .26));
  opacity: 0;
  transition: opacity .3s ease;
}

.post-card:hover .card-media::after {
  opacity: 1;
}

.card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 242, 232, .94);
  color: var(--forest-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

.post-card:hover .card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
}

.card-body {
  padding: 17px 2px 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.card-date {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .07em;
}

.card-title {
  display: -webkit-box;
  margin: 0 0 9px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-title a:hover {
  color: var(--accent);
}

.card-title strong {
  color: var(--accent);
  font-weight: inherit;
}

.card-excerpt {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .03em;
}

.meta-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.meta-comment {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.meta-comment svg {
  width: 12px;
  height: 12px;
}

.cover-empty {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-3);
}

.cover-glyph {
  color: rgba(255, 249, 241, .88);
  font-family: var(--font-display);
  font-size: 108px;
  line-height: 1;
  transform: translateY(-4%);
  text-shadow: 0 12px 30px rgba(40, 30, 24, .16);
}

.cover-line {
  position: absolute;
  right: 13%;
  bottom: 21%;
  left: 13%;
  height: 1px;
  background: rgba(255, 249, 241, .4);
}

.cover-no {
  position: absolute;
  right: 17px;
  bottom: 12px;
  color: rgba(255, 249, 241, .7);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .15em;
}

.cover-empty--a { background: linear-gradient(135deg, #bc765f, #8b4d3b); }
.cover-empty--b { background: linear-gradient(135deg, #607c68, #354b3e); }
.cover-empty--c { background: linear-gradient(135deg, #a48a63, #756044); }
.cover-empty--d { background: linear-gradient(135deg, #5a6f82, #334553); }

html[data-theme="dark"] .cover-empty--a { background: linear-gradient(135deg, #6f3d2e, #3f231b); }
html[data-theme="dark"] .cover-empty--b { background: linear-gradient(135deg, #33493c, #1d2b23); }
html[data-theme="dark"] .cover-empty--c { background: linear-gradient(135deg, #5d4b30, #352b1d); }
html[data-theme="dark"] .cover-empty--d { background: linear-gradient(135deg, #34495a, #1d2a35); }

.cover-empty--hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(196, 85, 59, .55), transparent 42%),
    linear-gradient(135deg, #354b3e, #1b2b22);
}

.cover-empty--hero > span {
  color: rgba(247, 242, 232, .22);
  font-family: var(--font-display);
  font-size: 190px;
  line-height: 1;
}

.cover-empty--side {
  background:
    radial-gradient(circle at 75% 20%, rgba(196, 85, 59, .5), transparent 46%),
    linear-gradient(135deg, #354b3e, #1b2b22);
}

.cover-empty--side > span {
  color: rgba(247, 242, 232, .25);
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 1;
}

.cover-empty--related {
  background: linear-gradient(135deg, #7d8f7e, #354b3e);
}

.cover-empty--related > span {
  color: rgba(247, 242, 232, .8);
  font-family: var(--font-display);
  font-size: 58px;
}

/* =========================================================
   Archive header
   ========================================================= */

.archive-header {
  margin-bottom: 34px;
  padding: 5px 0 29px;
  border-bottom: 1px solid var(--line);
}

.archive-title {
  margin: 8px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-wrap: balance;
}

.archive-desc {
  max-width: 62ch;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.archive-meta a {
  color: var(--accent);
}

.hash {
  margin-right: 3px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .55em;
  font-weight: 400;
  vertical-align: .18em;
}

.author-archive {
  display: flex;
  align-items: center;
  gap: 22px;
}

.author-archive-avatar {
  width: 88px;
  height: 88px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.author-archive .archive-title {
  margin-top: 5px;
}

/* =========================================================
   Article
   ========================================================= */

.article {
  max-width: 860px;
}

.breadcrumb {
  margin-bottom: 28px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb li span,
.breadcrumb li a {
  overflow: hidden;
  max-width: 30ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.article-header {
  margin-bottom: 30px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.top-label {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .05em;
}

.reading-time svg {
  width: 12px;
  height: 12px;
}

.article-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.23;
  text-wrap: balance;
}

.article-dek {
  max-width: 62ch;
  margin: 0 0 25px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 18.5px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.author-chip img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.9);
}

.author-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.author-chip-text strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.author-chip-text span {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .03em;
}

.article-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  color: var(--muted);
  font-size: 10px;
}

.article-stats > span,
.article-stats > a,
.article-stats > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-stats svg {
  width: 13px;
  height: 13px;
}

.stat-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.stat-button:hover,
.article-stats a:hover {
  color: var(--accent);
}

.article-cover {
  margin: 34px 0 38px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper-3);
}

.article-cover img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.article-cover figcaption {
  display: flex;
  gap: 9px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-content {
  max-width: 72ch;
  color: var(--ink);
  font-size: 17px;
  line-height: 2;
  overflow-wrap: break-word;
}

.article-content > p:first-of-type {
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.95;
}

.article-content p {
  margin: 0 0 1.55em;
}

.article-content h2 {
  position: relative;
  margin: 2.35em 0 .8em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.4;
  scroll-margin-top: 110px;
}

.article-content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.article-content h3 {
  margin: 2em 0 .65em;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  scroll-margin-top: 110px;
}

.article-content h4 {
  margin: 1.8em 0 .6em;
  font-size: 17px;
  line-height: 1.5;
  scroll-margin-top: 110px;
}

.article-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.article-content a:hover {
  text-decoration-color: var(--accent);
}

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

.article-content ul,
.article-content ol {
  margin: 0 0 1.55em;
  padding-left: 1.35em;
}

.article-content li {
  margin: .38em 0;
  padding-left: .25em;
}

.article-content li::marker {
  color: var(--accent);
}

.article-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 24px 28px 24px 34px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.article-content blockquote::before {
  content: "“";
  position: absolute;
  top: 3px;
  left: 12px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  opacity: .3;
}

.article-content blockquote p {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 17.5px;
  line-height: 1.85;
}

.article-content blockquote p + p {
  margin-top: .9em;
}

.article-content blockquote cite {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .04em;
}

.article-content img {
  margin: 1.9em auto;
  border-radius: 14px;
}

.article-content figure {
  margin: 2em 0;
}

.article-content figure img {
  margin: 0 auto;
}

.article-content figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.article-content code {
  padding: .14em .38em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: .86em;
}

.article-content pre {
  position: relative;
  margin: 2em 0;
  padding: 22px 24px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #18201b;
  color: #e8e3d7;
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.code-copy {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .2s ease;
}

.code-copy:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

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

.article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}

.article-content th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-3);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.article-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.article-content tr:hover td {
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
}

.article-content hr {
  width: 45%;
  height: 1px;
  margin: 4em auto;
  border: 0;
  background: var(--line);
}

.article-content iframe,
.article-content video {
  max-width: 100%;
  border-radius: 12px;
}

.article-content .aligncenter {
  margin-inline: auto;
}

.article-content .alignleft {
  float: left;
  margin: 0 1.4em 1em 0;
}

.article-content .alignright {
  float: right;
  margin: 0 0 1em 1.4em;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 72ch;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tags-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tag-pill {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
  transition: .2s ease;
}

.tag-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.share-copy .eyebrow {
  margin-bottom: 4px;
}

.share-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: none;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 10px;
  cursor: pointer;
  transition: .2s ease;
}

.share-button svg {
  width: 13px;
  height: 13px;
}

.share-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 40px;
  padding: 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(196, 85, 59, .28), transparent 40%),
    var(--forest-2);
  color: rgba(247, 242, 232, .76);
}

.author-box-avatar {
  width: 84px;
  height: 84px;
  flex: none;
  border: 2px solid rgba(247, 242, 232, .18);
  border-radius: 50%;
  object-fit: cover;
}

.author-box-content {
  min-width: 0;
}

.author-box .eyebrow {
  color: var(--accent);
  margin-bottom: 5px;
}

.author-box h2 {
  margin: 0 0 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.author-box h2 a:hover {
  color: var(--accent);
}

.author-box p {
  max-width: 60ch;
  margin: 0 0 12px;
  color: rgba(247, 242, 232, .64);
  font-size: 12.5px;
  line-height: 1.9;
}

.author-box .text-link {
  color: var(--accent);
}

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

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  transition: border-color .2s ease, transform .2s ease;
}

.post-nav-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-nav-item.is-empty {
  opacity: 0;
  pointer-events: none;
}

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

.post-nav-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.post-nav-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-nav-item:hover strong {
  color: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  min-width: 0;
}

.related-media {
  display: block;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border-radius: 13px;
  background: var(--paper-3);
}

.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.related-card:hover .related-media img {
  transform: scale(1.04);
}

.related-body {
  padding: 12px 1px 0;
}

.related-card--text .related-body {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.related-body h3 {
  display: -webkit-box;
  margin: 5px 0 6px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-body h3 a:hover {
  color: var(--accent);
}

.related-body p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
}

.article-ad {
  max-width: 72ch;
  margin: 34px 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}

.inline-toc {
  display: none;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.inline-toc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--ink-2);
  font-size: 11.5px;
  cursor: pointer;
  list-style: none;
}

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

.inline-toc summary span {
  font-weight: 600;
}

.inline-toc summary em {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.inline-toc summary svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  transition: transform .2s ease;
}

.inline-toc[open] summary svg {
  transform: rotate(90deg);
}

.inline-toc .toc-list {
  padding: 0 18px 16px;
}

/* =========================================================
   Comments
   ========================================================= */

.comments {
  margin-top: 70px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

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

.comments-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.25;
}

.comments-title span {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  vertical-align: super;
}

.comments-note {
  max-width: 230px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.comment-list,
.comment-children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.comment-avatar img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

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

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.comment-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.comment-name {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

a.comment-name:hover {
  color: var(--accent);
}

.author-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .06em;
}

.comment-meta {
  display: flex;
  gap: 6px;
  flex: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .03em;
}

.comment-content {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.comment-content p {
  margin: 0 0 .6em;
}

.comment-actions {
  margin-top: 4px;
}

.reply-link {
  color: var(--muted);
  font-size: 9.5px;
}

.reply-link:hover {
  color: var(--accent);
}

.comment-children {
  grid-column: 2;
  margin-top: 6px;
}

.comment-children .comment {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0 0;
  border-bottom: 0;
}

.comment-children .comment-avatar img {
  width: 38px;
  height: 38px;
}

.comment-children .comment-content {
  font-size: 13px;
}

.comment-children .comment-children {
  grid-column: 2;
}

.no-comments {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper-2);
}

.no-comments-mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  opacity: .55;
}

.no-comments p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.comment-pagination {
  margin: 20px 0 8px;
}

.comment-form-wrap {
  margin-top: 30px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
}

.comment-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.comment-form-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.comment-form-title small {
  margin-left: 8px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
}

.comment-form-mark {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  opacity: .65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-field {
  margin: 0 0 13px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: .04em;
}

.form-field label span {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field-message {
  margin-top: 2px;
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.comment-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.comment-submit {
  flex: none;
}

/* =========================================================
   Pagination, empty, list end
   ========================================================= */

.infinite-ready .pagination-wrap {
  display: none;
}

.infinite-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 70px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
}

.infinite-sentinel[hidden] {
  display: none;
}

.infinite-sentinel.is-loading .infinite-dot {
  animation: infinite-pulse 1s ease-in-out infinite;
}

.infinite-sentinel.is-end {
  min-height: 42px;
  color: var(--muted);
}

.infinite-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.infinite-sentinel.is-error a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

@keyframes infinite-pulse {
  0%, 100% { opacity: .3; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

.pagination-wrap {
  margin-top: 52px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: .2s ease;
}

.page-arrow svg {
  width: 15px;
  height: 15px;
}

.page-prev svg {
  transform: rotate(180deg);
}

.page-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-arrow.is-disabled {
  opacity: .3;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
}

.page-number {
  display: grid;
  place-items: center;
  min-width: 37px;
  height: 37px;
  padding: 0 8px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11.5px;
  transition: .2s ease;
}

a.page-number:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.page-number.is-current {
  background: var(--ink);
  color: var(--paper);
}

.list-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  color: var(--muted);
}

.list-end span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.list-end em {
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  letter-spacing: .08em;
  white-space: nowrap;
}

.empty-state {
  margin: 20px 0 0;
  padding: 68px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  text-align: center;
}

.empty-state h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.empty-state > p:not(.eyebrow) {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* =========================================================
   Search page
   ========================================================= */

.search-header {
  padding: 10px 0 32px;
  border-bottom: 1px solid var(--line);
}

.search-header h1 {
  margin: 9px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(37px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-wrap: balance;
}

.search-header .search-form-large {
  max-width: 700px;
}

.search-result-count {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.search-result-count strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.search-main .post-section {
  margin-top: 34px;
}

/* =========================================================
   404
   ========================================================= */

.error-main {
  padding: 74px 0 100px;
}

.error-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
  min-height: 470px;
  padding-bottom: 66px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.error-code {
  position: absolute;
  top: -18px;
  right: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(150px, 24vw, 340px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .8;
  opacity: .055;
  pointer-events: none;
  user-select: none;
}

.error-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.error-copy h1 {
  margin: 7px 0 15px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.error-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.error-copy .search-form {
  max-width: 390px;
}

.error-art {
  position: relative;
  height: 380px;
}

.error-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.error-orbit-1 {
  width: 310px;
  height: 310px;
}

.error-orbit-2 {
  width: 390px;
  height: 250px;
  transform: translate(-50%, -50%) rotate(24deg);
}

.error-dot {
  position: absolute;
  top: 13%;
  right: 17%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent);
}

.error-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 128px;
  line-height: 1;
  opacity: .8;
  transform: translate(-50%, -54%);
}

.latest-section {
  padding-top: 54px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: 90px;
  padding: 70px 0 28px;
  overflow: hidden;
  background: var(--forest-2);
  color: rgba(247, 242, 232, .7);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 85, 59, .18), transparent 35%),
    radial-gradient(circle at 88% 20%, rgba(247, 242, 232, .04), transparent 32%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.55fr .7fr .7fr 1fr;
  gap: 42px;
}

.footer-top--no-about {
  grid-template-columns: 1.55fr .7fr 1fr;
}

.footer-custom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 232, .1);
  color: rgba(247, 242, 232, .58);
  font-size: 11px;
  line-height: 1.8;
}

.footer-custom a {
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 242, 232, .25);
}

.footer-custom a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-custom p {
  margin: 0 0 8px;
}

.footer-custom p:last-child {
  margin-bottom: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.footer-mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--cream);
}

.footer-mark svg {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  max-width: 27ch;
  margin: 17px 0 11px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.65;
}

.footer-note {
  max-width: 38ch;
  margin: 0;
  color: rgba(247, 242, 232, .44);
  font-size: 11.5px;
  line-height: 1.85;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(247, 242, 232, .14);
  border-radius: 999px;
  color: rgba(247, 242, 232, .57);
  font-size: 9.5px;
  letter-spacing: .04em;
  transition: .2s ease;
}

.footer-socials svg {
  width: 13px;
  height: 13px;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--cream);
}

.footer-heading {
  margin: 6px 0 16px;
  color: rgba(247, 242, 232, .38);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin: 9px 0;
  font-size: 12px;
}

.footer-column a {
  color: rgba(247, 242, 232, .68);
  transition: color .2s ease;
}

.footer-column a:hover {
  color: var(--cream);
}

.footer-quote {
  margin: 0 0 17px;
  color: rgba(247, 242, 232, .76);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.85;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.footer-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.footer-cta:hover svg {
  transform: translateX(3px);
}

.footer-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 80px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 242, 232, .1);
}

.footer-extra-block {
  min-width: 0;
}

.footer-extra .footer-heading {
  margin-bottom: 11px;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link-list a {
  padding: 5px 10px;
  border: 1px solid rgba(247, 242, 232, .13);
  border-radius: 999px;
  color: rgba(247, 242, 232, .62);
  font-size: 10px;
  transition: .2s ease;
}

.footer-link-list a:hover {
  border-color: var(--accent);
  color: var(--cream);
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-contact-list svg {
  width: 11px;
  height: 11px;
}

.footer-watermark {
  margin: 38px 0 -14px;
  color: rgba(247, 242, 232, .045);
  font-family: var(--font-display);
  font-size: clamp(110px, 19vw, 270px);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: .8;
  text-align: right;
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 21px;
  border-top: 1px solid rgba(247, 242, 232, .1);
  color: rgba(247, 242, 232, .35);
  font-size: 9.5px;
  letter-spacing: .03em;
}

.footer-copy,
.footer-powered {
  margin: 0;
}

.footer-copy a,
.footer-powered a {
  color: rgba(247, 242, 232, .55);
}

.footer-copy a:hover,
.footer-powered a:hover {
  color: var(--cream);
}

.footer-sep {
  margin: 0 7px;
  color: rgba(247, 242, 232, .18);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity .25s ease, transform .25s ease, color .2s ease, border-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

html:not(.js) .primary-nav {
  display: block;
}

html:not(.js) .menu-toggle,
html:not(.js) .search-toggle {
  display: none;
}

html:not(.js) .mobile-drawer,
html:not(.js) .search-drawer {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 300;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

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

/* =========================================================
   Reveal
   ========================================================= */

html.js .reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1240px) {
  .container {
    width: min(1400px, calc(100% - 56px));
  }

  .footer-top--no-about {
    grid-template-columns: 1.55fr .7fr;
  }

  .site-layout,
  .layout-two .site-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
  }

  .rail {
    display: none;
  }

  .inline-toc {
    display: block;
  }

  .brand {
    min-width: 200px;
  }

  .brand-tagline {
    max-width: 215px;
  }

  .hero-main {
    min-height: 480px;
  }

  .hero-title {
    font-size: 36px;
  }

  .footer-top {
    grid-template-columns: 1.35fr .7fr .7fr;
  }

  .footer-note-column {
    display: none;
  }
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .brand-tagline {
    max-width: 250px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  }

  .hero-main {
    min-height: 450px;
  }

  .hero-copy {
    padding: 30px 30px 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-side-card {
    grid-template-columns: 40% 1fr;
  }

  .hero-side-card h3 {
    font-size: 17px;
  }

  .article-title {
    font-size: 46px;
  }
}

@media (max-width: 860px) {
  .footer-top--no-about {
    grid-template-columns: 1fr;
  }

  .post-grid > .post-card:last-child:nth-child(odd) {
    display: flex;
    grid-column: auto;
  }

  .post-grid > .post-card:last-child:nth-child(odd) .card-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.42 / 1;
  }

  .post-grid > .post-card:last-child:nth-child(odd) .card-body {
    padding: 17px 2px 0;
  }

  .site-main {
    padding: 38px 0 72px;
  }

  .content-tail {
    min-height: 150px;
    margin-top: 28px;
    padding: 26px 16px 16px;
  }

  .content-tail-note {
    font-size: 17px;
  }

  .site-layout,
  .layout-two .site-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 6px;
  }

  .sidebar .widget-note {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 44px;
  }

  .hero-main {
    min-height: 440px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-side-card {
    grid-template-columns: 40% 1fr;
  }

  .post-grid {
    gap: 34px 22px;
  }

  .article {
    max-width: none;
  }

  .author-box {
    padding: 25px;
  }

  .related-grid {
    gap: 14px;
  }

  .error-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 48px;
  }

  .error-art {
    display: none;
  }

  .error-code {
    font-size: 200px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-watermark {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 40px);
  }

  .topbar-note {
    max-width: 58vw;
  }

  .header-inner {
    min-height: 74px;
    gap: 14px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-banner {
    max-width: 220px;
    max-height: 38px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    display: none;
  }

  .search-toggle {
    width: 40px;
    padding: 0;
    border-color: transparent;
  }

  .search-toggle .action-label {
    display: none;
  }

  .theme-toggle {
    display: inline-grid;
  }

  .header-actions {
    gap: 1px;
  }

  .site-main {
    padding-top: 30px;
  }

  .hero-main {
    min-height: 420px;
    border-radius: 20px;
  }

  .hero-copy {
    padding: 25px 22px 23px;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.35;
  }

  .hero-excerpt {
    font-size: 12px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    grid-template-columns: 36% 1fr;
    min-height: 120px;
  }

  .hero-side-copy {
    padding: 14px 14px;
  }

  .hero-side-card h3 {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .section-head {
    align-items: flex-start;
  }

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

  .section-count {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .card-media {
    aspect-ratio: 1.5 / 1;
  }

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

  .archive-title {
    font-size: 40px;
  }

  .archive-header {
    margin-bottom: 26px;
  }

  .article-title {
    font-size: 34px;
    line-height: 1.32;
  }

  .article-dek {
    font-size: 16px;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .article-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .article-cover {
    margin: 26px 0 30px;
    border-radius: 16px;
  }

  .article-content {
    font-size: 16.5px;
    line-height: 1.95;
  }

  .article-content > p:first-of-type {
    font-size: 17.5px;
  }

  .article-content h2 {
    font-size: 25px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .article-content blockquote {
    padding: 19px 18px 19px 27px;
  }

  .article-content blockquote p {
    font-size: 16px;
  }

  .article-share {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .author-box {
    flex-direction: column;
    gap: 15px;
  }

  .author-box-avatar {
    width: 66px;
    height: 66px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .related-card {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 13px;
    align-items: center;
  }

  .related-media {
    aspect-ratio: 1.25 / 1;
  }

  .related-body {
    padding: 0;
  }

  .related-body h3 {
    font-size: 17px;
  }

  .comments-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .comments-note {
    max-width: none;
    text-align: left;
  }

  .comments-title {
    font-size: 29px;
  }

  .comment {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
  }

  .comment-avatar img {
    width: 36px;
    height: 36px;
  }

  .comment-head {
    flex-direction: column;
    gap: 3px;
  }

  .comment-children {
    grid-column: 1 / -1;
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .comment-form-wrap {
    padding: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-field-full {
    grid-column: auto;
  }

  .comment-form-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .comment-submit {
    width: 100%;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar .widget-note {
    grid-column: auto;
  }

  .error-main {
    padding: 40px 0 70px;
  }

  .error-code {
    top: 30px;
    font-size: 150px;
  }

  .error-copy h1 {
    font-size: 43px;
  }

  .search-header h1 {
    font-size: 36px;
  }

  .search-form-large {
    padding-left: 16px;
  }

  .search-form-large input {
    font-size: 14px;
  }

  .search-submit {
    min-height: 42px;
    padding: 0 15px;
    font-size: 11px;
  }

  .search-submit svg {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-watermark {
    font-size: 100px;
    margin-top: 30px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }

  .pagination {
    gap: 5px;
  }

  .page-arrow {
    width: 36px;
    height: 36px;
  }

  .page-number {
    min-width: 33px;
    height: 33px;
    padding: 0 5px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-note {
    display: none;
  }

  .topbar-inner {
    justify-content: flex-end;
  }

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

  .hero-meta {
    font-size: 9px;
  }

  .article-title {
    font-size: 30px;
  }

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

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

  .search-form-large .search-submit {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .rail,
  .sidebar,
  .site-footer,
  .comments,
  .article-share,
  .author-box,
  .post-nav,
  .related-section,
  .back-to-top,
  .inline-toc,
  .article-ad {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-main {
    padding: 0;
  }

  .site-layout {
    display: block;
  }

  .article {
    max-width: none;
  }

  .article-content {
    max-width: none;
    font-size: 12pt;
  }

  .article-content a {
    color: #111;
    text-decoration: none;
  }
}

/* =========================================================
   v1.1: 标题收束 / 侧栏模式 / 图片开关
   ========================================================= */

.brand-name {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text-off .brand {
  min-width: auto;
}

.brand-text-off .brand-text {
  display: none;
}

.rail-name {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rail-bio {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.rail-nav li {
  min-width: 0;
}

.rail-nav a {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-nav li.is-current a {
  max-width: 135px;
}

.rail-mode-hidden .rail {
  display: none;
}

.rail-mode-hidden.layout-three .site-layout {
  grid-template-columns: minmax(0, 1fr) 316px;
}

.rail-mode-hidden.layout-two .site-layout {
  grid-template-columns: minmax(0, 1fr) 336px;
}

.rail-mode-compact .rail-bio {
  display: none;
}

.rail-mode-logo .rail-profile {
  text-align: center;
}

.rail-mode-logo .rail-eyebrow,
.rail-mode-logo .rail-name,
.rail-mode-logo .rail-bio {
  display: none;
}

.rail-mode-logo .rail-avatar {
  width: 86px;
  height: 86px;
  margin: 2px auto 16px;
}

.rail-mode-logo .rail-socials {
  justify-content: center;
}

.post-card--text .card-body {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.post-card--text .card-title {
  font-size: 24px;
}

.post-card--text .card-excerpt {
  -webkit-line-clamp: 3;
}

/* 主题文章模块 */
.module-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-post-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.module-post-item:first-child {
  padding-top: 2px;
}

.module-post-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.module-post-thumb {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-3);
}

.module-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.module-post-item:hover .module-post-thumb img {
  transform: scale(1.06);
}

.module-post-item--text {
  grid-template-columns: 1fr;
  gap: 0;
}

.module-post-copy {
  min-width: 0;
}

.module-post-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

a.module-post-title:hover {
  color: var(--accent);
}

.module-post-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .03em;
}

.module-post-meta a {
  color: var(--muted);
}

.module-post-meta a:hover {
  color: var(--accent);
}

/* =========================================================
   v1.1: 个性化特效
   ========================================================= */

.fx-on.fx-rail .rail-sticky {
  position: relative;
}

.rail-spark,
.rail-fx-line {
  display: none;
}

.fx-on.fx-rail .rail-spark,
.fx-on.fx-rail .rail-fx-line {
  display: block;
}

.rail-spark {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1;
  pointer-events: none;
  opacity: .5;
}

.rail-spark-1 {
  top: 4px;
  right: 8px;
  font-size: 13px;
  animation: fx-float 5.5s ease-in-out infinite;
}

.rail-spark-2 {
  top: 300px;
  left: -7px;
  font-size: 20px;
  animation: fx-float 7s ease-in-out -2s infinite;
}

.rail-fx-line {
  position: absolute;
  top: 108px;
  left: -1px;
  width: 1px;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .28;
  animation: fx-line 4.8s ease-in-out infinite;
}

.fx-on.fx-rail .rail-avatar .avatar-ring {
  overflow: visible;
}

.fx-on.fx-rail .rail-avatar .avatar-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: fx-pulse 3.2s ease-in-out infinite;
}

.fx-on.fx-rail .widget-note::after {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--accent);
  font-size: 12px;
  opacity: .7;
  animation: fx-float 6s ease-in-out infinite;
}

.fx-on.fx-rail .rail-subscribe svg:last-child {
  transition: transform .3s ease;
}

.fx-on.fx-rail .rail-subscribe:hover svg:last-child {
  transform: translateX(3px);
}

@keyframes fx-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

@keyframes fx-pulse {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes fx-line {
  0%, 100% { transform: scaleY(.7); opacity: .18; }
  50% { transform: scaleY(1); opacity: .4; }
}

.fx-ripple {
  position: fixed;
  z-index: 9999;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: fx-ripple .62s ease-out forwards;
}

@keyframes fx-ripple {
  0% { opacity: .65; transform: scale(.5); }
  100% { opacity: 0; transform: scale(4.2); }
}

.fx-cursor-dot,
.fx-cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

.fx-cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--accent);
  transition: opacity .25s ease;
}

.fx-cursor-halo {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  transition: opacity .3s ease, width .25s ease, height .25s ease, margin .25s ease;
}

body.fx-pointer-ready .fx-cursor-dot,
body.fx-pointer-ready .fx-cursor-halo {
  opacity: 1;
}

body.fx-pointer-down .fx-cursor-halo {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

@media (max-width: 860px) {
  .rail-mode-hidden .site-layout,
  .rail-mode-hidden.layout-two .site-layout {
    grid-template-columns: 1fr;
  }

  .brand-name {
    max-width: 190px;
  }

  .post-card--text .card-body {
    padding-top: 15px;
  }
}

@media (hover: none), (pointer: coarse) {
  .fx-cursor-dot,
  .fx-cursor-halo {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-spark,
  .rail-fx-line,
  .fx-on.fx-rail .rail-avatar .avatar-ring::after {
    animation: none !important;
  }

  .fx-ripple {
    display: none !important;
  }
}

@media print {
  .rail-spark,
  .rail-fx-line,
  .fx-cursor-dot,
  .fx-cursor-halo,
  .fx-ripple {
    display: none !important;
  }
}


/* ==== 旧刊 · 复古杂志博客 ==== */
/* 旧刊 · 复古杂志博客 */
:root {
  --paper: #f1e3c8;
  --paper-2: #f8edd8;
  --paper-3: #e5d0aa;
  --ink: #29251f;
  --ink-2: #4b4134;
  --muted: #7d6a52;
  --line: rgba(62, 48, 33, .2);
  --line-strong: rgba(62, 48, 33, .4);
  --accent: #b8432e;
  --accent-deep: #8f2d1e;
  --accent-soft: #e9c4a5;
  --on-accent: #fff8e8;
  --forest: #314e4a;
  --forest-2: #27231d;
  --cream: #fff5df;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "Courier New", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace;
}
body { background: #f1e3c8; }
body::before { opacity: .5; background-image: repeating-linear-gradient(0deg, rgba(62,48,33,.035) 0 1px, transparent 1px 4px); }
.topbar { background: #27231d; border-bottom: 4px double #b8432e; color: #e9d5b4; }
.topbar a, .topbar time, .topbar-note { color: #e9d5b4; }
.site-header { background: #f8edd8; border-bottom: 2px solid #29251f; }
.brand-name { font-family: var(--font-display); font-size: 23px; letter-spacing: -.02em; }
.brand-tagline { font-family: var(--font-sans); font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.brand-mark { color: var(--accent); }
.nav-list > li > a { border-radius: 0; color: var(--ink-2); font-family: var(--font-sans); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.nav-list > li > a:hover { background: var(--accent); color: var(--cream); }
.nav-list > li.current-menu-item > a { color: var(--accent); }
.nav-list > li > a::after { display: none; }
.icon-button { border-radius: 0; border-color: var(--ink); }
.hero { gap: 22px; }
.hero-main { border: 3px solid var(--ink); border-radius: 0; box-shadow: 8px 8px 0 var(--accent); }
.hero-main::after { background: linear-gradient(180deg, transparent 48%, rgba(24,20,14,.7)); }
.hero-copy { padding: 26px; }
.hero-title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.hero-excerpt { font-family: var(--font-sans); font-size: 11px; }
.hero-kicker, .hero-kicker-en, .hero-cat { font-family: var(--font-sans); color: var(--accent); }
.hero-side-card { border: 2px solid var(--ink); border-radius: 0; background: var(--paper-2); box-shadow: 4px 4px 0 rgba(41,37,31,.25); }
.hero-side-card:nth-child(2) { transform: rotate(1.2deg); }
.hero-side-card:nth-child(3) { transform: rotate(-1.2deg); }
.hero-side-copy { padding: 12px; }
.post-grid { gap: 34px 26px; }
.post-card { padding: 14px 14px 18px; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 5px 5px 0 rgba(41,37,31,.22); }
.post-card:nth-child(3n+2) { transform: rotate(-.5deg); }
.post-card:nth-child(3n) { transform: rotate(.5deg); }
.post-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--accent); }
.post-card .card-media { border-radius: 0; }
.post-card .card-title { font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
.mini-cat { border-radius: 0; background: var(--accent); color: var(--cream); font-family: var(--font-sans); font-size: 8px; letter-spacing: .06em; }
.card-excerpt { font-family: var(--font-sans); font-size: 11px; line-height: 1.7; color: var(--muted); }
.section-title { font-family: var(--font-display); font-size: 38px; }
.section-head { border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.eyebrow, .section-count, .card-meta { font-family: var(--font-sans); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.sidebar .widget { border: 2px solid var(--ink); border-radius: 0; background: var(--paper-2); box-shadow: 4px 4px 0 rgba(41,37,31,.18); }
.sidebar .widget:nth-child(even) { transform: rotate(.7deg); }
.article { border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--paper-3); background: var(--paper-2); }
.article-title { font-family: var(--font-display); }
.article-content { font-family: var(--font-display); font-size: 16px; }
.article-content p { line-height: 2.05; }
.author-box { background: var(--forest); border: 2px solid var(--ink); border-radius: 0; }
.related-card, .post-nav a { border: 2px solid var(--ink); border-radius: 0; background: var(--paper-2); box-shadow: 4px 4px 0 rgba(41,37,31,.18); }
.content-tail { background: var(--paper-2); border-top: 2px solid var(--ink); }
.content-tail-note { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.site-footer { background: #27231d; color: #d9c8a9; border-top: 5px double var(--accent); }
.footer-logo { color: var(--cream); font-family: var(--font-display); }
.footer-heading { color: #c9a476; font-family: var(--font-sans); }
.footer-column a, .footer-tagline, .footer-note, .footer-quote { color: #d9c8a9; }
.footer-column a:hover, .footer-cta, .footer-custom a { color: #e88966; }
.footer-socials a, .footer-extra .footer-link-list a { border-color: rgba(217,200,169,.3); color: #d9c8a9; border-radius: 0; }
.footer-middle { border-top-color: rgba(217,200,169,.2); }
.footer-bottom { border-top-color: rgba(217,200,169,.2); }
@media (max-width: 860px) { .post-card:nth-child(n) { transform: none; } }


/* ==== 独立首页 ==== */
/* 旧刊 · 报纸头版版式 */
.retro-home { padding: 38px 0 100px; }
.retro-masthead { border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); padding: 14px 0 12px; }
.retro-masthead-top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-family: var(--font-sans); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.retro-masthead h2 { margin: 12px 0 10px; text-align: center; font-family: var(--font-display); font-size: clamp(64px, 9vw, 118px); line-height: .92; font-weight: 500; letter-spacing: -.07em; }
.retro-masthead h2 span { display: block; margin-top: 10px; font-family: var(--font-sans); font-size: 9px; letter-spacing: .3em; color: var(--accent); }
.retro-masthead-rule { display: flex; align-items: center; gap: 14px; color: var(--muted); font-family: var(--font-display); font-size: 11px; }
.retro-masthead-rule span { flex: 1; height: 1px; background: var(--ink); opacity: .35; }
.retro-front { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 28px; padding: 30px 0 22px; }
.retro-lead { border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 8px 8px 0 var(--accent); }
.retro-lead-media { display: block; aspect-ratio: 1.5 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); }
.retro-lead-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04) sepia(.06); }
.retro-lead-copy { padding: 24px 26px 26px; }
.retro-stamp { display: inline-block; padding: 4px 8px; background: var(--accent); color: var(--cream); font-family: var(--font-sans); font-size: 8px; letter-spacing: .12em; }
.retro-lead-copy h3 { margin: 13px 0 10px; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; font-weight: 500; }
.retro-lead-copy h3 a { color: var(--ink); }
.retro-lead-copy h3 a:hover { color: var(--accent); }
.retro-lead-copy p { margin: 0; color: var(--muted); font-family: var(--font-sans); font-size: 12px; line-height: 1.8; }
.retro-byline { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-sans); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.retro-side { border-top: 3px solid var(--ink); padding-top: 10px; }
.retro-side-head { padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--font-sans); font-size: 9px; letter-spacing: .13em; }
.retro-side-story { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.retro-side-no { color: var(--accent); font-family: var(--font-display); font-size: 20px; }
.retro-side-story h3 { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.retro-side-story h3 a { color: var(--ink); }
.retro-side-story h3 a:hover { color: var(--accent); }
.retro-side-story p { margin: 6px 0; color: var(--muted); font-family: var(--font-sans); font-size: 10px; line-height: 1.6; }
.retro-side-story time { color: var(--muted); font-family: var(--font-sans); font-size: 8px; }
.retro-bottom-rule { display: flex; align-items: center; gap: 16px; margin: 12px 0 24px; font-family: var(--font-sans); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.retro-bottom-rule span { flex: 1; height: 2px; background: var(--ink); opacity: .5; }
.retro-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.retro-col { column-count: 2; column-gap: 34px; column-rule: 1px solid var(--line); }
.retro-col-story { break-inside: avoid; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.retro-col-cat { color: var(--accent); font-family: var(--font-sans); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.retro-col-story h3 { margin: 8px 0 7px; font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.retro-col-story h3 a { color: var(--ink); }
.retro-col-story h3 a:hover { color: var(--accent); }
.retro-col-story p { margin: 0; color: var(--muted); font-family: var(--font-sans); font-size: 11px; line-height: 1.7; }
.retro-col-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-family: var(--font-sans); font-size: 8px; }
.retro-notice { position: sticky; top: 110px; }
.retro-notice-box { padding: 24px; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 6px 6px 0 var(--paper-3); }
.retro-notice-box > span { color: var(--accent); font-family: var(--font-sans); font-size: 9px; letter-spacing: .1em; }
.retro-notice-box p { margin: 18px 0 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.55; }
.retro-notice-box em { display: block; color: var(--muted); font-family: var(--font-sans); font-size: 9px; font-style: normal; }
.retro-archive { display: flex; justify-content: space-between; margin-top: 16px; padding: 12px 0; border-bottom: 2px solid var(--ink); color: var(--ink); font-family: var(--font-sans); font-size: 10px; }
.retro-archive:hover { color: var(--accent); }
@media (max-width: 980px) {
  .retro-front { grid-template-columns: 1fr; }
  .retro-columns { grid-template-columns: 1fr; }
  .retro-notice { position: static; }
}
@media (max-width: 680px) {
  .retro-masthead-top { display: none; }
  .retro-masthead h2 { font-size: 68px; }
  .retro-col { column-count: 1; }
  .retro-lead-copy { padding: 18px; }
}
