@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root {
  --ink: #171f26;
  --ink-lo: #101619;
  --ink-hi: #1f2a33;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --txt: #dfe8f0;
  --dim: #9aacba;
  --line: rgba(200, 224, 244, .11);
  --r: 28px;
  --rr: 16px;
  --out: -6px -6px 16px rgba(200, 224, 244, .06), 9px 9px 22px rgba(0, 0, 0, .55);
  --out-sm: -4px -4px 10px rgba(200, 224, 244, .07), 5px 5px 14px rgba(0, 0, 0, .5);
  --in: inset -4px -4px 9px rgba(200, 224, 244, .07), inset 5px 5px 14px rgba(0, 0, 0, .55);
  --font: 'Outfit', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 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.78;
  color: var(--txt);
  overflow-x: clip;
  background:
    radial-gradient(58vw 42vw at 6% -4%, rgba(200, 224, 244, .13), transparent 68%),
    radial-gradient(52vw 44vw at 102% 18%, rgba(245, 224, 232, .10), transparent 70%),
    radial-gradient(70vw 60vw at 50% 110%, rgba(200, 224, 244, .07), transparent 72%),
    var(--ink);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--pink); }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 60;
  padding: 10px 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- left dock ---------- */
.dock {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  height: 100vh;
  height: 100dvh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  background: linear-gradient(160deg, #1c252e 0%, #131a20 100%);
  box-shadow: 10px 0 30px rgba(0, 0, 0, .5), -1px 0 0 rgba(200, 224, 244, .05) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 4px 6px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  background: linear-gradient(120deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dock-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--txt);
  background: linear-gradient(145deg, #1f2932, #151d24);
  box-shadow: var(--out-sm);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.pill:hover {
  color: #ffffff;
  background: linear-gradient(145deg, #26333f, #1a232b);
}
.pill:active {
  transform: scale(.97);
  box-shadow: var(--in);
}

/* ---------- stage ---------- */
.stage { margin-left: 238px; }

.hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 26px;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(150deg, #22303c, #141b21);
}

.hero-img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  opacity: .62;
  filter: saturate(.92);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(23, 31, 38, .18), transparent 80%),
    linear-gradient(180deg, rgba(23, 31, 38, .42), rgba(23, 31, 38, .95));
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(118deg, var(--blue) 8%, var(--pink) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 30px 76px;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: start;
}

/* ---------- article body ---------- */
.body { min-width: 0; }

.body > div {
  padding: 34px 0;
  scroll-margin-top: 96px;
}
.body > div:first-child { padding-top: 6px; }
.body > div + div {
  border-top: 1px solid var(--line);
}

.body h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.26;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #ffffff;
}

.body h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue);
}

.body p { margin: 0 0 16px; }
.body strong { color: #ffffff; }
.body ul, .body ol { margin: 0 0 16px; padding-left: 1.25em; }
.body li { margin: 0 0 8px; }
.body li::marker { color: var(--blue); }

.body hr {
  border: 0;
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.body img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--out);
}

.body blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-radius: var(--rr);
  color: var(--dim);
  background: linear-gradient(145deg, #1d2731, #151c22);
  box-shadow: var(--in);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.body th, .body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

/* ---------- aside ---------- */
.side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 22px 20px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #1e2831, #141b21);
  box-shadow: var(--out);
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
}

.side-card hr {
  border: 0;
  height: 1px;
  margin: 0 0 14px;
  background: var(--line);
}

.side-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dim);
  text-decoration: none;
  transition: color .15s ease, box-shadow .15s ease;
}
.side-list a:hover {
  color: #ffffff;
  box-shadow: var(--in);
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--txt);
  text-decoration: none;
  background: linear-gradient(145deg, #253340, #18212a);
  box-shadow: var(--out-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.totop:active { transform: scale(.97); box-shadow: var(--in); }

/* ---------- footer ---------- */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px 58px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 24px 32px;
  align-items: center;
}

.cta {
  grid-column: 1 / -1;
  padding: 34px 26px;
  border-radius: var(--r);
  text-align: center;
  background: linear-gradient(145deg, #22303c, #151d24);
  box-shadow: var(--out);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 42px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(145deg, var(--blue), var(--pink));
  box-shadow: -4px -4px 10px rgba(200, 224, 244, .26), 7px 7px 18px rgba(0, 0, 0, .55);
  transition: transform .15s ease;
}
.cta-link:active { transform: scale(.97); }

.foot-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #ffffff;
  text-decoration: none;
}

.foot-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--blue); }

.foot-copy {
  font-size: 16px;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dock {
    inset: 0 0 auto 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 9px 12px;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  }
  .brand {
    font-size: 20px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 2px 4px;
  }
  .dock-list {
    margin: 0;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
  }
  .pill {
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 15px;
  }
  .stage {
    margin-left: 0;
    padding-top: 66px;
  }
  .hero {
    border-radius: 0 0 var(--rr) var(--rr);
    padding: 56px 18px;
  }
  .wrap { padding: 34px 16px 56px; }
  .cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .side {
    position: static;
    order: 2;
  }
  .foot {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 44px;
    justify-items: start;
  }
  .foot-copy { white-space: normal; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(26px, 8.2vw, 34px); }
  .body > div { padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

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