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

:root{
  --neon:#ff0000;
  --pink:#ff006e;
  --ink:#1a1a2e;
  --bg:#0a0a14;
  --bg2:#101024;
  --txt:#eceaf5;
  --dim:#b6b1cc;
  --line:rgba(255,0,110,.30);
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}

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

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

body{
  margin:0;
  font-family:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--txt);
  background-color:var(--bg);
  background-image:
    radial-gradient(900px 520px at 10% -6%,rgba(255,0,110,.22),transparent 62%),
    radial-gradient(760px 460px at 94% 3%,rgba(255,0,0,.14),transparent 60%),
    linear-gradient(180deg,#0a0a14,#0b0b18 40%,#08080f);
  background-repeat:no-repeat;
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,0,110,.55) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.16;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  background:repeating-linear-gradient(to bottom,rgba(0,0,0,.24) 0 1px,transparent 1px 3px);
  opacity:.55;
}

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

a{color:#ff7aa4}
a:focus-visible{outline:2px solid var(--neon);outline-offset:3px;border-radius:6px}

/* ---------- 顶部 ---------- */
.site-top{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(9,9,18,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,0,110,.38);
  box-shadow:0 8px 30px rgba(255,0,110,.16);
}

.top-row{
  max-width:1180px;
  margin:0 auto;
  padding:10px 20px 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 4px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:19px;
  letter-spacing:.2em;
  text-shadow:0 0 14px rgba(255,0,110,.85),0 0 30px rgba(255,0,0,.4);
}

.logo .dot{
  width:13px;height:13px;border-radius:2px;
  background:linear-gradient(135deg,var(--neon),var(--pink));
  box-shadow:0 0 14px var(--pink),0 0 28px rgba(255,0,0,.6);
}

.host{
  font-family:var(--mono);
  font-size:15px;
  letter-spacing:.06em;
  color:#ffa8c4;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 13px;
  white-space:nowrap;
}

.bar{
  display:flex;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
  max-width:1180px;
  margin:0 auto;
  padding:0 14px 8px;
  -webkit-overflow-scrolling:touch;
}
.bar::-webkit-scrollbar{display:none}

.bar a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 13px;
  font-size:16px;
  text-decoration:none;
  color:var(--dim);
  border:1px solid transparent;
  border-radius:10px;
  white-space:nowrap;
  transition:color .2s,border-color .2s,background .2s,text-shadow .2s;
}

.bar a:hover,
.bar a:focus-visible{
  color:#fff;
  border-color:var(--pink);
  background:rgba(255,0,110,.14);
  text-shadow:0 0 12px var(--pink);
}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:45vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:54px 22px 46px;
  border-bottom:1px solid var(--line);
}

.hero-media{position:absolute;inset:0;z-index:0}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.85) contrast(1.06) hue-rotate(-8deg);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 50% 46%,rgba(26,26,46,.42),rgba(10,10,20,.93) 76%),
    radial-gradient(rgba(255,0,110,.5) 1px,transparent 1px),
    linear-gradient(180deg,rgba(10,10,20,.55),rgba(10,10,20,.9));
  background-size:auto,20px 20px,auto;
}

.hero-txt{position:relative;z-index:2;max-width:820px}

.hero h1{
  margin:0 auto;
  max-width:21ch;
  font-size:clamp(26px,5vw,44px);
  line-height:1.36;
  letter-spacing:.03em;
  color:#fff;
  text-shadow:0 0 10px rgba(255,0,110,.9),0 0 34px rgba(255,0,0,.45);
}

.hero .lead{
  margin:18px auto 0;
  max-width:44ch;
  font-size:17px;
  line-height:1.72;
  color:#ded9ee;
}

/* ---------- 布局 ---------- */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:34px 22px 8px;
  display:grid;
  grid-template-columns:272px minmax(0,1fr);
  gap:34px;
  align-items:start;
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:126px;
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(26,26,46,.95),rgba(12,12,24,.95));
  box-shadow:0 18px 40px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,0,110,.07);
}

.rail-h{
  margin:0;
  font-size:20px;
  letter-spacing:.16em;
  color:#fff;
  text-shadow:0 0 14px rgba(255,0,110,.8);
}

.rail .subtitle{
  margin:8px 0 0;
  font-size:16px;
  line-height:1.65;
  color:var(--dim);
}

.rail-nav{margin-top:18px;padding-top:14px;border-top:1px dashed rgba(255,0,110,.34)}

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

.rail-nav li{counter-increment:rail}

.rail-nav a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:42px;
  padding:8px 8px;
  font-size:16px;
  text-decoration:none;
  color:#cbc6de;
  border-left:2px solid transparent;
  border-radius:0 8px 8px 0;
  transition:color .2s,background .2s,border-color .2s;
}

.rail-nav a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--mono);
  font-size:15px;
  color:var(--pink);
  opacity:.9;
}

.rail-nav a:hover,
.rail-nav a:focus-visible{
  color:#fff;
  background:rgba(255,0,110,.12);
  border-left-color:var(--neon);
}

/* ---------- 正文 ---------- */
main{min-width:0}

.article-body{display:block}

.article-body > div{
  margin:0 0 22px;
  padding:26px 22px;
  border:1px solid rgba(255,0,110,.26);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(26,26,46,.93),rgba(11,11,22,.94));
  box-shadow:0 16px 34px rgba(0,0,0,.5);
  transition:transform .32s ease,box-shadow .32s ease,border-color .32s ease;
}

.article-body > div[id]{scroll-margin-top:132px}

.article-body > div:hover{
  transform:translateY(-4px);
  border-color:rgba(255,0,110,.62);
  box-shadow:0 22px 44px rgba(255,0,110,.2);
}

.article-body h2{
  margin:0 0 14px;
  font-size:clamp(21px,2.6vw,26px);
  line-height:1.42;
  letter-spacing:.03em;
  color:#fff;
  text-shadow:0 0 18px rgba(255,0,0,.55);
}

.article-body h3{
  margin:22px 0 10px;
  font-size:19px;
  line-height:1.5;
  color:#ffd9e6;
}

.article-body p{margin:0 0 14px}
.article-body p:last-child{margin-bottom:0}
.article-body ul,.article-body ol{margin:0 0 14px;padding-left:1.35em}
.article-body li{margin:6px 0}
.article-body strong{color:#fff;text-shadow:0 0 10px rgba(255,0,110,.5)}
.article-body img{border-radius:14px;margin:14px 0}

.article-body blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-left:3px solid var(--neon);
  border-radius:0 12px 12px 0;
  background:rgba(255,0,0,.09);
  color:#e6e2f2;
}

.article-body hr{
  border:0;
  height:1px;
  margin:22px 0;
  background:linear-gradient(90deg,transparent,rgba(255,0,110,.6),transparent);
}

.article-body time{
  font-family:var(--mono);
  font-size:16px;
  color:#ff8fb3;
}

/* ---------- 页脚 ---------- */
.site-foot{
  margin-top:40px;
  border-top:1px solid rgba(255,0,110,.38);
  background:linear-gradient(180deg,rgba(26,26,46,.9),rgba(8,8,15,1));
  box-shadow:0 -12px 44px rgba(255,0,110,.13);
  position:relative;
  z-index:2;
}

.foot-wrap{max-width:1180px;margin:0 auto;padding:36px 22px 16px}

.foot-cols{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:30px;
  align-items:start;
}

address{font-style:normal;color:var(--dim);line-height:1.7}

address .fname{
  display:block;
  margin-bottom:8px;
  font-size:20px;
  font-weight:700;
  letter-spacing:.18em;
  color:#fff;
  text-shadow:0 0 16px rgba(255,0,110,.8);
}

address .fhost{
  font-family:var(--mono);
  font-size:16px;
  color:#ff9dbd;
  letter-spacing:.05em;
}

.foot-nav dl{margin:0;display:grid;gap:0}

.foot-nav dt{margin:0}

.foot-nav dt a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  font-size:16px;
  color:#cec9e0;
  text-decoration:none;
  transition:color .2s,padding-left .2s,text-shadow .2s;
}

.foot-nav dt a:hover,
.foot-nav dt a:focus-visible{
  color:#fff;
  padding-left:6px;
  text-shadow:0 0 12px var(--pink);
}

.foot-nav dd{
  margin:0;
  height:1px;
  background:linear-gradient(90deg,rgba(255,0,110,.42),transparent);
}

.sub-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:28px 0 0;
  padding:18px;
  border:1px dashed rgba(255,0,110,.42);
  border-radius:18px;
  background:rgba(255,0,110,.06);
}

.sub-form label{
  flex:1 0 100%;
  font-size:16px;
  letter-spacing:.12em;
  color:#ffb3cc;
}

.sub-form input{
  flex:1 1 220px;
  min-height:48px;
  padding:10px 14px;
  font-family:inherit;
  font-size:16px;
  color:var(--txt);
  background:rgba(10,10,20,.85);
  border:1px solid var(--line);
  border-radius:12px;
}
.sub-form input::placeholder{color:#8f8aa8}

.sub-form button{
  min-height:48px;
  padding:0 24px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  letter-spacing:.12em;
  color:#16000a;
  border:0;
  border-radius:12px;
  cursor:pointer;
  background:linear-gradient(135deg,var(--neon),var(--pink));
  box-shadow:0 0 18px rgba(255,0,110,.55);
  transition:transform .2s,box-shadow .2s;
}
.sub-form button:hover{transform:translateY(-2px);box-shadow:0 0 26px rgba(255,0,0,.75)}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  justify-content:space-between;
  margin-top:26px;
  padding:14px 0 20px;
  border-top:1px solid rgba(255,0,110,.24);
}

.copy{margin:0;font-size:16px;color:#9e99b8;letter-spacing:.06em}

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

.foot-base a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:4px 12px;
  font-size:16px;
  color:#cec9e0;
  text-decoration:none;
  border-radius:10px;
  transition:color .2s,background .2s;
}

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

/* ---------- 动效 ---------- */
.will-in{opacity:0;transform:translateY(18px)}
.will-in.in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease}

@media (prefers-reduced-motion:no-preference){
  .hero h1{animation:glitch 7s infinite steps(1,end)}
  @keyframes glitch{
    0%,90%,100%{transform:none}
    91%{transform:translate(-2px,1px) skewX(-3deg);text-shadow:2px 0 var(--neon),-2px 0 #00e0ff,0 0 26px rgba(255,0,110,.85)}
    93%{transform:translate(2px,-1px) skewX(2deg);text-shadow:-2px 0 var(--neon),2px 0 #00e0ff,0 0 26px rgba(255,0,110,.85)}
    95%{transform:none}
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .will-in{opacity:1;transform:none}
  .article-body > div:hover{transform:none}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .shell{grid-template-columns:1fr;gap:22px;padding-top:24px}
  .rail{position:static}
  .rail-nav ol{grid-template-columns:1fr 1fr;gap:4px}
  .rail-nav a{min-height:44px}
  .hero{min-height:52vh;padding:46px 18px 40px}
  .foot-cols{grid-template-columns:1fr;gap:22px}
}

@media (max-width:640px){
  body{font-size:17px}
  .top-row{padding:8px 16px 4px}
  .host{font-size:15px;padding:6px 10px}
  .bar{padding:0 10px 8px}
  .shell{padding:20px 16px 8px}
  .article-body > div{padding:22px 16px;border-radius:16px}
  .article-body > div[id]{scroll-margin-top:150px}
  .foot-wrap{padding:28px 16px 14px}
  .rail-nav ol{grid-template-columns:1fr}
}

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