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

:root {
  --paper: #ffffff;
  --haze: #f5f5f5;
  --haze-2: #ececec;
  --ink: #1f1f1f;
  --ink-2: #4c4c4c;
  --ink-3: #7b7b7b;
  --r: 10px;
  --e1: 0 1px 2px rgba(31, 31, 31, .06), 0 1px 1px rgba(31, 31, 31, .04);
  --e2: 0 4px 14px rgba(31, 31, 31, .08), 0 2px 4px rgba(31, 31, 31, .05);
  --e3: 0 14px 30px rgba(31, 31, 31, .13), 0 5px 12px rgba(31, 31, 31, .07);
  --e4: 0 26px 66px rgba(31, 31, 31, .2), 0 12px 26px rgba(31, 31, 31, .11);
  --dock: 168px;
  --font: "Baloo 2", "Comic Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 88% -6%, #f0f0f0 0%, rgba(245, 245, 245, 0) 62%),
    var(--paper);
}

h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 16px; }
a { color: var(--ink); }
img { max-width: 100%; }

[id] {
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--dock) + 24px);
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "mark seek"
    "nav nav";
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 -14px 36px rgba(31, 31, 31, .12);
}

.mark {
  grid-area: mark;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--e2);
  max-width: 52vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seek {
  grid-area: seek;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.seek input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--haze);
  border: 0;
  border-radius: var(--r);
  box-shadow: inset 0 1px 2px rgba(31, 31, 31, .07);
}

.seek input::placeholder { color: var(--ink-3); }

.seek button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--r);
  box-shadow: var(--e2);
  cursor: pointer;
}

.seek.miss input {
  animation: shake .4s ease;
  box-shadow: inset 0 0 0 2px var(--ink);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.dock-nav { grid-area: nav; min-width: 0; }

.dock-nav > ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dock-nav li { position: relative; }

.dock-nav > ol > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--haze);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--e1);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dock-nav > ol > li > a:hover,
.dock-nav > ol > li > a:focus-visible {
  background: var(--paper);
  box-shadow: var(--e3);
  transform: translateY(-2px);
}

.has-sub > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--ink-3);
}

.sub {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 4;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 4px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--e3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.sub a:hover,
.sub a:focus-visible { background: var(--haze); }

/* ---------- 首屏 ---------- */
.page { position: relative; z-index: 1; }

.stage {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 84px 20px calc(var(--dock) + 30px);
}

.art {
  position: relative;
  margin: 0;
  min-height: 40vh;
  border-radius: 20px;
  isolation: isolate;
}

.art span {
  position: absolute;
  border-radius: 18px;
  will-change: transform;
}

.art-l1 {
  inset: 12% 8% 16% 0;
  background: var(--haze);
  box-shadow: var(--e2);
  z-index: 1;
}

.art-l2 {
  inset: 22% 0 6% 18%;
  background: var(--haze-2);
  box-shadow: var(--e3);
  z-index: 2;
}

.art-l3 {
  inset: 4% 30% 74% 4%;
  background: var(--ink);
  box-shadow: var(--e3);
  z-index: 3;
}

.art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--e4);
  z-index: 4;
}

.stage-copy { text-align: center; position: relative; z-index: 4; }

.badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--e3);
  transform: rotate(-2deg);
}

.stage-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1.16;
  letter-spacing: -.01em;
}

.lede {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 17px;
}

/* ---------- 正文与右栏 ---------- */
.flow {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px calc(var(--dock) + 44px);
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

.flow-body { min-width: 0; }

.flow-body > div {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--e2);
}

.flow-body > div:nth-of-type(even) { background: #fbfbfb; }

.flow-body :is(h2, h3) {
  margin: 0 0 10px;
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.34;
}

.flow-body p { color: var(--ink-2); }
.flow-body p:last-child { margin-bottom: 0; }
.flow-body :is(ul, ol) { padding-left: 1.25em; margin: 0 0 16px; }
.flow-body li { margin-bottom: 6px; }
.flow-body a { text-underline-offset: 3px; }
.flow-body img { border-radius: var(--r); box-shadow: var(--e2); height: auto; }

.flow-body figure { margin: 0 0 16px; }

.flow-body hr,
.rail hr {
  border: 0;
  height: 3px;
  width: 52px;
  margin: 0 0 18px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: var(--e1);
}

.rail {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--e3);
  align-self: start;
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.4;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
  display: grid;
  gap: 4px;
}

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: var(--r);
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  background: #fbfbfb;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--haze);
  color: var(--ink);
  box-shadow: var(--e1);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px calc(var(--dock) + 40px);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.foot p { margin: 0; }

.foot-cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: clamp(26px, 6vw, 48px) 20px;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--e4);
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--e2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.foot-cta a:hover,
.foot-cta a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--e4);
}

.foot-brand a {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  color: var(--ink-3);
  font-size: 16px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible { color: var(--ink); text-decoration: underline; }

.foot-copy {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: .02em;
}

/* ---------- 动效 ---------- */
.js-reveal .flow-body > div,
.js-reveal .rail,
.js-reveal .foot > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .7, .3, 1);
}

.js-reveal .in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .foot { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .foot-brand { align-self: center; }
}

@media (min-width: 900px) {
  :root { --dock: 92px; }
  .dock {
    grid-template-columns: auto minmax(150px, 230px) 1fr;
    grid-template-areas: "mark seek nav";
    padding: 8px 22px calc(8px + env(safe-area-inset-bottom));
    gap: 14px;
  }
  .dock-nav > ol { justify-content: flex-end; }
  .stage-copy { text-align: center; }
}

@media (min-width: 860px) {
  .stage {
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    padding-top: 106px;
    gap: 40px;
  }
  .stage-copy { text-align: left; }
  .lede { margin: 0; }
  .art { min-height: 58vh; }
}

@media (min-width: 1000px) {
  .flow { grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 32px; }
  .rail { position: sticky; top: 26px; }
  .flow-body > div:nth-of-type(even) { margin-left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
  .js-reveal .flow-body > div,
  .js-reveal .rail,
  .js-reveal .foot > * { opacity: 1; transform: none; }
}

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