/* =========================================================
   载墨 Blog · 水墨主题
   ========================================================= */

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe5d9;
  --ink: #161a1e;
  --ink-2: #3d444b;
  --ink-3: #767d84;
  --seal: #a6332b;
  --line: rgba(22, 26, 30, .14);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .68, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
}

[id] { scroll-margin-top: 96px; }

/* ---------- 背景层 ---------- */

#ink-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.ink-halo {
  position: fixed;
  left: 0;
  top: 0;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  filter: blur(7px);
  background: radial-gradient(circle, rgba(22, 26, 30, .13), rgba(22, 26, 30, .05) 45%, transparent 70%);
  transition: opacity .9s ease;
}

.ink-halo.is-on { opacity: 1; }

/* ---------- 入场幕布 ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--paper);
  pointer-events: none;
  animation: veilUp 1.15s cubic-bezier(.76, 0, .24, 1) .55s forwards;
}

.veil span {
  font-size: 54px;
  line-height: 1;
  color: var(--seal);
  letter-spacing: .1em;
  opacity: 0;
  animation: veilSeal .85s var(--ease-out) .12s forwards;
}

@keyframes veilSeal {
  from { opacity: 0; transform: scale(.86); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes veilUp {
  to { transform: translateY(-101%); visibility: hidden; }
}

/* ---------- 通用布局 ---------- */

.container {
  width: min(1180px, 86vw);
  margin-inline: auto;
}

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

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section--notes {
  padding-top: clamp(24px, 4vw, 44px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  transition: top .3s ease;
}

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

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 26px 0;
  transition: padding .55s var(--ease), background-color .55s ease, backdrop-filter .55s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .55s ease;
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(243, 240, 232, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

.site-header.is-scrolled::after { opacity: 1; }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-seal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #f8f4ea;
  font-size: 18px;
  line-height: 1;
  border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: 0 5px 16px -6px rgba(166, 51, 43, .55);
  transition: transform .6s var(--ease);
}

.brand:hover .brand-seal { transform: rotate(4deg) scale(1.06); }

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .14em;
  white-space: nowrap;
}

.brand-name em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 7px;
  vertical-align: 2px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.8vw, 42px);
  margin-left: auto;
  margin-right: clamp(0px, 4vw, 48px);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  letter-spacing: .22em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .35s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s ease;
}

.header-date:hover { color: var(--ink); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(980px, 88vw);
  text-align: center;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -48%);
  font-size: clamp(320px, 60vw, 900px);
  font-weight: 700;
  line-height: .8;
  color: rgba(22, 26, 30, .032);
  pointer-events: none;
  user-select: none;
  animation: ghostFloat 20s ease-in-out infinite;
}

@keyframes ghostFloat {
  0%, 100% { transform: translate(-50%, -48%) rotate(0deg); }
  50%      { transform: translate(-49%, -50.5%) rotate(1.2deg); }
}

.hero-sun {
  position: absolute;
  right: 13%;
  top: 17%;
  z-index: 0;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 51, 43, .17), rgba(166, 51, 43, .06) 55%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  animation: sunFloat 16s ease-in-out infinite;
}

@keyframes sunFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-10px, 14px, 0) scale(1.04); }
}

.hero-side {
  position: absolute;
  left: clamp(14px, 4vw, 52px);
  top: 50%;
  z-index: 3;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .62em;
  color: var(--ink-3);
  opacity: .62;
  user-select: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 clamp(26px, 4vw, 40px);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .52em;
  text-indent: .52em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 1.3s var(--ease-out) .85s forwards;
}

.hero-eyebrow span {
  display: block;
  width: clamp(24px, 4vw, 52px);
  height: 1px;
  background: var(--line);
}

.hero-title {
  margin: 0;
  font-size: clamp(6.4rem, 19.5vw, 16rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: .05em;
  text-indent: .05em;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.24em) scale(.97);
  filter: blur(20px);
  animation: inkIn 1.7s var(--ease-out) forwards;
  animation-delay: calc(1.05s + var(--i) * .17s);
  will-change: transform, filter, opacity;
}

@keyframes inkIn {
  0%   { opacity: 0; transform: translateY(.24em) scale(.97); filter: blur(20px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-sub {
  margin: clamp(18px, 2.6vw, 30px) 0 0;
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--ink-2);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.55s forwards;
}

.hero-stroke {
  display: block;
  width: min(460px, 62vw);
  height: auto;
  margin: 6px auto 0;
  overflow: visible;
}

.hero-stroke path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: strokeDraw 2s var(--ease) forwards;
}

.hero-stroke .stroke-a { stroke-width: 2; stroke-opacity: .38; animation-delay: 1.5s; }
.hero-stroke .stroke-b { stroke-width: 1; stroke-opacity: .2;  animation-delay: 1.72s; }

@keyframes strokeDraw { to { stroke-dashoffset: 0; } }

.hero-desc {
  max-width: 560px;
  margin: clamp(24px, 3vw, 34px) auto 0;
  font-size: 14.5px;
  line-height: 2.15;
  letter-spacing: .07em;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.85s forwards;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 44px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 2.05s forwards;
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(22, 26, 30, .28);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-mountains {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: clamp(180px, 32vh, 340px);
  pointer-events: none;
}

.hero-mountains svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--ink-3);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .32em;
  text-indent: .32em;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 2.4s forwards;
}

.scroll-hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(22, 26, 30, .35), rgba(22, 26, 30, .06));
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  width: 1px;
  height: 30%;
  background: var(--seal);
  animation: scrollDot 2.4s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: -30%; opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

/* ---------- 滚动文字带 ---------- */

.ink-strip {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(235, 229, 217, .25);
}

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

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

.ink-strip-track span {
  display: block;
  padding-right: 2em;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--ink-3);
}

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

/* ---------- 章节标题 ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 2vw, 22px);
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--seal);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
}

.section-en {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-rule {
  flex: 1 1 60px;
  min-width: 40px;
  height: 1px;
  margin-left: 8px;
  background: var(--line);
  align-self: center;
}

.section-head--tight { margin-bottom: clamp(28px, 3.4vw, 44px); }

/* ---------- 文章卡片 ---------- */

.featured {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.featured-side {
  display: grid;
  gap: clamp(28px, 4vw, 50px);
}

.post {
  position: relative;
  isolation: isolate;
  padding-top: clamp(22px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
}

.post::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -5%;
  right: -5%;
  top: 8%;
  bottom: -7%;
  pointer-events: none;
  opacity: 0;
  transform: scale(.72) translateY(12%);
  transform-origin: 22% 100%;
  filter: blur(3px);
  background: radial-gradient(ellipse 88% 82% at 30% 100%,
    rgba(22, 26, 30, .95) 0%,
    rgba(22, 26, 30, .9) 40%,
    rgba(22, 26, 30, .58) 62%,
    rgba(22, 26, 30, 0) 79%);
  transition: opacity .65s ease, transform 1s var(--ease-out);
}

.post:hover::before,
.post:focus-within::before {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.post-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-3);
  transition: color .5s ease, border-color .5s ease;
}

.post-date {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
  transition: color .5s ease;
}

.post-title {
  margin: clamp(16px, 2vw, 26px) 0 0;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.34;
  transition: color .5s ease;
}

.post--lead .post-title {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.28;
}

.post--side .post-title { font-size: clamp(21px, 2.3vw, 29px); }

.post-excerpt {
  margin: 16px 0 0;
  max-width: 48ch;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink-2);
  transition: color .5s ease;
}

.post--lead .post-excerpt { margin-top: clamp(18px, 2.2vw, 26px); }

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(24px, 3.4vw, 44px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
  transition: color .5s ease;
}

.post-arrow {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  transition: transform .5s var(--ease);
}

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

.post-index {
  position: absolute;
  right: 0;
  top: -14px;
  z-index: 0;
  font-family: var(--sans);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(22, 26, 30, .15);
  pointer-events: none;
  transition: -webkit-text-stroke-color .6s ease, transform .8s var(--ease-out);
}

.post:hover .post-index {
  -webkit-text-stroke-color: rgba(243, 240, 232, .26);
  transform: translateY(-4px);
}

.post:hover .post-title { color: var(--paper); }
.post:hover .post-excerpt { color: rgba(243, 240, 232, .74); }
.post:hover .post-tag { color: rgba(243, 240, 232, .88); border-color: rgba(243, 240, 232, .38); }
.post:hover .post-date,
.post:hover .post-foot { color: rgba(243, 240, 232, .64); }

/* ---------- 随笔列表 ---------- */

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

.essay {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 96px 116px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 30px) 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: padding-left .55s var(--ease), padding-right .55s var(--ease);
}

.essay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(90deg, rgba(22, 26, 30, .055), rgba(22, 26, 30, .015) 55%, transparent 85%);
  transition: opacity .5s ease;
}

.essay:hover::before { opacity: 1; }
.essay:hover { padding-left: 16px; padding-right: 12px; }

.essay-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
  transition: color .45s ease;
}

.essay-title {
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.5;
  transition: color .45s ease, transform .55s var(--ease);
}

.essay:hover .essay-num { color: var(--seal); }
.essay:hover .essay-title { transform: translateX(4px); }

.essay-tag {
  justify-self: end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-3);
}

.essay-date {
  justify-self: end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.notes-more {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 48px);
}

.notes-more a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .4s ease, border-color .4s ease, gap .4s ease;
}

.notes-more a:hover {
  color: var(--ink);
  border-color: var(--ink);
  gap: 18px;
}

/* ---------- 关于 ---------- */

.about {
  overflow: hidden;
}

.about::before {
  content: "墨";
  position: absolute;
  right: -3%;
  top: 2%;
  z-index: 0;
  font-size: clamp(240px, 38vw, 560px);
  font-weight: 600;
  line-height: 1;
  color: rgba(22, 26, 30, .028);
  pointer-events: none;
  user-select: none;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about-lead {
  margin: 0 0 22px;
  font-size: clamp(23px, 2.9vw, 34px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
}

.about-body {
  max-width: 54ch;
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 2.15;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.about-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stats strong {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
}

.about-stats span {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-3);
}

.seal-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 54px);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(235, 229, 217, .92), rgba(243, 240, 232, .35));
  box-shadow: 0 30px 70px -48px rgba(22, 26, 30, .5);
}

.seal {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 34px;
  background: var(--seal);
  color: #f6f1e6;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  border-radius: 4px;
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 2px rgba(246, 241, 230, .18), 0 10px 26px -12px rgba(166, 51, 43, .65);
}

.seal-card blockquote {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .12em;
}

.seal-card cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-3);
}

.seal-card-mark {
  position: absolute;
  right: -24px;
  bottom: -48px;
  font-size: 190px;
  line-height: 1;
  color: rgba(22, 26, 30, .035);
  pointer-events: none;
  user-select: none;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 78px) 0 38px;
  background: linear-gradient(to bottom, rgba(235, 229, 217, .3), rgba(235, 229, 217, .7));
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand .brand-seal {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.footer-brand em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 4px;
  vertical-align: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px);
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .35s ease;
}

.footer-nav a:hover { color: var(--ink); }

.footer-motto {
  margin: clamp(38px, 5vw, 56px) 0 0;
  text-align: center;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  color: rgba(22, 26, 30, .13);
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

.footer-bottom a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .35s ease, border-color .35s ease;
}

.footer-bottom a:hover {
  color: var(--seal);
  border-color: rgba(166, 51, 43, .45);
}

.footer-sep { opacity: .5; }

/* ---------- 回到顶部 ---------- */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 45;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(243, 240, 232, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s var(--ease), background-color .35s ease, color .35s ease, border-color .35s ease;
}

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

.to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- 滚动显现 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
  transition: opacity 1.05s var(--ease-out), transform 1.05s var(--ease-out), filter 1.05s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero-side { display: none; }
}

@media (max-width: 900px) {
  .header-date { display: none; }
  .site-nav { margin-right: 0; }
  .featured { grid-template-columns: 1fr; gap: clamp(34px, 6vw, 48px); }
  .featured-side { grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 34px); }
  .about-grid { grid-template-columns: 1fr; }
  .seal-card { max-width: 460px; }
}

@media (max-width: 680px) {
  .container { width: 88vw; }
  .site-header { padding: 18px 0; }
  .site-header.is-scrolled { padding: 12px 0; }
  .brand-seal { width: 31px; height: 31px; font-size: 16px; }
  .brand-name { font-size: 17px; }
  .brand-name em { font-size: 9px; margin-left: 5px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; letter-spacing: .14em; }
  .hero { padding: 118px 0 130px; }
  .hero-eyebrow { letter-spacing: .34em; text-indent: .34em; gap: 12px; }
  .hero-desc { font-size: 13.5px; line-height: 2; }
  .hero-meta { gap: 12px; font-size: 10px; letter-spacing: .14em; }
  .hero-sun { right: 8%; top: 14%; }
  .featured-side { grid-template-columns: 1fr; }
  .essay { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .essay-tag { display: none; }
  .essay-date { font-size: 10px; }
  .section-rule { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-motto { letter-spacing: .2em; text-indent: .2em; }
  .scroll-hint { bottom: 18px; }
}

@media (max-width: 420px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 11.5px; letter-spacing: .08em; }
  .hero-meta span:nth-of-type(2),
  .hero-meta i:nth-of-type(2) { display: none; }
}

/* ---------- 降低动态效果 ---------- */

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

  .veil { display: none; }

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

  .hero-title .char,
  .hero-eyebrow,
  .hero-sub,
  .hero-desc,
  .hero-meta,
  .scroll-hint {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-stroke path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .ink-strip-track,
  .hero-ghost,
  .hero-sun,
  .scroll-hint i::after {
    animation: none;
  }

  .ink-halo { display: none; }

  .post,
  .post::before,
  .post *,
  .essay,
  .essay::before,
  .to-top {
    transition-duration: .001s !important;
  }
}
