/* ============================================================
   设计变量 —— 想改配色只改这里
   ============================================================ */
:root {
  --paper: #f7f4ee;
  --paper-elev: #fffdf9;
  --ink: #1d2026;
  --ink-2: #4b515a;
  --ink-3: #868d97;
  --line: #e2dbcf;
  --line-strong: #cdc4b4;
  --accent: #a8492c;
  --accent-ink: #8c3a22;
  --accent-soft: #f2e4dc;
  --code-bg: #20242c;
  --nav-bg: rgba(247, 244, 238, 0.8);
  --shadow: 0 18px 40px -28px rgba(29, 32, 38, 0.55);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, "Courier New", monospace;

  --w: 1120px;
  --pad: clamp(20px, 4vw, 48px);
}

:root[data-theme="dark"] {
  --paper: #13161b;
  --paper-elev: #1a1e25;
  --ink: #eae6de;
  --ink-2: #b9b5ac;
  --ink-3: #837f77;
  --line: #2a2f37;
  --line-strong: #3a4048;
  --accent: #dd8f66;
  --accent-ink: #eda87f;
  --accent-soft: #2a2019;
  --code-bg: #0e1115;
  --nav-bg: rgba(19, 22, 27, 0.8);
  --shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   基础
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

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

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

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

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

/* 没有页脚了，正文底部留一段空白，别让内容贴到窗口边上 */
main {
  padding-bottom: clamp(56px, 8vw, 110px);
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 0;
  transition: color 0.25s ease;
}

.nav-en {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color 0.25s ease;
}

.nav-jp {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--ink-3);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover .nav-en,
.nav-links a.is-active .nav-en { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: rotate(12deg);
}

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

.toc li.lv3 { padding-left: 12px; }

/* ============================================================
   首屏
   ============================================================ */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #0f1319;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.02);
  animation: heroZoom 18s ease-out forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.34) 0%, rgba(10, 14, 20, 0.08) 38%, rgba(10, 14, 20, 0.66) 100%),
    linear-gradient(90deg, rgba(10, 14, 20, 0.42) 0%, rgba(10, 14, 20, 0) 62%);
}

.hero-inner {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 7vh, 88px);
  color: #f6f2ea;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.hero-main { max-width: 34em; }

/* 右側的詩 */
.hero-poem {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.86;
  letter-spacing: 0.1em;
  color: rgba(246, 242, 234, 0.62);
  max-height: 54vh;
  padding-left: 8px;
  margin-bottom: 4px;
}

.hero-poem p {
  margin: 0;
  padding-left: 0.55em;
}

.hero-poem .poem-sign {
  font-size: 11.5px;
  letter-spacing: 0.34em;
  color: rgba(246, 242, 234, 0.42);
  padding-left: 1.4em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.72);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: rgba(246, 242, 234, 0.5);
}

.hero-title {
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}

/* 首屏問候式標題（兩行） */
.hero-greeting {
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.7;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-bottom: 0;
  max-width: 30em;
}

.hero-greeting span { display: block; }

.hero-greeting span + span {
  margin-top: 0.12em;
  color: rgba(246, 242, 234, 0.92);
}

.hero-lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  max-width: 30em;
  text-wrap: balance;
  color: rgba(246, 242, 234, 0.84);
  margin-bottom: 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(246, 242, 234, 0.42);
  color: #f6f2ea;
  border-radius: 1px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: rgba(246, 242, 234, 0.12);
  border-color: rgba(246, 242, 234, 0.8);
  transform: translateY(-1px);
}

.btn-solid {
  background: #f6f2ea;
  color: #1a1d23;
  border-color: #f6f2ea;
}

.btn-solid:hover {
  background: #fff;
  color: #11141a;
}

.hero-caption {
  position: absolute;
  right: var(--pad);
  bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(246, 242, 234, 0.42);
  text-transform: uppercase;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}

/* ============================================================
   区块
   ============================================================ */
.section {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 34px;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(22px, 2.4vw, 27px);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-6px);
}

.section-more {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.25s ease;
}

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

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  background: var(--paper-elev);
  min-height: 208px;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.entry-card .num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.entry-card .num i {
  font-style: normal;
  font-family: var(--serif);
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.entry-card h3 {
  font-size: 18px;
}

.entry-card p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  flex: 1;
}

.entry-card .arrow {
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.entry-card:hover .arrow { transform: translateX(6px); }

/* 最新列表 */
.recent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 56px;
}

.recent-col-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 4px;
}

.row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}

.row:hover { padding-left: 6px; }

.row time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.row-title {
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.row-tag {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ============================================================
   列表页
   ============================================================ */
.page-head {
  padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-bottom: 18px;
}

.page-intro {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 40em;
}

.empty-note {
  padding: 44px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.recent-empty {
  padding: 26px 0;
  font-size: 13px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.list { padding: 8px 0 0; }

.item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 180px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.item:hover { background: var(--paper-elev); }

.item-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 5px;
}

.item h3 {
  font-size: 22px;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.item:hover h3 { color: var(--accent); }

.item p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 44em;
}

.item-side {
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-top: 5px;
  letter-spacing: 0.04em;
}

.status {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.status[data-status="进行中"] { border-color: var(--accent); color: var(--accent); }
.status[data-status="已完成"] { border-color: var(--line-strong); color: var(--ink-3); }

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

.tag {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 2px 8px;
  background: var(--accent-soft);
}

/* ============================================================
   文章页
   ============================================================ */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 8vw, 96px);
  align-items: start;
}

.post-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.post-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  margin-bottom: 18px;
  text-wrap: balance;
}

.post-lead {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 40em;
  margin-bottom: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.post-meta li { display: flex; gap: 6px; }
.post-meta b { font-weight: 400; color: var(--ink-2); }

/* 目录 */
.toc {
  position: sticky;
  top: 96px;
  font-size: 12px;
  line-height: 1.9;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.toc-title {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-left: 12px; }
.toc a { color: var(--ink-2); transition: color 0.2s ease; }
.toc a:hover, .toc a.is-active { color: var(--accent); }

/* 正文排版 */
.prose {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
  max-width: 42em;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: 23px;
  margin-top: 2.4em;
  padding-top: 0.1em;
}

.prose h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 18.5px;
  margin-top: 1.9em;
}

.prose p { color: var(--ink); }

.prose a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.2s ease;
}

.prose a:hover { background: var(--accent-soft); }

.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 17px;
}

.prose blockquote p + p { margin-top: 0.8em; }

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

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.prose pre {
  background: var(--code-bg);
  color: #d8dee9;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.75;
  margin: 1.7em 0;
}

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

.prose img {
  border: 1px solid var(--line);
  margin: 1.8em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.6em 0;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
}

/* 上一篇 / 下一篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.post-nav a:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-nav a.next { text-align: right; }
.post-nav span { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-3); }
.post-nav strong { font-weight: 500; font-size: 14px; font-family: var(--serif); }

.post-nav-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

a.post-nav-cell:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-nav-cell.is-empty { border-color: transparent; }
.post-nav-cell b { font-weight: 500; font-size: 14px; font-family: var(--serif); color: var(--ink); }

/* ============================================================
   关于页
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(40px, 7vw, 72px) 0 96px;
  align-items: start;
}

.about-side {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
}

.about-side h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
}

.about-side a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.about-side a:hover { color: var(--accent); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  margin-top: clamp(72px, 10vw, 130px);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer a { color: var(--ink-2); transition: color 0.2s ease; }
.footer a:hover { color: var(--accent); }

.footer-brand {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--pad);
}

.notfound-code {
  font-family: var(--serif);
  font-size: clamp(72px, 14vw, 150px);
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 18px;
}

.notfound h1 { font-size: 26px; margin-bottom: 14px; }
.notfound p { color: var(--ink-2); font-size: 14px; margin-bottom: 26px; }

.notfound-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}

.link-back {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============================================================
   入场动效
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .entry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .entry-card { min-height: 0; padding: 22px; }
  .recent { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-poem {
    writing-mode: horizontal-tb;
    column-count: 2;
    column-gap: 32px;
    font-size: 11.5px;
    line-height: 2.05;
    letter-spacing: 0.1em;
    max-height: none;
    margin-top: 30px;
    opacity: 0.75;
  }
  .hero-poem p { padding-left: 0; }
  .hero-poem .poem-sign {
    column-span: all;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .post-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin-bottom: 8px; order: -1; }
  .about-side { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .item { grid-template-columns: 1fr; gap: 8px; }
  .item-side { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 74px minmax(0, 1fr); }
  .row-tag { display: none; }
}

@media (max-width: 720px) {
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-brand { font-size: 16px; }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-links a { padding: 2px 0; white-space: nowrap; }
  .nav-en { font-size: 9.5px; letter-spacing: 0.06em; }
  .nav-jp { font-size: 8.5px; letter-spacing: 0.02em; }
  .theme-toggle { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-caption { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
