:root {
  --bg: #f3f0e8;
  --ink: #2e2c26;
  --dim: #5f5a4c;
  --faint: #7a7464;
  --line: #ddd8c9;
  --accent: #7d7458;
  --card-hover: #eceade;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.en {
  font-family: "Baskerville", "Palatino", "Palatino Linotype", "Garamond", "Georgia", serif;
}

/* ---------- 顶栏 ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.logo-cap {
  font-size: 1.55em;
  line-height: 1;
  vertical-align: -0.06em;
  margin-right: 0.02em;
}

.logo span,
.logo .logo-tld {
  color: var(--dim);
  font-weight: 300;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: color 0.3s;
  white-space: nowrap;
}

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

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 首屏 ---------- */
.hero {
  text-align: center;
  padding: 110px 0 90px;
}

.epitaph-line {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 400;
  min-height: 2.2em;
  transition: opacity 0.8s;
}

.hero-sub {
  color: var(--dim);
  font-size: 14px;
  margin-top: 28px;
  line-height: 2.1;
}

.hero-sub .en {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-top: 10px;
  color: var(--faint);
}

.vital-sign {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 8px 22px;
  border-radius: 999px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fae8f;
  animation: beat 2.4s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- 分区 ---------- */
section {
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sec-head h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.sec-head .en {
  color: var(--faint);
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.sec-desc {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 40px;
}

/* ---------- 碑林 ---------- */
.steles {
  display: grid;
  gap: 0;
}

.steles a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}

.steles a:hover {
  background: var(--card-hover);
  padding-left: 20px;
}

.steles .title {
  font-size: 19px;
  font-weight: 400;
}

.steles .meta {
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
}

.steles .excerpt {
  font-size: 14px;
  color: var(--dim);
  margin-top: 10px;
  max-width: 620px;
}

/* ---------- 陪葬品 · 自制封面 ---------- */
.bcover {
  position: relative;
  aspect-ratio: var(--cratio, 3 / 4);
  background: var(--cbg);
  color: var(--cink);
  overflow: hidden;
  border: 1px solid rgba(46, 44, 38, 0.18);
}

/* 细网点纹理，让纯色底有印刷感 */
.bcover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.8;
  pointer-events: none;
}

/* 内框线，像书封的压印边 */
.bcover::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

.bcover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcover-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 13% 12%;
}

.bc-kind {
  font-size: 10px;
  letter-spacing: 0.28em;
  opacity: 0.62;
  white-space: nowrap;
}

.bc-mark {
  margin-top: auto;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
}

.bc-rule {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  margin: 12px 0 10px;
}

.bc-title {
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-by {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.5;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 陪葬品 · 首页轮播 ---------- */
.carousel {
  position: relative;
}

.car-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.car-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
}

.car-card .bcover {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.car-card:hover .bcover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(46, 44, 38, 0.18);
}

.car-card-txt {
  padding: 14px 2px 0;
}

.car-card-title {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.car-card-line {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-card-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
}

.car-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.car-arrow {
  font-family: inherit;
  font-size: 14px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
}

.car-arrow:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--accent);
}

.car-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.car-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.car-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.car-dot.on {
  background: var(--accent);
  transform: scale(1.4);
}

/* ---------- 陪葬品 · 瀑布流列表页 ---------- */
.burial-wall-head {
  text-align: center;
  padding: 70px 0 34px;
}

.kind-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.kind-chip {
  font-family: inherit;
  font-size: 13px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.kind-chip:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.kind-chip.on {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(125, 116, 88, 0.1);
}

.burial-wall {
  columns: 3;
  column-gap: 16px;
  padding-bottom: 20px;
}

.burial-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 28px;
  text-decoration: none;
  color: inherit;
}

.burial-card.hide {
  display: none;
}

.burial-card .bcover {
  transition: transform 0.4s ease;
}

.burial-card:hover .bcover {
  transform: translateY(-3px);
}

.burial-card-body {
  padding: 12px 2px 0;
}

.burial-card-body h3 {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.burial-card-body p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.75;
}

.burial-card-meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
}

/* ---------- 陪葬品 · 内页 ---------- */
.burial-detail {
  max-width: 640px;
  margin: 0 auto;
  padding: 70px 24px 30px;
  text-align: center;
}

.burial-stage {
  width: min(258px, 62%);
  margin: 0 auto 44px;
  box-shadow: 0 22px 48px rgba(46, 44, 38, 0.2);
}

.burial-kicker {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.22em;
}

.burial-title {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 14px 0 16px;
}

.burial-line {
  font-size: 15px;
  color: var(--dim);
}

.burial-date {
  margin-top: 16px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.18em;
}

.burial-body {
  margin-top: 50px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.burial-body p {
  font-size: 16.5px;
  line-height: 2.15;
  margin-bottom: 26px;
  color: var(--ink);
}

/* ---------- 阳间志 · 内页碑面 ---------- */
.bcover-plate .plate-art {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12% 10%;
}

.bcover-plate .bc-kind {
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.plate-mark {
  font-size: clamp(50px, 8.6vw, 92px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
}

.bcover-plate .bc-rule {
  margin: 22px 0 18px;
  opacity: 0.4;
}

.plate-foot {
  margin-top: 0;
  letter-spacing: 0.16em;
  opacity: 0.5;
}

/* ---------- 阳间志 · 长文正文块 ---------- */
.ledger-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 48px 0 18px;
  color: var(--accent);
}

.ledger-body blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--line);
  color: var(--dim);
  font-size: 15.5px;
  line-height: 2;
}

.ledger-body ol {
  margin: 0 0 26px;
  padding-left: 22px;
}

.ledger-body ol li {
  font-size: 16.5px;
  line-height: 2.1;
  margin-bottom: 14px;
  color: var(--ink);
}

/* 搬运来的公众号配图：居中、描边、不撑破版心 */
.ledger-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border: 1px solid var(--line);
  background: #fffef9;
}

.lg-draft-note {
  margin-top: 34px;
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---------- 阳间志 · 列表页（时间线） ---------- */
.ledger-head {
  text-align: center;
  padding: 70px 0 34px;
}

.ledger-line {
  border-left: 1px solid var(--line);
  margin: 10px 0 0 6px;
  padding-left: 26px;
}

.lg-group {
  margin-bottom: 42px;
}

.lg-ym {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.24em;
  margin-bottom: 6px;
}

.lg-row {
  position: relative;
  display: block;
  padding: 22px 8px;
  border-bottom: 1px dashed #d0cab9;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, padding-left 0.3s;
}

.lg-row:hover {
  background: var(--card-hover);
  padding-left: 18px;
}

.lg-row::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--faint);
  transform: rotate(45deg);
}

.lg-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}

.lg-draft {
  font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.1em;
}

.lg-series {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.lg-date {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.14em;
}

.lg-main {
  margin-top: 4px;
}

.lg-row h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 7px 0 6px;
}

.lg-row p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.95;
}

.lg-words {
  margin-top: 9px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.14em;
}

.lg-empty {
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
  padding: 36px 0 20px;
  letter-spacing: 0.08em;
}

/* 首页阳间志条目：标题可点 + 底部字数行 */
.ledger-item .title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.ledger-item .title a:hover {
  border-bottom-color: var(--faint);
}

.lg-row-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.lg-row-foot a {
  color: var(--faint);
  text-decoration: none;
}

.lg-row-foot a:hover {
  color: var(--ink);
}

/* ---------- 阳间志 ---------- */
.ledger {
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 28px;
}

.ledger-item {
  position: relative;
  padding-bottom: 34px;
}

.ledger-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--faint);
  transform: rotate(45deg);
}

.ledger-item .date {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.15em;
}

.ledger-item .title {
  font-size: 16px;
  margin: 6px 0;
}

.ledger-item p {
  font-size: 14px;
  color: var(--dim);
  max-width: 640px;
}

.tag {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

/* ---------- 显影 · 首页轮播（交叉淡化） ---------- */
.dev-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #232019;
}

.dev-slide {
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none; /* 隐藏帧不接收点击，避免穿透到层叠在上面的帧 */
}

.dev-slide.on {
  opacity: 1;
  pointer-events: auto;
}

.dev-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 42%);
}

.dev-cap {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  max-width: 78%;
  text-align: right;
  color: rgba(240, 236, 222, 0.94);
  font-size: 13.5px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.dev-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dev-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dev-dot.on {
  background: var(--accent);
  transform: scale(1.35);
}

/* ---------- 显影 · 列表页（缩略图瀑布流） ---------- */
.photo-wall-head {
  text-align: center;
  padding: 70px 0 34px;
}

.photo-wall {
  columns: 3;
  column-gap: 14px;
  padding-bottom: 20px;
}

.photo-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 24px;
  text-decoration: none;
  color: inherit;
}

.photo-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d8d3c2;
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover .photo-thumb img {
  transform: scale(1.03);
}

.photo-cap {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.75;
}

.photo-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
}

/* ---------- 显影 · 内页 ---------- */
.photo-stage {
  margin: 0 0 40px;
  border: 1px solid var(--line);
}

.photo-stage img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 足迹 · 点阵地图 ---------- */
.fp-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.fp-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fp-prov {
  fill: none;
  stroke: #d9d4c3;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke 0.3s, stroke-width 0.25s;
}

.fp-prov:hover {
  stroke: #b5ae9c;
}

.fp-jd {
  fill: none;
  stroke: #a9a190;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.fp-inset-frame {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.fp-inset .fp-prov {
  stroke-width: 4;
}

.fp-inset-cap {
  font-size: 14px;
  fill: var(--faint);
  letter-spacing: 0.3em;
  text-anchor: middle;
  font-family: inherit;
}

/* 点亮的区域（去过的市县内部铺满点） */
.fp-lit {
  fill: none;
  stroke: #3a372e;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.fp-label {
  font-size: 13px;
  fill: var(--ink);
  letter-spacing: 0.05em;
  paint-order: stroke;
  stroke: rgba(243, 240, 232, 0.92);
  stroke-width: 4;
  font-family: inherit;
}

.fp-wrap.lit .fp-lit {
  animation: litIn 0.6s ease forwards;
  animation-delay: var(--d, 0ms);
}

.fp-wrap.lit .fp-label {
  animation: litIn 0.6s ease forwards;
  animation-delay: 2.1s;
}

@keyframes litIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 完成比例 */
.fp-stats {
  max-width: 760px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.fp-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-stat-name {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.fp-bar {
  flex: 1;
  height: 6px;
  background: #e6e1d0;
  border-radius: 999px;
  overflow: hidden;
}

.fp-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.fp-stat-num {
  font-size: 12.5px;
  color: var(--ink);
}

.fp-stat-num i {
  font-style: normal;
  color: var(--faint);
  font-size: 11px;
}

.fp-line {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.9;
}

@media (prefers-reduced-motion: no-preference) {
  .fp-lit,
  .fp-label {
    opacity: 0;
  }

  .fp-bar i {
    width: 0;
  }

  .fp-wrap.lit ~ .fp-stats .fp-bar i {
    width: var(--w, 0%);
  }
}

@media (max-width: 760px) {
  .fp-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fp-label {
    font-size: 14.5px;
  }
}

/* ---------- 坟头草 ---------- */
.sec-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.sec-more:hover {
  color: var(--ink);
}

.weeds {
  list-style: none;
}

.weed-item a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 8px;
  border-bottom: 1px dashed #d0cab9;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, padding-left 0.3s;
}

.weed-item a:hover {
  background: var(--card-hover);
  padding-left: 18px;
}

.weed-item .weed-emoji {
  flex: 0 0 24px;
  font-size: 17px;
  line-height: 1.9;
}

.weed-item p {
  flex: 1;
  font-size: 14.5px;
  color: var(--dim);
}

.weed-item .d {
  flex: 0 0 42px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-align: right;
}

.weed-item.weed-hidden {
  display: none;
}

.weed-more-wrap {
  text-align: center;
  padding: 26px 0 6px;
}

#weed-more {
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 26px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

#weed-more:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* 坟头草 · 瀑布流列表页 */
.weed-wall-head {
  text-align: center;
  padding: 70px 0 40px;
}

.weed-wall-sub {
  color: var(--dim);
  font-size: 14px;
}

.weed-wall {
  columns: 3;
  column-gap: 14px;
}

.weed-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 14px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, transform 0.3s;
}

.weed-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.weed-card-emoji {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.weed-card p {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.9;
}

.weed-card-date {
  display: block;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.12em;
}

/* 坟头草 · 碎念内页 */
.weed-detail {
  max-width: 620px;
  margin: 0 auto;
  padding: 70px 24px 30px;
  text-align: center;
}

.weed-back {
  display: inline-block;
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  margin-bottom: 40px;
}

.weed-back:hover {
  color: var(--ink);
}

.weed-detail-emoji {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 30px;
}

.weed-detail-text {
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 2;
  color: var(--ink);
  font-weight: 400;
}

.weed-detail-date {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.18em;
}

.weed-stats {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.weed-stat {
  font-size: 13.5px;
  color: var(--dim);
}

.weed-vote {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.weed-vote:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.weed-vote.voted {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(125, 116, 88, 0.1);
}

.weed-stats-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--faint);
}

.weed-adjacent {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.weed-adj {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  line-height: 1.9;
  max-width: 46%;
}

.weed-adj:hover {
  color: var(--ink);
}

.weed-adj-label {
  display: block;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.weed-adj-right {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 900px) {
  .weed-wall {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .weed-wall {
    columns: 1;
  }

  .weed-adjacent {
    flex-direction: column;
  }

  .weed-adj {
    max-width: 100%;
  }

  .weed-adj-right {
    text-align: left;
    margin-left: 0;
  }
}

/* ---------- 未来之碑 ---------- */
.future {
  border: 1px solid var(--line);
  padding: 40px;
  text-align: center;
}

.future .en {
  color: var(--faint);
  letter-spacing: 0.3em;
  font-size: 12px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.future p {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 18px;
}

.future .ghost {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- 守则页 ---------- */
.rules-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.rules-kicker {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.rules-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin: 14px 0 8px;
}

.rules-sub {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 60px;
}

.rule {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
}

.rule .no {
  font-size: 26px;
  color: var(--faint);
  font-weight: 300;
}

.rule h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.rule p {
  font-size: 14.5px;
  color: var(--dim);
}

.rules-sign {
  margin-top: 60px;
  text-align: right;
  color: var(--dim);
  font-size: 14px;
}

.rules-sign .en {
  display: block;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.25em;
  margin-top: 6px;
}

.rules-back {
  display: block;
  text-align: center;
  margin: 60px 0 30px;
  color: var(--faint);
  font-size: 13px;
  text-decoration: none;
}

.rules-back:hover {
  color: var(--ink);
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 50px 24px 70px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

footer a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--faint);
}

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

footer .en {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
}

/* ---------- 碑文正文页 ---------- */
.stele-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.stele-kicker {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.stele-title {
  font-size: 26px;
  line-height: 1.65;
  font-weight: 600;
  text-align: center;
  margin: 20px 0 16px;
  letter-spacing: 0.01em;
}

.stele-meta {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 52px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
}

.stele-body p {
  font-size: 16.5px;
  color: var(--ink);
  line-height: 2.15;
  margin-bottom: 28px;
}

.stele-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 50px 0 20px;
  color: var(--accent);
}

.stele-body blockquote {
  margin: 34px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--line);
  color: var(--dim);
  font-size: 15.5px;
  line-height: 2;
}

.stele-body ol {
  margin: 0 0 30px 0;
  padding-left: 22px;
}

.stele-body ol li {
  font-size: 16.5px;
  line-height: 2.1;
  margin-bottom: 16px;
  color: var(--ink);
}

.stele-body ol li b {
  font-weight: 600;
}

.stele-sign {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 2;
}

.stele-back {
  display: block;
  text-align: center;
  margin: 56px 0 30px;
  color: var(--faint);
  font-size: 13px;
  text-decoration: none;
}

.stele-back:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .stele-page {
    padding: 60px 20px 30px;
  }

  .stele-title {
    font-size: 22px;
  }

  .stele-body p,
  .stele-body ol li {
    font-size: 16px;
    line-height: 2.05;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .car-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }

  .burial-wall {
    columns: 2;
  }

  .burial-detail {
    padding: 56px 20px 30px;
  }

  .burial-title {
    font-size: 23px;
  }

  .burial-body p {
    font-size: 16px;
    line-height: 2.05;
  }

  .photo-wall {
    columns: 2;
  }

  .dev-stage {
    aspect-ratio: 4 / 3;
  }

  .fp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
  }

  .nav-links {
    gap: 2px 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  main {
    padding: 0 20px;
  }

  .hero {
    padding: 76px 0 66px;
  }

  section {
    padding: 56px 0 24px;
  }

  .rule {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .car-card {
    flex: 0 0 74%;
  }

  .burial-wall {
    columns: 1;
  }

  .burial-wall-head {
    padding: 52px 0 26px;
  }

  .burial-stage {
    width: 56%;
  }

  .ledger-head {
    padding: 52px 0 26px;
  }

  .ledger-line {
    margin-left: 4px;
    padding-left: 18px;
  }

  .lg-row::before {
    left: -23px;
  }

  .photo-wall {
    columns: 1;
  }

  .dev-stage {
    aspect-ratio: 1 / 1;
  }

  .photo-wall-head {
    padding: 52px 0 26px;
  }
}

@media (max-width: 420px) {
  .weed-item a {
    gap: 10px;
  }

  .weed-item .d {
    flex: 0 0 38px;
  }
}

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

  .pulse {
    animation: none;
    opacity: 1;
  }
}

/* ---------- 陪葬品 · 老式磁带播放器（音源外链） ---------- */
.tape {
  margin-top: 44px;
}

.tape-shell {
  position: relative;
  background: linear-gradient(180deg, #3b352a, #262119);
  border: 1px solid #4c4534;
  border-radius: 10px;
  padding: 16px 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 22px rgba(46, 44, 38, 0.28);
}

/* 四角螺丝 */
.tape-shell::before,
.tape-shell::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6d6553, #1f1b14);
}

.tape-shell::before { left: 8px; top: 8px; }
.tape-shell::after { right: 8px; top: 8px; }

.tape-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: #f3f0e8;
  color: #3a372e;
  border: 1px solid #d8d2bf;
  border-radius: 4px;
  padding: 9px 14px;
}

.tape-side {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8a8471;
  flex: none;
}

.tape-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-total {
  font-size: 12px;
  color: #8a8471;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.tape-window {
  margin-top: 14px;
  background: #1b1812;
  border: 1px solid #453e2f;
  border-radius: 6px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.tape-reel {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0e0c09;
  border: 3px solid #57503f;
  flex: none;
}

.tape-reel i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 3px;
  margin: -1.5px 0 0 -6.5px;
  border-radius: 2px;
  background: #57503f;
}

.tape-reel i:nth-child(1) { transform: rotate(0deg) translateX(13px); }
.tape-reel i:nth-child(2) { transform: rotate(60deg) translateX(13px); }
.tape-reel i:nth-child(3) { transform: rotate(120deg) translateX(13px); }
.tape-reel i:nth-child(4) { transform: rotate(180deg) translateX(13px); }
.tape-reel i:nth-child(5) { transform: rotate(240deg) translateX(13px); }
.tape-reel i:nth-child(6) { transform: rotate(300deg) translateX(13px); }

.tape.on .tape-reel {
  animation: tape-spin 1.8s linear infinite;
}

/* 右轮磁带越放越少，转得稍快一点 */
.tape.on .tape-reel-r {
  animation: tape-spin 1.4s linear infinite;
}

@keyframes tape-spin {
  to { transform: rotate(360deg); }
}

.tape-line {
  width: min(120px, 24%);
  height: 2px;
  background: linear-gradient(90deg, #57503f, #332d22);
  flex: none;
}

.tape-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.tape-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #4c4534;
  background: #f3f0e8;
  color: #3a372e;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: background 0.3s, transform 0.2s;
}

.tape-btn:hover { background: #e9e3d1; }
.tape-btn:active { transform: scale(0.94); }

.tape-progress {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.tape-track {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #d8d2bf;
  overflow: hidden;
}

.tape-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s linear;
}

.tape-time {
  font-size: 12px;
  color: #8a8471;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
  flex: none;
}

.tape-src {
  margin-top: 10px;
  font-size: 12.5px;
  color: #8a8471;
}

.tape-src a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tape-fail-note {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8a3a2a;
}

.tape.fail .tape-ctrl,
.tape.fail .tape-window {
  opacity: 0.4;
  pointer-events: none;
}

.tape.fail .tape-fail-note {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .tape.on .tape-reel { animation: none; }
}

/* ---------- 手机发布 · 动态条目与灯箱 ---------- */
.weed-dyn a,
.weed-card.weed-dyn,
.photo-card.weed-dyn {
  position: relative;
}

.weed-dyn::after,
.weed-card.weed-dyn::after,
.photo-card.photo-dyn::after {
  content: "新";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  line-height: 1;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.1em;
}

.weed-item.weed-dyn a {
  cursor: default;
}

.weed-card.weed-dyn {
  cursor: default;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 18, 14, 0.86);
  padding: 40px 20px;
  overflow-y: auto;
}

#lightbox.on {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lightbox-box {
  max-width: 560px;
  width: 100%;
  background: #f3f0e8;
  border: 1px solid var(--line);
  padding: 18px 18px 20px;
}

.lightbox-box img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox-cap {
  margin-top: 14px;
  font-size: 15px;
  color: #3a372e;
}

.lightbox-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8a8471;
}

.lightbox-text {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #d0cab9;
}

.lightbox-text p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #55503f;
}

/* ---------- 阳间志 · 外链碑（正文在公众号的连载） ---------- */
.lg-link-tag {
  font-size: 10.5px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.1em;
}

.ledger-src {
  margin: 30px 0 10px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1.9;
  color: #55503f;
}

.ledger-src a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
