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

:root {
  --orange: #ffa347;
  --blue: #5681ff;
  --ink: #261f17;
  --paper: #fdf4ea;
  --muted: rgba(253, 244, 234, 0.74);
  --glass: rgba(255, 255, 255, 0.10);
  --edge: rgba(255, 255, 255, 0.18);
  --radius: 28px;
  --bar: 64px;
  --f-head: 'Varela Round', 'Nunito Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Nunito Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background: #17120d;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 10% -10%, rgba(255, 163, 71, 0.30), transparent 62%),
    radial-gradient(54vw 54vw at 94% 6%, rgba(86, 129, 255, 0.28), transparent 60%),
    radial-gradient(72vw 72vw at 46% 112%, rgba(255, 163, 71, 0.15), transparent 66%),
    linear-gradient(180deg, #1e1810 0%, #14100b 58%, #0e0b08 100%);
}

a { color: inherit; }

.halo {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.halo-a { width: 38vw; height: 38vw; left: -10vw; top: 4vh; background: rgba(255, 163, 71, 0.34); }
.halo-b { width: 34vw; height: 34vw; right: -8vw; top: 42vh; background: rgba(86, 129, 255, 0.34); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--bar);
  padding: 8px clamp(14px, 4vw, 40px);
  background: rgba(22, 17, 12, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--paper);
  border-radius: 14px;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-family: var(--f-head);
  font-size: 15px;
  color: #1f1508;
  background: linear-gradient(140deg, var(--orange), var(--blue));
  box-shadow: 0 10px 24px rgba(255, 163, 71, 0.32);
}

.brand-name {
  font-family: var(--f-head);
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topnav { margin-left: auto; }
.topnav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #22180a;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--orange), #ff8f2f);
  box-shadow: 0 12px 30px rgba(255, 163, 71, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255, 163, 71, 0.42); }

/* ---------- 二级锚点条 ---------- */
.trail {
  position: sticky;
  top: var(--bar);
  z-index: 55;
  padding: 8px clamp(14px, 4vw, 40px);
  background: rgba(18, 14, 10, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.trailnav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.trailnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.trailnav a:hover,
.trailnav a[aria-current='true'] {
  color: #fff;
  background: rgba(86, 129, 255, 0.28);
  border-color: rgba(86, 129, 255, 0.55);
}

/* ---------- 首屏 ---------- */
.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(840px, calc(100svh - 122px));
  padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 48px) clamp(64px, 9vw, 116px);
  overflow: hidden;
  border-radius: 0 0 clamp(30px, 6vw, 68px) clamp(30px, 6vw, 68px);
  background: linear-gradient(150deg, rgba(255, 163, 71, 0.18), rgba(86, 129, 255, 0.16));
}

.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.52) 0%, rgba(14, 11, 8, 0.90) 76%, rgba(14, 11, 8, 0.98) 100%);
}

.stage-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}
.stage-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
}

.ghost {
  position: absolute;
  top: clamp(8px, 3vw, 38px);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin: 0;
  font-family: var(--f-head);
  font-size: clamp(88px, 21vw, 250px);
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.075);
  pointer-events: none;
  user-select: none;
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}
.glow-a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: rgba(255, 163, 71, 0.40); }
.glow-b { width: 42vw; height: 42vw; right: -12vw; bottom: -16vw; background: rgba(86, 129, 255, 0.40); }

.stage-copy {
  position: relative;
  max-width: min(760px, 92vw);
  text-align: center;
}

.stage-copy h1 {
  margin: 0 0 18px;
  font-family: var(--f-head);
  font-size: clamp(33px, 6.2vw, 62px);
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
}

.lede {
  margin: 0 auto 28px;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: #231708;
  background: linear-gradient(135deg, #ffb863, var(--orange));
  box-shadow: 0 18px 44px rgba(255, 163, 71, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(255, 163, 71, 0.48); }

/* ---------- 主体：左栏 + 正文 ---------- */
.deck {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) clamp(16px, 4vw, 40px) clamp(56px, 9vw, 108px);
}

.rail {
  position: sticky;
  top: calc(var(--bar) + 64px);
  padding: 22px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 22px 50px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.rail-title {
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-size: 22px;
  line-height: 1.35;
  text-wrap: balance;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 2px 10px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}
.num {
  font-family: var(--f-head);
  font-size: 12.5px;
  color: var(--orange);
  opacity: 0.9;
}

.flow {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.flow > div {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 163, 71, 0.22);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(15px) saturate(1.15);
  -webkit-backdrop-filter: blur(15px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 26px 62px rgba(0, 0, 0, 0.30);
  scroll-margin-top: 168px;
}
.flow > div:nth-of-type(even) { border-color: rgba(86, 129, 255, 0.26); }
.flow > div::after {
  content: '';
  position: absolute;
  left: clamp(24px, 4vw, 44px);
  right: clamp(24px, 4vw, 44px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.6;
}

.flow h2 {
  margin: 0 0 16px;
  font-family: var(--f-head);
  font-size: clamp(23px, 3.1vw, 31px);
  line-height: 1.34;
  text-wrap: balance;
}
.flow h2 small,
.flow h3 small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.flow h3 {
  margin: 30px 0 10px;
  font-family: var(--f-head);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.4;
  text-wrap: balance;
}

.flow p { margin: 0 0 16px; }
.flow p:last-child { margin-bottom: 0; }
.flow a { color: var(--orange); text-underline-offset: 3px; }
.flow strong { color: #fff; }
.flow ul,
.flow ol { margin: 0 0 16px; padding-left: 22px; }
.flow li { margin: 0 0 8px; }

.flow blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 20px 20px 0;
  background: rgba(86, 129, 255, 0.13);
  color: #fff;
}

.flow figure { margin: 20px 0; }
.flow img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--edge);
}

.flow table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 16px;
}
.flow th,
.flow td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}
.flow th { color: var(--orange); font-weight: 700; }

.flow code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 22px clamp(16px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 11, 8, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footnav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}
.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.footnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.foot-copy { margin-left: auto; }
.foot-copy p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(253, 244, 234, 0.62);
}

/* ---------- 入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cta,
  .contact,
  .topnav a,
  .trailnav a,
  .rail-list a { transition: none; }
}

/* ---------- 小屏 ---------- */
@media (max-width: 880px) {
  :root { --bar: 58px; }
  .topnav { display: none; }
  .contact { margin-left: auto; }
  .deck { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rail { position: static; padding: 18px 16px; }
  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .rail-list a {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
  }
  .num { display: none; }
  .stage { min-height: calc(100svh - 108px); }
  .ghost { font-size: clamp(72px, 26vw, 150px); }
  .flow > div { scroll-margin-top: 124px; }
  .foot-copy { margin-left: 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .contact { padding: 0 16px; font-size: 15px; }
  .stage-copy h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .cta { min-height: 50px; padding: 0 28px; }
}

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