/* 主题变量统一由 ../shared/tokens.css 提供 */

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--bg);
}

body {
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.story-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.story-page::before,
.story-page::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.story-page::before {
  background: var(--progressive-bg-image, url("./assets/story-village-bg-low.webp")) center top / cover no-repeat;
}

.story-page::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.78) 0%, rgba(4, 7, 10, 0.28) 28%, rgba(6, 9, 10, 0.88) 78%, #071017 100%),
    radial-gradient(ellipse at 18% 20%, rgba(255, 175, 76, 0.13), transparent 36%),
    radial-gradient(ellipse at 78% 14%, rgba(39, 23, 10, 0.58), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.54));
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 78px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
  width: min(1180px, calc(100% - 56px));
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(44px, 7vh, 88px) 0 clamp(48px, 8vh, 84px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-hot);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 0;
  color: #fff0cb; /* 回退色 */
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  background: linear-gradient(176deg, #fff6e0 0%, #ffe6b0 52%, var(--xh-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 18px rgba(244, 200, 121, 0.18));
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 241, 210, 0.8);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.story-button,
.filter-chip,
.log-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(255, 241, 210, 0.9);
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.1), rgba(72, 51, 33, 0.2));
  box-shadow: inset 0 0 18px rgba(255, 234, 190, 0.035), 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(12px);
}

.story-button {
  min-width: 168px;
  padding: 0 24px;
}

.story-button.is-primary {
  border-color: rgba(255, 217, 151, 0.66);
  color: #fff8e6;
  background: var(--xh-grad-gold);
  box-shadow: 0 12px 30px rgba(220, 125, 40, 0.24), inset 0 0 18px rgba(255, 246, 222, 0.1);
}

.story-button:hover,
.story-button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.active,
.log-card:hover .log-action,
.log-action:focus-visible {
  border-color: var(--border-hot);
  background: linear-gradient(180deg, rgba(255, 239, 194, 0.22), rgba(132, 82, 34, 0.28));
  box-shadow: 0 13px 30px rgba(255, 166, 49, 0.18), 0 0 20px rgba(255, 190, 90, 0.1), inset 0 0 22px rgba(255, 238, 190, 0.09);
  transform: translateY(-2px);
}

.filter-chip.active {
  color: #2c1a0b;
  background: var(--xh-grad-gold);
}

.hero-lantern,
.content-section,
.weekly-board,
.log-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 232, 170, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(32, 29, 23, 0.76), rgba(13, 17, 16, 0.78));
  box-shadow: 0 18px 48px var(--shadow), inset 0 0 24px rgba(255, 234, 190, 0.035);
  backdrop-filter: blur(16px);
}

.hero-lantern {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 8px;
}

.lantern-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(244, 200, 121, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 244, 204, 0.88) 0 18%, rgba(255, 190, 88, 0.76) 42%, rgba(108, 61, 20, 0.38) 100%);
  box-shadow: 0 0 24px rgba(255, 184, 76, 0.36), inset 0 0 12px rgba(255, 247, 212, 0.18);
}

.hero-lantern strong {
  display: block;
  color: #ffe2a7;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

/* 扫码入村卡：二维码保持白底黑码原样（保证可扫），外框融入金边夜色 */
.join-card {
  text-align: center;
}

.join-qr {
  display: inline-block;
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(244, 200, 121, 0.55);
  border-radius: 14px;
  box-shadow: 0 0 26px rgba(255, 184, 76, 0.22), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.join-qr img {
  display: block;
  width: 210px;
  height: auto;
  border-radius: 6px;
}

.join-card p {
  text-align: center;
}

.hero-lantern p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.content-section {
  width: min(1180px, calc(100% - 56px));
  margin: 24px auto 0;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.content-section h2,
.weekly-board h2 {
  margin: 0;
  color: #ffe2a7;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 500;
}

.split-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.section-heading {
  margin-bottom: 22px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.glass-card {
  min-width: 0;
  min-height: 290px;
  padding: 22px 20px;
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-md);
  background: rgba(10, 12, 10, 0.34);
  box-shadow: inset 0 0 20px rgba(255, 234, 190, 0.025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.glass-card:hover {
  border-color: var(--xh-border-hot);
  box-shadow: var(--xh-glow-gold), inset 0 0 20px rgba(255, 234, 190, 0.04);
  transform: translateY(-3px);
}

.card-index {
  display: block;
  color: var(--xh-gold-deep);
  font-family: var(--xh-font-serif);
  font-size: 30px;
  line-height: 1;
  opacity: 0.75;
}

.glass-card h3 {
  margin: 16px 0 12px;
  color: #ffdca1;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.glass-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.glass-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.glass-card dl div {
  display: grid;
  gap: 4px;
}

.glass-card dt {
  color: rgba(255, 191, 104, 0.78);
  font-size: 12px;
}

.glass-card dd {
  margin: 0;
  color: rgba(255, 241, 210, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.growth-path {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.growth-path li {
  position: relative;
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 200, 121, 0.24);
  border-radius: 8px;
  color: #fff1d2;
  background: rgba(12, 12, 10, 0.32);
  text-align: center;
  line-height: 1.45;
}

.growth-path li::after {
  position: absolute;
  right: -9px;
  top: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.growth-path li:last-child::after {
  display: none;
}

.belief-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.belief-list p {
  display: grid;
  min-height: 96px;
  margin: 0;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(244, 200, 121, 0.24);
  border-radius: 8px;
  color: #ffe2a7;
  background: linear-gradient(180deg, rgba(255, 190, 88, 0.11), rgba(10, 12, 10, 0.3));
  font-size: 18px;
  text-align: center;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-md);
  background: rgba(10, 12, 10, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: var(--xh-border-hot);
  box-shadow: var(--xh-shadow-md), var(--xh-glow-gold);
  transform: translateY(-2px);
}

.entry-card span {
  color: #ffdca1;
  font-family: var(--font-serif);
  font-size: 24px;
}

.entry-card strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.log-hero {
  min-height: 450px;
}

.filter-section {
  margin-top: -24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip {
  min-width: 96px;
  min-height: 44px;
  padding: 0 16px;
}

.log-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  width: min(1180px, calc(100% - 56px));
  margin: 24px auto 0;
  align-items: start;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline-list::before {
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(244, 200, 121, 0.12), rgba(244, 200, 121, 0.62), rgba(244, 200, 121, 0.12));
}

.log-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  min-width: 0;
  margin-left: 38px;
  padding: 22px;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.log-card::before {
  position: absolute;
  left: -26px;
  top: 30px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: #ffe1a3;
  box-shadow: 0 0 0 7px rgba(244, 200, 121, 0.12), 0 0 18px rgba(255, 212, 132, 0.9);
}

.log-card:hover {
  border-color: rgba(255, 218, 143, 0.58);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 26px rgba(255, 190, 90, 0.16);
  transform: translateY(-2px);
}

.log-date {
  color: rgba(255, 241, 210, 0.62);
  font-size: 14px;
}

.log-category {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 11px;
  border: 1px solid rgba(244, 200, 121, 0.28);
  border-radius: 999px;
  color: #ffc777;
  background: rgba(255, 184, 76, 0.1);
  font-size: 12px;
}

.log-card h3 {
  margin: 0;
  color: #ffe2a7;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
}

.log-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.log-meta span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 200, 121, 0.18);
  border-radius: 999px;
  color: rgba(255, 241, 210, 0.72);
  background: rgba(10, 12, 10, 0.3);
  font-size: 12px;
}

.log-action {
  min-width: 96px;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.weekly-board {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 8px;
}

.weekly-board dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.weekly-board dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(244, 200, 121, 0.16);
}

.weekly-board dt {
  color: var(--muted);
}

.weekly-board dd {
  margin: 0;
  color: #ffe2a7;
}

.empty-log {
  margin: 0 0 0 38px;
  padding: 28px;
  border: 1px dashed rgba(244, 200, 121, 0.3);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(10, 12, 10, 0.26);
}

@media (max-width: 1180px) {
  .hero-section,
  .log-shell {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-lantern,
  .weekly-board {
    max-width: 640px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-path,
  .belief-list,
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-path li::after {
    display: none;
  }

  .weekly-board {
    position: static;
  }
}

@media (max-width: 760px) {
  main {
    padding-bottom: 42px;
  }

  .story-page::before {
    background-position: center top;
  }

  .hero-section {
    gap: 22px;
    padding: 34px 18px 28px;
  }

  .hero-section h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.82;
  }

  .hero-actions,
  .filter-bar {
    gap: 10px;
  }

  .story-button {
    width: 100%;
    min-height: 48px;
  }

  .content-section,
  .log-shell {
    width: calc(100% - 28px);
  }

  .content-section {
    margin-top: 16px;
    padding: 20px 16px;
  }

  .split-section,
  .direction-grid,
  .growth-path,
  .belief-list,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 16px;
  }

  .split-section > p {
    font-size: 15px;
  }

  .glass-card {
    min-height: auto;
  }

  .filter-section {
    margin-top: 0;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .timeline-list::before {
    left: 10px;
  }

  .log-card {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-left: 25px;
    padding: 18px 16px;
  }

  .log-card::before {
    left: -20px;
    top: 24px;
  }

  .log-card h3 {
    font-size: 22px;
  }

  .log-action {
    width: 100%;
  }

  .weekly-board {
    padding: 20px 16px;
  }
}

.is-reference-layout {
  min-height: 100svh;
  overflow: hidden;
}

.is-reference-layout::before {
  background: var(--progressive-bg-image, url("./assets/log-reference-bg-low.webp")) center top / cover no-repeat;
}

.is-reference-layout::after {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.78) 0%, rgba(3, 5, 8, 0.32) 27%, rgba(4, 6, 6, 0.42) 58%, rgba(3, 4, 4, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.24) 39%, rgba(0, 0, 0, 0.04) 64%, rgba(0, 0, 0, 0.34) 100%);
}

.is-reference-layout .site-header {
  height: 96px;
  padding: 0 clamp(58px, 4.8vw, 84px);
}

.is-reference-layout main {
  padding-bottom: 0;
}

.log-stage {
  height: calc(100svh - 96px);
  min-height: 760px;
  overflow: hidden;
}

.log-visual-hero {
  width: min(1680px, calc(100% - 132px));
  margin: 0 auto;
  padding-top: clamp(26px, 4.4vh, 48px);
}

.log-copy {
  max-width: 700px;
}

.log-copy h1 {
  margin: 0;
  color: #fff0cf; /* 回退色 */
  font-family: var(--font-serif);
  font-size: clamp(58px, 4.5vw, 86px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  background: linear-gradient(176deg, #fff6e0 0%, #ffe6b0 52%, var(--xh-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 18px rgba(255, 207, 130, 0.18));
}

.log-subtitle {
  margin: 12px 0 10px;
  color: rgba(255, 237, 200, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.62vw, 29px);
  line-height: 1.3;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58);
}

.log-desc {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 239, 207, 0.84);
  font-size: 15px;
  line-height: 1.78;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}

.log-filter-strip {
  width: min(1680px, calc(100% - 132px));
  margin: clamp(18px, 2.8vh, 28px) auto 0;
}

.log-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.log-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(255, 212, 139, 0.42);
  border-radius: 999px;
  color: rgba(255, 241, 216, 0.92);
  background: linear-gradient(180deg, rgba(30, 22, 13, 0.62), rgba(18, 15, 11, 0.64));
  box-shadow: inset 0 0 18px rgba(255, 222, 157, 0.035), 0 8px 18px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(10px);
}

.log-filter:hover,
.log-filter:focus-visible,
.log-filter.active {
  border-color: rgba(255, 224, 157, 0.72);
  color: #fff6df;
  background: linear-gradient(180deg, #f5c46d, #b7742a);
  box-shadow: 0 9px 24px rgba(247, 177, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.log-board {
  display: grid;
  grid-template-columns: minmax(690px, 900px) 326px;
  gap: clamp(48px, 5vw, 84px);
  align-items: start;
  width: min(1390px, calc(100% - 132px));
  margin: 18px auto 0;
}

.reference-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: min(530px, calc(100svh - 408px));
  padding-left: 72px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 205, 121, 0.36) transparent;
  scrollbar-width: thin;
}

.reference-timeline::-webkit-scrollbar {
  width: 6px;
}

.reference-timeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 205, 121, 0.32);
}

.reference-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.reference-timeline::before {
  position: absolute;
  left: 31px;
  top: -24px;
  bottom: 32px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 212, 130, 0.2), rgba(255, 212, 130, 0.8) 18%, rgba(255, 212, 130, 0.86) 72%, rgba(255, 212, 130, 0.34));
  box-shadow: 0 0 18px rgba(255, 197, 91, 0.18);
}

.reference-log-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 9px 14px 9px 24px;
  border: 1px solid rgba(236, 184, 103, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(79, 53, 25, 0.54), rgba(21, 18, 13, 0.7)),
    rgba(18, 15, 11, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), inset 0 0 26px rgba(255, 222, 168, 0.025);
  backdrop-filter: blur(13px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.reference-log-card::before {
  position: absolute;
  left: -15px;
  top: 50%;
  width: 14px;
  height: 1px;
  content: "";
  background: rgba(255, 219, 144, 0.82);
}

.reference-log-card:hover {
  border-color: rgba(255, 226, 157, 0.72);
  background:
    linear-gradient(90deg, rgba(92, 61, 29, 0.62), rgba(24, 19, 13, 0.74)),
    rgba(18, 15, 11, 0.62);
  box-shadow: 0 19px 40px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 189, 89, 0.16), inset 0 0 26px rgba(255, 222, 168, 0.04);
  transform: translateY(-2px);
}

.timeline-node {
  position: absolute;
  left: -52px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 232, 169, 0.86);
  border-radius: 50%;
  background: rgba(87, 55, 23, 0.9);
  box-shadow: 0 0 0 6px rgba(78, 50, 22, 0.48), 0 0 18px rgba(255, 208, 112, 0.72);
  transform: translateY(-50%);
}

.reference-date {
  display: grid;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(235, 196, 131, 0.18);
  color: rgba(255, 229, 184, 0.88);
}

.reference-date span {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.reference-date small {
  color: rgba(255, 229, 184, 0.78);
  font-size: 14px;
}

.reference-log-main {
  min-width: 0;
}

.reference-log-main h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #ffe8bb;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.reference-log-main h3 em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 210, 128, 0.5);
  border-radius: 999px;
  color: rgba(255, 216, 151, 0.95);
  background: rgba(143, 88, 31, 0.28);
  font-family: var(--font-sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.reference-log-main p {
  margin: 6px 0 0;
  color: rgba(255, 232, 197, 0.75);
  font-size: 13px;
  line-height: 1.42;
}

.reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.reference-meta span {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 221, 164, 0.78);
  font-size: 12px;
  white-space: nowrap;
}

.reference-meta span::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid rgba(237, 177, 82, 0.82);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(237, 177, 82, 0.12);
  transform: translateY(-50%);
}

.reference-meta span + span::after {
  position: absolute;
  left: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 217, 148, 0.72);
}

/* 日志卡片不配图（保持轻量快加载），原缩略图样式已移除 */

.reference-weekly {
  width: 326px;
  margin-top: clamp(72px, 12vh, 128px);
  padding: 19px 26px 17px;
  border: 1px solid rgba(235, 184, 103, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(103, 62, 27, 0.6), rgba(26, 19, 12, 0.68)),
    rgba(29, 22, 14, 0.7);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), inset 0 0 30px rgba(255, 218, 147, 0.04);
  backdrop-filter: blur(14px);
}

.reference-weekly h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #ffe1a3;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
}

.weekly-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-left: 3px solid #ffd07a;
  border-bottom: 3px solid #ffd07a;
}

.weekly-icon::before,
.weekly-icon::after {
  position: absolute;
  bottom: 0;
  content: "";
  width: 3px;
  background: #ffd07a;
}

.weekly-icon::before {
  left: 6px;
  height: 11px;
}

.weekly-icon::after {
  left: 13px;
  height: 16px;
}

.weekly-rule {
  position: relative;
  display: block;
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, rgba(255, 216, 145, 0.76), rgba(255, 216, 145, 0.18));
}

.weekly-rule::after {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  content: "";
  border: 1px solid rgba(255, 216, 145, 0.72);
  background: rgba(52, 34, 17, 0.82);
  transform: translateX(-50%) rotate(45deg);
}

.reference-weekly dl {
  margin: 0;
}

.reference-weekly dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 221, 158, 0.13);
}

.reference-weekly dt {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 232, 192, 0.84);
  font-size: 15px;
}

.reference-weekly dd {
  margin: 0;
  color: #ffd990;
  font-size: 17px;
}

.reference-weekly dd strong {
  margin-right: 5px;
  font-family: var(--xh-font-serif);
  font-size: 28px;
  font-weight: 400;
}

.reference-weekly p {
  margin: 18px 0 0;
  color: rgba(255, 219, 158, 0.78);
  font-size: 14px;
  text-align: center;
}

.mini-icon {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 212, 122, 0.9);
  border-radius: 5px;
  flex: 0 0 auto;
}

.mini-icon.video::after {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 0;
  height: 0;
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 212, 122, 0.95);
}

.mini-icon.list::before,
.mini-icon.list::after {
  position: absolute;
  left: 6px;
  width: 12px;
  height: 2px;
  content: "";
  background: rgba(255, 212, 122, 0.95);
  box-shadow: 0 7px 0 rgba(255, 212, 122, 0.95);
}

.mini-icon.list::before {
  top: 7px;
}

.mini-icon.list::after {
  top: 14px;
}

.mini-icon.image::before {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 14px;
  height: 9px;
  content: "";
  background: linear-gradient(135deg, transparent 48%, rgba(255, 212, 122, 0.95) 50%);
}

.mini-icon.flag {
  border: 0;
}

.mini-icon.flag::before {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 12px;
  content: "";
  border: 2px solid rgba(255, 212, 122, 0.95);
  border-left-width: 3px;
  border-radius: 3px 3px 7px 3px;
}

.mini-icon.flag::after {
  position: absolute;
  left: 5px;
  top: 14px;
  width: 3px;
  height: 10px;
  content: "";
  background: rgba(255, 212, 122, 0.95);
}

@media (max-width: 1420px) {
  .log-filter-strip,
  .log-board,
  .log-visual-hero {
    width: calc(100% - 72px);
  }

  .log-board {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
  }

  .reference-log-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .log-filter-bar {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 1100px) {
  .is-reference-layout {
    overflow: hidden auto;
  }

  .log-stage {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .log-board {
    grid-template-columns: 1fr;
  }

  .reference-timeline {
    max-height: none;
    overflow: visible;
  }

  .reference-weekly {
    width: min(100%, 520px);
    margin-left: 86px;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .is-reference-layout .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .is-reference-layout::before {
    background-position: 62% top;
  }

  .is-reference-layout::after {
    background:
      linear-gradient(180deg, rgba(3, 5, 8, 0.72) 0%, rgba(3, 5, 8, 0.52) 36%, rgba(3, 4, 4, 0.9) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.16));
  }

  .log-stage {
    min-height: auto;
  }

  .log-visual-hero,
  .log-filter-strip,
  .log-board {
    width: calc(100% - 28px);
  }

  .log-visual-hero {
    padding-top: 28px;
  }

  .log-copy h1 {
    font-size: 48px;
  }

  .log-subtitle {
    font-size: 22px;
  }

  .log-desc {
    font-size: 14px;
    line-height: 1.75;
  }

  .log-filter-strip {
    margin-top: 22px;
  }

  .log-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .log-filter {
    min-width: 0;
    padding: 0 12px;
  }

  .log-board {
    margin-top: 18px;
  }

  .reference-timeline {
    gap: 12px;
    padding-left: 26px;
  }

  .reference-timeline::before {
    left: 10px;
    top: 4px;
    bottom: 30px;
  }

  .reference-log-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 18px 16px;
  }

  .reference-log-card::before {
    left: -12px;
  }

  .timeline-node {
    left: -30px;
    width: 22px;
    height: 22px;
    border-width: 2px;
  }

  .reference-date {
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding-right: 0;
    border-right: 0;
  }

  .reference-date span,
  .reference-date small {
    font-size: 14px;
  }

  .reference-log-main h3 {
    font-size: 22px;
  }

  .reference-meta {
    gap: 10px;
  }

  .reference-meta span {
    white-space: normal;
  }

  .reference-weekly {
    width: 100%;
    margin-left: 26px;
    padding: 22px 18px;
  }
}

/* 性能：日志卡片为重复元素，关掉逐帧 backdrop 模糊，消除滚动卡顿 */
.log-card {
  backdrop-filter: none;
}

/* ============================================================
   管理员：日志页直接添加 / 编辑 / 删除
   ============================================================ */
.log-add-button {
  color: var(--xh-on-gold, #2a1707);
  font-weight: 700;
  border-color: var(--xh-border-hot, rgba(255, 218, 143, 0.62));
  background: var(--xh-grad-gold, linear-gradient(180deg, #f0bd60, #bd7327));
}

.log-add-button:hover {
  background: var(--xh-grad-gold-hover, linear-gradient(180deg, #f6c96e, #c67c2c));
}

.log-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.log-admin-actions button {
  padding: 3px 14px;
  color: rgba(247, 229, 195, 0.6);
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(244, 200, 121, 0.25);
  border-radius: 999px;
  background: transparent;
  transition: all 0.18s ease;
}

.log-admin-actions button:hover {
  color: var(--xh-gold, #f4c879);
  border-color: rgba(244, 200, 121, 0.5);
}

.log-admin-actions button.is-danger:hover {
  color: var(--xh-danger, #e06a5a);
  border-color: rgba(224, 106, 90, 0.55);
  background: rgba(224, 106, 90, 0.08);
}

/* 日志编辑弹窗（套用 auth.css 的弹窗骨架，表单字段左对齐） */
.xh-log-editor {
  width: min(100%, 460px);
  text-align: left;
}

.xh-log-editor .xh-auth-title {
  text-align: center;
}

.xh-log-editor label {
  display: block;
  margin-bottom: 12px;
  color: rgba(247, 229, 195, 0.7);
  font-size: 13px;
}

.xh-log-editor input,
.xh-log-editor select,
.xh-log-editor textarea {
  width: 100%;
  min-height: 42px;
  margin: 6px 0 0;
  padding: 8px 12px;
  color: var(--xh-text, #f7e5c3);
  font: inherit;
  font-size: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(218, 156, 65, 0.3);
  border-radius: 10px;
  box-sizing: border-box;
}

.xh-log-editor textarea {
  resize: vertical;
}

.xh-log-editor select option {
  color: #2a1707;
}

.xh-log-editor input:focus,
.xh-log-editor select:focus,
.xh-log-editor textarea:focus {
  border-color: rgba(244, 200, 121, 0.6);
  outline: none;
}

.xh-log-editor .xh-auth-submit {
  margin-top: 6px;
}

/* ============ 官方介绍内容区(三条路补注/数字/作品/合作/通道) ============ */
.path-note {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.path-note strong { color: var(--xh-gold); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.proof-cell {
  padding: 26px 22px 22px;
  border-top: 2px solid var(--xh-gold);
  background: var(--xh-panel-soft);
  border-radius: 0 0 var(--xh-radius-md) var(--xh-radius-md);
}
.proof-cell strong {
  display: block;
  font-family: var(--xh-font-serif);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1;
  color: var(--xh-cream);
}
.proof-cell span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--xh-muted);
}

.works-rows { border-top: 1px solid var(--xh-line); }
.works-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--xh-line);
}
.works-row strong {
  min-width: 120px;
  font-family: var(--xh-font-serif);
  font-size: 17px;
  color: var(--xh-gold-bright);
}
.works-row span { font-size: 14px; color: var(--xh-muted); line-height: 1.6; }

.coop-panel {
  margin-top: 32px;
  padding: 30px 32px;
  background: var(--xh-panel);
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-xl);
  box-shadow: var(--xh-shadow-md), var(--xh-glass-sheen);
}
.coop-panel h3 {
  font-family: var(--xh-font-serif);
  font-size: var(--xh-fs-xl);
  color: var(--xh-cream);
  margin: 6px 0 12px;
}
.coop-panel p { font-size: 14px; line-height: 1.8; color: var(--xh-muted); }
.coop-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: var(--xh-radius-pill);
  border: 1px solid var(--xh-border);
  color: var(--xh-gold);
  font-family: var(--xh-font-kai);
  font-size: 14px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.channel-card h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--xh-cream);
  margin: 4px 0 12px;
}
.channel-card h3 small { font-size: 14px; color: var(--xh-faint); font-weight: 400; }
.channel-card p strong { color: var(--xh-gold); }

/* 板块点睛句 / 村民证言引用 */
.content-section blockquote {
  margin: 28px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--xh-gold);
  color: var(--xh-gold);
  font-family: var(--xh-font-kai);
  font-size: 17px;
  line-height: 1.9;
}
.glass-card blockquote { margin-top: 6px; }

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: 1fr; }
  .works-row { flex-direction: column; gap: 4px; }
}

/* ============================================================
   2026-09-01 改版 · 7 层信息架构新增组件
   （方案：docs/village-story-redesign-plan-v2-20260901.md）
   旧板块样式（proof-grid / growth-path / belief-list / entry-grid 等）
   保留不删——log.html 与历史页面仍引用本文件。
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ---------- 层1 · 信任条 ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: baseline;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 16px 0 4px;
  border-top: 1px solid var(--xh-line);
}

.trust-item {
  position: relative;
  color: var(--xh-muted);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.trust-item + .trust-item::before {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--xh-gold-deep);
  transform: translateY(-50%);
}

.trust-item strong {
  margin-right: 4px;
  color: var(--xh-gold-bright);
  font-size: 22px;
  font-weight: 400;
}

/* ---------- 层2 · 窄栏去卡片化 ---------- */
.narrow-section {
  width: min(680px, calc(100% - 56px));
  margin: clamp(48px, 8vh, 96px) auto 0;
}

.narrow-section h2 {
  margin: 0;
  color: #ffe2a7;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
}

.narrow-section > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- 拆散证言（各层通用） ---------- */
.voice-quote {
  margin: 26px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--xh-gold);
  color: var(--xh-gold);
  font-family: var(--xh-font-kai);
  font-size: 16px;
  line-height: 1.85;
}

.voice-quote cite {
  display: block;
  margin-top: 6px;
  color: var(--xh-faint);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
}

/* ---------- 层3 · 作品 case 行（截图即证据，图文交替） ---------- */
.case-list {
  display: grid;
  gap: 18px;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: 18px;
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-md);
  background: rgba(10, 12, 10, 0.34);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.case-row:hover {
  border-color: var(--xh-border-hot);
  box-shadow: var(--xh-glow-gold), inset 0 0 20px rgba(255, 234, 190, 0.04);
  transform: translateY(-2px);
}

.case-row.is-flip .case-media {
  order: 2;
}

.case-media {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 121, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.case-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s var(--xh-ease);
}

a.case-media:hover img,
a.case-media:focus-visible img {
  transform: scale(1.03);
}

.case-body h3 {
  margin: 0;
  color: #ffdca1;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
}

.case-meta {
  margin: 8px 0 0;
  color: rgba(255, 191, 104, 0.8);
  font-size: 13px;
}

.case-body > p:not(.case-meta) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.case-body .voice-quote {
  margin-top: 16px;
  font-size: 15px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--xh-border);
  border-radius: 999px;
  color: var(--xh-gold);
  font-size: 13px;
  transition: border-color .18s ease, background .18s ease;
}

.case-link:hover,
.case-link:focus-visible {
  border-color: var(--xh-border-hot);
  background: rgba(255, 190, 88, 0.1);
}

.case-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 18px;
}

.case-exits a {
  color: var(--xh-gold);
  font-size: 15px;
  border-bottom: 1px solid var(--xh-line-strong);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}

.case-exits a:hover,
.case-exits a:focus-visible {
  color: var(--xh-gold-bright);
  border-color: var(--xh-gold-bright);
}

/* ---------- 层4 · 三条路：主推单边突出（三卡改三列） ---------- */
.direction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card {
  position: relative;
}

.glass-card.is-recommended {
  border-color: rgba(255, 218, 143, 0.62);
  background: linear-gradient(180deg, rgba(255, 190, 88, 0.09), rgba(10, 12, 10, 0.4));
  box-shadow: var(--xh-glow-gold), inset 0 0 22px rgba(255, 234, 190, 0.05);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--xh-on-gold);
  background: var(--xh-grad-gold);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(220, 125, 40, 0.3);
}

.path-link {
  color: var(--xh-gold);
  border-bottom: 1px solid var(--xh-line-strong);
}

.path-link:hover,
.path-link:focus-visible {
  color: var(--xh-gold-bright);
  border-color: var(--xh-gold-bright);
}

.glass-card .voice-quote {
  margin-top: 18px;
  font-size: 14px;
}

/* ---------- 层5 · 8 步折 3 幕 ---------- */
.acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: act;
}

.acts > li {
  position: relative;
  padding: 22px 20px;
  border: 1px solid rgba(244, 200, 121, 0.24);
  border-radius: var(--xh-radius-md);
  background: rgba(12, 12, 10, 0.32);
}

.acts > li::after {
  position: absolute;
  right: -13px;
  top: 50%;
  z-index: 1;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.acts > li:last-child::after {
  display: none;
}

.acts strong {
  display: block;
  color: #ffe2a7;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}

.acts ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.acts ul li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.acts ul li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--xh-gold-deep);
}

/* ---------- 层6 · 入村两道门 ---------- */
.join-section {
  scroll-margin-top: 96px;
}

.belief-banner {
  margin: 0 0 34px;
  color: #ffe2a7;
  font-family: var(--xh-font-kai);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.7;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.value-list li {
  position: relative;
  padding-left: 26px;
  color: var(--xh-text);
  font-size: 15px;
  line-height: 1.7;
}

.value-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "✓";
  color: var(--xh-gold);
  font-weight: 700;
}

.channel-promise {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 218, 143, 0.5);
  border-radius: 999px;
  color: var(--xh-gold-bright);
  background: rgba(255, 184, 76, 0.1);
  font-size: 13px;
}

.join-action {
  margin-top: 28px;
  text-align: center;
}

.join-action p {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 手机端二维码文案切换（手机扫不了自己屏幕，改长按识别） ---------- */
.qr-tip-mobile {
  display: none;
}

@media (max-width: 760px) {
  .qr-tip-desktop { display: none; }
  .qr-tip-mobile { display: inline; }
}

/* ---------- 层7 · FAQ 手风琴 + 页脚 ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-sm);
  background: rgba(10, 12, 10, 0.3);
}

.faq-list summary {
  padding: 14px 18px;
  color: #ffe2a7;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 18px;
  top: 50%;
  content: "+";
  color: var(--xh-gold);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s ease;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.story-footer {
  width: min(1180px, calc(100% - 56px));
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--xh-line);
  text-align: center;
}

.footer-beliefs {
  margin: 0;
  color: var(--xh-faint);
  font-family: var(--xh-font-kai);
  font-size: 14px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: center;
  margin-top: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--xh-gold-bright);
}

.footer-links a.is-primary {
  color: var(--xh-gold);
}

/* ============================================================
   PPT 翻页模式（Owner 定稿）：桌面端滚轮一次翻一屏 = 一个信息层。
   顶栏常驻，main 锁住自由滚动，翻页由本页 JS（滚轮/方向键/圆点）驱动；
   ≤760px 手机端回退为普通长页滚动（小屏一层塞不进一屏）。
   ============================================================ */
.about-page main {
  height: calc(100svh - 92px);
  padding-bottom: 0;
  overflow-y: hidden;
}

.slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100%;
}

/* 右侧圆点进度导航（由 JS 注入） */
.slide-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 6;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.slide-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(244, 200, 121, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.slide-dots button:hover,
.slide-dots button:focus-visible {
  border-color: var(--xh-gold-bright);
}

.slide-dots button.active {
  border-color: var(--xh-gold-bright);
  background: var(--xh-gold);
  box-shadow: 0 0 10px rgba(255, 190, 90, 0.5);
  transform: scale(1.2);
}

/* 幻灯片自身居中承担留白，取消层间外边距；纵向内边距收紧保证单屏塞得下 */
.content-section.slide,
.narrow-section.slide {
  margin-top: 0;
  margin-bottom: 0;
}

.content-section.slide {
  padding-top: 18px;
  padding-bottom: 18px;
}

.slide-hero .hero-section {
  min-height: 0;
  align-items: center;
  padding: 20px 0 26px;
}

.trust-strip {
  padding-bottom: 14px;
}

/* 单屏内容密度收紧 */
.slide .section-heading {
  margin-bottom: 16px;
}

.slide .glass-card {
  min-height: 0;
  padding: 18px;
}

.slide .glass-card h3 {
  margin: 12px 0 8px;
}

.slide .glass-card dl {
  margin-top: 14px;
}

.slide .glass-card .voice-quote {
  margin-top: 12px;
}

.slide .path-note {
  margin-top: 14px;
}

.content-section.slide > blockquote {
  margin-top: 16px;
}

.faq-list {
  gap: 8px;
}

.faq-list summary {
  padding-top: 11px;
  padding-bottom: 11px;
}

.slide .story-footer {
  margin-top: 18px;
  padding-bottom: 8px;
}

/* 层6 · 两道门三列：通道一 / 通道二 / 二维码 */
.join-section {
  scroll-margin-top: 0;
}

.belief-banner {
  margin-bottom: 12px;
  font-size: clamp(19px, 1.8vw, 26px);
}

.join-section .section-heading {
  margin-bottom: 12px;
}

.join-section h2 {
  font-size: clamp(26px, 2.3vw, 36px);
}

.value-list {
  gap: 7px 32px;
  margin-bottom: 14px;
}

.value-list li {
  font-size: 14px;
  line-height: 1.6;
}

.join-columns .channel-card {
  padding: 18px;
}

.join-columns .channel-card h3 {
  margin: 4px 0 8px;
}

.join-columns .channel-promise {
  margin-top: 10px;
}

.join-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.join-columns .join-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-md);
  background: rgba(10, 12, 10, 0.34);
}

.join-columns .join-qr {
  margin-top: 0;
  padding: 7px;
}

.join-columns .join-qr img {
  width: 128px;
}

.join-columns .join-action p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.content-section .join-closing {
  margin: 14px auto 0;
  padding: 0;
  border-left: 0;
  font-size: 16px;
  text-align: center;
}

.slide-final .content-section {
  margin: 0 auto;
}

.story-footer {
  margin-top: 26px;
  padding-bottom: 18px;
}

/* ---------- 新组件响应式 ---------- */
@media (max-width: 1220px) {
  .about-page main {
    height: calc(100svh - 82px);
  }
}

@media (max-width: 1180px) {
  .direction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .acts {
    grid-template-columns: 1fr;
  }

  .acts > li::after {
    display: none;
  }

  .join-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .join-columns .join-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .direction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /* 手机端退出 PPT 翻页，回到普通长页滚动 */
  .about-page main {
    height: auto;
    padding-bottom: 42px;
    overflow: visible;
  }

  .slide {
    display: block;
    min-height: 0;
  }

  .slide-dots {
    display: none;
  }

  .slide-hero .hero-section {
    align-items: end;
    padding: 34px 18px 28px;
  }

  .content-section.slide {
    margin-top: 16px;
  }

  .narrow-section.slide {
    margin-top: 36px;
  }

  .join-columns {
    grid-template-columns: 1fr;
  }

  .join-section {
    scroll-margin-top: 70px;
  }

  .trust-strip {
    width: calc(100% - 28px);
    gap: 8px 24px;
    padding-top: 12px;
  }

  .trust-item + .trust-item::before {
    display: none;
  }

  .narrow-section {
    width: calc(100% - 28px);
    margin-top: 36px;
  }

  .narrow-section > p {
    font-size: 15px;
  }

  .case-row,
  .case-row.is-flip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .case-row.is-flip .case-media {
    order: 0;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .belief-banner {
    margin-bottom: 24px;
  }

  .join-section {
    scroll-margin-top: 70px;
  }

  .story-footer {
    width: calc(100% - 28px);
  }
}
