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

:root {
  --ink: #172623;
  --ink-soft: rgba(23, 38, 35, .7);
  --sand: #d4c4a8;
  --sea: #5cc6b0;
  --clay: #c07956;
  --paper: #f2eade;
  --paper-deep: #e3d4bd;
  --line: rgba(23, 38, 35, .15);
  --rail: 264px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail);
  font-family: "Figtree", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 14% 0%, #f8f1e5 0%, rgba(248, 241, 229, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, #ede1ce 58%, var(--paper-deep) 100%);
}

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

/* ---------- 左侧竖排导航 ---------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: var(--sand);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--sand);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: var(--sea);
  object-fit: cover;
  transition: background .3s ease-out;
}

.brand:hover .brand-mark { background: var(--sand); }

.rail-h {
  margin: 6px 0 0;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .24em;
  color: rgba(212, 196, 168, .55);
}

.rail-h > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rail-h .tick {
  display: block;
  width: 10px;
  height: 1px;
  background: var(--sea);
}

.rail-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(212, 196, 168, .42);
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .14em;
  transition: border-color .25s ease-out, background .25s ease-out;
}

.rail-menu summary::-webkit-details-marker { display: none; }

.rail-menu summary:hover {
  border-color: var(--sea);
  background: rgba(92, 198, 176, .12);
}

.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s ease-out;
}

.rail-menu[open] .caret { transform: rotate(-135deg) translateY(-2px); }

.rail-menu menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rail-menu menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--sand);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .28s ease-out, border-color .28s ease-out, transform .28s ease-out, color .28s ease-out;
}

.rail-menu menu a:hover {
  color: #fff;
  background: rgba(92, 198, 176, .16);
  border-color: rgba(92, 198, 176, .55);
  transform: translateX(3px);
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.rail-find { display: flex; gap: 6px; }

.rail-find input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: .88rem;
  color: var(--sand);
  background: transparent;
  border: 1px solid rgba(212, 196, 168, .42);
  border-radius: 999px;
}

.rail-find input::placeholder { color: rgba(212, 196, 168, .5); }
.rail-find input:focus { outline: 2px solid var(--sea); outline-offset: 1px; }

.rail-find button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--sea);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease-out;
}

.rail-find button:hover { background: var(--sand); }

/* ---------- 主区 ---------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(26px, 5vh, 54px);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(44px, 9vh, 92px);
}

.hero-copy { align-self: start; }

h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(2.05rem, 5.4vw, 4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.022em;
}

.lede {
  max-width: 33em;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
}

.hero-shot {
  position: relative;
  overflow: hidden;
  min-height: 34vh;
  background: #ddd0ba;
}

.hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--sy, 0px), 0) scale(1.05);
}

.hero-shot.multi img {
  opacity: 0;
  animation: shotcycle 18s ease-in-out infinite;
}

.hero-shot.multi img:first-child { opacity: 1; }
.hero-shot.multi img:nth-child(2) { animation-delay: 6s; }
.hero-shot.multi img:nth-child(3) { animation-delay: 12s; }

@keyframes shotcycle {
  0% { opacity: 1; }
  28% { opacity: 1; }
  36% { opacity: 0; }
  95% { opacity: 0; }
  100% { opacity: 1; }
}

.stage {
  padding: clamp(46px, 7vw, 84px) 0 clamp(58px, 9vw, 108px);
  border-top: 1px solid var(--line);
}

/* ---------- 正文 ---------- */

.content > section {
  max-width: 68ch;
  padding: clamp(28px, 4.4vw, 50px) 0;
  border-bottom: 2px solid rgba(23, 38, 35, .13);
  scroll-margin-top: 88px;
}

.content > section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.content h2 {
  margin: 0 0 .55em;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -.012em;
}

.content h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: var(--sea);
}

.content h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.14rem;
  line-height: 1.4;
  font-weight: 600;
}

.content p { margin: 0 0 1.05em; }
.content ul,
.content ol { margin: 0 0 1.05em; padding-left: 1.35em; }
.content li { margin-bottom: .4em; }
.content strong { font-weight: 600; }

.content a {
  color: #1c6a5c;
  text-decoration: underline;
  text-decoration-color: rgba(92, 198, 176, .85);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content a:hover { background: rgba(92, 198, 176, .2); }

.content blockquote {
  margin: 1.3em 0;
  padding: .25em 0 .25em 18px;
  border-left: 3px solid var(--sea);
  color: var(--ink-soft);
}

.content img { display: block; max-width: 100%; height: auto; }
.content table { width: 100%; border-collapse: collapse; }

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "cta cta"
    "brand links"
    "cr cr";
  gap: 26px 40px;
  align-items: start;
  padding: clamp(34px, 6vw, 62px) clamp(20px, 5vw, 56px) 26px;
  color: var(--sand);
  background: var(--ink);
  border-top: 1px solid rgba(212, 196, 168, .22);
}

.cta { grid-area: cta; margin: 0; }

.cta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 0 clamp(18px, 3vw, 28px);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--sea);
  text-decoration: none;
  transition: background .35s ease-out, letter-spacing .35s ease-out;
}

.cta a::after {
  content: "→";
  font-size: 1.15em;
  line-height: 1;
}

.cta a:hover { background: var(--sand); letter-spacing: .11em; }

.foot-brand {
  grid-area: brand;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.foot-sub {
  display: block;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .01em;
  color: rgba(212, 196, 168, .72);
}

.foot-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 20px;
  margin: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .94rem;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease-out, color .3s ease-out;
}

.foot-links a:hover { color: #fff; border-color: var(--sea); }

.foot small {
  grid-area: cr;
  display: block;
  padding-top: 16px;
  font-size: .8rem;
  color: rgba(212, 196, 168, .6);
  border-top: 1px solid rgba(212, 196, 168, .18);
}

/* ---------- 窄屏 ---------- */

@media (max-width: 899px) {
  body { padding-left: 0; }

  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow: visible;
  }

  .rail-h { display: none; }

  .brand { flex: 0 0 auto; font-size: .92rem; min-height: 44px; letter-spacing: .08em; }
  .brand-mark { width: 20px; height: 20px; }

  .rail-menu { flex: 0 0 auto; }
  .rail-menu summary { padding: 0 14px; font-size: .86rem; letter-spacing: .1em; }

  .rail-menu menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 100%;
    z-index: 30;
    max-height: 62vh;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 10px;
    background: var(--ink);
    border: 1px solid rgba(212, 196, 168, .3);
    box-shadow: 0 20px 34px rgba(23, 38, 35, .38);
  }

  .rail-foot {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .rail-find { width: 100%; }

  .hero {
    min-height: 74vh;
    min-height: 74svh;
    padding-top: clamp(26px, 6vh, 44px);
    gap: 24px;
  }

  .hero-shot { min-height: 26vh; }

  .content > section { scroll-margin-top: 76px; }

  .foot {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cta"
      "brand"
      "links"
      "cr";
    gap: 22px;
  }

  .foot-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand-name { letter-spacing: .04em; }
  .rail-find input { padding: 0 12px; font-size: .84rem; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hero-shot.multi img {
    animation: none;
    opacity: 0;
  }

  .hero-shot.multi img:first-child { opacity: 1; }
}

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