@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --text:#f7edf0;
  --muted:#cbb2ba;
  --line:rgba(255,255,255,.16);
  --glass:rgba(255,255,255,.08);
}

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

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

body{
  margin:0;
  font-family:Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:16.5px;
  line-height:1.75;
  color:var(--text);
  background-color:#191010;
  background-image:
    radial-gradient(880px 520px at 90% -8%,rgba(139,0,255,.45),transparent 62%),
    radial-gradient(720px 470px at 2% 6%,rgba(255,0,0,.34),transparent 60%),
    radial-gradient(900px 720px at 55% 108%,rgba(139,0,255,.22),transparent 66%);
  background-attachment:fixed;
  overflow-x:hidden;
}

a{color:#ffb3b3}
img{max-width:100%}

/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 18px;
  background:rgba(38,23,23,.5);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.18);
  transition:background .25s ease;
}
.topbar.stuck{background:rgba(28,16,16,.8)}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex:0 0 auto;
  border-radius:50%;
  background:linear-gradient(140deg,rgba(255,0,0,.92),rgba(139,0,255,.92));
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:19px;
  line-height:1;
  box-shadow:0 6px 22px rgba(139,0,255,.4);
  overflow:hidden;
}
.mark img{width:100%;height:100%;object-fit:cover;display:block}
.mark.small{width:38px;height:38px;font-size:16px;box-shadow:none}

.topnav{flex:1 1 auto;min-width:0}
.topnav ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
  padding:0;
}
.topnav a{
  display:inline-block;
  padding:11px 10px;
  min-height:44px;
  border-radius:8px;
  color:#eddfe3;
  text-decoration:none;
  font-size:15.5px;
  transition:color .2s ease,background .2s ease;
}
.topnav a:hover,
.topnav a:focus-visible{color:#fff;background:rgba(255,255,255,.13)}

.find{flex:0 0 auto;margin-left:auto}
.find input{
  width:168px;
  min-height:44px;
  padding:9px 15px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.1);
  color:#fff;
  font:inherit;
  font-size:15px;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.find input::placeholder{color:#c8b3ba}
.find input:focus{
  outline:2px solid rgba(255,130,130,.7);
  outline-offset:1px;
  background:rgba(255,255,255,.17);
}

/* 首屏 */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  align-items:center;
  padding:56px 0 52px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.heroin{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1184px;
  margin:0 auto;
  padding:0 24px;
  text-align:left;
}
.ghost{
  position:absolute;
  left:-.05em;
  bottom:-.16em;
  z-index:0;
  font-size:clamp(64px,13vw,190px);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:.92;
  color:rgba(255,255,255,.055);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
}
.glow{
  position:absolute;
  border-radius:50%;
  filter:blur(52px);
  opacity:.6;
  pointer-events:none;
  z-index:0;
}
.g1{
  width:300px;height:300px;
  top:-90px;right:6%;
  background:radial-gradient(circle,rgba(255,0,0,.95),transparent 70%);
}
.g2{
  width:380px;height:380px;
  bottom:-160px;left:26%;
  background:radial-gradient(circle,rgba(139,0,255,.95),transparent 70%);
}

.hero h1{
  position:relative;
  margin:0 0 16px;
  font-size:clamp(32px,6vw,64px);
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.025em;
  color:#fff;
  background:linear-gradient(102deg,#ffffff 18%,#ffb3b3 56%,#d3a6ff);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.lead{
  position:relative;
  margin:0;
  max-width:52ch;
  font-size:clamp(16px,1.5vw,18px);
  color:#e2ccd3;
}

/* 正文骨架 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:46px;
  max-width:1184px;
  margin:0 auto;
  padding:10px 24px 70px;
  align-items:start;
}

section{padding:26px 0 10px;min-width:0}
section > h2{
  margin:0 0 6px;
  font-size:clamp(20px,2.4vw,26px);
  font-weight:500;
  letter-spacing:-.01em;
}
.subtitle{
  margin:0 0 8px;
  color:#c9a9b4;
  font-size:15.5px;
  letter-spacing:.08em;
}

section article{
  scroll-margin-top:112px;
  margin-top:36px;
  padding-top:36px;
  border-top:1px solid rgba(255,255,255,.11);
}
section article:first-of-type{margin-top:26px;border-top:0;padding-top:0}

section article h2{
  margin:0 0 16px;
  font-size:clamp(21px,2.6vw,29px);
  line-height:1.28;
  letter-spacing:-.015em;
}
section article h2::before{
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:12px;
  border-radius:3px;
  background:linear-gradient(135deg,var(--red),var(--violet));
  vertical-align:middle;
}

section h3{
  margin:26px 0 10px;
  font-size:18.5px;
  font-weight:500;
}
section p{margin:0 0 16px;color:#e8dadd}
section ul,
section ol{margin:0 0 18px;padding-left:1.3em}
section li{margin:.4em 0;color:#e8dadd}
section strong{color:#fff;font-weight:500}
section a{color:#ff9d9d;text-underline-offset:3px}
section a:hover{color:#ffd0d0}
section img{
  display:block;
  margin:20px 0;
  border-radius:10px;
}
section hr{
  margin:28px 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.14);
}
section blockquote{
  margin:20px 0;
  padding:16px 20px;
  border-radius:10px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:#efdfe4;
}
section blockquote p:last-child{margin:0}
section table{
  width:100%;
  margin:0 0 20px;
  border-collapse:collapse;
  font-size:15.5px;
}
section th,
section td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:left;
  vertical-align:top;
}
section th{color:#fff;font-weight:500}

/* 侧栏 */
.rail{
  position:sticky;
  top:96px;
  margin-top:26px;
  padding:18px 16px 20px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
.rail h2{
  margin:0 0 12px;
  font-size:15px;
  font-weight:500;
  letter-spacing:.16em;
  color:#f1e0e5;
}
.rail ul{list-style:none;margin:0;padding:0}
.rail a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 11px;
  border-radius:8px;
  color:#e3d3d8;
  text-decoration:none;
  font-size:15px;
  transition:background .2s ease,color .2s ease;
}
.rail a:hover{background:rgba(255,255,255,.11);color:#fff}
.rail a.hit{
  background:rgba(255,0,0,.24);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.34);
}
.dot{
  width:6px;height:6px;flex:0 0 auto;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
}

/* 子页卡片 */
.kids{
  max-width:1184px;
  margin:0 auto 64px;
  padding:0 24px;
}
.kids ul{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:16px;
  margin:0;
  padding:0;
}
.kids a{
  display:block;
  height:100%;
  padding:18px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  text-decoration:none;
  color:#f4e7ea;
  transition:background .2s ease;
}
.kids a:hover{background:rgba(255,255,255,.14)}
.kids h3{margin:0 0 8px;font-size:17px;font-weight:500;color:#fff}
.kids p{margin:0 0 10px;font-size:15px;color:#dbe0e4;color:#dbc9cf}
.kids time{font-size:13.5px;color:#b79aa3}

/* 页脚 */
footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px 30px;
  max-width:1184px;
  margin:0 auto;
  padding:26px 24px 40px;
  border-top:1px solid rgba(255,255,255,.15);
}
.fbrand{display:flex;align-items:center;gap:10px}
.fname{font-size:15px;color:#d3bfc6}
footer nav dl{
  display:flex;
  flex-wrap:wrap;
  gap:0 12px;
  margin:0;
  padding:0;
}
footer nav dt{
  align-self:center;
  font-size:12px;
  letter-spacing:.1em;
  color:#a98f97;
  line-height:1;
}
footer nav dd{margin:0}
footer nav a{
  display:inline-block;
  padding:11px 4px;
  min-height:44px;
  color:#dcc9cf;
  text-decoration:none;
  font-size:14.5px;
}
footer nav a:hover{color:#fff;text-decoration:underline}
.fnote{margin-left:auto}
.fnote p{margin:0;font-size:14px;color:#a98f97}

/* 动效 */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.reveal.in{opacity:1;transform:none}

/* 响应式 */
@media (max-width:860px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:0;padding:6px 18px 56px}
  .rail{position:static;margin-top:34px}
  section article{scroll-margin-top:140px}
}

@media (max-width:760px){
  body{font-size:16px}
  .topbar{padding:8px 14px;gap:8px}
  .topnav{order:3;flex-basis:100%}
  .topnav ul{gap:0}
  .topnav a{padding:10px 9px;font-size:15px}
  .find{order:2}
  .find input{width:134px}
  .hero{min-height:40vh;padding:40px 0 36px}
  .heroin{padding:0 18px}
  .hero h1{font-size:clamp(28px,8.6vw,44px)}
  .kids{padding:0 18px}
  footer{flex-direction:column;align-items:flex-start;gap:8px;padding:22px 18px 32px}
  .fnote{margin-left:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
  .reveal{opacity:1!important;transform:none!important}
}

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