@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1b1b1b;
  --line: #262626;
  --ink: #e9eef5;
  --dim: #9aa6b6;
  --neon: #38e8a8;
  --neon2: #5f8dff;
  --radius: 28px;
  --bar: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  padding-bottom: calc(var(--bar) + 24px);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; transition: color .18s ease; }
a:hover { color: #ffffff; }

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

/* 底部固定条 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 9, 9, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tabbar__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 4px;
  color: #ffffff;
}

.tabbar__mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 0 10px rgba(56, 232, 168, .5);
  flex: 0 0 auto;
}

.tabbar__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}

.tabbar__list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabbar__list::-webkit-scrollbar { display: none; }
.tabbar__list li { flex: 0 0 auto; }

.tabbar__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  color: var(--dim);
  font-size: 15px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.tabbar__list svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex: 0 0 auto;
  opacity: .8;
}
.tabbar__list a:hover,
.tabbar__list a.is-on { background: var(--surface-2); color: #ffffff; }

.tabbar__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #04120c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 0 14px rgba(56, 232, 168, .28);
}
.tabbar__cta:hover { color: #04120c; filter: brightness(1.08); }

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(130% 90% at 8% 100%, #0a2b23 0%, #050807 42%, #000000 78%);
}

.hero__fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  filter: brightness(.8) saturate(1.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .6) 48%, rgba(0, 0, 0, .96) 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  padding: 58px 26px 74px;
  text-align: left;
}

.hero__kicker {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .32em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(56, 232, 168, .45);
}

.hero__h1 {
  margin: 0;
  font-size: clamp(29px, 6.2vw, 54px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #ffffff;
  text-wrap: balance;
}

.hero__desc {
  margin: 14px 0 0;
  max-width: 54ch;
  color: #ccd6e2;
  font-size: 16px;
  line-height: 1.7;
}

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon2) 52%, rgba(95, 141, 255, 0) 100%);
  clip-path: polygon(0 100%, 0 46%, 100% 0, 100% 100%);
  opacity: .9;
}

/* 版心 */
.page__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 42px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 24px 60px;
}

.prose { min-width: 0; }

.prose > article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 0 0 22px;
  scroll-margin-top: 24px;
}
.prose > article:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  margin: 26px 0 6px;
  color: #ffffff;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -.005em;
}
.prose > article > h2:first-child,
.prose > article > h3:first-child { margin-top: 0; }

.prose h2 { font-size: clamp(22px, 3vw, 29px); }
.prose h3 { font-size: clamp(19px, 2.3vw, 22px); }

.prose hr {
  width: 68px;
  height: 3px;
  margin: 12px 0 18px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(56, 232, 168, .1));
}

.prose p { margin: 0 0 15px; color: #c8d2de; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--neon);
  border-bottom: 1px solid rgba(56, 232, 168, .38);
  padding-bottom: 1px;
}
.prose a:hover { color: #ffffff; border-bottom-color: var(--neon2); }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; color: #c8d2de; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--neon); }

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

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--neon2);
  border-radius: 0 18px 18px 0;
  background: var(--surface-2);
  color: #d6dfe9;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose img { border-radius: 18px; margin: 4px 0 16px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: #c8d2de;
}
.prose th { color: #ffffff; font-weight: 500; }

/* 右侧栏 */
.rail {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.rail__h {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .26em;
  color: #ffffff;
}

.rail hr {
  width: 46px;
  height: 2px;
  margin: 12px 0 8px;
  border: 0;
  background: var(--neon);
  opacity: .8;
}

.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}
.rail__list li { counter-increment: rail; }

.rail__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 9px 0;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.rail__list li:last-child a { border-bottom: 0; }
.rail__list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 13px;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
  opacity: .75;
}
.rail__list a:hover { color: #ffffff; }

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr .9fr;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 0;
  border-top: 1px solid var(--line);
}

.foot__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: .1em;
}

.foot__mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 0 10px rgba(95, 141, 255, .45);
}

.foot__h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--neon);
}

.foot__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot__list a,
.foot__up {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 16px;
}
.foot__list a:hover,
.foot__up:hover { color: #ffffff; }

.foot__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 12px 0 calc(16px + 4px);
  border-top: 1px solid var(--line);
  color: #7c8798;
  font-size: 15px;
}
.foot__bar a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); }

/* 入场 */
@media (prefers-reduced-motion: no-preference) {
  .js .prose > article {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .js .prose > article.is-in { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .page__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 18px 48px;
  }
  .rail { position: static; order: 2; }
  .foot { grid-template-columns: 1fr 1fr; gap: 20px; padding: 34px 18px 0; }
  .foot__c { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .tabbar__name { display: none; }
  .tabbar__cta { padding: 0 14px; }
  .hero { min-height: 46vh; }
  .hero__copy { padding: 46px 18px 62px; }
  .hero__desc { font-size: 16px; }
  .prose > article { padding: 24px 20px; border-radius: 22px; margin-bottom: 16px; }
  .rail { border-radius: 22px; padding: 18px 16px; }
  .foot { grid-template-columns: 1fr; }
  .foot__bar { font-size: 14px; }
}

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