:root {
  --ink: #172623;
  --ink-deep: #101c19;
  --sand: #d4c4a8;
  --mint: #5cc6b0;
  --clay: #c2704a;
  --paper: #f0e9dc;
  --line: rgba(212, 196, 168, 0.26);
  --rail-w: 236px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: #e9e2d4;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 450;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background-image: radial-gradient(rgba(212, 196, 168, 0.07) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.85;
}

h1,
h2,
h3 {
  font-family: "Lexend Mega", "Public Sans", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1em;
}

.frame {
  min-height: 100vh;
}

/* 左侧竖排导航 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(140% 70% at 0% 0%, rgba(92, 198, 176, 0.14), transparent 62%),
    linear-gradient(180deg, #1c2f2b 0%, #131f1c 100%);
}

.mark {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 196, 168, 0.2);
  padding-bottom: 16px;
}

.mark-txt {
  font-family: "Lexend Mega", system-ui, sans-serif;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.mark-img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: railn;
}

.rail-nav li {
  counter-increment: railn;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cfe7e0;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: background 0.25s ease-out, color 0.25s ease-out, transform 0.25s ease-out;
}

.rail-nav a::before {
  content: counter(railn, decimal-leading-zero);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(92, 198, 176, 0.66);
  transform: translateY(1px);
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: rgba(92, 198, 176, 0.16);
  color: #ffffff;
  transform: translateX(2px);
}

/* 顶部细条 */
.stage {
  margin-left: var(--rail-w);
  padding: 0 clamp(20px, 4vw, 62px);
  min-width: 0;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: 0 calc(clamp(20px, 4vw, 62px) * -1) 0;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--mint);
  color: #10201d;
  font-family: "Lexend Mega", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: crawl 24s linear infinite;
}

@keyframes crawl {
  to {
    transform: translateX(-100%);
  }
}

.main {
  max-width: 1080px;
  margin: 0 auto;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(40px, 12vh, 110px) 0 0;
  overflow: hidden;
}

.kicker {
  margin: 0;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--sand);
}

.hero h1 {
  margin: 0 0 clamp(26px, 5vh, 56px);
  font-size: clamp(2.45rem, 8.6vw, 6.6rem);
  color: var(--paper);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 24px;
  border-radius: 10px;
  background: var(--clay);
}

.cut {
  display: block;
  height: 26px;
  margin: 0 calc(clamp(20px, 4vw, 62px) * -1) -14px;
  background: linear-gradient(90deg, var(--clay) 0%, var(--clay) 42%, var(--sand) 42%, var(--sand) 66%, var(--mint) 66%);
  transform: skewY(-1.6deg);
  transform-origin: left bottom;
}

/* 双栏说明区 */
.band {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 70px);
}

.band-fig {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 196, 168, 0.45);
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 24% 18%, #2c4a43 0%, #16241f 78%);
}

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

.blob {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 42% 58% 54% 46% / 47% 41% 59% 53%;
  background: linear-gradient(148deg, var(--mint) 4%, var(--sand) 52%, var(--clay) 96%);
  box-shadow: 0 18px 40px rgba(8, 16, 14, 0.45);
  animation: breathe 11s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    border-radius: 42% 58% 54% 46% / 47% 41% 59% 53%;
    transform: rotate(-2deg) scale(1);
  }
  50% {
    border-radius: 56% 44% 43% 57% / 42% 58% 42% 58%;
    transform: rotate(3deg) scale(1.05);
  }
}

.band-note h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: var(--mint);
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 0;
  max-width: 36ch;
  color: var(--sand);
  font-size: 17px;
  line-height: 1.75;
}

/* 正文 */
.prose {
  padding-bottom: clamp(30px, 5vw, 48px);
}

.prose > section {
  padding: clamp(34px, 5vw, 58px) 0;
  border-top: 1px solid rgba(212, 196, 168, 0.18);
  scroll-margin-top: 62px;
}

.prose > section:last-child {
  border-bottom: 1px solid rgba(212, 196, 168, 0.18);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  color: var(--paper);
  overflow-wrap: anywhere;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: var(--mint);
  letter-spacing: 0.01em;
}

.prose p,
.prose li {
  max-width: 70ch;
  overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--clay);
}

.prose strong {
  color: #ffffff;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.prose figure,
.prose aside {
  margin: 0 0 1.2em;
  padding: 16px 18px;
  border: 1.5px solid rgba(212, 196, 168, 0.4);
  border-radius: 10px;
  background: rgba(212, 196, 168, 0.05);
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--mint);
  color: var(--sand);
}

.prose a {
  color: var(--mint);
}

.closer {
  display: flex;
  gap: 10px;
  margin: 0 0 clamp(46px, 7vw, 86px);
}

.closer-bar {
  display: block;
  height: 9px;
  flex: 1;
  border-radius: 10px;
  background: var(--clay);
  opacity: 0.9;
}

.closer-bar:nth-child(2) {
  background: var(--sand);
}

.closer-bar:nth-child(3) {
  flex: 0 0 22%;
  background: var(--mint);
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(38px, 6vw, 66px) 0 30px;
  background: linear-gradient(180deg, rgba(212, 196, 168, 0.06), transparent 78%);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.sub-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.sub-row {
  display: flex;
  gap: 8px;
}

.sub-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid rgba(212, 196, 168, 0.45);
  border-radius: 10px;
  background: rgba(8, 16, 14, 0.4);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.sub-row input::placeholder {
  color: rgba(233, 226, 212, 0.55);
}

.sub-row input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.sub-row button {
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid var(--mint);
  border-radius: 10px;
  background: var(--mint);
  color: #10201d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.sub-row button:hover,
.sub-row button:focus-visible {
  background: transparent;
  color: var(--mint);
}

.foot-dl {
  margin: 0;
}

.foot-dl dt {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.foot-dl dd {
  margin: 0;
  color: rgba(233, 226, 212, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.dd-links {
  display: flex;
  flex-direction: column;
}

.dd-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(233, 226, 212, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 196, 168, 0.14);
}

.dd-links a:hover,
.dd-links a:focus-visible {
  color: var(--mint);
}

.dd-host {
  overflow-wrap: anywhere;
}

.copy {
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-size: 16px;
  color: rgba(233, 226, 212, 0.58);
}

/* 滚动出现 */
.js [data-reveal],
.js .prose > section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease-out, transform 0.72s ease-out;
}

.js [data-reveal].in,
.js .prose > section.in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 860px) {
  :root {
    --rail-w: 0px;
  }

  .rail {
    inset: auto 0 0 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #16241f 0%, #101c19 100%);
    -webkit-overflow-scrolling: touch;
  }

  .mark {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px 0 0;
    border-bottom: 0;
    border-right: 1px solid rgba(212, 196, 168, 0.22);
  }

  .mark-txt {
    font-size: 16px;
    white-space: nowrap;
  }

  .rail-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rail-nav ul {
    flex-direction: row;
    gap: 6px;
  }

  .rail-nav a {
    white-space: nowrap;
    padding: 10px 14px;
  }

  .rail-nav a::before {
    display: none;
  }

  .stage {
    margin-left: 0;
    padding-bottom: 86px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .ticker {
    margin-left: -20px;
    margin-right: -20px;
  }

  .main {
    max-width: none;
  }

  .hero {
    min-height: 94svh;
    padding-bottom: 90px;
  }

  .cut {
    margin-left: -20px;
    margin-right: -20px;
  }

  .band {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .band-fig {
    aspect-ratio: 16 / 10;
  }

  .band-note {
    order: -1;
  }

  .subtitle {
    max-width: none;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

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

  .ticker span {
    animation: none;
    padding-left: 0;
  }

  .blob {
    animation: none;
  }

  .js [data-reveal],
  .js .prose > section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rail-nav a:hover {
    transform: none;
  }
}

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