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

:root{
  --violet:#6514ff;
  --magenta:#bf00ff;
  --ink:#1c1726;
  --deep:#130e1c;
  --paper:#f5f2ff;
  --dim:rgba(245,242,255,.68);
  --rail:108px;
  --gap:48px;
  --r:18px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  padding-left:var(--rail);
  font-family:'DM Sans',"PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.68;
  color:var(--paper);
  background:radial-gradient(120% 90% at 100% 0%, #2a1246 0%, var(--ink) 42%, var(--deep) 100%);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-18%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 22% 26%, rgba(101,20,255,.55), transparent 72%),
    radial-gradient(closest-side at 82% 72%, rgba(191,0,255,.42), transparent 70%),
    repeating-linear-gradient(58deg, rgba(255,255,255,.05) 0 2px, transparent 2px 28px);
  background-size:120% 120%, 120% 120%, auto;
  animation:drift 26s ease-in-out infinite alternate;
}

@keyframes drift{
  from{transform:translate3d(-2%,-1%,0) scale(1)}
  to{transform:translate3d(3%,2%,0) scale(1.08)}
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}

/* ---------- 顶部细条 ---------- */
.ticker{
  position:relative;
  z-index:3;
  border-bottom:1px solid rgba(191,0,255,.28);
  background:linear-gradient(90deg, rgba(101,20,255,.42), rgba(191,0,255,.3));
  overflow:hidden;
}
.ticker p{
  margin:0;
  padding:7px 16px;
  font-size:16px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:.04em;
  color:rgba(245,242,255,.9);
}
.ticker span + span::before{
  content:"◆";
  margin-right:14px;
  font-size:.6em;
  vertical-align:2px;
  color:#ffd8ff;
}
.ticker span{margin-right:14px}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  z-index:10;
  left:0;
  top:0;
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  padding:16px 10px 22px;
  background:rgba(19,14,28,.8);
  backdrop-filter:blur(14px);
  border-right:1px solid rgba(191,0,255,.28);
  overflow-y:auto;
  overflow-x:hidden;
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  flex:0 0 auto;
  border-radius:16px;
  background:linear-gradient(140deg,var(--violet),var(--magenta));
  box-shadow:0 10px 26px rgba(101,20,255,.5);
  text-decoration:none;
  transition:transform .22s ease, box-shadow .22s ease;
}
.brand:hover{transform:rotate(-6deg) scale(1.06);box-shadow:0 14px 30px rgba(191,0,255,.6)}
.mark{width:42px;height:42px;border-radius:12px;object-fit:cover}
.mark-shape{
  display:block;
  background:
    conic-gradient(from 40deg, #ffffff 0 30%, transparent 30% 55%, #ffe9ff 55% 100%);
  background-color:rgba(255,255,255,.18);
  border-radius:12px;
}

.rail nav{width:100%}
.rail nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
}
.rail nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:40px;
  padding:9px 8px;
  font-size:15px;
  font-weight:500;
  line-height:1.25;
  text-align:center;
  text-decoration:none;
  border-radius:999px;
  color:#efe9ff;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(191,0,255,.34);
  transition:transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.rail nav a:hover,
.rail nav a:focus-visible{
  transform:translateY(-2px);
  background:linear-gradient(140deg,var(--violet),var(--magenta));
  border-color:transparent;
  color:#fff;
}
.rail nav a.on{
  background:linear-gradient(140deg,var(--violet),var(--magenta));
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 22px rgba(191,0,255,.42);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  z-index:1;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:56px 22px;
  overflow:hidden;
}
.hero-art{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-art img{
  position:absolute;
  border-radius:var(--r);
  object-fit:cover;
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 26px 64px rgba(101,20,255,.5);
  opacity:.9;
}
.hero-art img:nth-child(1){
  width:min(38%,300px);
  left:4%;
  top:11%;
  transform:rotate(-7deg);
}
.hero-art img:nth-child(2){
  width:min(32%,250px);
  right:5%;
  bottom:9%;
  transform:rotate(6deg);
  box-shadow:0 26px 64px rgba(191,0,255,.5);
}

.hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  max-width:820px;
  padding:38px 26px;
  text-align:center;
  border-radius:var(--r);
  border:1px solid rgba(191,0,255,.32);
  background:linear-gradient(160deg, rgba(28,23,38,.86), rgba(28,23,38,.5));
  backdrop-filter:blur(16px);
  box-shadow:0 30px 80px rgba(10,6,18,.55);
}
.hero-copy h1{
  margin:0 0 14px;
  font-size:clamp(2.05rem,6.4vw,4.2rem);
  line-height:1.08;
  letter-spacing:-.02em;
  font-weight:700;
  background:linear-gradient(120deg,#ffffff 0%,#e9d4ff 45%,#ffb8ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-copy .sub{
  margin:0 auto;
  max-width:48ch;
  font-size:1.02rem;
  color:var(--dim);
}

/* ---------- 正文区 ---------- */
.wrap{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:var(--gap);
  align-items:start;
  max-width:1320px;
  margin:0 auto;
  padding:var(--gap) 32px 72px;
}

.doc{min-width:0}

section > div{
  margin-bottom:var(--gap);
  padding:30px 28px;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(155deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  backdrop-filter:blur(14px);
  box-shadow:0 18px 48px rgba(9,5,16,.4);
  scroll-margin-top:96px;
  transition:border-color .25s ease, box-shadow .25s ease;
}
section > div:hover{border-color:rgba(191,0,255,.5);box-shadow:0 22px 56px rgba(101,20,255,.34)}
section > div:last-child{margin-bottom:0}
section > div:nth-child(odd){border-left:3px solid rgba(101,20,255,.85)}
section > div:nth-child(even){border-left:3px solid rgba(191,0,255,.85)}

section > div.will{opacity:0;transform:translateY(18px)}
section > div.in{opacity:1;transform:none;transition:opacity .42s ease, transform .42s ease}
section > div:nth-child(2).in{transition-delay:.05s}
section > div:nth-child(3).in{transition-delay:.1s}
section > div:nth-child(4).in{transition-delay:.15s}
section > div:nth-child(5).in{transition-delay:.2s}
section > div:nth-child(6).in{transition-delay:.25s}
section > div:nth-child(7).in{transition-delay:.3s}

section small{
  display:block;
  margin-bottom:6px;
  font-size:.86rem;
  font-weight:500;
  letter-spacing:.14em;
  color:#d7b0ff;
}

section h2,
section h3{
  margin:0 0 12px;
  line-height:1.24;
  letter-spacing:-.01em;
  font-weight:700;
}
section h2{font-size:clamp(1.5rem,3vw,2.05rem)}
section h3{font-size:1.22rem;color:#f0e2ff}

section p,
section li{color:rgba(245,242,255,.86)}
section p{margin:0 0 14px;max-width:70ch}
section p:last-child{margin-bottom:0}
section ul,
section ol{margin:0 0 14px;padding-left:1.35em}
section li{margin-bottom:8px}
section li::marker{color:var(--magenta)}
section strong{color:#fff}
section a{
  color:#e6c6ff;
  text-decoration:none;
  border-bottom:1px solid rgba(191,0,255,.55);
  transition:color .2s ease, border-color .2s ease;
}
section a:hover{color:#fff;border-color:#fff}

section blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  border-left:3px solid var(--magenta);
  border-radius:0 12px 12px 0;
  background:rgba(191,0,255,.12);
  color:#f2e6ff;
}
section blockquote p:last-child{margin-bottom:0}

section img{border-radius:var(--r);border:1px solid rgba(255,255,255,.16)}

section code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.94em;
  padding:2px 6px;
  border-radius:8px;
  background:rgba(255,255,255,.1);
}
section pre{
  overflow-x:auto;
  padding:16px;
  border-radius:12px;
  background:rgba(9,5,16,.65);
}
section pre code{padding:0;background:none}

section table{width:100%;border-collapse:collapse;font-size:.98rem}
section th,
section td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.14);text-align:left}
section th{color:#fff;background:rgba(101,20,255,.22)}

/* ---------- 右侧栏 ---------- */
.side{
  position:sticky;
  top:96px;
  padding:22px 20px;
  border-radius:var(--r);
  border:1px solid rgba(191,0,255,.34);
  background:linear-gradient(160deg, rgba(101,20,255,.22), rgba(255,255,255,.05));
  backdrop-filter:blur(12px);
}
.side small{
  display:block;
  margin-bottom:6px;
  font-size:.85rem;
  letter-spacing:.14em;
  color:#e3c2ff;
}
.side h2{
  margin:0 0 14px;
  font-size:1.24rem;
  line-height:1.3;
}
.jump{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.jump a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  font-size:15px;
  text-decoration:none;
  border-radius:999px;
  color:#f2e9ff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  transition:transform .2s ease, background .2s ease, color .2s ease;
}
.jump a:hover,
.jump a:focus-visible{
  transform:translateY(-2px);
  background:linear-gradient(140deg,var(--violet),var(--magenta));
  border-color:transparent;
  color:#fff;
}

/* ---------- 页脚 ---------- */
footer{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 34px;
  padding:34px 24px 52px;
  text-align:center;
  border-top:1px solid rgba(191,0,255,.28);
  background:linear-gradient(180deg, rgba(19,14,28,0), rgba(19,14,28,.75));
}
footer div{max-width:540px}
footer p{margin:0 0 6px;font-size:.92rem;line-height:1.6;color:rgba(245,242,255,.6)}
footer .fn{
  font-weight:700;
  font-size:1rem;
  color:#fff;
  letter-spacing:.04em;
}
footer p:last-child{margin-bottom:0}

:focus-visible{outline:2px solid #ffb8ff;outline-offset:3px}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  body{padding-left:0}
  body::before{inset:-30%}

  .rail{
    position:sticky;
    top:0;
    bottom:auto;
    left:auto;
    width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1px solid rgba(191,0,255,.28);
    overflow:visible;
  }
  .brand{width:44px;height:44px}
  .mark{width:38px;height:38px}
  .rail nav{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;padding:3px 0}
  .rail nav p{flex-direction:row;gap:8px;align-items:center}
  .rail nav a{width:auto;white-space:nowrap;padding:9px 14px;min-height:40px}

  .hero{min-height:66vh;padding:34px 16px}
  .hero-art img:nth-child(1){width:46%;left:-4%;top:5%;opacity:.55}
  .hero-art img:nth-child(2){width:42%;right:-5%;bottom:4%;opacity:.55}
  .hero-copy{padding:28px 18px}

  .wrap{grid-template-columns:minmax(0,1fr);gap:32px;padding:32px 16px 56px}
  .side{position:static;order:2}

  section > div{padding:22px 18px;margin-bottom:32px;scroll-margin-top:84px}
  .ticker p{font-size:16px}

  footer{flex-direction:column;align-items:center;gap:8px;padding:28px 18px 44px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  section > div.will{opacity:1;transform:none}
  section > div.in,
  .brand,
  .rail nav a,
  .jump a{transition:none}
}

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