@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --teal: #5cc6b0;
  --teal-deep: #1d6f60;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #bf7a58;
  --olive: #6b7b3c;
  --paper: #f4ede2;
  --paper-2: #ece0cf;
  --line: rgba(23, 38, 35, 0.16);
  --soft: 0 22px 46px -30px rgba(23, 38, 35, 0.6);
  --r: 18px;
  --rail: 15.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: var(--paper);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

a { color: var(--teal-deep); }

h1, h2, h3, h4 {
  font-family: 'EB Garamond', 'Songti SC', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

[id] { scroll-margin-top: 5.5rem; }

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.2rem 1.1rem 2rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 60% at 30% 8%, rgba(92, 198, 176, 0.22), transparent 62%),
    linear-gradient(178deg, #f9f3ea 0%, #ece0cf 58%, #e2d2bb 100%);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.grp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
}

.grp a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.25rem 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease-out, border-color 0.25s ease-out;
}

.grp a:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

.mark {
  display: block;
  padding: 0.75rem 0.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-family: 'EB Garamond', 'Songti SC', Georgia, serif;
  font-size: 1.16rem;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.burger {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: #fdf8f0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease-out, color 0.25s ease-out;
}

.burger::before {
  content: "";
  width: 15px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.burger:hover { background: var(--teal); color: #0c2b25; }

/* ---------- 全屏遮罩菜单 ---------- */
.dock {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
  background:
    radial-gradient(90% 70% at 70% 20%, rgba(92, 198, 176, 0.18), transparent 65%),
    #16241f;
  color: #f2eadc;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.34s ease-out, visibility 0.34s ease-out;
}

.dock.is-open { opacity: 1; visibility: visible; }

.dock nav p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
}

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0.9rem;
  color: #f2eadc;
  text-decoration: none;
  font-family: 'EB Garamond', 'Songti SC', Georgia, serif;
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.24s ease-out, border-color 0.24s ease-out;
}

.dock a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.dock-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(242, 234, 220, 0.42);
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- 主 CTA ---------- */
.cta {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0c2b25;
  text-decoration: none;
  background: var(--teal);
  border-radius: 999px;
  box-shadow: var(--soft);
  transition: transform 0.24s ease-out, box-shadow 0.24s ease-out;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px -26px rgba(23, 38, 35, 0.8);
}

/* ---------- 主体 ---------- */
.stack {
  margin-left: var(--rail);
  padding: 0 3rem;
  max-width: 78rem;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 2.5rem;
  align-items: center;
  padding: 6rem 0 3rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.24;
}

.hero h1 span { display: inline-block; }

.lede {
  margin: 0;
  max-width: 33rem;
  font-size: 1.03rem;
  color: #33443b;
}

.hero-plate {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r) + 10px);
  border: 1px solid rgba(23, 38, 35, 0.1);
  overflow: visible;
  background:
    radial-gradient(70% 60% at 20% 20%, rgba(212, 196, 168, 0.95), transparent 70%),
    linear-gradient(165deg, #ded0b8 0%, #b8a98d 52%, #5cc6b0 100%);
  box-shadow: var(--soft);
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 6px solid #faf4ea;
  border-radius: var(--r);
  box-shadow: 0 20px 40px -26px rgba(23, 38, 35, 0.9);
  background: #e3d7c4;
}

.shot-a { top: 5%; left: 5%; width: 63%; }

.shot-b { right: 5%; bottom: 7%; width: 55%; border-radius: 40% 18px 18px 18px; }

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

.badge {
  position: absolute;
  left: 0;
  bottom: 14%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  background: #fdf8f0;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--soft);
  transform: translateX(-22%);
  transition: background 0.24s ease-out, transform 0.24s ease-out;
}

.badge:hover { background: var(--teal); transform: translateX(-22%) translateY(-2px); }

/* ---------- 侧栏 + 正文 ---------- */
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 1rem 0 4.5rem;
}

.side {
  align-self: start;
  padding-left: 1rem;
  border-left: 2px solid var(--teal);
  font-size: 0.93rem;
}

.side-title {
  margin: 1.3rem 0 0.45rem;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #46574e;
}

.side-title:first-child { margin-top: 0; }

.side-title span {
  display: inline-block;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--sand);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease-out, border-color 0.22s ease-out;
}

.side-list a:hover { color: var(--teal-deep); border-bottom-color: var(--sand); }

.side-back { margin: 0; }

.side-back a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.stream { max-width: 45rem; }

.stream > section {
  padding: 2.8rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.stream > section:first-child { border-top: 0; padding-top: 0; }

.stream h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

.stream h2 span { display: inline-block; }

.stream h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1.22rem;
}

.stream p { margin: 0 0 1rem; }

.stream ul,
.stream ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.stream li { margin: 0.3rem 0; }

.stream a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--sand);
}

.stream a:hover { text-decoration-color: var(--teal); }

.stream figure {
  margin: 1.6rem 0;
  padding: 0;
}

.stream figure img,
.stream > section > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--soft);
}

.stream figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #57675e;
}

.stream blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.15rem;
  border-left: 3px solid var(--sand);
  border-radius: 0 var(--r) var(--r) 0;
  background: #efe5d6;
  color: #2b3a33;
}

.stream blockquote p:last-child { margin-bottom: 0; }

.stream table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.stream th,
.stream td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.stream th { background: #ece0cf; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  margin-left: var(--rail);
  padding: 2.6rem 3rem 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #efe6d7, #e6d9c6);
  font-size: 0.93rem;
}

.foot section { min-width: 0; }

.f-mark {
  display: inline-block;
  padding: 0.3rem 0;
  font-family: 'EB Garamond', 'Songti SC', Georgia, serif;
  font-size: 1.06rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}

.f-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.2rem;
}

.f-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease-out, border-color 0.22s ease-out;
}

.f-nav a:hover { color: var(--teal-deep); border-bottom-color: var(--teal); }

.f-meta { display: flex; flex-direction: column; gap: 0.4rem; }

.f-copy { margin: 0; color: #4c5c53; letter-spacing: 0.04em; }

.f-top {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 0.1rem;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--sand);
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cta, .badge, .grp a, .dock a { transition: none; }
}

/* ---------- 中等宽度 ---------- */
@media (min-width: 1040px) {
  .sheet {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 3.5rem;
  }
  .side { position: sticky; top: 2.2rem; }
  .foot { grid-template-columns: 1.1fr 1.2fr 1fr; align-items: start; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 26px -24px rgba(23, 38, 35, 0.9);
  }

  .rail-nav { flex-direction: row; align-items: center; order: 1; }

  .grp { display: none; }

  .mark { padding: 0.5rem 0; border: 0; font-size: 1.05rem; }

  .burger {
    position: static;
    transform: none;
    order: 2;
    padding: 0.4rem 0.95rem;
  }

  .stack,
  .foot {
    margin-left: 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .stack { padding-top: 5rem; }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    padding: 1.2rem 0 2rem;
  }

  .hero-plate { aspect-ratio: 5 / 4; }

  .badge { left: 0.9rem; bottom: 0.9rem; transform: none; }

  .badge:hover { transform: translateY(-2px); }

  .sheet { padding-top: 0.5rem; }

  .side { position: static; }

  .stream > section { padding: 2rem 0; }

  .foot { padding-top: 2rem; padding-bottom: 4.5rem; }

  .cta { right: 1rem; bottom: 1rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.75rem; }
  .lede { font-size: 0.98rem; }
  .dock a { font-size: 1.24rem; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
