.story-read-link { color: var(--accent-red); font-size: 13px; text-decoration: none; margin-left: 24px; white-space: nowrap; }
.story-read-link:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 5px; }
:root {
  /* 方案 B 核心调色板 */
  --bg-paper: #FAF8F5;
  --nav-bg: #FFFFFF;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-surface-solid: #FFFFFF;
  --bg-canvas: #E9E7E3;
  --panel-border: #E5E0DA;
  --panel-shadow: 0 12px 32px rgba(52, 43, 34, 0.06);
  --text-ink: #282826;
  --text-muted: #77716B;
  --text-light: #A19B95;
  
  --accent-red: #963D36;
  --accent-red-hover: #7E302B;
  --accent-blue: #35484C;
  --accent-gold: #B0946E;        /* 铜金色（时间轴与装饰） */
  
  --border-subtle: #E5E0DA;
  --shadow-card: 0 5px 14px rgba(52, 43, 34, 0.045);
  --shadow-hover: 0 12px 25px rgba(52, 43, 34, 0.09);
  
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏：极简通透 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--panel-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F8F5EE;
  text-decoration: none;
}

.nav-brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: rgba(248, 245, 238, 0.72);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link[aria-current="page"] {
  color: var(--accent-red);
}

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #F8F5EE;
  transition: transform 0.2s;
}

/* 主容器 */
.main-container {
  flex: 1;
  max-width: 1440px;
  margin: 32px auto 0;
  padding: 20px 48px 0;
  width: 100%;
  background-color: var(--bg-paper);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
}

/* 深色画布中的内容面板，内层仍与 Hero 使用相同的对齐基准。 */
.content-section {
  width: 100%;
  background-color: transparent;
  padding: 24px 0 48px;
}

.content-section-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px;
  background-color: #FFFFFF;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
}

/* Hero 首屏区：照片渐隐与留白呼应 */
.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  min-height: 480px;
  margin: 0 0 40px;
  position: relative;
}

.hero-copy {
  padding-right: 32px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 9cqw, 50px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text-ink);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(150, 61, 54, 0.18);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(150, 61, 54, 0.25);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #E8E2D6;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.16) contrast(1.04) brightness(0.98);
  /* 核心渐隐蒙版：让照片自然融入背景色 */
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%),
              linear-gradient(to top, transparent 0%, black 15%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%),
                      linear-gradient(to top, transparent 0%, black 15%, black 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.02);
}

.hero-image-caption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: var(--text-light);
  background: rgba(248, 245, 238, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* 章节标题区 */
.section-header {
  margin: 40px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.content-section .section-header {
  margin-top: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-ink);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 互动叙事卡片网格 / 滑动轨道 */
.cards-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.curation-card {
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.curation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface-solid);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #dfd8cb;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.02);
  transition: transform 0.5s ease;
}

.curation-card:hover .card-img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge-blue {
  background: rgba(50, 75, 93, 0.9);
  color: #fff;
}

.badge-verified {
  background: rgba(248, 245, 238, 0.92);
  color: var(--accent-blue);
  border: 1px solid rgba(50, 75, 93, 0.2);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.curation-card:hover .card-link {
  gap: 10px;
}

.card-period {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-serif);
}

/* A quiet, single-period page control between the hero and the first chapter. */
.period-switcher {
  scroll-margin-top: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 18px;
  padding: 17px 72px;
  background: transparent;
}

.period-switcher-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(72, 65, 56, 0.17);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.period-switcher-arrow:not(:disabled):hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.period-switcher-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.period-switcher-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
}

.period-switcher-index {
  color: var(--text-muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}

.period-switcher-era {
  color: var(--accent-red);
  font: 600 15px/1.5 var(--font-serif);
}

.period-switcher-summary {
  color: var(--text-muted);
  font: 14px/1.6 var(--font-sans);
}

.period-switcher-link {
  color: var(--accent-red);
  font: 600 14px/1.5 var(--font-sans);
  white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 900px) {
  .site-nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: flex;
  }
  .main-container {
    margin-top: 20px;
    padding: 16px 20px 0;
    border-radius: 12px;
  }
  .content-section {
    padding: 16px 0 32px;
  }
  .content-section-inner {
    padding: 36px 20px 44px;
    border-radius: 12px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 10px 0 30px;
  }
  .hero-copy {
    padding-right: 0;
  }
  .hero-image-wrap {
    height: 280px;
  }
  .cards-track {
    grid-template-columns: 1fr;
  }
  .period-switcher {
    padding-inline: 20px;
  }
}

/* Approved palette: a pale warm-red opening gives way to a white reading surface. */
:root {
  --archive-ink: #716C66;
}

body {
  background: var(--bg-paper);
}

body.home-page {
  background: var(--bg-canvas);
}

.site-nav {
  height: 64px;
  min-height: 64px;
  width: 100%;
  padding: 0 48px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand,
.nav-link {
  color: var(--text-ink);
}

.nav-link:hover {
  color: var(--accent-red);
}

.nav-link[aria-current="page"] { position: relative; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 26px;
  height: 2px;
  background: var(--accent-red);
}

.nav-menu-btn span {
  background: #292524;
}

.main-container {
  max-width: 1312px;
  width: calc(100% - 128px);
  margin: 28px auto 40px;
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
}

.hero-section {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.24fr);
  min-height: 455px;
  margin: 0;
  padding: 26px 44px 12px 56px;
  isolation: isolate;
  background: linear-gradient(180deg, #E9D7D1 0%, #F1E5E0 45%, var(--bg-paper) 100%);
}

.hero-copy {
  z-index: 3;
  padding-right: 16px;
}

.hero-image-wrap {
  z-index: 1;
  width: calc(100% + 76px);
  height: 417px;
  margin-left: -76px;
  margin-right: -44px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-image {
  display: block;
  object-position: center center;
  mix-blend-mode: normal;
  filter: grayscale(1) contrast(1.02);
  mask-image:
    linear-gradient(to right, transparent 0%, black 38%, black 100%),
    linear-gradient(to bottom, black 0%, black 57%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 38%, black 100%),
    linear-gradient(to bottom, black 0%, black 57%, transparent 100%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero-image-caption {
  right: 16px;
  bottom: 24px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(250, 248, 245, 0.72);
  color: var(--text-muted);
  text-shadow: 0 1px 12px rgba(250, 248, 245, 0.95);
  backdrop-filter: none;
}

.content-section {
  width: 100%;
  padding: 48px 56px 56px;
  background: linear-gradient(180deg, var(--bg-paper) 0, #FFFFFF 140px);
}

.hero-title { font-size: clamp(30px, 7.5cqw, 40px); }
.period-switcher { background: var(--bg-paper); padding-inline: 56px; }
.period-switcher-era { color: var(--text-ink); }
.curation-card { background: #FFFFFF; border-color: var(--panel-border); }

.content-section-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .site-nav {
    height: 64px;
    min-height: 64px;
    padding: 0 20px;
  }

  .main-container {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 0;
    border-radius: 12px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 0;
    padding: 26px 20px 0;
    gap: 12px;
  }

  .hero-image-wrap {
    width: calc(100% + 40px);
    height: 300px;
    margin: 0 -20px;
  }

  .hero-image {
    mask-image:
      linear-gradient(to right, transparent 0%, black 12%, black 100%),
      linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, black 12%, black 100%),
      linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
  }

  .content-section {
    padding: 64px 20px 40px;
  }

  .content-section-inner {
    padding: 0;
    border-radius: 0;
  }
}

/* Engineering-only interaction states; the default visual remains the authored baseline. */
.nav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.curation-card[role="button"]:focus-visible,
.period-switcher-arrow:focus-visible,
.period-switcher-link:focus-visible,
.btn-primary:focus-visible,
.nav-menu-btn:focus-visible,
.nav-link:focus-visible,
.nav-brand:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-links.is-open {
    position: absolute;
    top: 64px;
    right: 12px;
    display: flex;
    min-width: 160px;
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    border: 1px solid var(--panel-border);
    box-shadow: 0 18px 40px rgba(55, 49, 42, 0.16);
  }

  .nav-links.is-open .nav-link {
    min-height: 44px;
    padding: 10px 0;
  }
}
.hero-copy { container-type:inline-size; }
.hero-title span { display:block; white-space:nowrap; }
@media (max-width:600px) {
  .section-subtitle { display: none; }
  .hero-actions { gap:12px; flex-wrap:wrap; }
  .hero-actions .btn-primary { padding:12px 16px; font-size:13px; letter-spacing:.02em; white-space:nowrap; }
  .hero-actions .story-read-link { margin-left:0; }
  .period-switcher { grid-template-columns:44px minmax(0,1fr) 44px; gap:12px; padding:14px 16px; }
  .period-switcher-arrow { width:44px; height:44px; }
  .period-switcher-current { gap:2px 8px; }
  .period-switcher-summary { flex-basis:100%; }
  .period-switcher-link { grid-column:2; grid-row:2; margin-top:2px; }
  .period-switcher-arrow:last-child { grid-column:3; grid-row:1; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
