/* ==========================================================================
   灰原手记 · GRAY NOTES
   一个漫画风的个人博客样式表
   目录：
   01 变量与基础
   02 通用组件
   03 页头
   04 首页主视觉
   05 跑马灯
   06 目录与文章卡片
   07 作者区
   08 页脚
   09 内页页头
   10 归档 / 标签 / 关于
   11 文章正文
   12 404 / 灯箱 / 提示
   13 夜间模式
   14 响应式
   15 动效与无障碍
   ========================================================================== */

/* 01 变量与基础 ----------------------------------------------------------- */
:root {
  --paper: #f2efe8;
  --paper-2: #e9e5dc;
  --paper-3: #ddd8cd;
  --cream: #faf8f2;
  --ink: #17171c;
  --ink-2: #2c2c34;
  --ink-3: #4d4d58;
  --gray: #75727b;
  --gray-2: #a6a2a9;
  --line: #17171c;
  --red: #a51f36;
  --red-2: #7c1427;
  --red-soft: #e9cdd2;
  --teal: #2f5a55;
  --shadow: #17171c;
  --shadow-soft: rgba(23, 23, 28, 0.14);
  --halftone: rgba(23, 23, 28, 0.16);
  --grid: rgba(23, 23, 28, 0.075);
  --panel: #faf8f2;
  --header-bg: rgba(242, 239, 232, 0.88);
  --marquee-bg: #17171c;
  --marquee-fg: #f2efe8;
  --selection-bg: #a51f36;
  --selection-fg: #faf8f2;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "JetBrains Mono", "Courier New", monospace;
  --font-latin: "Arial Black", "Impact", "Helvetica Neue", sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper-2);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 2px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* 纸张颗粒 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

[data-theme="night"] .grain {
  opacity: 0.08;
  mix-blend-mode: screen;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  position: relative;
}

/* 02 通用组件 ------------------------------------------------------------- */
.eyebrow,
.kicker,
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}

.kicker-mark {
  width: 9px;
  height: 9px;
  background: var(--red);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--gray-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

a.tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--line);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.btn--primary {
  background: var(--red);
  border-color: var(--line);
  color: #faf8f2;
}

[data-theme="night"] .btn--primary {
  color: #141419;
}

.btn--ghost {
  background: var(--cream);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.btn-icon svg {
  width: 100%;
  height: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
  gap: 14px;
  color: var(--red);
}

.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #faf8f2;
  font-family: var(--font-mono);
  font-size: 11px;
  transform: rotate(-3deg);
  flex: none;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-heading h2 em {
  display: inline-block;
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gray);
  transform: translateY(-4px);
}

.section-note {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray);
  max-width: 300px;
  padding-left: 20px;
  border-left: 1px solid var(--gray-2);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.section-link span {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.section-link:hover span {
  transform: translateX(4px);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 2px dashed var(--gray-2);
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 14px;
}

/* 03 页头 ---------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--halftone) 0.6px, transparent 0.8px);
  background-size: 5px 5px;
  opacity: 0.35;
}

.header-inner {
  position: relative;
  z-index: 1;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: #faf8f2;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(2deg) scale(1.03);
}

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

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-text em {
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-no {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--red);
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gray-2);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.theme-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
}
.theme-icon svg {
  width: 100%;
  height: 100%;
}
.theme-icon--sun {
  display: none;
}
[data-theme="night"] .theme-icon--sun {
  display: inline-flex;
}
[data-theme="night"] .theme-icon--moon {
  display: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--cream);
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
}
.menu-icon svg {
  width: 100%;
  height: 100%;
}
.menu-icon--close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon--open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon--close {
  display: inline-flex;
}

/* 04 首页主视觉 ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  right: -2vw;
  top: -14vh;
  font-family: var(--font-serif);
  font-size: clamp(340px, 46vw, 700px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--grid);
  user-select: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(105deg, #000 10%, transparent 62%);
  -webkit-mask-image: linear-gradient(105deg, #000 10%, transparent 62%);
  opacity: 0.8;
}

.hero-halftone {
  position: absolute;
  right: 2%;
  bottom: -90px;
  width: 460px;
  height: 460px;
  background-image: radial-gradient(var(--halftone) 1.1px, transparent 1.3px);
  background-size: 7px 7px;
  transform: rotate(-9deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 68%);
  opacity: 0.8;
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  padding-block: clamp(36px, 5.5vw, 72px) clamp(34px, 4.5vw, 58px);
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  justify-self: end;
}

.hero-art-label {
  position: absolute;
  left: -40px;
  top: 8px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--gray);
  text-transform: uppercase;
}

.art-frame {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.6deg);
  transform-origin: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.art-frame:hover {
  transform: rotate(-0.4deg) translateY(-4px);
  box-shadow: 15px 16px 0 var(--ink);
}

.art-frame > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e8e4db;
}

.art-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 30px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
}

[data-theme="night"] .art-bar {
  background: #0c0c10;
  color: #f2efe8;
}

.art-bar--top {
  border-bottom: 1px solid var(--line);
}

.art-bar--bottom {
  border-top: 1px solid var(--line);
}

.art-barcode {
  width: 44px;
  height: 11px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 3px,
    currentColor 3px 5px,
    transparent 5px 6px,
    currentColor 6px 7px,
    transparent 7px 10px
  );
  opacity: 0.75;
}

.art-stamp {
  position: absolute;
  right: -28px;
  bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--red);
  color: #faf8f2;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: rotate(9deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-copy {
  position: relative;
}

.hero-title-wrap {
  position: relative;
  margin-top: 20px;
}

.badge-yomi {
  position: absolute;
  top: -30px;
  right: -2px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(7deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.title-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  margin-left: 0.06em;
}

.title-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--red);
  margin-left: 14px;
  transform: translateY(-0.08em);
}

.hero-title-en {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--ink-3);
}

.hero-title-en::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

.hero-title-en span {
  color: var(--gray);
}

.hero-tagline {
  margin-top: 28px;
}

.speech {
  position: relative;
  display: inline-block;
  max-width: 430px;
  padding: 14px 22px;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.8;
  transform: rotate(-1deg);
}

.speech::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: var(--cream);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(45deg);
}

.hero-desc {
  max-width: 510px;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.95;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 36px;
}

.hero-stats > div {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--gray-2);
}

.hero-stats > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.hero-stats dd {
  margin-top: 2px;
  font-family: var(--font-latin);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.latest-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-2);
  max-width: 560px;
  transition: color 0.2s;
}

.latest-strip:hover {
  color: var(--red);
}

.latest-kicker {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--red);
}

.latest-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.latest-arrow {
  flex: none;
  width: 18px;
  height: 18px;
}

.hero-thumbs-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.hero-thumbs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}

.thumbs-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--gray);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.thumbs-track {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}

.thumbs-track::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: none;
  width: 94px;
  padding: 4px;
  border: 1px solid var(--gray-2);
  background: var(--cream);
  transition: all 0.2s var(--ease);
}

.thumb:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.thumb.is-active {
  border-color: var(--red);
  box-shadow: 3px 3px 0 var(--red);
}

.thumb-art {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}

.thumb-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 1px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.thumb-meta em {
  font-style: normal;
  color: var(--red);
}

.thumb-meta i {
  font-style: normal;
  color: var(--gray);
}

.thumbs-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

/* 05 跑马灯 -------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--marquee-bg);
  color: var(--marquee-fg);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.marquee-group span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  opacity: 0.9;
}

.marquee-group i {
  color: #e0576e;
  font-style: normal;
  font-size: 10px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 06 目录与文章卡片 ------------------------------------------------------- */
.contents {
  background: var(--paper);
}

.contents::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(var(--halftone) 1px, transparent 1.2px);
  background-size: 7px 7px;
  mask-image: linear-gradient(225deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%);
  pointer-events: none;
}

.featured-wrap {
  margin-bottom: 28px;
}

.post-card {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--shadow);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-cover {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--paper-3);
}

.post-card-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.post-card:hover .post-card-cover img {
  transform: scale(1.035);
}

.chapter-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.featured-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  background: var(--red);
  color: #faf8f2;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
  transform: rotate(5deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 20px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-2);
  border-radius: 50%;
}

.post-card-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.015em;
  transition: color 0.2s;
}

.post-card:hover .post-card-title {
  color: var(--red);
}

.post-card-excerpt {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.read-more {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more i {
  font-style: normal;
  color: var(--red);
  transition: transform 0.2s var(--ease);
}

.post-card:hover .read-more i {
  transform: translateX(4px);
}

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

.post-grid .post-card:nth-child(even) {
  transform: translateY(22px);
}

.post-grid .post-card:nth-child(even):hover {
  transform: translateY(19px) translateX(-3px);
}

/* 特色大卡片 */
.post-card--featured .post-card-link {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 400px;
}

.post-card--featured .post-card-cover {
  height: 100%;
  border-bottom: 0;
  border-right: 2px solid var(--line);
}

.post-card--featured .post-card-cover img {
  height: 100%;
  aspect-ratio: auto;
}

.post-card--featured .post-card-body {
  padding: clamp(24px, 3vw, 40px);
  justify-content: center;
}

.post-card--featured .post-card-title {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.32;
}

.post-card--featured .post-card-excerpt {
  font-size: 14px;
  -webkit-line-clamp: 3;
  margin-top: 14px;
}

.post-card--featured .post-card-meta {
  font-size: 10px;
}

.post-card--featured .post-card-foot {
  padding-top: 26px;
}

.cover-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(var(--halftone) 1px, transparent 1.2px) 0 0 / 7px 7px,
    var(--paper-2);
}

.cover-fallback-no {
  font-family: var(--font-latin);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-3);
}

.cover-fallback-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  color: var(--gray);
}

/* 07 作者区 -------------------------------------------------------------- */
.author-section {
  background: var(--paper-2);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.author-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 9px 9px 0 var(--shadow);
  transform: rotate(-0.8deg);
}

.author-portrait {
  flex: none;
  width: 124px;
  height: 124px;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card-body h2 {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.author-role {
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.author-quote {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

.author-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  transform: rotate(6deg);
}

.author-copy {
  padding-block: 10px;
}

.author-lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.author-text {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.95;
  color: var(--gray);
  max-width: 520px;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.author-copy .text-link {
  margin-top: 26px;
}

/* 08 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--marquee-bg);
  color: var(--paper);
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 76px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.62fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #faf8f2;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.footer-brand p {
  max-width: 250px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 239, 232, 0.72);
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(242, 239, 232, 0.42);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(242, 239, 232, 0.78);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #f2efe8;
}

.footer-col a span {
  font-size: 9px;
  opacity: 0.6;
}

.footer-word {
  font-family: var(--font-latin);
  font-size: clamp(52px, 11.6vw, 176px);
  line-height: 0.78;
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 232, 0.2);
  user-select: none;
  padding-inline: 2vw;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-block: 18px;
  border-top: 1px solid rgba(242, 239, 232, 0.16);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(242, 239, 232, 0.5);
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(242, 239, 232, 0.7);
}

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

/* 最底部备案栏 */
.legal-bar {
  background: var(--paper-2);
  border-top: 2px solid var(--line);
  color: var(--ink);
}

.legal-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-block: 15px;
}

.legal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gray);
  white-space: nowrap;
}

.legal-mark {
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  min-width: 0;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  transition: color 0.2s;
}

.legal-link:hover {
  color: var(--red);
}

.legal-key {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.legal-arrow {
  color: var(--red);
  font-size: 9px;
  line-height: 1;
}

.legal-link--police img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.legal-sep {
  color: var(--gray-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gray-2);
  text-align: right;
  white-space: nowrap;
}

/* 09 内页页头 ------------------------------------------------------------ */
.page-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 82px);
  background: var(--paper);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  right: 4%;
  top: -40px;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(var(--halftone) 1px, transparent 1.2px);
  background-size: 7px 7px;
  mask-image: radial-gradient(circle, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 70%);
  pointer-events: none;
}

.page-head-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.page-title-en {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--red);
}

.page-head-note {
  max-width: 330px;
  padding-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.95;
  text-align: right;
  color: var(--gray);
}

.page-head-link {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}

.page-head-rule {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding-block: 8px;
}

.page-head-rule span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--gray);
}

/* 10 归档 / 标签 / 关于 --------------------------------------------------- */
.archive-body {
  padding-block: 48px clamp(60px, 7vw, 100px);
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-field {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 360px);
}

.filter-icon {
  position: absolute;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gray);
  pointer-events: none;
}

.filter-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 40px;
  border: 2px solid var(--line);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.filter-field input::placeholder {
  color: var(--gray-2);
}

.filter-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
}

.archive-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.archive-count span {
  color: var(--red);
}

.year-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 32px;
  padding-top: 26px;
  margin-top: 36px;
  border-top: 2px solid var(--line);
}

.year-group:first-child {
  margin-top: 8px;
}

.year-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.year-label span {
  font-family: var(--font-latin);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.year-label em {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.archive-list {
  list-style: none;
}

.archive-row {
  border-bottom: 1px solid var(--grid);
}

.archive-row a {
  display: grid;
  grid-template-columns: 92px 58px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  transition: all 0.22s var(--ease);
}

.archive-row a:hover {
  background: var(--cream);
  padding-left: 16px;
  color: var(--red);
}

.archive-no {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--red);
}

.archive-row time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-tags {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--gray);
  white-space: nowrap;
}

.archive-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.archive-row a:hover .archive-arrow {
  opacity: 1;
}

.archive-empty {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray);
  border: 2px dashed var(--gray-2);
  margin-top: 40px;
}

/* 标签云 */
.tags-body {
  padding-block: 48px clamp(60px, 7vw, 100px);
}

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

.tag-card {
  position: relative;
  display: flex;
  gap: 16px;
  min-height: 172px;
  padding: 22px;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.tag-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--shadow);
}

.tag-card-no {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--red);
}

.tag-card-main h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

.tag-card-main h2 span {
  color: var(--red);
  margin-right: 2px;
}

.tag-card-count {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.tag-card-latest {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
}

/* 标签详情 */
.tag-detail-body {
  padding-block: 48px clamp(60px, 7vw, 100px);
}

.tag-post-list {
  list-style: none;
  border-top: 2px solid var(--line);
}

.tag-post-row {
  border-bottom: 1px solid var(--grid);
}

.tag-post-row a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px 24px;
  align-items: center;
  gap: 24px;
  padding: 22px 8px;
  transition: all 0.22s var(--ease);
}

.tag-post-row a:hover {
  background: var(--cream);
  padding-left: 16px;
}

.tag-post-no {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--red);
}

.tag-post-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tag-post-main strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tag-post-main em {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-post-row time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  text-align: right;
}

.tag-post-arrow {
  font-family: var(--font-mono);
  color: var(--red);
}

/* 关于页 */
.about-body {
  padding-block: clamp(48px, 6vw, 80px) clamp(60px, 7vw, 100px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: stretch;
}

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(-0.7deg);
}

.profile-portrait {
  border: 2px solid var(--line);
  background: var(--paper-3);
  overflow: hidden;
  aspect-ratio: 1;
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head {
  padding: 18px 6px 6px;
}

.profile-name-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gray);
}

.profile-name {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.2;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-3);
}

.profile-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f7a55;
  box-shadow: 0 0 0 3px rgba(47, 122, 85, 0.18);
}

.profile-stamp {
  position: absolute;
  top: 34px;
  right: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-12deg);
  opacity: 0.8;
}

.profile-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--gray-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.profile-sheet {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 42px);
  background: var(--paper-2);
  border: 2px solid var(--line);
}

.profile-sheet-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.profile-sheet-title span {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.profile-fields {
  margin-top: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--gray-2);
}

.profile-row dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray);
  padding-top: 3px;
}

.profile-row dd {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.profile-quote {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  line-height: 1.9;
  color: var(--red-2);
}

.profile-quote span {
  font-family: var(--font-serif);
  font-size: 1.5em;
  opacity: 0.5;
  padding-inline: 4px;
}

.about-prose {
  max-width: 780px;
  margin: clamp(48px, 6vw, 76px) auto;
}

.about-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.equipment,
.contact-card {
  padding: 28px;
  border: 2px solid var(--line);
  background: var(--cream);
}

.extras-title {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.equipment-list {
  list-style: none;
}

.equipment-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--grid);
  font-family: var(--font-sans);
  font-size: 14px;
}

.equipment-list li span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--red);
  padding-top: 3px;
}

.contact-card p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray);
}

.contact-mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 2px solid var(--red);
  word-break: break-all;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--gray-2);
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: var(--red);
  border-color: var(--red);
}

/* 11 文章正文 ------------------------------------------------------------ */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}

.reading-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.1s linear;
}

.post-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 360px;
  height: 360px;
  background-image: radial-gradient(var(--halftone) 1px, transparent 1.2px);
  background-size: 7px 7px;
  mask-image: radial-gradient(circle at 80% 80%, #000, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 80% 80%, #000, transparent 68%);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

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

.breadcrumb em {
  font-style: normal;
  color: var(--ink-3);
}

.post-head-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 34px clamp(38px, 5vw, 62px);
}

.post-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.post-kicker > span:first-child {
  padding: 3px 8px;
  background: var(--red);
  color: #faf8f2;
}

.post-kicker-line {
  width: 30px;
  height: 1px;
  background: var(--gray-2);
}

.post-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.post-deck {
  max-width: 600px;
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--red);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.95;
  color: var(--gray);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.post-meta > * + * {
  position: relative;
}

.post-meta > * + *::before {
  content: "/";
  position: absolute;
  left: -11px;
  color: var(--gray-2);
}

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

.post-cover {
  position: relative;
  border: 2px solid var(--line);
  background: var(--paper-3);
  box-shadow: 9px 9px 0 var(--shadow);
  transform: rotate(1deg);
}

.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-cover-caption {
  display: block;
  padding: 6px 10px;
  border-top: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-theme="night"] .post-cover-caption {
  background: #0c0c10;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(44px, 5.5vw, 72px) clamp(56px, 7vw, 90px);
  align-items: start;
}

.post-main {
  max-width: 820px;
  min-width: 0;
}

.prose {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: 0.015em;
  color: var(--ink-2);
}

.prose > p {
  margin: 1.5em 0;
}

.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.1em;
  font-weight: 900;
  line-height: 0.86;
  padding: 0.08em 0.12em 0 0;
  color: var(--red);
}

.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  font-family: var(--font-serif);
  color: var(--ink);
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.prose h2 {
  margin: 2.3em 0 0.9em;
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.5;
  counter-increment: h2;
}
.prose {
  counter-reset: h2;
}
.prose h2::before {
  content: counter(h2, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--red);
}
.prose h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  background: var(--ink);
}

.prose h3 {
  margin: 2em 0 0.7em;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 18px;
  font-weight: 800;
}

.prose .anchor {
  position: absolute;
  right: 0;
  top: 0.2em;
  padding-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.48em;
  font-weight: 400;
  color: var(--red);
  border-bottom: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 0.8;
}

.prose a {
  color: var(--red-2);
  border-bottom: 1px solid var(--red);
  transition: background 0.2s, color 0.2s;
}

.prose a:hover {
  background: var(--red);
  color: #faf8f2;
}

.prose a.external .ext {
  font-family: var(--font-mono);
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
}

.prose strong {
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(transparent 64%, var(--red-soft) 64%);
  padding-inline: 1px;
}

.prose em {
  font-style: italic;
  color: var(--ink);
}

.prose del {
  color: var(--gray);
}

.prose code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--gray-2);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--red-2);
  word-break: break-word;
}

.prose .md-hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 6px,
    transparent 6px 14px
  );
}

.prose .quote {
  position: relative;
  margin: 2.2em 0;
  padding: 26px 30px 24px 46px;
  background: var(--cream);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-2);
  transform: rotate(-0.4deg);
}

.prose .quote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 2px;
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1;
  color: var(--red);
}

.prose .quote::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: var(--cream);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(45deg);
}

.prose .quote p {
  margin: 0.5em 0;
}

.prose .quote p:first-child {
  margin-top: 0;
}
.prose .quote p:last-child {
  margin-bottom: 0;
}

.prose .md-list {
  margin: 1.4em 0;
  padding-left: 1.4em;
}

.prose .md-list li {
  margin: 0.45em 0;
  padding-left: 0.3em;
}

.prose .md-list li::marker {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose .md-list li > .md-list {
  margin: 0.4em 0;
}

.prose .task-item {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: -1.3em;
}

.task-box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 0.42em;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  background: var(--cream);
}

.task-box.is-done {
  background: var(--red);
  color: #faf8f2;
  border-color: var(--red);
}

.prose .md-figure {
  margin: 2.4em 0;
}

.prose .md-figure img,
.prose img.md-img {
  width: 100%;
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  background: var(--paper-2);
}

.prose .md-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-align: center;
}

.prose .table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
  background: var(--cream);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
}

.prose th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--gray-2);
}

.prose tbody tr:nth-child(even) {
  background: var(--paper-2);
}

.prose .align-center {
  text-align: center;
}
.prose .align-right {
  text-align: right;
}

.prose .code-frame {
  margin: 2.2em 0;
  border: 2px solid var(--line);
  background: #17171c;
  color: #e9e4d8;
  box-shadow: 6px 6px 0 var(--shadow);
  overflow: hidden;
}

[data-theme="night"] .prose .code-frame {
  background: #0b0b0f;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(233, 228, 216, 0.16);
  background: #1f1f26;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 228, 216, 0.55);
}

.code-copy {
  padding: 3px 8px;
  border: 1px solid rgba(233, 228, 216, 0.25);
  background: transparent;
  color: rgba(233, 228, 216, 0.65);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  transition: all 0.2s;
}

.code-copy:hover {
  border-color: #e0576e;
  color: #e0576e;
}

.prose .code-frame pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
}

.prose .code-frame code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  word-break: normal;
}

.post-end {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px dashed var(--gray-2);
  text-align: center;
}

.post-end-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.post-end p {
  margin: 16px 0 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
}

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

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--gray-2);
  background: var(--cream);
  transition: all 0.2s var(--ease);
}

.post-nav-link:hover {
  border-color: var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

.post-nav-link--next {
  text-align: right;
}

.post-nav-link--empty {
  opacity: 0.5;
  cursor: default;
}

.post-nav-link--empty:hover {
  border-color: var(--gray-2);
  box-shadow: none;
  transform: none;
}

.post-nav-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.post-nav-link strong {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

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

.toc-card {
  padding: 20px;
  border: 2px solid var(--line);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--shadow);
}

.toc-title {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.toc-title em {
  font-style: normal;
  color: var(--gray-2);
  margin-left: 4px;
}

.toc {
  display: flex;
  flex-direction: column;
}

.toc-link {
  position: relative;
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray);
  transition: all 0.2s;
}

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

.toc-link.is-active {
  color: var(--red);
  border-left-color: var(--red);
  font-weight: 600;
}

.toc-link--h3 {
  padding-left: 24px;
  font-size: 10.5px;
}

.toc-progress {
  height: 3px;
  margin-top: 14px;
  background: var(--paper-3);
}

.toc-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

/* 12 404 / 灯箱 / 提示 ---------------------------------------------------- */
.not-found {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: 60px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--halftone) 1px, transparent 1.2px);
  background-size: 8px 8px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 60%);
}

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

.not-found-art {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.not-found-num {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(110px, 22vw, 260px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  letter-spacing: -0.02em;
}

.not-found-tear {
  position: absolute;
  right: -40px;
  top: 0;
  width: 90px;
  height: 110%;
  background: var(--paper);
  border-left: 2px solid var(--red);
  transform: rotate(8deg);
  clip-path: polygon(30% 0, 100% 0, 70% 12%, 100% 24%, 60% 40%, 95% 58%, 55% 72%, 100% 88%, 65% 100%, 0 100%, 30% 84%, 0 68%, 35% 50%, 0 32%, 40% 18%);
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.not-found p {
  max-width: 460px;
  margin: 12px 0 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border: 3px solid var(--paper);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 239, 232, 0.4);
  background: transparent;
  color: #f2efe8;
  font-size: 24px;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}

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

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--shadow);
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s var(--ease);
}

.to-top span {
  font-size: 15px;
  line-height: 1;
}

.to-top small {
  font-size: 7px;
  letter-spacing: 0.12em;
  margin-top: 3px;
  color: var(--gray);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--red);
  color: #faf8f2;
}

/* 13 夜间模式 ------------------------------------------------------------ */
[data-theme="night"] {
  --paper: #141419;
  --paper-2: #1a1a21;
  --paper-3: #26262f;
  --cream: #1d1d25;
  --ink: #ede8dc;
  --ink-2: #d4cec1;
  --ink-3: #b4aea2;
  --gray: #8e8a93;
  --gray-2: #5b5762;
  --line: #ede8dc;
  --red: #e04a63;
  --red-2: #f07e92;
  --red-soft: #3b2027;
  --teal: #7fb3ac;
  --shadow: #060609;
  --shadow-soft: rgba(0, 0, 0, 0.5);
  --halftone: rgba(237, 232, 220, 0.13);
  --grid: rgba(237, 232, 220, 0.07);
  --panel: #1d1d25;
  --header-bg: rgba(20, 20, 25, 0.88);
  --marquee-bg: #0b0b0f;
  --marquee-fg: #ebe6da;
  --selection-bg: #e04a63;
  --selection-fg: #141419;
}

[data-theme="night"] .site-header {
  border-bottom-color: var(--gray-2);
}

[data-theme="night"] .brand-mark,
[data-theme="night"] .footer-mark,
[data-theme="night"] .section-no {
  color: #141419;
}

[data-theme="night"] .btn--primary,
[data-theme="night"] .featured-stamp,
[data-theme="night"] .post-kicker > span:first-child {
  color: #141419;
}

[data-theme="night"] .art-frame,
[data-theme="night"] .post-cover,
[data-theme="night"] .profile-card {
  border-color: var(--gray-2);
}

[data-theme="night"] .art-frame {
  box-shadow: 10px 10px 0 #050507;
}

[data-theme="night"] .post-card {
  border-color: var(--gray-2);
}

[data-theme="night"] .chapter-badge {
  background: #0b0b0f;
  color: var(--ink);
}

[data-theme="night"] .post-card-cover {
  border-bottom-color: var(--gray-2);
}

[data-theme="night"] .post-card--featured .post-card-cover {
  border-right-color: var(--gray-2);
}

[data-theme="night"] .prose .md-figure img,
[data-theme="night"] .prose img.md-img {
  border-color: var(--gray-2);
}

[data-theme="night"] .prose table {
  border-color: var(--gray-2);
}

[data-theme="night"] .prose th {
  background: #0b0b0f;
  color: var(--ink);
}

[data-theme="night"] .speech,
[data-theme="night"] .speech::after {
  background: var(--cream);
}

[data-theme="night"] .title-outline {
  -webkit-text-stroke-color: #ede8dc;
}

[data-theme="night"] .quote::after {
  background: var(--cream);
}

[data-theme="night"] .not-found-tear {
  background: var(--paper);
}

[data-theme="night"] .legal-link--police img {
  filter: none;
}

/* 14 响应式 -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-main {
    gap: 44px;
  }
  .hero-art {
    max-width: 410px;
  }
  .post-card--featured .post-card-link {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 40px;
  }
  .post-head-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .nav-link {
    padding-inline: 10px;
  }
  .nav-no {
    display: none;
  }
  .hero-title {
    font-size: clamp(58px, 8.4vw, 96px);
  }
  .post-aside {
    display: none;
  }
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-main {
    margin-inline: auto;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  /* 移动端关掉毛玻璃：backdrop-filter 会让 fixed 菜单相对页头定位 */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .container {
    padding-inline: clamp(18px, 5vw, 36px);
  }

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px var(--gutter) 40px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--grid);
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
  }

  .nav-no {
    display: inline;
    font-size: 10px;
  }

  .nav-link::after {
    left: auto;
    right: 4px;
    bottom: 22px;
    width: 22px;
    height: 2px;
    transform: scaleX(0);
  }

  .nav-link.is-active::after,
  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .theme-text {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .theme-icon--sun,
  .theme-icon--moon {
    margin: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 26px 40px;
  }

  .hero-art {
    order: 2;
    max-width: 460px;
    width: calc(100% - 18px);
    margin-inline: auto;
    justify-self: center;
  }

  .hero-art-label {
    display: none;
  }

  .hero-copy {
    order: 1;
  }

  .hero-title {
    font-size: clamp(56px, 13vw, 96px);
  }

  .badge-yomi {
    width: 46px;
    height: 46px;
    font-size: 12px;
    right: 2%;
  }

  .hero-tagline {
    margin-top: 24px;
  }

  .hero-desc {
    max-width: none;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .latest-strip {
    max-width: none;
  }

  .hero-thumbs {
    gap: 12px;
  }

  .thumbs-label {
    display: none;
  }

  .thumbs-count {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .section-note {
    display: none;
  }

  .post-card--featured .post-card-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .post-card--featured .post-card-cover {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .post-card--featured .post-card-cover img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

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

  .post-grid .post-card:nth-child(even) {
    transform: none;
  }

  .post-grid .post-card:nth-child(even):hover {
    transform: translate(-3px, -3px);
  }

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

  .author-card {
    transform: none;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

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

  .legal-inner {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-block: 14px;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .legal-meta {
    display: none;
  }

  .page-head-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .page-head-note {
    text-align: left;
    padding-bottom: 0;
    max-width: 460px;
  }

  .page-title {
    font-size: clamp(48px, 12vw, 78px);
  }

  .page-head-rule {
    margin-top: 28px;
  }

  .year-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .year-label {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .year-label span {
    font-size: 34px;
  }

  .archive-row a {
    grid-template-columns: 78px 1fr 20px;
    gap: 10px;
  }

  .archive-row time {
    display: none;
  }

  .archive-tags {
    display: none;
  }

  .archive-title {
    white-space: normal;
    font-size: 15px;
  }

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

  .profile-card {
    max-width: 460px;
    transform: none;
  }

  .about-extras {
    grid-template-columns: 1fr;
  }

  .tag-post-row a {
    grid-template-columns: 86px 1fr 20px;
    gap: 14px;
  }

  .tag-post-row time {
    display: none;
  }

  .post-head-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 26px 40px;
  }

  .post-cover {
    max-width: 460px;
    transform: none;
  }

  .post-title {
    font-size: clamp(34px, 7.5vw, 52px);
  }

  .prose .anchor {
    display: none;
  }

  .footer-word {
    font-size: 12vw;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand-text em {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero-title {
    font-size: clamp(50px, 15vw, 72px);
  }

  .title-outline {
    -webkit-text-stroke-width: 1.8px;
  }

  .title-dot {
    width: 12px;
    height: 12px;
    margin-left: 8px;
  }

  .hero-title-en {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .speech {
    padding: 12px 16px;
    font-size: 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
    padding-inline: 14px;
  }

  .hero-stats > div {
    padding-right: 18px;
    margin-right: 18px;
  }

  .hero-stats dd {
    font-size: 26px;
  }

  .latest-kicker {
    display: none;
  }

  .hero-thumbs-wrap {
    overflow: hidden;
  }

  .thumb {
    width: 78px;
  }

  .art-stamp {
    width: 58px;
    height: 58px;
    font-size: 26px;
    right: -10px;
    bottom: 44px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading h2 em {
    display: none;
  }

  .section-no {
    width: 28px;
    height: 28px;
  }

  .section-link {
    font-size: 9px;
  }

  .post-card-body {
    padding: 18px 18px 16px;
  }

  .post-card--featured .post-card-body {
    padding: 20px;
  }

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

  .post-card--featured .post-card-title {
    font-size: 26px;
  }

  .author-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    gap: 16px;
  }

  .author-portrait {
    width: 90px;
    height: 90px;
  }

  .author-stamp {
    top: 14px;
    right: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

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

  .legal-inner {
    gap: 8px;
  }

  .legal-title {
    font-size: 7px;
  }

  .legal-links {
    gap: 6px 10px;
  }

  .legal-link {
    font-size: 9px;
    gap: 5px;
  }

  .legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .legal-sep {
    display: none;
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 48px;
  }

  .page-title-en {
    font-size: 9px;
  }

  .filter-field {
    width: 100%;
  }

  .archive-tools {
    gap: 10px;
  }

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

  .profile-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-card {
    padding: 14px;
  }

  .profile-stamp {
    top: 26px;
    right: 26px;
  }

  .about-prose {
    margin-block: 40px;
  }

  .equipment,
  .contact-card {
    padding: 20px;
  }

  .post-meta {
    gap: 14px;
    font-size: 8px;
  }

  .post-meta > * + *::before {
    left: -9px;
  }

  .post-cover img {
    aspect-ratio: 16 / 11;
  }

  .post-layout {
    padding-block: 34px 56px;
  }

  .prose {
    font-size: 16.5px;
    line-height: 2;
  }

  .prose > p:first-of-type::first-letter {
    font-size: 3.6em;
  }

  .prose h2 {
    font-size: 23px;
    margin-top: 2em;
  }

  .prose .quote {
    padding: 22px 20px 20px 38px;
    font-size: 15px;
  }

  .prose .quote::before {
    left: 10px;
    font-size: 42px;
  }

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

  .post-end {
    margin-top: 44px;
    padding-top: 32px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }

  .not-found-num {
    font-size: 34vw;
  }

  .footer-word {
    font-size: 12vw;
    -webkit-text-stroke-width: 0.5px;
  }
}

/* 15 动效与无障碍 --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

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

.post-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.post-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.post-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.tag-grid .reveal:nth-child(2n) {
  transition-delay: 0.05s;
}
.tag-grid .reveal:nth-child(3n) {
  transition-delay: 0.1s;
}

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

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

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

  .marquee-track {
    animation: none;
  }

  .art-frame:hover {
    transform: rotate(-1.6deg);
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-bar,
  .hero-thumbs-wrap,
  .marquee,
  .to-top,
  .reading-bar,
  .post-aside,
  .post-nav,
  .post-end,
  .grain,
  .lightbox {
    display: none !important;
  }

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

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

  .post-cover {
    display: none;
  }

  .prose {
    font-size: 12pt;
    color: #000;
  }

  .prose .quote,
  .prose .code-frame {
    box-shadow: none;
  }
}
