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

:root{
  --ink:#26171f;
  --bg:#120810;
  --paper:#1b0f18;
  --pink:#ff0080;
  --mag:#ff00ff;
  --text:#f8edf4;
  --dim:#c6a6bb;
  --line:rgba(255,0,128,.3);
  --soft:rgba(255,255,255,.08);
  --r:10px;
  --bar-h:96px;
}

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

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

body{
  margin:0;
  font-family:'Rubik','Nunito Sans','PingFang SC','Noto Sans SC',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  background:var(--bg);
  padding-bottom:calc(var(--bar-h) + 20px);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--pink);text-decoration:none}
a:hover{color:var(--mag)}
img{max-width:100%;height:auto;display:block}

/* ---------- 极光背景 ---------- */
.aurora{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:
    radial-gradient(120% 90% at 80% 0%,rgba(255,0,128,.22),transparent 62%),
    radial-gradient(110% 80% at 0% 100%,rgba(255,0,255,.2),transparent 60%),
    linear-gradient(180deg,#160a13,#0d0609 70%);
  pointer-events:none;
}

.aurora i{
  position:absolute;
  display:block;
  border-radius:50%;
  filter:blur(64px);
  opacity:.62;
  mix-blend-mode:screen;
  will-change:transform;
}

.aurora .a1{
  width:58vmax;height:58vmax;
  left:-14vmax;top:-22vmax;
  background:conic-gradient(from 20deg,#ff0080,#ff00ff,#7a00ff,#ff0080);
  animation:flow1 26s ease-in-out infinite alternate;
}
.aurora .a2{
  width:46vmax;height:46vmax;
  right:-16vmax;top:18vmax;
  background:conic-gradient(from 200deg,#ff00ff,#ff4d9d,#4d00ff,#ff00ff);
  animation:flow2 32s ease-in-out infinite alternate;
}
.aurora .a3{
  width:40vmax;height:40vmax;
  left:24vmax;bottom:-20vmax;
  background:conic-gradient(from 300deg,#ff0080,#a000ff,#ff00ff,#ff0080);
  animation:flow3 38s ease-in-out infinite alternate;
}
.aurora .a4{
  width:26vmax;height:26vmax;
  right:10vmax;bottom:6vmax;
  background:conic-gradient(from 90deg,#ff00ff,#ff0080,#ff00ff);
  opacity:.4;
  animation:flow2 22s ease-in-out infinite alternate-reverse;
}

.aurora .grain{
  position:absolute;inset:0;
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px);
  mix-blend-mode:overlay;
  opacity:.5;
}

@keyframes flow1{
  from{transform:translate3d(0,0,0) scale(1);filter:blur(64px) hue-rotate(0deg)}
  to{transform:translate3d(10vmax,8vmax,0) scale(1.18);filter:blur(74px) hue-rotate(48deg)}
}
@keyframes flow2{
  from{transform:translate3d(0,0,0) scale(1.06);filter:blur(60px) hue-rotate(0deg)}
  to{transform:translate3d(-9vmax,6vmax,0) scale(.92);filter:blur(72px) hue-rotate(-40deg)}
}
@keyframes flow3{
  from{transform:translate3d(0,0,0) scale(.95);filter:blur(70px) hue-rotate(10deg)}
  to{transform:translate3d(-7vmax,-9vmax,0) scale(1.15);filter:blur(80px) hue-rotate(60deg)}
}

/* ---------- 底部固定条 ---------- */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:50;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(31,17,26,.9),rgba(13,6,12,.98));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.bar nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.15rem;
  padding:.4rem .5rem .5rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.bar nav::-webkit-scrollbar{display:none}

.bar ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  gap:.1rem;
  flex:0 0 auto;
}

.bar ul a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .62rem;
  font-size:16px;
  line-height:1.3;
  color:var(--text);
  border-radius:8px;
  white-space:nowrap;
  border:1px solid transparent;
}
.bar ul a:hover,
.bar ul a:focus-visible{
  color:#fff;
  border-color:var(--line);
  background:rgba(255,0,128,.14);
}

.brand{
  order:-1;
  flex:0 0 100%;
  position:sticky;
  left:0;
  z-index:2;
  text-align:center;
  padding:.45rem .5rem .1rem;
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  color:#fff;
  background:linear-gradient(90deg,var(--pink),var(--mag) 55%,#ff7ab8);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ---------- 布局骨架 ---------- */
.shell{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(1rem,4vw,2.2rem);
}

main{min-width:0}

/* ---------- hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  align-items:center;
  padding:1.6rem 0 1.4rem;
  border-bottom:1px solid var(--line);
}

.hero-run{
  position:absolute;
  right:-2vw;
  top:.4rem;
  font-size:clamp(2.6rem,15vw,9rem);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1;
  white-space:nowrap;
  color:transparent;
  background:linear-gradient(120deg,rgba(255,0,128,.5),rgba(255,0,255,.36),rgba(255,255,255,.1));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  opacity:.5;
  pointer-events:none;
  will-change:transform;
}

.hero-in{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:1rem;
  width:100%;
}

.hero-art{
  flex:0 0 auto;
  width:68px;height:68px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(255,0,255,.55);
  background:
    conic-gradient(from 40deg,#ff0080,#ff00ff,#7a00ff,#ff0080);
  box-shadow:0 0 0 6px rgba(255,0,128,.09);
}
.hero-art .art-img{
  width:100%;height:100%;
  object-fit:cover;
}

.hero-copy{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
}

h1{
  margin:0;
  font-size:clamp(1.6rem,6.6vw,2.7rem);
  line-height:1.24;
  font-weight:700;
  letter-spacing:-.01em;
  text-shadow:0 0 34px rgba(255,0,128,.4);
}

/* ---------- 正文 ---------- */
.prose{
  padding:.4rem 0 1rem;
  max-width:74ch;
  font-size:1.03rem;
}

.prose > section{
  padding:2.1rem 0 1.9rem;
  border-top:1px solid var(--line);
  scroll-margin-top:1.2rem;
}
.prose > section:first-child{border-top:0;padding-top:1.8rem}
.prose > section:last-child{padding-bottom:2.4rem}

.prose h2{
  margin:0 0 .35rem;
  font-size:clamp(1.32rem,4.6vw,1.62rem);
  line-height:1.32;
  font-weight:600;
  letter-spacing:.005em;
}

.prose h2::before{
  content:"";
  display:inline-block;
  width:10px;height:10px;
  margin-right:.55rem;
  border-radius:3px;
  transform:translateY(-2px);
  background:linear-gradient(135deg,var(--pink),var(--mag));
}

.prose h3{
  margin:1.6rem 0 .3rem;
  font-size:1.14rem;
  font-weight:600;
  color:#ffe4f3;
}

.prose hr{
  border:0;
  height:1px;
  margin:.7rem 0 1.15rem;
  background:linear-gradient(90deg,var(--pink),rgba(255,0,255,.6) 38%,transparent);
}

.prose p{margin:0 0 1.05rem}
.prose ul,.prose ol{margin:0 0 1.1rem;padding-left:1.35rem}
.prose li{margin:.3rem 0}
.prose li::marker{color:var(--mag)}
.prose strong{color:#fff;font-weight:600}

.prose blockquote{
  margin:1.2rem 0;
  padding:.9rem 1.1rem;
  border:1px solid var(--line);
  border-left:3px solid var(--mag);
  border-radius:var(--r);
  background:rgba(255,0,128,.07);
  color:#f3dcea;
}

.prose a{
  border-bottom:1px solid rgba(255,0,128,.55);
}

.prose img{
  border-radius:var(--r);
  border:1px solid var(--line);
  margin:1.1rem 0;
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.1rem 0;
  font-size:16px;
}
.prose th,.prose td{
  border:1px solid rgba(255,0,255,.24);
  padding:.55rem .7rem;
  text-align:left;
}
.prose th{background:rgba(255,0,128,.12)}

/* 滚动进场 */
html.js .prose > section{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s ease;
}
html.js .prose > section.in{opacity:1;transform:none}
html.js .prose > section:nth-child(2){transition-delay:.04s}
html.js .prose > section:nth-child(3){transition-delay:.08s}
html.js .prose > section:nth-child(4){transition-delay:.12s}
html.js .prose > section:nth-child(5){transition-delay:.16s}
html.js .prose > section:nth-child(6){transition-delay:.2s}
html.js .prose > section:nth-child(7){transition-delay:.24s}

/* ---------- 右侧栏 ---------- */
.rail{
  margin:1.4rem 0 2.4rem;
  padding:1rem 1.1rem 1.15rem;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(38,23,31,.62);
}

.rail h2{
  margin:0 0 .3rem;
  font-size:16px;
  font-weight:600;
  letter-spacing:.05em;
  color:#fff;
}

.rail hr{
  border:0;
  height:1px;
  margin:.55rem 0 .8rem;
  background:linear-gradient(90deg,var(--mag),transparent);
}

.rail-list{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.25rem .5rem;
}

.rail-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .6rem;
  font-size:16px;
  color:var(--dim);
  border:1px solid rgba(255,0,255,.22);
  border-radius:8px;
}
.rail-list a:hover{
  color:#fff;
  border-color:var(--mag);
  background:rgba(255,0,255,.12);
}

.rail-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:.85rem;
  padding:.3rem .7rem;
  font-size:16px;
  border-radius:8px;
  border:1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  margin-top:1.6rem;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(27,15,24,.72),rgba(13,6,12,.95));
  padding:2rem clamp(1rem,4vw,2.2rem) 1.4rem;
}

.foot-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:1.5rem;
}

.foot-col{min-width:0}

.foot address{
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:.25rem;
  line-height:1.55;
}
.foot address strong{
  font-size:1.06rem;
  color:#fff;
  letter-spacing:.02em;
}
.foot-host{
  color:var(--dim);
  font-size:16px;
  word-break:break-all;
}

.foot h3{
  margin:0 0 .5rem;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  color:#ff9ecd;
}

.foot-list{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--dim);
}
.foot-list a:hover{color:#fff}

.sub-row{display:flex;gap:.4rem;flex-wrap:wrap}

.sub input{
  flex:1 1 130px;
  min-width:0;
  min-height:44px;
  padding:.5rem .7rem;
  font:inherit;
  font-size:16px;
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,0,255,.28);
  border-radius:8px;
}
.sub input::placeholder{color:#a98ca0}
.sub input:focus-visible{
  outline:2px solid var(--mag);
  outline-offset:1px;
}

.sub button{
  min-height:44px;
  padding:.5rem 1.1rem;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#1a0a12;
  border:0;
  border-radius:8px;
  cursor:pointer;
  background:linear-gradient(120deg,var(--pink),var(--mag));
}
.sub button:hover{filter:brightness(1.12)}

.copy{
  max-width:1180px;
  margin:1.8rem auto 0;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:16px;
  color:var(--dim);
}

/* ---------- 桌面 ---------- */
@media (min-width:860px){
  :root{--bar-h:64px}

  .bar nav{
    flex-wrap:nowrap;
    overflow:visible;
    gap:.4rem;
    padding:.35rem 1.2rem;
    max-width:1180px;
    margin:0 auto;
  }
  .bar ul{flex:1 1 0}
  .bar .bar-l{justify-content:flex-end}
  .bar .bar-r{justify-content:flex-start}

  .brand{
    order:0;
    position:static;
    flex:0 0 auto;
    padding:.4rem 1rem;
    font-size:17px;
    white-space:nowrap;
  }

  .hero{padding:2rem 0 1.8rem}
  .hero-art{width:86px;height:86px}
  h1{font-size:clamp(2rem,4vw,2.9rem)}
}

@media (min-width:920px){
  .shell{
    display:grid;
    grid-template-columns:minmax(0,1fr) 268px;
    gap:2.6rem;
    align-items:start;
    padding-top:.5rem;
  }
  .rail{
    position:sticky;
    top:1.4rem;
    margin:2rem 0 2rem;
  }
  .rail-list{flex-direction:column;flex-wrap:nowrap}
  .rail-list a{width:100%}
  .hero{padding-top:2.4rem}
  .prose{padding-right:.6rem}
  .foot-grid{grid-template-columns:1.2fr 1fr .9fr .7fr}
}

@media (min-width:920px){
  .foot-grid{gap:2rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .aurora i{animation:none}
  html.js .prose > section{opacity:1;transform:none;transition:none}
}

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