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

:root {
  --ink: #0A0F1A;
  --paper: #E6EDF7;
  --blue: #2F6BFF;
  --line: rgba(230, 237, 247, .14);
  --line-soft: rgba(230, 237, 247, .075);
  --glass: rgba(230, 237, 247, .045);
  --muted: rgba(230, 237, 247, .62);
  --body: rgba(230, 237, 247, .88);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 640px at 80% -14%, rgba(47, 107, 255, .22), transparent 64%),
    radial-gradient(780px 520px at 4% 6%, rgba(47, 107, 255, .10), transparent 60%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: 'IBM Plex Sans', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 顶部：公告条 + 中置品牌 + 两翼菜单 */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "ann ann ann"
    "navl brand navr";
  align-items: center;
  gap: 0 clamp(10px, 2vw, 26px);
  padding: 0 clamp(12px, 3vw, 38px) 3px;
  background: rgba(10, 15, 26, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--line);
}

.ann {
  grid-area: ann;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  max-height: 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--muted);
  transition: max-height .28s ease, min-height .28s ease, opacity .28s ease, border-color .28s ease;
}

.ann span {
  animation: pulse 7s ease-in-out infinite;
}

.top.shrink .ann {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  border-color: transparent;
}

.nav-l { grid-area: navl; }
.nav-r { grid-area: navr; justify-self: end; }

.top nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}

.nav-r p { justify-content: flex-end; }

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(7px, 1.1vw, 12px);
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  position: relative;
  transition: color .18s ease;
}

.top nav a::after {
  content: "";
  position: absolute;
  left: clamp(7px, 1.1vw, 12px);
  right: clamp(7px, 1.1vw, 12px);
  bottom: 9px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.top nav a:hover { color: #fff; }
.top nav a:hover::after { transform: scaleX(1); }

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 clamp(6px, 1.4vw, 16px);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--paper);
}

.brand span {
  background-image: linear-gradient(transparent 66%, rgba(47, 107, 255, .55) 66%);
  background-repeat: no-repeat;
}

.brand-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(47, 107, 255, .7));
}

/* 版心 */
.wrap {
  padding: 0 clamp(14px, 3vw, 38px) clamp(34px, 6vw, 70px);
}

/* 首屏：字在上、图在下，居中满屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(46px, 11vh, 122px) 0 clamp(28px, 7vh, 70px);
}

.hero-type {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(3.4rem, 19vw, 15rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.065em;
  color: transparent;
  background-image: linear-gradient(96deg, #2F6BFF 0%, #E6EDF7 46%, #2F6BFF 98%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .2;
  pointer-events: none;
  z-index: 0;
  animation: drift 15s ease-in-out infinite alternate;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.3rem, 8.8vw, 6.2rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
  animation: riseIn .95s cubic-bezier(.16, .8, .24, 1) both;
}

.hero-fig {
  width: 100%;
  max-width: 960px;
  margin: clamp(26px, 6vh, 62px) auto 0;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--glass);
  filter: saturate(.92) contrast(1.04);
}

/* 主区：左侧栏 + 正文 */
.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.rail {
  position: sticky;
  top: 108px;
}

.rail small {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--blue);
}

.rail h2 {
  margin: .32em 0 .85em;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color .18s ease, padding-left .18s ease, border-color .18s ease;
}

.rail a span {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.rail a:hover {
  color: var(--paper);
  padding-left: 8px;
  border-bottom-color: var(--blue);
}

/* 正文 */
.doc {
  min-width: 0;
  max-width: 820px;
  overflow-wrap: break-word;
}

.doc > div {
  padding: clamp(20px, 2.8vw, 34px);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.doc > div + div { margin-top: clamp(14px, 2vw, 22px); }

.doc > div:hover {
  border-color: rgba(47, 107, 255, .48);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .13), 0 28px 62px -44px #2F6BFF;
}

.doc h2 {
  margin: .08em 0 .55em;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.doc h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.22rem;
  line-height: 1.3;
}

.doc small {
  display: block;
  margin-bottom: .25em;
  font-size: 1rem;
  letter-spacing: .22em;
  color: var(--blue);
}

.doc p {
  margin: 0 0 1em;
  line-height: 1.78;
  color: var(--body);
}

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

.doc ul, .doc ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  line-height: 1.75;
  color: var(--body);
}

.doc a {
  color: #90AFFF;
  text-underline-offset: 3px;
}

.doc a:hover { color: #C6D8FF; }

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

.doc div[id] { scroll-margin-top: 108px; }

/* 滚动入场 */
.has-io .doc > div {
  opacity: 0;
  transform: translateY(22px);
}

.has-io .doc > div.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .62s ease var(--d, 0ms), transform .62s cubic-bezier(.16, .8, .24, 1) var(--d, 0ms);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: clamp(40px, 8vh, 92px) auto 0;
  padding: clamp(28px, 5vw, 46px) clamp(14px, 3vw, 38px) 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.sub {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sub input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--paper);
  font: inherit;
  background: rgba(230, 237, 247, .055);
  border: 1px solid rgba(230, 237, 247, .2);
  border-radius: 0;
}

.sub input::placeholder { color: rgba(230, 237, 247, .5); }

.sub button {
  min-height: 48px;
  padding: 0 26px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease;
}

.sub button:hover { background: #4B82FF; }

.foot dl { margin: 0; min-width: 0; }

.foot dt {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: .18em;
  color: var(--blue);
}

.foot dd {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  word-break: break-word;
}

.base {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 1rem;
  color: rgba(230, 237, 247, .5);
}

.totop {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(12px, 3vw, 26px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  background: rgba(10, 15, 26, .82);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .18s ease, color .18s ease;
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    letter-spacing: -.09em;
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
    letter-spacing: -.045em;
  }
}

@keyframes drift {
  from { transform: translate(-50%, -50%) rotate(-1deg); opacity: .14; }
  to { transform: translate(-53%, -57%) rotate(1.4deg); opacity: .26; }
}

@keyframes pulse {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .doc { max-width: none; }
}

@media (max-width: 820px) {
  .top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ann ann"
      "brand brand"
      "navl navr";
    align-items: start;
    gap: 0 8px;
    padding-bottom: 8px;
  }
  .nav-l p, .nav-r p { justify-content: center; }
  .nav-r { justify-self: center; }
  .nav-l { justify-self: center; }
  .brand { justify-self: center; }
  .rail { top: auto; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .hero { padding-top: 34px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sub input, .sub button { flex: 1 1 100%; }
  .rail ol { grid-template-columns: minmax(0, 1fr); }
  .totop { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-ghost, .ann span { animation: none; }
  .has-io .doc > div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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