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

:root {
  --ink: #000000;
  --panel: #121212;
  --panel-2: #0a0a0a;
  --text: #E7ECF3;
  --body: #D6DCE6;
  --muted: #8A93A3;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #4B8BFF;
  --accent-2: #7FD1FF;
  --r: 10px;
  --rail: 264px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(75, 139, 255, 0.35);
  color: #fff;
}

/* ---------- 左侧固定竖排导航 ---------- */

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px 30px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(0, 0, 0, 0.98));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--r);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover .brand-txt {
  text-shadow: 0 0 12px rgba(75, 139, 255, 0.6);
}

.brand-txt {
  font-size: 17px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
}

.find {
  width: 100%;
  margin: 0;
}

.find input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

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

.find input:focus {
  border-color: transparent;
  background: #161616;
}

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

.rail-nav li.grp {
  margin: 14px 0 3px;
  padding-left: 10px;
}

.rail-nav li.grp small {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: #cfd6e2;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rail-nav a:hover {
  transform: translateX(3px);
  background: var(--panel);
  border-color: var(--line-2);
  color: #fff;
}

.rail-nav a.on {
  background: rgba(75, 139, 255, 0.13);
  border-color: rgba(75, 139, 255, 0.42);
  color: #fff;
  box-shadow: 0 0 16px rgba(75, 139, 255, 0.16);
}

.rail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- 主区 ---------- */

.stage {
  margin-left: var(--rail);
  padding: 0 clamp(18px, 4vw, 56px);
}

section[id] {
  scroll-margin-top: 24px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(46px, 9vh, 104px) 0 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  max-width: 20em;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(75, 139, 255, 0.22);
}

.hero-desc {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
}

.hero-fig {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 18% 0%, rgba(75, 139, 255, 0.22), transparent 62%),
    linear-gradient(160deg, #0b0f18, #000 70%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}

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

.band {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 34px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.75;
}

/* ---------- 正文 ---------- */

.prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 0 44px;
}

.prose section {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(0, 0, 0, 0.55));
  box-shadow: 0 24px 44px -30px #000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prose section:hover {
  border-color: var(--line-2);
}

.prose section:target {
  border-color: rgba(75, 139, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(75, 139, 255, 0.22), 0 0 34px rgba(75, 139, 255, 0.14);
}

.prose small {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: #fff;
}

.prose p {
  margin: 0 0 14px;
  color: var(--body);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--body);
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 209, 255, 0.35);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.prose strong {
  color: #fff;
}

.prose figure {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.prose aside {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(75, 139, 255, 0.08);
  color: var(--body);
}

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

.prose blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
}

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

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

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

.prose img {
  display: block;
  border-radius: var(--r);
}

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

/* ---------- 尾部跳转 ---------- */

.tail {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 0 64px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
}

.tail h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.tail-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(18, 18, 18, 0.85);
}

.tail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

.tail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #cfd6e2;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tail-list a:hover {
  background: rgba(75, 139, 255, 0.12);
  border-color: rgba(75, 139, 255, 0.4);
  color: #fff;
}

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

.foot {
  margin-left: var(--rail);
  padding: clamp(30px, 5vw, 62px) clamp(18px, 4vw, 56px) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #050505, #000);
}

.foot-huge {
  margin: 0 0 30px;
  font-size: clamp(34px, 7vw, 84px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.92;
  text-shadow: 0 0 34px rgba(75, 139, 255, 0.18);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.foot h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.foot address {
  font-style: normal;
  line-height: 1.9;
  color: #cfd6e2;
}

.foot-col p {
  margin: 0;
  color: #cfd6e2;
}

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

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfd6e2;
  text-decoration: none;
  font-size: 16px;
}

.foot-list a:hover {
  color: #fff;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 22px;
  color: var(--muted);
}

.foot-base p {
  margin: 0;
  font-size: 16px;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfd6e2;
  text-decoration: none;
  font-size: 16px;
}

.totop:hover {
  border-color: var(--line-2);
  color: #fff;
}

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

@media (prefers-reduced-motion: no-preference) {
  .prose section {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

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

  .rail-nav li {
    animation: slide 0.42s ease both;
  }

  .rail-nav li:nth-child(2) { animation-delay: 0.03s; }
  .rail-nav li:nth-child(3) { animation-delay: 0.06s; }
  .rail-nav li:nth-child(4) { animation-delay: 0.09s; }
  .rail-nav li:nth-child(5) { animation-delay: 0.12s; }
  .rail-nav li:nth-child(6) { animation-delay: 0.15s; }
  .rail-nav li:nth-child(7) { animation-delay: 0.18s; }
  .rail-nav li:nth-child(8) { animation-delay: 0.21s; }
  .rail-nav li:nth-child(9) { animation-delay: 0.24s; }

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

  @keyframes slide {
    from {
      opacity: 0;
      transform: translateX(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    flex: 1 1 auto;
    padding: 6px;
  }

  .rail-toggle {
    display: inline-flex;
  }

  .find {
    display: none;
    flex: 1 1 100%;
    order: 3;
  }

  .rail.open .find {
    display: block;
  }

  .rail-nav {
    flex: 1 1 100%;
    order: 4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .rail.open .rail-nav {
    max-height: 66vh;
    overflow-y: auto;
    padding-bottom: 8px;
  }

  .stage {
    margin-left: 0;
    padding-top: 76px;
  }

  .foot {
    margin-left: 0;
  }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section[id] {
    scroll-margin-top: 92px;
  }

  .hero {
    min-height: 0;
    padding-top: 30px;
    gap: 18px;
  }

  .hero-fig {
    aspect-ratio: 4 / 3;
  }

  .band {
    margin-top: 24px;
  }
}

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