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

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

:root {
  --ink: #171f26;
  --ink-deep: #121920;
  --panel: #1c252f;
  --panel-hi: #222d39;
  --ice: #c8e0f4;
  --pink: #f5e0e8;
  --text: #e4edf5;
  --muted: #9db0c0;
  --hair: rgba(200, 224, 244, 0.1);
  --raise: -6px -6px 18px rgba(200, 224, 244, 0.055), 8px 10px 24px rgba(0, 0, 0, 0.55);
  --raise-sm: -3px -3px 9px rgba(200, 224, 244, 0.05), 4px 6px 14px rgba(0, 0, 0, 0.5);
  --press: inset -3px -3px 9px rgba(200, 224, 244, 0.05), inset 5px 6px 14px rgba(0, 0, 0, 0.55);
  --r: 16px;
}

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

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--ink);
  background-image: radial-gradient(1100px 600px at 82% -8%, rgba(200, 224, 244, 0.1), transparent 62%),
    radial-gradient(900px 620px at 4% 42%, rgba(245, 224, 232, 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Source Sans 3', 'Lexend', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1,
h2,
h3,
.brand,
.rail-title,
.pill {
  font-family: 'Lexend', 'Source Sans 3', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC',
    sans-serif;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--ice);
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 18px 12px;
  background: rgba(23, 31, 38, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-list--a {
  justify-content: flex-end;
}

.nav-list--b {
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.25;
  color: var(--ice);
  background: linear-gradient(145deg, #212c37, #1a232c);
  box-shadow: var(--raise-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.pill:hover {
  color: #fff;
  transform: translateY(-1px);
}

.pill:active {
  transform: scale(0.97);
  box-shadow: var(--press);
}

.pill.is-active {
  box-shadow: var(--press);
  color: #fff;
}

.pill--cta {
  background: linear-gradient(145deg, #dcecfa, #b8d6ee);
  color: #11202b;
  font-weight: 600;
}

.pill--cta:hover {
  color: #0b1620;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- 主区骨架 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 26px;
  align-items: start;
}

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 34px;
  padding: 96px 0 68px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -14% -40%;
  background: linear-gradient(
    128deg,
    rgba(200, 224, 244, 0.18),
    rgba(200, 224, 244, 0) 44%,
    rgba(245, 224, 232, 0.15) 74%,
    rgba(245, 224, 232, 0) 96%
  );
  clip-path: polygon(0 14%, 100% 0, 100% 74%, 0 92%);
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  text-align: right;
  justify-self: stretch;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f2f8fd;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  overflow-wrap: anywhere;
}

.hero-sub {
  margin: 0 0 26px auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.hero-cta {
  margin: 0;
}

.hero-art {
  margin: 0;
  max-width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--raise);
  aspect-ratio: 4 / 4.6;
}

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

.hero-art--orb {
  background: radial-gradient(65% 60% at 34% 28%, rgba(200, 224, 244, 0.5), transparent 70%),
    radial-gradient(70% 65% at 74% 76%, rgba(245, 224, 232, 0.42), transparent 72%), #1a232c;
  box-shadow: var(--raise), inset -10px -10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 正文 ---------- */
.stream {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.stream > * {
  min-width: 0;
  max-width: 100%;
}

.stream > section {
  background: var(--panel);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: var(--raise);
  scroll-margin-top: 118px;
  overflow: hidden;
}

.stream p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}

.stream p:last-child {
  margin-bottom: 0;
}

.stream small {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin: 0 0 2px;
}

.stream h2 {
  margin: 0 0 0.7em;
  font-size: 1.46rem;
  line-height: 1.35;
  font-weight: 600;
  color: #f3f9fe;
  overflow-wrap: anywhere;
}

.stream h3 {
  margin: 1.3em 0 0.5em;
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.stream h3:first-child {
  margin-top: 0;
}

.stream ul,
.stream ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.stream li {
  margin: 0.35em 0;
  overflow-wrap: anywhere;
}

.stream a {
  color: var(--ice);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.stream strong {
  color: #fff;
}

.stream blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #1a232c;
  box-shadow: var(--press);
  color: var(--muted);
  max-width: 100%;
}

.stream img {
  border-radius: 12px;
  height: auto;
  max-width: 100%;
}

.stream figure {
  margin: 1.2em 0;
  max-width: 100%;
}

.stream figcaption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.stream pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: #131b22;
  font-size: 0.94rem;
}

.stream code {
  overflow-wrap: anywhere;
}

.stream table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.stream th,
.stream td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  overflow-wrap: anywhere;
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 104px;
  align-self: start;
  max-width: 100%;
  padding: 22px 18px;
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--raise);
}

.rail small {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin: 0 0 2px;
}

.rail-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f2f8fd;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 14px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--ice);
  font-size: 0.96rem;
  background: linear-gradient(145deg, #222d38, #1a232c);
  box-shadow: var(--raise-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.rail-list a:hover {
  box-shadow: var(--press);
  color: #fff;
  transform: translateX(-2px);
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 18px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px;
  border-top: 1px solid var(--hair);
}

.foot > * {
  min-width: 0;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
}

.foot-col small {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin: 0 0 2px;
}

.foot-col h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #eef6fc;
}

.foot-col ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: var(--ice);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 60;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ice);
  background: linear-gradient(145deg, #232e39, #1a232c);
  box-shadow: var(--raise);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.totop.is-on {
  opacity: 1;
  pointer-events: auto;
}

.totop:hover {
  color: #fff;
}

.totop:active {
  transform: scale(0.96);
  box-shadow: var(--press);
}

/* ---------- 入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pill,
  .rail-list a,
  .totop {
    transition: none;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .stream {
    grid-column: 1;
    grid-row: auto;
  }
  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 64px 0 48px;
    min-height: 0;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-art {
    aspect-ratio: 16 / 11;
    width: 100%;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }
  .nav-list {
    justify-content: center;
    gap: 8px;
  }
  .nav-list--a,
  .nav-list--b {
    justify-content: center;
  }
  .brand {
    order: -1;
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 1.92rem;
  }
  .stream > section {
    padding: 22px 18px;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .totop {
    right: 12px;
    bottom: 14px;
  }
}

@media (max-width: 460px) {
  .top {
    padding: 12px 12px 10px;
  }
  main {
    padding: 0 12px 40px;
  }
  .hero {
    padding: 46px 0 34px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .pill {
    padding: 8px 13px;
    font-size: 0.92rem;
  }
  .stream > section {
    padding: 18px 15px;
  }
  .stream h2 {
    font-size: 1.28rem;
  }
  .foot {
    padding: 30px 12px 24px;
  }
}

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