﻿/* =========================================================
   志雄读书 · 清新自然风格样式
   ========================================================= */

:root {
  /* 主色板 — 来自清晨林间的光线 */
  --bg: #FAF8F2;          /* 暖米白 */
  --bg-soft: #F1EFE6;     /* 浅奶油 */
  --bg-card: #FFFFFF;     /* 卡片白 */
  --ink: #2E3A2E;         /* 深森林字色 */
  --ink-soft: #5B6B5B;    /* 次要字色 */
  --ink-muted: #8A958A;   /* 辅助字色 */

  --primary: #6B8E5A;     /* 鼠尾草绿 */
  --primary-deep: #4F6E42;/* 深苔藓 */
  --primary-soft: #C7D6BD;/* 嫩芽 */
  --accent: #C9A87C;      /* 沙金色 */
  --accent-soft: #E8D9C0; /* 浅沙金 */

  --leaf-1: #A8C3A4;
  --leaf-2: #BCD1B3;
  --leaf-3: #C5D8BE;

  --border: rgba(107, 142, 90, 0.18);
  --shadow-sm: 0 2px 8px rgba(78, 110, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(78, 110, 66, 0.08);
  --shadow-lg: 0 20px 48px rgba(78, 110, 66, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   基础
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary-deep); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

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

/* =========================================================
   浮动叶片装饰
   ========================================================= */
.floating-leaves {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.floating-leaves .leaf {
  position: absolute;
  width: 22px; height: 22px;
  color: var(--leaf-1);
  opacity: 0.35;
  animation: floatLeaf 18s linear infinite;
}
.leaf-1 { top: 12%;  left: 6%;  animation-delay: 0s;   color: var(--leaf-2); }
.leaf-2 { top: 38%;  right: 8%; animation-delay: -4s;  width: 16px; height: 16px; color: var(--leaf-3); }
.leaf-3 { top: 65%;  left: 10%; animation-delay: -9s;  width: 18px; height: 18px; }
.leaf-4 { top: 82%;  right: 12%; animation-delay: -13s; color: var(--leaf-2); }
.leaf-5 { top: 22%;  left: 88%; animation-delay: -7s;  width: 14px; height: 14px; color: var(--leaf-3); }

@keyframes floatLeaf {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 20px; font-weight: 600;
  color: var(--primary-deep);
}
.brand-mark { font-size: 24px; }
.primary-nav { display: flex; gap: 32px; }
.primary-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: all .3s var(--ease);
  transform: translateX(-50%);
}
.primary-nav a:hover { color: var(--primary-deep); }
.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--primary-deep);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* =========================================================
   首页 Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; bottom: -200px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: "Caveat", cursive;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero-title {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-title .accent {
  color: var(--primary-deep);
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: "";
  position: absolute; bottom: 4px; left: 0; right: 0;
  height: 12px;
  background: var(--primary-soft);
  opacity: 0.5;
  z-index: -1;
  border-radius: 2px;
}
.hero-lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.85;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  max-width: 580px;
}
.hero-meta li {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta strong {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  color: var(--primary-deep);
  font-weight: 600;
}
.hero-meta span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plant-svg {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(107, 142, 90, 0.15));
  animation: plantSway 8s ease-in-out infinite;
}
@keyframes plantSway {
  0%, 100% { transform: rotate(-1deg); }
  50%      { transform: rotate(1.5deg); }
}
.leaf-cluster {
  transform-origin: 200px 360px;
  animation: leafFlutter 6s ease-in-out infinite;
}
.leaf-cluster:nth-child(odd) { animation-delay: -3s; }
@keyframes leafFlutter {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
.visual-caption {
  margin-top: 20px;
  font-family: "Caveat", cursive;
  color: var(--ink-muted);
  font-size: 18px;
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute; bottom: 30px;
  left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 6px;
  z-index: 2;
}
.scroll-hint span {
  width: 3px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =========================================================
   通用区块
   ========================================================= */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 580px;
  margin: 24px auto 0;
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(107, 142, 90, 0.25);
}
.btn-primary:hover {
  background: var(--primary-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107, 142, 90, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.btn-outline {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   关于我
   ========================================================= */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.95;
}
.about-text strong { color: var(--ink); font-weight: 600; }
.about-text em {
  color: var(--primary-deep);
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--primary-soft) 60%);
  padding: 0 4px;
}
.about-quote {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-mark {
  position: absolute;
  top: -10px; left: 24px;
  font-family: "Noto Serif SC", serif;
  font-size: 60px;
  color: var(--primary-soft);
  line-height: 1;
}
.about-quote p {
  font-family: "Noto Serif SC", serif;
  font-size: 19px !important;
  font-style: italic;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
}
.quote-author {
  font-size: 13px;
  color: var(--ink-muted);
}

.about-side { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.info-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  color: var(--primary-deep);
  margin-bottom: 18px;
  font-weight: 600;
}
.reading-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.reading-list li { display: flex; gap: 12px; align-items: flex-start; }
.reading-list .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}
.reading-list strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.reading-list span { font-size: 13px; color: var(--ink-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px;
  background: var(--bg-soft);
  color: var(--primary-deep);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   读书笔记
   ========================================================= */
.notes { background: var(--bg); }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.note-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.note-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.note-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.note-card:hover::before { transform: scaleX(1); }
.note-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-warm {
  background: var(--accent-soft);
  color: #8B6F47;
}
.note-meta time { font-size: 13px; color: var(--ink-muted); }
.note-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.5;
}
.note-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.85;
}
.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-deep);
  transition: gap .25s var(--ease);
}
.card-link:hover { gap: 8px; color: var(--accent); }

/* =========================================================
   推荐书单
   ========================================================= */
.books { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.book-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.book-cover {
  width: 80px; height: 110px;
  margin: 0 auto 16px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .3s var(--ease);
}
.book-card:hover .book-cover { transform: rotate(-5deg) scale(1.05); }
.book-cover[data-color="sage"]   { background: linear-gradient(135deg, #C7D6BD, #A8C3A4); }
.book-cover[data-color="sand"]   { background: linear-gradient(135deg, #E8D9C0, #D4B68A); }
.book-cover[data-color="sky"]    { background: linear-gradient(135deg, #C8DBE6, #94B5C9); }
.book-cover[data-color="rose"]   { background: linear-gradient(135deg, #E8C5C5, #D4A0A0); }
.book-cover[data-color="forest"] { background: linear-gradient(135deg, #A6BFA0, #6B8E5A); }
.book-cover[data-color="cream"]  { background: linear-gradient(135deg, #F0E8D8, #D8C4A3); }
.book-cover[data-color="olive"]  { background: linear-gradient(135deg, #C8C8A4, #9A9A6E); }
.book-cover[data-color="mint"]   { background: linear-gradient(135deg, #C8DCC0, #94B594); }
.book-card h4 {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.book-author { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.book-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; min-height: 42px; }
.book-rating {
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}
.more-link { text-align: center; }

/* =========================================================
   随笔
   ========================================================= */
.essays { background: var(--bg); }
.essays-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.essay-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.essay-item:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}
.essay-date {
  text-align: center;
  padding-right: 32px;
  border-right: 2px dashed var(--primary-soft);
}
.essay-date .d-day {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--primary-deep);
  line-height: 1;
}
.essay-date .d-month {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 1px;
}
.essay-cat {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-soft);
  color: #8B6F47;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 12px;
}
.essay-body h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}
.essay-body p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* =========================================================
   文章归档
   ========================================================= */
.archive { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.timeline {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
}
.time-group { margin-bottom: 48px; position: relative; }
.time-year {
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  color: var(--primary-deep);
  font-weight: 600;
  margin-bottom: 24px;
  padding-left: 130px;
  position: relative;
}
.time-year::before {
  content: "";
  position: absolute;
  left: 72px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--bg);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}
.time-group ul {
  list-style: none;
  padding-left: 130px;
}
.time-group li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.time-group li:hover {
  transform: translateX(6px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.t-date {
  font-size: 13px;
  color: var(--ink-muted);
  min-width: 60px;
  font-family: "Noto Serif SC", serif;
}
.time-group li a {
  flex: 1;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.time-group li a:hover { color: var(--primary-deep); }
.t-cat {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-soft);
  color: var(--primary-deep);
  border-radius: 12px;
}

/* =========================================================
   联系 / 订阅
   ========================================================= */
.contact {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-soft) 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-text .section-title { text-align: left; }
.contact-text .section-title::after { left: 0; transform: none; }
.contact-text p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 20px 0 32px;
}
.contact-text strong { color: var(--primary-deep); }
.socials {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.socials a:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.socials .ico { font-size: 18px; }

.subscribe {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.subscribe h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.form-row input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 15px;
  background: var(--bg);
  font-family: inherit;
  transition: all .25s var(--ease);
  color: var(--ink);
}
.form-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 142, 90, 0.1);
}
.form-row .btn { padding: 14px 22px; }
.form-hint { font-size: 13px; color: var(--ink-muted); text-align: center; }
.form-hint strong { color: var(--primary-deep); font-size: 15px; }
.form-msg {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--primary-deep);
  min-height: 20px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.form-msg.show { opacity: 1; }
.form-msg.error { color: #B85C5C; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  padding: 48px 0;
  background: var(--ink);
  color: var(--primary-soft);
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  color: #fff;
}
.footer-line {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--accent-soft);
  letter-spacing: 1px;
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .plant-svg { max-width: 240px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .notes-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .socials { grid-template-columns: 1fr; }
  .essay-item { grid-template-columns: 80px 1fr; gap: 20px; padding: 24px; }
  .essay-date .d-day { font-size: 32px; }
  .timeline::before { left: 32px; }
  .time-year { padding-left: 70px; font-size: 24px; }
  .time-year::before { left: 24px; width: 16px; height: 16px; }
  .time-group ul { padding-left: 70px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 48px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 12px 28px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta strong { font-size: 22px; }
  .books-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; justify-content: center; }
  .essay-item { grid-template-columns: 1fr; gap: 16px; }
  .essay-date {
    display: flex; align-items: baseline; gap: 12px;
    text-align: left;
    padding: 0 0 12px 0;
    border-right: 0;
    border-bottom: 2px dashed var(--primary-soft);
  }
  .essay-date .d-month { margin-top: 0; }
  .time-group li { flex-wrap: wrap; gap: 8px; }
  .t-date { min-width: auto; }
}
