@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #d6e2ed;
  background-color: #171f26;
  background-image:
    radial-gradient(58rem 40rem at 88% -12%, rgba(200, 224, 244, .12), transparent 62%),
    radial-gradient(48rem 34rem at 2% 34%, rgba(245, 224, 232, .09), transparent 64%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
h1, h2, h3 {
  font-family: 'Calistoga', 'Songti SC', 'Source Han Serif SC', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #f5e0e8;
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- 顶部胶囊导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: .7rem clamp(.9rem, 3vw, 2rem);
  background: rgba(23, 31, 38, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem 1.15rem;
  border-radius: 14px;
  font-family: 'Calistoga', 'Songti SC', Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: #edf5fb;
  background: linear-gradient(145deg, #222d37, #141b22);
  box-shadow: 6px 6px 15px rgba(0, 0, 0, .55), -5px -5px 13px rgba(200, 224, 244, .07);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  color: #171f26;
  background: linear-gradient(145deg, #f9ecf1, #eed6e1);
  box-shadow: 6px 6px 16px rgba(0, 0, 0, .5), -5px -5px 14px rgba(245, 224, 232, .12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:active { transform: scale(.96); }
.cta-top { order: 2; margin-left: auto; }

.pills { order: 3; flex: 1 1 100%; min-width: 0; }
.pills ul {
  display: flex;
  gap: .45rem;
  margin: 0;
  padding: .1rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pills ul::-webkit-scrollbar { display: none; }
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .93rem;
  white-space: nowrap;
  text-decoration: none;
  color: #bdcede;
  background: linear-gradient(145deg, #1f2933, #151d24);
  box-shadow: 6px 6px 14px rgba(0, 0, 0, .5), -5px -5px 12px rgba(200, 224, 244, .06);
  transition: transform .15s ease, color .15s ease, box-shadow .15s ease;
}
.pills a:hover { color: #f2f8fd; }
.pills a:active {
  transform: scale(.96);
  box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .62), inset -4px -4px 10px rgba(200, 224, 244, .07);
}
.pills a[aria-current] {
  color: #171f26;
  background: linear-gradient(145deg, #dbebf9, #bed8ee);
  box-shadow: 5px 5px 14px rgba(0, 0, 0, .5), -4px -4px 12px rgba(200, 224, 244, .16);
}

@media (min-width: 900px) {
  .pills { order: 2; flex: 1 1 auto; }
  .pills ul { justify-content: center; }
  .cta-top { order: 3; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  min-height: 100svh;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(1.8rem, 6vw, 3.6rem) clamp(1rem, 4vw, 3rem) clamp(2.6rem, 8vw, 4.5rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(200, 224, 244, .2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000, transparent 76%);
  mask-image: radial-gradient(72% 62% at 50% 42%, #000, transparent 76%);
}

.hero-txt { text-align: right; }
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.9rem);
  color: #f3f9fd;
  letter-spacing: .01em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.hero-sub {
  margin-top: 1.05rem;
  margin-inline-start: auto;
  max-width: 36ch;
  font-size: 1rem;
  color: #a6bccd;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: 1.7rem;
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #222d37, #141b22);
  box-shadow: 16px 16px 40px rgba(0, 0, 0, .55), -14px -14px 34px rgba(200, 224, 244, .06);
  will-change: transform;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.orb {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #f9ecf1, #c8e0f4 56%, #8db2d1 100%);
  box-shadow:
    inset -14px -14px 34px rgba(23, 31, 38, .32),
    inset 12px 12px 30px rgba(255, 255, 255, .62),
    0 22px 56px rgba(0, 0, 0, .5);
  animation: drift 10s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(-6px) scale(1); }
  50% { transform: translateY(10px) scale(1.03); }
}

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.12fr .88fr; }
  .hero-art { aspect-ratio: 4 / 5; max-height: 68svh; }
}

/* ---------- 正文区 ---------- */
.stage { padding: clamp(1.6rem, 5vw, 3rem) 0 clamp(2.4rem, 7vw, 4rem); }
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
@media (min-width: 1000px) {
  .sheet { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
}

.prose {
  min-width: 0;
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.prose section {
  margin-bottom: 1rem;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  border-radius: 10px;
  background: #1b242c;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, .5), -10px -10px 26px rgba(200, 224, 244, .045);
  scroll-margin-top: 7.4rem;
}
.prose > * { scroll-margin-top: 7.4rem; }
.prose h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  color: #eef6fc;
  letter-spacing: .01em;
}
.prose h2:not(:first-child) { margin-top: 1.8rem; }
.prose h2 + p {
  margin: .55rem 0 1.05rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #a4bccd;
}
.prose h3 {
  margin: 1.5rem 0 .35rem;
  font-family: 'Inter', system-ui, 'PingFang SC', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2edf6;
}
.prose p { margin-block: .85rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.25rem; }
.prose li { margin-block: .4rem; }
.prose li::marker { color: #f5e0e8; }
.prose strong { color: #f2f8fd; font-weight: 600; }
.prose em { color: #d9e8f4; }
.prose a {
  color: #c8e0f4;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.prose a:hover { color: #f5e0e8; }
.prose blockquote {
  margin: 1.2rem 0;
  padding: .95rem 1.15rem;
  border-radius: 10px;
  color: #c2d5e3;
  background: #161e25;
  box-shadow: inset 5px 5px 14px rgba(0, 0, 0, .5), inset -4px -4px 12px rgba(200, 224, 244, .05);
}
.prose figure { margin: 1.2rem 0; }
.prose img { border-radius: 10px; box-shadow: 8px 8px 22px rgba(0, 0, 0, .5); }
.prose hr { height: 1px; border: 0; margin: 1.6rem 0; background: rgba(200, 224, 244, .12); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid rgba(200, 224, 244, .1); }

/* ---------- 右侧栏 ---------- */
.rail {
  min-width: 0;
  align-self: start;
  padding: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #232e38, #161e25);
  box-shadow: 12px 12px 30px rgba(0, 0, 0, .5), -10px -10px 26px rgba(200, 224, 244, .05);
}
.rail h2 { font-size: 1.25rem; color: #f1f8fd; }
.rail .subtitle {
  margin-top: .25rem;
  font-size: .88rem;
  letter-spacing: .03em;
  color: #9db5c8;
}
.rail ul {
  display: grid;
  gap: .4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .35rem .8rem;
  border-radius: 10px;
  font-size: .91rem;
  text-decoration: none;
  color: #b7cbdb;
  background: #1a232b;
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, .45), inset -3px -3px 8px rgba(200, 224, 244, .05);
  transition: color .15s ease, transform .15s ease;
}
.rail a:hover { color: #f6fbfe; }
.rail a:active { transform: scale(.98); }
@media (min-width: 1000px) {
  .rail { position: sticky; top: 6.6rem; }
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.6rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.2rem;
  font-size: .9rem;
  color: #90a6b7;
}
.foot-a { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.foot-brand {
  font-family: 'Calistoga', 'Songti SC', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-decoration: none;
  color: #e7f0f8;
  padding: .45rem .2rem;
}
.sub { display: flex; flex-wrap: wrap; gap: .45rem; }
.sub input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .95rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  color: #e4eef6;
  background: #141b22;
  box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .6), inset -4px -4px 10px rgba(200, 224, 244, .05);
}
.sub input::placeholder { color: #7d92a4; }
.sub button {
  min-height: 44px;
  padding: .45rem 1.05rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: #171f26;
  cursor: pointer;
  background: linear-gradient(145deg, #d9e9f8, #bcd7ee);
  box-shadow: 5px 5px 14px rgba(0, 0, 0, .5), -4px -4px 12px rgba(200, 224, 244, .14);
}
.sub button:active { transform: scale(.96); }

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .88rem;
  text-decoration: none;
  color: #a5bbcc;
}
.foot-nav a:hover { color: #f2f8fd; background: #1b242c; }

.foot-b { display: flex; align-items: center; gap: .8rem; }
.foot-b p { margin: 0; }
.foot-end {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .88rem;
  text-decoration: none;
  color: #a5bbcc;
}
.foot-end:hover { color: #f2f8fd; }

@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: flex-start; }
  .hero-sub { max-width: none; }
  .hero-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .hero-art { will-change: auto; }
  .cta, .pills a, .rail a { transition: none; }
}

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