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

:root {
  --bg: #000000;
  --panel: #121212;
  --panel-2: #0a0a0a;
  --ink: #e9ebee;
  --dim: #98a1ad;
  --blue: #3b6fd4;
  --neon: #4fe0b0;
  --gold: #f2c46b;
  --radius: 28px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: .008em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: #8fb4ff; text-decoration: none; }
a:hover { color: #cfe0ff; }

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

.skip {
  position: absolute;
  left: -9999px;
}

/* 顶部导航 */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .84);
  border-bottom: 1px solid #161616;
  backdrop-filter: blur(14px);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 14px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--panel);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 0 0 rgba(79, 224, 176, 0);
  transition: background .25s ease, box-shadow .25s ease;
}

.brand:hover {
  background: #1c1c1c;
  color: #fff;
  box-shadow: 0 0 14px rgba(79, 224, 176, .22);
}

.brand__i { width: 26px; height: 26px; border-radius: 8px; }
.brand__m { font-size: 16px; }

.topnav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar { display: none; }

.topnav p {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  white-space: nowrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: #b4bcc7;
  font-size: 15px;
  line-height: 1.2;
  transition: background .2s ease, color .2s ease;
}

.topnav a:hover {
  background: #141414;
  color: #ffffff;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 50px 20px 74px;
  overflow: hidden;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  background: radial-gradient(130% 100% at 50% 0, #111c2e 0%, #05070b 58%, #000000 100%);
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -38%;
  z-index: 1;
  height: 68%;
  transform: rotate(-4deg);
  opacity: .5;
  background: linear-gradient(100deg,
    rgba(59, 111, 212, .62),
    rgba(79, 224, 176, .30) 52%,
    rgba(242, 196, 107, .24));
}

.hero__in {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(27px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.02em;
  text-shadow: 0 0 18px rgba(59, 111, 212, .34);
}

.hero__lede {
  max-width: 42em;
  margin: 0 auto;
  color: #b3bcc8;
  font-size: 16.5px;
  line-height: 1.7;
}

/* 主体布局 */
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 72px;
}

/* 侧栏 */
.side {
  position: sticky;
  top: 80px;
  font-size: 15px;
}

.side small {
  display: block;
  color: #6f7885;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .12em;
}

.side h2 {
  margin: 2px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .04em;
}

.side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  border-radius: 12px;
  color: #a9b2be;
  font-size: 15px;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.side li a:hover {
  background: #101010;
  border-left-color: var(--neon);
  color: #ffffff;
}

/* 正文 */
.doc { min-width: 0; }

.doc > div {
  margin: 0 0 20px;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 86px;
}

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

.doc h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -.01em;
  color: #f4f6f8;
}

.doc h3 {
  margin: 26px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: #dfe4ea;
}

.doc small {
  display: block;
  margin-bottom: 6px;
  color: #7b8592;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .14em;
}

.doc p,
.doc li { color: #c3cad4; }

.doc ul,
.doc ol { padding-left: 1.25em; }

.doc li { margin-bottom: .4em; }

.doc blockquote {
  margin: 18px 0;
  padding: 2px 18px;
  border-left: 3px solid var(--blue);
  color: #aeb7c3;
}

.doc a { border-bottom: 1px solid rgba(143, 180, 255, .35); }

/* 页脚 */
.foot {
  margin-top: 54px;
  padding: 46px 0 22px;
  border-top: 1px solid #171717;
  background: var(--panel-2);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.foot h3 {
  margin: 0 0 10px;
  color: #e2e6eb;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
}

.foot p {
  margin: 0 0 8px;
  color: #8f98a4;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #aeb6c1;
  font-size: 15px;
  line-height: 1.35;
}

.foot li a:hover { color: #ffffff; }

.foot address {
  color: #aeb6c1;
  font-size: 15px;
  font-style: normal;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.foot address span { display: block; }

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 130px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #232323;
  border-radius: 14px;
  background: #0f0f0f;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.sub input::placeholder { color: #6f7885; }

.sub button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--neon);
  color: #04120d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease;
}

.sub button:hover { filter: brightness(1.12); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 16px 22px 0;
  border-top: 1px solid #161616;
  color: #6f7885;
  font-size: 15px;
}

.foot__bottom p { margin: 0; color: #6f7885; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #98a1ad;
}

.totop:hover { color: var(--gold); }

/* 滚动出现 */
[data-reveal] { transition: opacity .55s ease, transform .55s ease; }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
  [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .brand, .topnav a, .side li a, .sub button { transition: none; }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 24px;
  }
  .side { position: static; }
  .side small { display: none; }
  .side h2 { margin: 0 0 10px; }
  .side ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .side ul::-webkit-scrollbar { display: none; }
  .side li a {
    min-height: 40px;
    border-left: 0;
    background: #101010;
    white-space: nowrap;
  }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero {
    min-height: 44vh;
    padding: 42px 18px 62px;
  }
  .topnav a { padding: 0 10px; font-size: 14.5px; }
  .doc > div {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

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