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

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

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121212;
  --surface-lo: #0a0a0a;
  --line: #1d1d1d;
  --line-hi: #2a2a2a;
  --fg: #e9e9e9;
  --fg-dim: #a5a5a5;
  --fg-mute: #6f6f6f;
  --neon: #ffc94a;
  --blue: #1b2440;
  --r: 18px;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, #151515 1px, transparent 0);
  background-size: 22px 22px;
  padding-bottom: 132px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--neon); text-decoration: none; }
a:hover { color: #ffffff; }

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

/* ---------- 底部固定导航 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
}

.dock-in {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-l,
.nav-r {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.dock nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #cfcfcf;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock nav a .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a3a3a;
  flex: 0 0 auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dock nav a:hover,
.dock nav a.on {
  color: #ffffff;
  background: #101010;
}

.dock nav a:hover .dot,
.dock nav a.on .dot {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(255, 201, 74, 0.9);
}

.dock nav a.brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.16em;
  padding: 8px 12px;
  white-space: nowrap;
  background: none;
}

.dock nav a.brand:hover { color: var(--neon); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 70px 20px 110px;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: -12% 0 0;
  z-index: -2;
}

.hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.05);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(115% 78% at 50% 38%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 58%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.55;
}

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

.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 201, 74, 0.2);
  overflow-wrap: break-word;
}

.hero-skip { margin: 30px 0 0; }

.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  color: #eaeaea;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(18, 18, 18, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.enter:hover {
  border-color: var(--neon);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 201, 74, 0.25);
}

/* ---------- 主体分栏 ---------- */

main { display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.col { min-width: 0; }

.prose { min-width: 0; overflow-wrap: break-word; }

.prose > div {
  position: relative;
  background: linear-gradient(180deg, #0e0e0e, var(--surface-lo));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3.6vw, 34px);
  margin: 0 0 22px;
  scroll-margin-top: 26px;
}

.prose > div::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(255, 201, 74, 0));
}

.prose > div:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.7vw, 1.72rem);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: #ffffff;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.16rem;
  line-height: 1.4;
  font-weight: 700;
  color: #f1f1f1;
}

.prose h2 span,
.prose h3 span {
  background: linear-gradient(transparent 62%, rgba(255, 201, 74, 0.22) 62%);
  padding-bottom: 2px;
}

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

.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0 0 0.45em; }
.prose li::marker { color: var(--neon); }

.prose strong { color: #ffffff; font-weight: 700; }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  background: #0f0f0f;
  color: var(--fg-dim);
}

.prose img {
  border-radius: 12px;
  border: 1px solid var(--line);
  height: auto;
}

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

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

.prose th { background: #131313; color: #ffffff; }

.prose time {
  color: var(--fg-mute);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* ---------- 侧栏 ---------- */

.side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.side-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0e0e0e, #090909);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}

.side-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(255, 201, 74, 0));
}

.side-head {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.side-head span {
  background: linear-gradient(transparent 62%, rgba(255, 201, 74, 0.22) 62%);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sidec;
}

.side-list li { counter-increment: sidec; }

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #c6c6c6;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-list a::before {
  content: counter(sidec, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #5a5a5a;
  font-variant-numeric: tabular-nums;
}

.side-list a:hover,
.side-list a.on {
  background: #121212;
  color: #ffffff;
}

.side-top { margin: 0; }

.side-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  font-size: 16px;
  color: #dcdcdc;
}

.side-top a:hover { border-color: var(--neon); color: #ffffff; }

/* ---------- 页脚 ---------- */

.site-foot {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 34px 20px 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}

.site-foot small {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
}

.foot-brand {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #ffffff;
  opacity: 0.18;
  white-space: nowrap;
}

.foot-right {
  margin: 0;
  text-align: right;
}

.foot-right a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 15px;
  color: #b8b8b8;
}

.foot-right a:hover { color: #ffffff; }

/* ---------- 动效 ---------- */

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}

.dock nav a,
.side-list li,
.prose > div {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.nav-l a:nth-child(1) { animation-delay: 0.04s; }
.nav-l a:nth-child(2) { animation-delay: 0.08s; }
.nav-l a:nth-child(3) { animation-delay: 0.12s; }
.nav-r a:nth-child(1) { animation-delay: 0.16s; }
.nav-r a:nth-child(2) { animation-delay: 0.2s; }
.nav-r a:nth-child(3) { animation-delay: 0.24s; }
.nav-r a:nth-child(4) { animation-delay: 0.28s; }

.side-list li:nth-child(1) { animation-delay: 0.05s; }
.side-list li:nth-child(2) { animation-delay: 0.1s; }
.side-list li:nth-child(3) { animation-delay: 0.15s; }
.side-list li:nth-child(4) { animation-delay: 0.2s; }
.side-list li:nth-child(5) { animation-delay: 0.25s; }
.side-list li:nth-child(6) { animation-delay: 0.3s; }
.side-list li:nth-child(7) { animation-delay: 0.35s; }

.prose > div:nth-child(1) { animation-delay: 0.02s; }
.prose > div:nth-child(2) { animation-delay: 0.07s; }
.prose > div:nth-child(3) { animation-delay: 0.12s; }
.prose > div:nth-child(4) { animation-delay: 0.17s; }
.prose > div:nth-child(5) { animation-delay: 0.22s; }
.prose > div:nth-child(6) { animation-delay: 0.27s; }
.prose > div:nth-child(7) { animation-delay: 0.32s; }

/* ---------- 断点 ---------- */

@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}

@media (max-width: 860px) {
  body { padding-bottom: 186px; }

  .dock-in {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .dock nav a.brand {
    order: -1;
    flex: 1 1 100%;
    text-align: center;
    padding: 6px 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #141414;
  }

  .nav-l,
  .nav-r {
    justify-content: center;
    flex: 1 1 auto;
  }

  .dock nav a { padding: 8px 7px; }

  .hero { padding: 56px 18px 96px; }

  .site-foot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding-bottom: 24px;
  }

  .foot-right { text-align: center; }
  .foot-brand { order: -1; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .prose > div { padding: 18px; border-radius: 14px; }
  .prose > div::after { left: 16px; right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-foot { padding-left: 16px; padding-right: 16px; }
}

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

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