/* ==========================================================================
   爆护我说了算 · 站点样式
   设计基准：暖白纸感 + 深青绿主色 + 墨色文字。无外部依赖，无字体 CDN。
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  /* 颜色 */
  --paper:        #faf9f5;
  --card:         #ffffff;
  --ink:          #1a241f;
  --ink-2:        #4b5a53;
  --ink-3:        #7b8880;
  --line:         #e4e8e3;
  --line-soft:    #eef1ed;

  --brand:        #0e5d47;
  --brand-dark:   #08402f;
  --brand-soft:   #e9f3ee;
  --brand-tint:   #f3f8f5;

  --amber:        #a9641f;
  --amber-soft:   #fbf1e3;
  --alert:        #b3402f;
  --alert-soft:   #fbeceb;

  /* 字号 */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 40px;

  /* 间距（4px 基） */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* 圆角 */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-full: 999px;

  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(22, 38, 31, .04), 0 2px 8px -4px rgba(22, 38, 31, .10);
  --shadow-2: 0 2px 4px rgba(22, 38, 31, .05), 0 12px 28px -14px rgba(22, 38, 31, .22);

  --max: 1120px;
}

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

/* 作者样式里的 display 会盖掉浏览器对 [hidden] 的默认处理，
   导致 .tag / .row 这类设了 display 的元素藏不住，统一兜一层 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: var(--t-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--brand-soft); color: var(--brand-dark); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: .92em;
  background: rgba(26, 36, 31, .06);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- 3. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s5);
}
.wrap-narrow { max-width: 760px; }

.main { min-height: 62vh; padding-bottom: var(--s8); }

/* flex / grid 子项默认 min-width:auto，遇到不换行的内容会把容器撑破，
   窄屏下表现为整页横向溢出。统一在需要的容器上放开收缩。 */
.hero-inner > *,
.notice > *,
.wrap { min-width: 0; }

.row { display: flex; align-items: center; gap: var(--s3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.spacer { flex: 1; }

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
  font-size: var(--t-lg);
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--brand); }
.logo svg { flex: none; }
.logo-img {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  /* 圆形插画的透明边缘和米白底容易糊在一起，加一圈极淡的描边分开 */
  box-shadow: 0 0 0 1px rgba(14, 93, 71, .10);
}
.logo .logo-sub {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  padding-left: var(--s2);
  border-left: 1px solid var(--line);
  margin-left: var(--s1);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.active { background: var(--brand); color: #fff; }
.nav a.active:hover { background: var(--brand-dark); color: #fff; }

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-sm { padding: 6px 14px; font-size: var(--t-xs); }
.btn-danger { background: var(--alert-soft); color: var(--alert); border-color: #f0d3cf; }
.btn-danger:hover { background: var(--alert); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.8;
}
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-alert { background: var(--alert-soft); color: var(--alert); }
.tag-plain { background: #f0f2ef; color: var(--ink-3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--t-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all .16s ease;
  white-space: nowrap;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* 区块标题 */
.section { margin-top: var(--s8); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.section-head h2 {
  font-size: var(--t-2xl);
  letter-spacing: -.02em;
}
.section-head .desc { color: var(--ink-3); font-size: var(--t-sm); }
.section-head .more { margin-left: auto; font-size: var(--t-sm); font-weight: 600; }

/* 面包屑 */
.crumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-sm);
  color: var(--ink-3);
  padding: var(--s5) 0 0;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb span { color: var(--line); }

/* 提示条 */
.notice {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  font-size: var(--t-sm);
  line-height: 1.6;
  margin: var(--s4) 0;
}
.notice-warn { background: var(--amber-soft); color: #7d4a11; border: 1px solid #f0dfc6; }
.notice-alert { background: var(--alert-soft); color: #8c2f22; border: 1px solid #f2d5d1; }
.notice-info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #d6e8de; }
.notice b { font-weight: 700; }

/* 加载与空态 */
.skeleton {
  background: linear-gradient(100deg, #f0f2ee 30%, #f7f8f5 50%, #f0f2ee 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-title { height: 22px; width: 70%; margin-bottom: 14px; }

.empty {
  text-align: center;
  padding: var(--s8) var(--s5);
  color: var(--ink-3);
  font-size: var(--t-sm);
}
.empty svg { margin: 0 auto var(--s4); opacity: .35; }

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 320px at 78% -18%, rgba(14, 93, 71, .10), transparent 68%),
    radial-gradient(680px 260px at 8% 108%, rgba(169, 100, 31, .07), transparent 70%);
}
.hero::after {
  /* 一层极淡的水波纹，纯装饰 */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q30 8 60 20 T120 20 T180 20 T240 20' fill='none' stroke='%230e5d47' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  align-items: center;
  padding: var(--s8) 0 var(--s8);
}
/* 文案区限宽：与页头 logo 左边界对齐，右侧留白，不撑满整行 */
.hero-inner > div { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s4);
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: .5;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, var(--t-3xl));
  line-height: 1.25;
  /* 中文标题吃不住负字距：-0.03em 在 40px 下是 -1.2px，字会贴到一起 */
  letter-spacing: -.01em;
  margin-bottom: var(--s4);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
  /* 换色的词前后各让开一点，避免和相邻的黑色字黏成一团 */
  padding: 0 .06em;
}
.hero-lede {
  font-size: var(--t-lg);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: var(--s5);
}
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- 7. 文章卡片 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #d5ded8;
}
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--brand-tint);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .tag {
  position: absolute;
  top: var(--s3); left: var(--s3);
  background: rgba(255, 255, 255, .94);
  color: var(--brand-dark);
  backdrop-filter: blur(4px);
}
.thumb-empty {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand);
  background:
    radial-gradient(130px 130px at 50% 45%, rgba(14, 93, 71, .09), transparent 72%),
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(14, 93, 71, .028) 9px 18px);
}
.thumb-empty svg { opacity: .42; }
.post-card .body {
  padding: var(--s4) var(--s5) var(--s5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card h3 {
  font-size: var(--t-lg);
  line-height: 1.45;
  margin-bottom: var(--s2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card .excerpt {
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.7;
  margin-bottom: var(--s4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card .meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-xs);
  color: var(--ink-3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
}
.post-card .meta .dot { color: var(--line); }

/* 精选大卡：横跨整行，避免在 3 列网格里留出孤行 */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.featured-card .thumb {
  aspect-ratio: auto;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: grid;
}
.featured-card .thumb .thumb-empty { min-height: 320px; }
.featured-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .thumb .tag {
  position: absolute;
  top: var(--s4); left: var(--s4);
  background: rgba(255, 255, 255, .94);
  color: var(--brand-dark);
  backdrop-filter: blur(4px);
}
.featured-card .body {
  padding: var(--s7);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card h3 { font-size: var(--t-2xl); letter-spacing: -.02em; margin-bottom: var(--s3); }
.featured-card .excerpt { -webkit-line-clamp: 3; font-size: var(--t-md); margin-bottom: var(--s4); }
.featured-card .meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-xs);
  color: var(--ink-3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s4);
}
.featured-card .meta .dot { color: var(--line); }

/* ---------- 8. 列表页 ---------- */
.page-head { padding: var(--s7) 0 var(--s5); }
.page-head h1 { font-size: var(--t-2xl); letter-spacing: -.02em; margin-bottom: var(--s2); }
.page-head p { color: var(--ink-2); margin: 0; max-width: 62ch; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  padding: var(--s4) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--s6);
  position: sticky;
  top: 64px;
  background: var(--paper);
  z-index: 20;
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 0 var(--s4);
  height: 38px;
  transition: border-color .18s ease;
}
.search-box:focus-within { border-color: var(--brand); }
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--t-sm);
  color: var(--ink);
  width: 160px;
  padding: 0;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box button {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.search-box button:hover { color: var(--brand); }

/* 列表行（不带图时的紧凑样式） */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .18s ease;
}
.post-row:first-child { padding-top: 0; }
.post-row:hover { background: rgba(233, 243, 238, .35); }
.post-row .thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--brand-tint);
}
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.post-row h3 a { color: var(--ink); }
.post-row h3 a:hover { color: var(--brand); }
.post-row p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s3); }
.post-row .meta { font-size: var(--t-xs); color: var(--ink-3); display: flex; gap: var(--s3); align-items: center; }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s7);
  font-size: var(--t-sm);
}
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s4);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--t-sm);
  transition: all .16s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pager-info { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- 9. 详情页 ---------- */
.article-head { padding: var(--s5) 0 var(--s6); }
.article-head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.32;
  letter-spacing: -.025em;
  margin-bottom: var(--s4);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.article-meta .sep { width: 1px; height: 12px; background: var(--line); }

.article-cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s6);
  background: var(--brand-tint);
}
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; }

.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: #26332d;
  max-width: 68ch;
}
.article-body p { margin: 0 0 1.3em; }
.article-body p:last-child { margin-bottom: 0; }

/* 图集 */
.gallery {
  display: grid;
  gap: var(--s3);
  margin: var(--s6) 0;
}
.gallery.g1 { grid-template-columns: 1fr; }
.gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--brand-tint);
  cursor: zoom-in;
  position: relative;
}
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery.g1 figure img { max-height: 640px; object-fit: contain; background: #f4f6f2; }
.gallery figure:hover img { transform: scale(1.02); }
.gallery .more-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 22, .55);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--t-xl);
  font-weight: 700;
}

/* 钓点信息卡 */
.spot-card {
  margin: var(--s6) 0;
  border: 1px solid #d8e6dc;
  background: linear-gradient(180deg, var(--brand-tint), var(--card));
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.spot-card h3 {
  font-size: var(--t-md);
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--brand-dark);
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s3) var(--s4);
}
.spot-grid div { font-size: var(--t-sm); }
.spot-grid span { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.spot-grid b { font-weight: 600; color: var(--ink); }
.spot-loc {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px dashed #cfe2d6;
  font-size: var(--t-sm);
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* 上下篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.post-nav a {
  display: block;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: all .18s ease;
}
.post-nav a:hover { border-color: var(--brand); background: var(--brand-tint); }
.post-nav .dir { font-size: var(--t-xs); color: var(--ink-3); display: block; margin-bottom: var(--s1); }
.post-nav .t {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav .next { text-align: right; }
.post-nav .placeholder { opacity: .4; pointer-events: none; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  margin-top: var(--s9);
  border-top: 1px solid var(--line);
  background: #f5f4ef;
  padding: var(--s7) 0 var(--s6);
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s7);
  margin-bottom: var(--s6);
}
.footer-brand b {
  display: block;
  font-size: var(--t-lg);
  color: var(--ink);
  margin-bottom: var(--s3);
  letter-spacing: -.02em;
}
.footer-brand p { margin: 0; max-width: 40ch; line-height: 1.8; }
.footer-col h4 {
  font-size: var(--t-sm);
  color: var(--ink);
  margin-bottom: var(--s3);
  font-weight: 700;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--ink-3);
  margin-bottom: var(--s2);
  font-size: var(--t-sm);
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- 12. 关于页 ---------- */
.about-hero { padding: var(--s8) 0 var(--s6); border-bottom: 1px solid var(--line-soft); }
.about-hero h1 { font-size: var(--t-3xl); letter-spacing: -.03em; margin-bottom: var(--s3); }
.about-hero p { font-size: var(--t-lg); color: var(--ink-2); max-width: 56ch; }

.prose { max-width: 68ch; font-size: 17px; line-height: 1.9; color: #26332d; }
.prose h2 {
  font-size: var(--t-xl);
  margin: var(--s7) 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: var(--s4); list-style: disc; }
.prose li { margin-bottom: var(--s2); }
.prose dl { margin: 0; }
.prose dt { font-weight: 600; color: var(--ink); margin-top: var(--s4); }
.prose dd { margin: var(--s1) 0 0; color: var(--ink-2); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  margin: var(--s5) 0;
}
.info-table th, .info-table td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
/* 备案号是长串数字+中文，窄屏上不换行会把表格撑破、右侧被裁掉 */
.info-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.info-table th {
  width: 34%;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--brand-tint);
  white-space: nowrap;
}

/* ---------- 13. 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 20, 16, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r);
}
.lightbox .lb-close {
  position: absolute;
  top: var(--s5);
  right: var(--s5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.lightbox .lb-prev { left: var(--s5); }
.lightbox .lb-next { right: var(--s5); }
.lightbox .lb-count {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s7) 0 var(--s8); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .featured-card .thumb { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root {
    --t-3xl: 30px;
    --t-2xl: 23px;
    --s7: 32px;
    --s8: 44px;
    --s9: 56px;
  }
  .wrap { padding: 0 var(--s4); }
  .site-header .wrap { height: 56px; gap: var(--s3); }
  .logo { font-size: 15px; flex: none; }
  .logo-img { width: 28px; height: 28px; }
  .logo .logo-sub { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 5px 9px; font-size: var(--t-xs); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: var(--s4); }
  .featured-card { grid-column: 1 / -1; }

  .post-row { grid-template-columns: 96px 1fr; gap: var(--s3); }
  .post-row .thumb { aspect-ratio: 1 / 1; }

  .filter-bar { top: 56px; padding: var(--s3) 0; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }

  .article-body { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }


  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .site-footer { margin-top: var(--s7); }

  .gallery.g3 { grid-template-columns: repeat(2, 1fr); }
  .about-hero h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印：详情页打印时去掉导航与装饰 */
@media print {
  .site-header, .site-footer, .post-nav, .hero::after, .filter-bar { display: none !important; }
  body { background: #fff; }
  .article-body { max-width: none; }
}
