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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  background:#1c1726;
}

:root{
  --ink:#1c1726;
  --ink2:#241d33;
  --ink3:#2c2340;
  --line:rgba(233,226,255,.16);
  --line2:rgba(191,0,255,.42);
  --p1:#6514ff;
  --p2:#bf00ff;
  --fg:#eee9f8;
  --dim:#b3a9c9;
  --r:10px;
}

body{
  margin:0;
  background:var(--ink);
  color:var(--fg);
  font-family:"DM Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-wrap:break-word;
  word-break:break-word;
}

body::before{
  content:"";
  position:fixed;
  inset:-40% -20%;
  z-index:0;
  pointer-events:none;
  opacity:.85;
  background-image:
    linear-gradient(115deg,transparent 46%,rgba(101,20,255,.13) 46% 54%,transparent 54%),
    linear-gradient(65deg,transparent 47%,rgba(191,0,255,.09) 47% 53%,transparent 53%);
  background-size:180px 180px,268px 268px;
  animation:drift 28s linear infinite;
}

@keyframes drift{
  to{transform:translate3d(180px,-268px,0)}
}

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

a{color:#c9a4ff}

:where(a,button):focus-visible{
  outline:2px solid var(--p2);
  outline-offset:2px;
}

/* ---------- 顶部细条 ---------- */
.strip{
  position:relative;
  z-index:2;
  background:linear-gradient(90deg,var(--p1) 0%,var(--p2) 46%,var(--p1) 100%);
}

.strip p{
  margin:0;
  padding:7px 16px;
  text-align:center;
  font-size:13px;
  line-height:1.5;
  letter-spacing:.34em;
  text-indent:.34em;
  font-weight:700;
  color:#fff;
}

/* ---------- 抬头 ---------- */
.masthead{
  position:relative;
  z-index:3;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
  padding:12px clamp(16px,4vw,40px);
  border-bottom:1px solid var(--line);
  background:rgba(28,23,38,.9);
  backdrop-filter:blur(8px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 0;
  text-decoration:none;
  color:var(--fg);
}

.brandmark{
  flex:none;
  width:26px;
  height:26px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--p1),var(--p2));
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18);
  transform:rotate(9deg);
  transition:transform .25s ease;
}

.brand:hover .brandmark{transform:rotate(0deg) scale(1.06)}

.brandname{
  font-size:18px;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
}

.navshell{
  width:100%;
  min-width:0;
}

.topnav ul{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:0;
  padding:0;
  list-style:none;
}

.topnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 13px;
  border:1px solid transparent;
  border-radius:var(--r);
  color:var(--dim);
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:color .2s ease,border-color .2s ease,background-color .2s ease,transform .2s ease;
}

.topnav a:hover,
.topnav a:focus-visible{
  color:#fff;
  border-color:var(--line2);
  background:rgba(191,0,255,.13);
  transform:translateY(-2px);
}

/* ---------- 版面骨架 ---------- */
.shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:48px;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(20px,4vw,36px) clamp(16px,4vw,40px) 56px;
}

.main{min-width:0}

.doc{min-width:0}

.doc > section{scroll-margin-top:96px}

/* ---------- 头图区 ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  min-height:42vh;
  padding:30px 18px 34px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  background:
    radial-gradient(130% 120% at 50% 0%,rgba(101,20,255,.36),rgba(28,23,38,0) 64%),
    var(--ink2);
}

.hero::after{
  content:"";
  position:absolute;
  right:-52px;
  bottom:-70px;
  width:190px;
  height:190px;
  border-radius:34px;
  border:2px solid rgba(191,0,255,.35);
  transform:rotate(24deg);
  pointer-events:none;
}

.heromark{
  display:inline-flex;
  transform:translateY(0);
  animation:pulse 4.5s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

.hero h1{
  position:relative;
  margin:0;
  max-width:18ch;
  font-size:clamp(2rem,6.6vw,3.5rem);
  line-height:1.14;
  font-weight:700;
  letter-spacing:-.015em;
  background:linear-gradient(98deg,#ffffff,#e2d3ff 44%,var(--p2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 22px;
  border:1px solid var(--line2);
  border-radius:var(--r);
  background:rgba(101,20,255,.22);
  color:#fff;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  transition:background-color .22s ease,border-color .22s ease,transform .22s ease;
}

.hero-link:hover,
.hero-link:focus-visible{
  background:var(--p2);
  border-color:var(--p2);
  transform:translateY(-2px);
}

/* ---------- 正文区块 ---------- */
.doc section:not(.hero){
  margin-top:48px;
  padding:26px clamp(16px,3.2vw,30px) 30px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(44,35,64,.66);
  transition:border-color .25s ease,background-color .25s ease;
}

.doc section:not(.hero):hover{
  border-color:rgba(191,0,255,.34);
  background:rgba(48,38,70,.78);
}

.doc section:not(.hero):first-of-type{margin-top:44px}

.doc h2{
  margin:0;
  font-size:clamp(1.5rem,4.2vw,2rem);
  line-height:1.24;
  font-weight:700;
  letter-spacing:-.01em;
  color:#fff;
}

.doc h3{
  margin:26px 0 0;
  font-size:clamp(1.15rem,3vw,1.35rem);
  line-height:1.35;
  font-weight:700;
  color:#f3ecff;
}

.doc p{margin:16px 0 0;color:#ded7ee}

.doc ul,
.doc ol{margin:16px 0 0;padding-left:1.35em;color:#ded7ee}

.doc li{margin:8px 0}

.doc li::marker{color:var(--p2)}

.doc strong{color:#fff}

.doc a{
  color:#d3b3ff;
  text-underline-offset:3px;
  transition:color .2s ease;
}

.doc a:hover{color:#fff}

.doc hr{
  width:54px;
  height:3px;
  margin:14px 0 22px;
  border:0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--p1),var(--p2));
}

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

.doc table{
  display:block;
  width:100%;
  margin:20px 0 0;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:16px;
}

.doc th,
.doc td{
  padding:10px 12px;
  border:1px solid var(--line);
  text-align:left;
}

.doc th{background:rgba(101,20,255,.24);color:#fff}

/* ---------- 右侧栏 ---------- */
.rail{
  display:grid;
  gap:18px;
  align-content:start;
  min-width:0;
}

.railcard{
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(44,35,64,.66);
}

.railcard-flat{background:rgba(28,23,38,.55)}

.railtitle{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.5;
  letter-spacing:.2em;
  font-weight:700;
  color:var(--dim);
}

.railnav ul,
.raillink{
  margin:0;
  padding:0;
  list-style:none;
}

.railnav a,
.raillink a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:7px 10px;
  border-radius:8px;
  color:var(--dim);
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:color .2s ease,background-color .2s ease,padding-left .2s ease;
}

.railnav a:hover,
.railnav a:focus-visible,
.raillink a:hover,
.raillink a:focus-visible{
  color:#fff;
  background:rgba(191,0,255,.16);
  padding-left:16px;
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:24px auto 0;
  padding:clamp(24px,4vw,42px) clamp(16px,4vw,40px) 30px;
  border-top:1px solid var(--line);
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 22px;
  padding:22px;
  border:1px solid var(--line2);
  border-radius:var(--r);
  background:linear-gradient(104deg,rgba(101,20,255,.4),rgba(191,0,255,.2));
}

.ctalabel{
  margin:0;
  font-size:clamp(1.15rem,3.4vw,1.55rem);
  line-height:1.3;
  font-weight:700;
  color:#fff;
}

.ctabtn{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 22px;
  border-radius:var(--r);
  background:#fff;
  color:#2a1240;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  transition:background-color .22s ease,color .22s ease,transform .22s ease;
}

.ctabtn:hover,
.ctabtn:focus-visible{
  background:var(--p2);
  color:#fff;
  transform:translateY(-2px);
}

.footgrid{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  padding:22px 0 10px;
}

address{
  font-style:normal;
  font-weight:700;
  color:var(--fg);
}

.footlinks{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}

.footlinks a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:7px 12px;
  border-radius:8px;
  color:var(--dim);
  font-size:15px;
  line-height:1.4;
  text-decoration:none;
  transition:color .2s ease,background-color .2s ease;
}

.footlinks a:hover,
.footlinks a:focus-visible{
  color:#fff;
  background:rgba(191,0,255,.16);
}

.copy{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#8e85a5;
}

/* ---------- 进场 ---------- */
.rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .5s ease;
}

.rv.in{
  opacity:1;
  transform:none;
}

/* ---------- 断点 ---------- */
@media (min-width:640px){
  .brandname{font-size:19px}
}

@media (min-width:900px){
  .masthead{
    position:sticky;
    top:0;
    flex-wrap:nowrap;
  }
  .navshell{
    width:auto;
    margin-left:auto;
  }
  .topnav ul{justify-content:flex-end;flex-wrap:wrap}
  .doc > section{scroll-margin-top:110px}
}

@media (min-width:980px){
  .shell{
    grid-template-columns:minmax(0,1fr) 288px;
    gap:56px;
    align-items:start;
  }
  .rail{position:sticky;top:96px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .heromark{animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .topnav a:hover,
  .hero-link:hover,
  .ctabtn:hover,
  .brand:hover .brandmark{transform:none}
}

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