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

:root {
  --ink: #000000;
  --panel: #121212;
  --panel-2: #0a0d16;
  --line: rgba(255, 255, 255, .08);
  --fg: #e9eef8;
  --muted: #8d97a9;
  --accent: #4d6bff;
  --accent-2: #8b5cff;
  --gold: #ffc46b;
  --rail: 74px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: #000;
  color: var(--fg);
  font-family: "DM Sans", "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  padding-bottom: calc(var(--rail) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -.01em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--rail);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #000 20%, rgba(0, 0, 0, .82));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .12em;
  text-shadow: 0 0 12px rgba(77, 107, 255, .55);
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

.menu { position: relative; }

.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--panel);
  color: #fff;
  font-size: 16px;
  letter-spacing: .1em;
  transition: background .2s ease, color .2s ease;
}

.menu > summary::-webkit-details-marker { display: none; }

.menu > summary::before {
  content: "";
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 5px 0 var(--accent), 0 -5px 0 var(--accent), 0 0 10px rgba(77, 107, 255, .7);
  transition: box-shadow .2s ease;
}

.menu[open] > summary { background: #1b2440; color: #fff; }

.menu > summary:hover { background: #1b2440; }

.menu > menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  margin: 0;
  padding: 8px;
  list-style: none;
  width: min(78vw, 300px);
  max-height: 62vh;
  overflow-y: auto;
  background: rgba(15, 17, 24, .98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 -20px 54px rgba(0, 0, 0, .8);
}

.menu > menu > li > a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 10px;
  color: #d5dcea;
  text-decoration: none;
  font-size: 16px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.menu > menu > li > a:hover,
.menu > menu > li > a:focus-visible {
  background: var(--panel-2);
  color: #fff;
  transform: translateX(3px);
}

.ico {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(77, 107, 255, .85);
}

.menu > menu > li:nth-child(3n+2) .ico { background: var(--accent-2); box-shadow: 0 0 9px rgba(139, 92, 255, .85); }
.menu > menu > li:nth-child(3n+3) .ico { background: var(--gold); box-shadow: 0 0 9px rgba(255, 196, 107, .85); }

/* ---------- 满屏斜切大图 ---------- */
main { display: block; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 88px 20px calc(var(--rail) + 76px);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(77, 107, 255, .24), transparent 62%),
    #000;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .46;
  filter: saturate(.8) contrast(1.08) brightness(.85);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .88) 64%, #000);
}

.hero-band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -4%;
  height: 44%;
  z-index: 1;
  background: linear-gradient(100deg, rgba(77, 107, 255, .6), rgba(139, 92, 255, .2) 52%, transparent 88%);
  transform: skewY(-6deg);
  transform-origin: bottom left;
  mix-blend-mode: screen;
  filter: blur(1px);
}

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

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 11vw, 92px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 0 30px rgba(77, 107, 255, .45);
  filter: drop-shadow(0 0 20px rgba(77, 107, 255, .35));
  animation: rise .72s cubic-bezier(.2, .7, .3, 1) both;
}

.hero .desc {
  margin: 22px auto 0;
  max-width: 620px;
  color: #b7c2d4;
  font-size: 17px;
  line-height: 1.72;
  animation: rise .72s cubic-bezier(.2, .7, .3, 1) .13s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 主栅格：侧栏在左 ---------- */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
}

.side {
  padding: 34px 20px 6px;
  border-bottom: 1px solid var(--line);
}

.side-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: none;
}

.side-title span {
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.side-title span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 196, 107, .8);
}

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

.side-list li { animation: rise .5s ease both; }
.side-list li:nth-child(1) { animation-delay: .05s; }
.side-list li:nth-child(2) { animation-delay: .1s; }
.side-list li:nth-child(3) { animation-delay: .15s; }
.side-list li:nth-child(4) { animation-delay: .2s; }
.side-list li:nth-child(5) { animation-delay: .25s; }
.side-list li:nth-child(6) { animation-delay: .3s; }
.side-list li:nth-child(7) { animation-delay: .35s; }

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: 10px;
  color: #c2cbdb;
  text-decoration: none;
  font-size: 16px;
  transition: background .16s ease, color .16s ease;
}

.side-list a::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--accent);
  opacity: .75;
}

.side-list a:hover,
.side-list a:focus-visible {
  background: var(--panel);
  color: #fff;
}

/* ---------- 正文 ---------- */
.prose {
  padding: 40px 20px 76px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.prose > section {
  position: relative;
  padding: 42px 0 46px;
  scroll-margin-top: 22px;
}

.prose > section + section { border-top: 1px solid var(--line); }

.prose > section::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.prose > section:nth-child(even)::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.prose h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 5.2vw, 34px);
  color: #fff;
  letter-spacing: -.02em;
}

.prose h2 span { position: relative; display: inline-block; }

.prose h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 107, 255, .85), transparent);
}

.prose h3 {
  margin: 32px 0 12px;
  font-size: 21px;
  color: #f2f5fb;
}

.prose h3 span { display: inline-block; }

.prose p { margin: 0 0 18px; color: #ccd5e2; }

.prose a {
  color: #9db2ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .16s ease;
}

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

.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #ccd5e2;
}

.prose li { margin: 0 0 9px; }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
  color: #dbe3ef;
}

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

.prose figure {
  margin: 26px 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
}

.prose figcaption {
  padding: 10px 14px;
  font-size: 15px;
  color: var(--muted);
}

.prose time {
  display: inline-block;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}

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

.prose th { color: #fff; background: var(--panel); }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #000, #06080f);
  padding: 56px 20px calc(var(--rail) + 40px);
}

.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-brand {
  display: inline-block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 9vw, 82px);
  line-height: .9;
  letter-spacing: -.035em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 30px rgba(77, 107, 255, .35);
}

.copy {
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--muted);
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #bcc6d7;
  text-decoration: none;
  font-size: 16px;
  transition: background .16s ease, color .16s ease;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  background: var(--panel);
  color: #fff;
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .prose { padding: 52px 32px 96px; }
  footer { padding-top: 68px; }
  .foot-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .foot-links { justify-content: flex-end; max-width: 460px; }
}

@media (min-width: 980px) {
  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 54px;
    padding: 0 32px;
  }
  .side {
    position: sticky;
    top: 34px;
    align-self: start;
    border-bottom: 0;
    padding: 56px 0 24px;
  }
  .prose { margin: 0; padding: 56px 0 100px; max-width: 790px; }
  .hero { padding-bottom: calc(var(--rail) + 96px); }
}

@media (min-width: 1280px) {
  .hero h1 { letter-spacing: -.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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