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

:root {
  --neon: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --void: #0b0a15;
  --fg: #f4effb;
  --dim: #a49fc4;
  --line: rgba(255, 0, 110, .26);
  --glow: 0 0 16px rgba(255, 0, 110, .55);
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: 'DM Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  background:
    radial-gradient(70% 50% at 88% 0%, rgba(255, 0, 110, .16), transparent 65%),
    radial-gradient(60% 45% at 0% 30%, rgba(255, 0, 0, .12), transparent 60%),
    var(--void);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: overlay;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 119;
  pointer-events: none;
  background: radial-gradient(125% 100% at 50% 50%, transparent 62%, rgba(4, 3, 12, .6) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  line-height: 1.18;
  letter-spacing: -.01em;
}

/* 左侧索引栏 */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 72px;
  z-index: 40;
  width: 252px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, .82), rgba(11, 10, 21, .97));
}

.rail-brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: var(--glow);
  border-bottom: 2px solid var(--mag);
}

.brand-img { height: 34px; width: auto; }

.rail-nav { display: flex; flex-direction: column; }

.kicker {
  display: block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mag);
}

.rail-title {
  margin: 0 0 .9rem;
  font-size: 1.35rem;
  color: #fff;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--dim);
  font-size: .95rem;
  transition: color .2s, background .2s, border-color .2s;
}

.rail-list .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--mag);
  opacity: .85;
}

.rail-list a:hover,
.rail-list a:focus-visible,
.rail-list a.is-active {
  color: #fff;
  border-left-color: var(--neon);
  background: rgba(255, 0, 110, .1);
  text-shadow: var(--glow);
}

.rail-up {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: .84rem;
  letter-spacing: .14em;
  transition: .2s;
}

.rail-up:hover { color: #fff; border-color: var(--mag); box-shadow: 0 0 18px rgba(255, 0, 110, .35); }

/* 内容舞台 */
.stage { margin-left: 252px; padding-bottom: 92px; }

/* 头图 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 82% 18%, rgba(255, 0, 110, .32), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(255, 0, 0, .26), transparent 62%),
    var(--void);
}

.hero-frame { position: absolute; inset: 0; margin: 0; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05) hue-rotate(-6deg);
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 10, 21, .94) 0%, rgba(11, 10, 21, .42) 52%, rgba(255, 0, 110, .3) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 64px) clamp(40px, 10vh, 96px);
  text-align: right;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, .8), 0 0 46px rgba(255, 0, 0, .45);
  animation: glitch 7s steps(1) infinite;
}

@keyframes glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translate(-3px, 1px) skewX(-2.4deg); }
  94% { transform: translate(3px, -1px) skewX(2.4deg); }
  96% { transform: translate(-2px, 0) skewX(-1deg); }
  98% { transform: none; }
}

/* 正文 */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) clamp(18px, 4vw, 44px) 72px;
}

.doc-mark {
  height: 10px;
  margin: 0 0 34px;
  border: 0;
  opacity: .9;
  background: repeating-linear-gradient(90deg,
    var(--neon) 0 14px, transparent 14px 22px,
    var(--mag) 22px 36px, transparent 36px 46px);
}

.doc > section {
  padding-bottom: clamp(34px, 4vw, 52px);
  margin-bottom: clamp(34px, 4vw, 52px);
  border-bottom: 1px dashed rgba(255, 0, 110, .22);
  scroll-margin-top: 90px;
  scroll-margin-bottom: 100px;
}

.doc > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.doc small {
  display: block;
  margin-bottom: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mag);
}

.doc h2 {
  margin: 0 0 .7em;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, .45);
}

.doc h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.22rem;
  color: #ffe9f2;
}

.doc p, .doc li { font-size: 1.0625rem; color: #ded9ef; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.doc li { margin-bottom: .45em; }
.doc a { color: #ff5c96; text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: #fff; }
.doc img { margin: 1.4em 0; border: 1px solid var(--line); }
.doc blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--mag);
  background: rgba(255, 0, 110, .07);
  color: #efe6f7;
}
.doc blockquote p:last-child { margin-bottom: 0; }

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 4vw, 52px) clamp(18px, 4vw, 52px) 26px;
  background: linear-gradient(180deg, rgba(26, 26, 46, .45), rgba(11, 10, 21, .97));
}

.foot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 5vw, 46px) 16px;
  margin-bottom: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  background: radial-gradient(80% 150% at 50% 135%, rgba(255, 0, 110, .3), transparent 70%);
  box-shadow: inset 0 0 44px rgba(255, 0, 0, .08);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px clamp(28px, 6vw, 48px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2em;
  color: #fff;
  border: 1px solid var(--neon);
  text-shadow: 0 0 12px rgba(255, 0, 110, .9);
  box-shadow: 0 0 24px rgba(255, 0, 0, .32), inset 0 0 26px rgba(255, 0, 110, .18);
  transition: .2s;
}

.cta-btn:hover { background: rgba(255, 0, 110, .16); box-shadow: 0 0 38px rgba(255, 0, 0, .5), inset 0 0 32px rgba(255, 0, 110, .3); }

.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 26px;
  border-bottom: 1px dashed rgba(255, 0, 110, .2);
}

.foot-addr {
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: var(--glow);
  margin-bottom: .6rem;
}

.foot-desc { max-width: 46ch; color: var(--dim); font-size: 1rem; line-height: 1.7; margin: 0; }

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

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--dim);
  font-size: .95rem;
  transition: color .2s;
}

.foot-list a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: var(--mag);
  box-shadow: 0 0 8px var(--mag);
  flex: none;
}

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

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: .84rem;
  color: var(--dim);
  letter-spacing: .08em;
}

.foot-legal { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }

.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  color: var(--dim);
}

.foot-legal a:hover { color: #fff; text-shadow: var(--glow); }

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(11, 10, 21, .95);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dock-brand {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow);
  white-space: nowrap;
}

.dock-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.dock-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--dim);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: .2s;
}

.dock-nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--mag);
  box-shadow: 0 0 8px var(--mag);
}

.dock-nav a:hover, .dock-nav a.is-active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 0, 110, .12);
}

.dock-search { display: flex; align-items: center; gap: 6px; flex: none; }

.dock-search input {
  width: 130px;
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
  font-size: .85rem;
  color: var(--fg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 0;
}

.dock-search input::placeholder { color: #7c7898; }
.dock-search input:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 14px rgba(255, 0, 110, .4); }

.dock-search button {
  min-height: 40px;
  padding: 6px 12px;
  font: inherit;
  font-size: .82rem;
  letter-spacing: .12em;
  color: #fff;
  background: transparent;
  border: 1px solid var(--neon);
  cursor: pointer;
}

.dock-search button:hover { background: rgba(255, 0, 110, .16); }

/* 滚入与列表错峰 */
.rv .dock-nav li { opacity: 0; animation: fadeUp .45s ease forwards; }
.rv .dock-nav li:nth-child(1) { animation-delay: .04s; }
.rv .dock-nav li:nth-child(2) { animation-delay: .09s; }
.rv .dock-nav li:nth-child(3) { animation-delay: .14s; }
.rv .dock-nav li:nth-child(4) { animation-delay: .19s; }
.rv .dock-nav li:nth-child(5) { animation-delay: .24s; }
.rv .dock-nav li:nth-child(6) { animation-delay: .29s; }
.rv .dock-nav li:nth-child(7) { animation-delay: .34s; }

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

.rv .doc > section,
.rv .foot-cta,
.rv .foot-main {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.rv .doc > section.is-in,
.rv .foot-cta.is-in,
.rv .foot-main.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .dock-search input { width: 104px; }
}

@media (max-width: 960px) {
  .rail { display: none; }
  .stage { margin-left: 0; }
  .dock-brand { display: inline-flex; }
  .hero { min-height: 64vh; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .dock-search button { display: none; }
  .dock-search input { width: 88px; }
  .hero-copy { padding-bottom: 44px; }
  .foot-main { grid-template-columns: minmax(0, 1fr); }
  .foot-base { justify-content: flex-start; }
  .doc p, .doc li { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-h1 { animation: none; }
  .rv .dock-nav li { animation: none; opacity: 1; }
  .rv .doc > section,
  .rv .foot-cta,
  .rv .foot-main { opacity: 1; transform: none; transition: none; }
}

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