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

:root {
  --surface: #0b0b0e;
  --surface-2: #121212;
  --line: #23232b;
  --line-soft: #1a1a21;
  --text: #e6e6ea;
  --muted: #96969f;
  --blue: #5673ff;
  --blue-soft: #23306b;
  --gold: #e3bd76;
  --radius: 18px;
  --glow: 0 0 10px rgba(86, 115, 255, 0.45);
}

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

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

body {
  margin: 0;
  background: #000000;
  color: var(--text);
  font-family: "Figtree", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- 顶部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(12px, 3vw, 30px);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.nav-left p { justify-content: flex-start; }
.nav-right p { justify-content: flex-end; }

.site-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0d0d11;
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-head a:hover,
.site-head a:focus-visible {
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--glow);
}

.brand {
  justify-self: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--blue-soft);
  background: #0a0a0f;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: var(--glow);
  white-space: nowrap;
}

.pill-contact {
  border-color: var(--blue-soft);
  color: #dfe5ff;
  background: #101422;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  min-height: 70vh;
  padding: clamp(30px, 6vw, 76px) clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background-color: #000;
  background-image: radial-gradient(rgba(120, 150, 255, 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(40, 62, 168, 0.32), transparent 62%),
    linear-gradient(180deg, transparent 55%, #000 100%);
  pointer-events: none;
}

.hero-copy,
.hero-art { position: relative; z-index: 1; }

.hero-copy { text-align: center; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 22px rgba(86, 115, 255, 0.35);
}

.lede {
  margin: 0 auto 24px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, #1d2a63, #0b1020 70%);
  border: 1px solid var(--blue-soft);
  box-shadow: 0 0 24px rgba(60, 90, 220, 0.28);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(90, 120, 255, 0.55);
}

.hero-art {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75), 0 0 26px rgba(50, 80, 200, 0.2);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 主体 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: clamp(20px, 3vw, 42px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) clamp(14px, 3vw, 30px);
}

.prose { min-width: 0; }

.prose > article {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e0e12, #08080b);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.prose > article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(86, 115, 255, 0.15) 62%, transparent);
}

.prose > article:target {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 1px rgba(86, 115, 255, 0.32), 0 14px 34px rgba(0, 0, 0, 0.6);
}

.prose article[id] { scroll-margin-top: 100px; }

.prose p,
.prose li {
  font-size: 1.03rem;
  line-height: 1.85;
  color: #d8d8de;
}

.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  margin: 1.5em 0 0.6em;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(86, 115, 255, 0.3);
}

.prose h2 { font-size: 1.34rem; }
.prose h3 { font-size: 1.13rem; }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose ul,
.prose ol { margin: 0 0 1.05em; padding-left: 1.35em; }
.prose li { margin-bottom: 0.45em; }

.prose strong { color: #fff; }

.prose a {
  color: #a9baff;
  text-decoration: underline;
  text-decoration-color: rgba(86, 115, 255, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover { color: #fff; }

.prose img,
.prose figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
}

.prose blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-left: 2px solid var(--blue);
  background: #0c0c12;
  border-radius: 0 12px 12px 0;
  color: #cfd3e6;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.1em;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th { color: #fff; background: #0d0d13; }

/* ---------- 侧栏 ---------- */
.rail {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 96px;
  height: max-content;
}

.box {
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0a0e;
  overflow: hidden;
}

.box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--gold);
}

.rail-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--gold);
}

.rail-links {
  display: grid;
  margin: 0;
}

.rail-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: #c9c9d3;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  opacity: 0;
  animation: rise 0.5s ease forwards;
}

.rail-links a:last-child { border-bottom: 0; }

.rail-links a:hover,
.rail-links a:focus-visible {
  color: #fff;
  padding-left: 6px;
}

.rail-links a:nth-child(1) { animation-delay: 0.04s; }
.rail-links a:nth-child(2) { animation-delay: 0.09s; }
.rail-links a:nth-child(3) { animation-delay: 0.14s; }
.rail-links a:nth-child(4) { animation-delay: 0.19s; }
.rail-links a:nth-child(5) { animation-delay: 0.24s; }
.rail-links a:nth-child(6) { animation-delay: 0.29s; }
.rail-links a:nth-child(7) { animation-delay: 0.34s; }

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: #050507;
  padding: clamp(28px, 5vw, 58px) clamp(14px, 3vw, 30px) 20px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  align-items: center;
  gap: 18px 28px;
  max-width: 1180px;
  margin: 0 auto 32px;
}

.foot-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(86, 115, 255, 0.32);
}

.sub {
  display: flex;
  gap: 10px;
}

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0c0c11;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.sub input::placeholder { color: var(--muted); }

.sub button {
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--blue-soft);
  background: linear-gradient(140deg, #1b2760, #0b1020);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.sub button:hover,
.sub button:focus-visible { box-shadow: var(--glow); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.foot-cols dd { margin: 0; }

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #b6b6c0;
  text-decoration: none;
  font-size: 0.97rem;
}

.foot-cols a:hover,
.foot-cols a:focus-visible { color: #fff; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.foot-bottom p { margin: 0; }

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #b6b6c0;
}

.foot-bottom a:hover,
.foot-bottom a:focus-visible { color: #fff; border-color: var(--blue); }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .lede { max-width: 40ch; }
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 6px;
    padding: 8px 12px;
  }
  .brand { order: -1; }
  .nav { width: 100%; min-width: 0; }
  .nav p {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav p::-webkit-scrollbar { display: none; }
  .site-head a { padding: 8px 12px; font-size: 0.9rem; }
  .prose article[id] { scroll-margin-top: 150px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 0; padding: 26px 16px 38px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot-cols dd { display: inline-block; margin-right: 14px; }
  .foot-cols a { min-height: 44px; }
  .sub { flex-wrap: wrap; }
  .sub input { flex: 1 1 100%; }
  .sub button { flex: 1 1 100%; }
  .foot-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .rail-links a { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

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