/* ==========================================================================
   我的生活日常 · erwinthhl.ink
   手写的静态站点样式表。没有框架，没有预处理器。
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --paper: #f7f2e8;
  --surface: #fffdf8;
  --ink: #221f1b;
  --ink-2: #5f574d;
  --ink-3: #8e8578;
  --line: rgba(34, 31, 27, 0.13);
  --accent: #b4552f;
  --accent-soft: rgba(180, 85, 47, 0.1);
  --moss: #5c7355;
  --shadow: 0 1px 2px rgba(34, 31, 27, 0.04), 0 18px 40px -24px rgba(34, 31, 27, 0.4);
  --maxw: 1140px;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", "STSong", "宋体", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #15120f;
  --surface: #1d1914;
  --ink: #efe7d9;
  --ink-2: #b3a99a;
  --ink-3: #8b8275;
  --line: rgba(239, 231, 217, 0.14);
  --accent: #dd8768;
  --accent-soft: rgba(221, 135, 104, 0.14);
  --moss: #8aa992;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 44px -26px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 8% -8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
    radial-gradient(880px 480px at 102% -4%, color-mix(in srgb, var(--moss) 7%, transparent), transparent 58%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--ink); }

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

/* ---------- 3. 全局小件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 12px 0;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
html[data-theme="dark"] .grain { opacity: 0.12; }

.side-label {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  opacity: 0.6;
  z-index: 40;
  display: none;
  user-select: none;
}
@media (min-width: 1340px) { .side-label { display: block; } }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 1 auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 16.5px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}
.nav { display: flex; gap: 2px; font-size: 14px; margin-left: auto; flex: 0 0 auto; }
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.theme-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.theme-btn:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--accent-soft);
  transform: rotate(-12deg);
}
.theme-btn svg { width: 18px; height: 18px; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -16px rgba(34, 31, 27, 0.8);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--ink) 38%, transparent);
}
.btn-block { width: 100%; margin-top: 16px; }

/* ---------- 6. 首页 hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.eyebrow-sep { opacity: 0.5; }
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.8s infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  margin: 20px 0 22px;
}
.mark { position: relative; color: var(--accent); white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.04em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5c32-6 58 3.5 92-1s58-5 104 0.5' fill='none' stroke='%23b4552f' stroke-width='3.4' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
html[data-theme="dark"] .mark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5c32-6 58 3.5 92-1s58-5 104 0.5' fill='none' stroke='%23dd8768' stroke-width='3.4' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
}
.hero-lede {
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 2;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 46px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.hero-stats dd {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.hero-stats dd small {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-left: 5px;
}

/* 此刻卡片 */
.now-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.now-card::before {
  content: "";
  position: absolute;
  inset: -60% 30% auto -20%;
  height: 260px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.now-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.now-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.8s infinite;
}
.now-time {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 10px 0 8px;
  font-variant-numeric: tabular-nums;
}
.now-date { font-size: 13px; color: var(--ink-2); letter-spacing: 0.03em; }
.ring { position: relative; width: 86px; height: 86px; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  transition: stroke-dashoffset 1s var(--ease);
}
.ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.now-list {
  position: relative;
  display: grid;
  gap: 11px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.now-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}
.now-list span { color: var(--ink-3); letter-spacing: 0.06em; flex: 0 0 auto; }
.now-list strong { font-weight: 500; text-align: right; }

/* ---------- 7. 跑马灯 ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 54px;
}
.ticker-tag {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-list li { display: flex; align-items: center; gap: 10px; }
.ticker-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: 0 0 auto;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. 区块标题 ---------- */
.section { padding-block: clamp(52px, 7vw, 88px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.section-note {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 24em;
  line-height: 1.8;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 9. 手记卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  text-decoration: none;
  border-radius: 20px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.card:hover .card-title { color: var(--accent); }
.card-text {
  font-size: 13.8px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  margin-top: auto;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-more::after { content: "→"; transition: transform 0.3s var(--ease); }
.card:hover .card-more::after { transform: translateX(4px); }

/* ---------- 10. 清单进度 ---------- */
.goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.goal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 15px;
}
.goal-head strong {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--v, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--ink)));
  animation: grow 1.3s var(--ease) both;
}
@keyframes grow { from { width: 0; } to { width: var(--v, 50%); } }
.goal-note {
  margin-top: 15px;
  font-size: 12.6px;
  line-height: 1.85;
  color: var(--ink-3);
}

/* ---------- 11. 影像 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 168px;
  gap: 14px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 13px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(transparent, rgba(14, 11, 9, 0.74));
  opacity: 0.94;
  transition: opacity 0.4s;
}
.g-wide { grid-column: span 4; grid-row: span 2; }
.g-item:nth-child(n + 2) { grid-column: span 2; grid-row: span 2; }

/* ---------- 12. 行动号召 ---------- */
.cta { padding-block: clamp(20px, 3vw, 34px) clamp(56px, 8vw, 96px); }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(32px, 5vw, 60px) clamp(22px, 4vw, 56px);
  box-shadow: var(--shadow);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: -50% 15% auto;
  height: 340px;
  background: radial-gradient(50% 60% at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.cta-text {
  max-width: 32em;
  margin-inline: auto;
  margin-bottom: 26px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-hint { font-size: 12.8px; color: var(--ink-3); letter-spacing: 0.03em; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
  padding-block: 44px 50px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { width: 28px; height: 28px; color: var(--ink-2); margin-top: 3px; }
.footer-title { font-family: var(--serif); font-size: 16.5px; letter-spacing: 0.05em; margin-bottom: 6px; }
.footer-sub { font-size: 12.8px; color: var(--ink-3); line-height: 1.8; }
.footer-nav {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.footer-nav a:hover { color: var(--accent); border-color: currentColor; }
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.4px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* ---------- 14. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s var(--ease), color 0.25s, border-color 0.25s;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 15. 内页头 ---------- */
.page-head {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(26px, 3.5vw, 42px);
}
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(33px, 4.8vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.page-lede {
  max-width: 36em;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.page-meta {
  max-width: 36em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.page-meta strong { font-family: var(--serif); font-size: 15px; color: var(--accent); }

/* ---------- 16. 手记列表 ---------- */
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.chip {
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter-status {
  margin-top: 16px;
  min-height: 20px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.entries {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 60px;
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.entry-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.entry-date span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.entry-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.entry:hover .entry-title { color: var(--accent); }
.entry-text {
  max-width: 46em;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-time {
  padding-top: 4px;
  font-size: 12px;
  text-align: right;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.entry.is-hidden { display: none; }
.empty-state {
  padding: 52px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 17. 关于页 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(50px, 7vw, 88px);
}
.prose p {
  font-size: 15.2px;
  line-height: 2.1;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.84;
  padding: 8px 12px 0 0;
  color: var(--accent);
}
.block-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.timeline li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-time {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.timeline strong { display: block; font-size: 14.2px; font-weight: 600; margin-bottom: 5px; }
.timeline p { font-size: 13px; line-height: 1.85; color: var(--ink-3); }
.about-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.side-card-accent {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 12.4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 2%, transparent);
}
.stat-list { display: grid; gap: 12px; }
.stat-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.stat-list strong {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.side-text { font-size: 13px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 18. 进场动效（JS 挂载，失败则内容照常可见） ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-init.is-in { opacity: 1; transform: none; }
/* 进度条跟着区块一起长出来 */
.reveal-init .bar i { width: 0; animation: none; }
.reveal-init.is-in .bar i { animation: grow 1.3s var(--ease) both; }

/* 从首页跳进来时高亮那一篇 */
.entry:target .entry-title { color: var(--accent); }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .now-card { max-width: 460px; }
  .cards, .goals { grid-template-columns: minmax(0, 1fr); }
  .card-text { -webkit-line-clamp: 6; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .g-wide { grid-column: span 4; grid-row: span 2; }
  .g-item:nth-child(n + 2) { grid-column: span 2; grid-row: span 2; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .header-inner { height: 62px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-text { font-size: 15px; }
  .brand-text em { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .theme-btn { width: 32px; height: 32px; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .entry-date { flex-direction: row; align-items: baseline; gap: 10px; }
  .entry-time { text-align: left; padding-top: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 148px; }
  .g-wide { grid-column: span 2; }
  .g-item:nth-child(n + 2) { grid-column: span 2; grid-row: span 1; }
  .hero-stats { gap: 26px; }
  .footer-copy { font-size: 11.8px; }
}

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { width: 23px; height: 23px; }
  .brand-text { font-size: 13.8px; letter-spacing: 0.02em; }
  .nav a { padding: 7px 7px; font-size: 12.6px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .now-card { padding: 20px; }
  .gallery { grid-auto-rows: 128px; }
}

/* ---------- 20. 无障碍与偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-init { opacity: 1; transform: none; }
}

@media print {
  .site-header, .ticker, .to-top, .grain, .side-label, .cta, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
