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

:root{
  --ink:#261717;
  --ink-2:#31201f;
  --red:#ff0000;
  --pink:#ff1493;
  --paper:#fdf0f1;
  --line:rgba(255,20,147,.28);
  --line-hot:rgba(255,20,147,.7);
  --glow:rgba(255,0,0,.32);
}

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

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

body{
  margin:0;
  padding-bottom:calc(104px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255,20,147,.16), transparent 60%),
    radial-gradient(90% 50% at 0% 30%, rgba(255,0,0,.13), transparent 65%),
    var(--ink);
  background-attachment:fixed;
  color:var(--paper);
  font-family:'Work Sans','Outfit',system-ui,-apple-system,'Segoe UI','Noto Sans SC',sans-serif;
  font-size:17px;
  line-height:1.7;
  letter-spacing:.01em;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:'Outfit','Work Sans',system-ui,'Noto Sans SC',sans-serif;letter-spacing:-.015em}
hr{
  border:0;
  height:2px;
  margin:0 0 18px;
  background:linear-gradient(90deg,var(--pink),rgba(255,0,0,.6) 45%,transparent);
  border-radius:2px;
}
:focus-visible{outline:2px solid var(--pink);outline-offset:3px;border-radius:4px}

/* 底部胶囊导航 */
.dock{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px calc(9px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(38,23,23,.78),rgba(38,23,23,.96));
  backdrop-filter:blur(14px) saturate(1.3);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);
  border-top:1px solid var(--line);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:0 8px;
  border-radius:999px;
  font-family:'Outfit',sans-serif;
  font-weight:700;
  font-size:16px;
  letter-spacing:-.02em;
  text-decoration:none;
  white-space:nowrap;
  color:#fff;
}
.brand-mark{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(140deg,var(--red),var(--pink));
  color:#fff;
  font-size:15px;
  line-height:1;
  box-shadow:0 0 16px var(--glow);
}
.brand-txt{max-width:9em;overflow:hidden;text-overflow:ellipsis}
.caps{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.caps::-webkit-scrollbar{display:none}
.caps ol{
  display:flex;
  gap:7px;
  margin:0;
  padding:1px 2px;
  list-style:none;
}
.caps a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  transition:border-color .25s ease,background .25s ease,color .25s ease,transform .25s ease;
}
.caps a:hover,
.caps a.on{
  border-color:var(--line-hot);
  background:rgba(255,20,147,.18);
  color:#fff;
  transform:translateY(-1px);
}
.dock-cta{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 17px;
  border-radius:999px;
  background:linear-gradient(120deg,var(--red),var(--pink));
  color:#fff;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;
  transition:filter .25s ease,transform .25s ease;
}
.dock-cta:hover{filter:saturate(1.3) brightness(1.08);transform:translateY(-1px)}

/* 极光头部 */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:70vh;
  padding:74px 20px 62px;
  overflow:hidden;
  isolation:isolate;
  border-bottom:1px solid var(--line);
}
.hero-aurora{
  position:absolute;
  inset:-18%;
  z-index:1;
  background:
    radial-gradient(38% 42% at 20% 24%, rgba(255,0,0,.62), transparent 62%),
    radial-gradient(44% 40% at 80% 28%, rgba(255,20,147,.66), transparent 66%),
    radial-gradient(52% 48% at 48% 88%, rgba(255,96,60,.4), transparent 70%);
  background-size:200% 200%;
  filter:saturate(1.25) blur(8px);
  mix-blend-mode:screen;
  animation:aurora 11s ease-in-out infinite alternate;
}
@keyframes aurora{
  0%{background-position:0% 0%}
  100%{background-position:100% 100%}
}
.hero-img{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.42;
  filter:saturate(1.15) contrast(1.05);
}
.hero-veil{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(180deg,rgba(38,23,23,.66),rgba(38,23,23,.3) 42%,rgba(38,23,23,.96)),
    radial-gradient(70% 60% at 50% 50%, transparent, rgba(38,23,23,.6));
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size:23px 23px;
  opacity:.5;
  mix-blend-mode:screen;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 88%);
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 88%);
}
.hero-copy{
  position:relative;
  z-index:4;
  max-width:820px;
  text-align:center;
}
.hero h1{
  margin:0 0 18px;
  font-size:clamp(2.1rem,6.4vw,4rem);
  font-weight:700;
  line-height:1.13;
  letter-spacing:-.03em;
  color:#fff;
  text-shadow:0 0 32px rgba(255,20,147,.55),0 0 70px rgba(255,0,0,.35);
}
.hero-sub{
  max-width:34rem;
  margin:0 auto 26px;
  font-size:1.06rem;
  line-height:1.72;
  color:rgba(255,241,242,.88);
}
.hero-btn{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 24px;
  border:1px solid var(--line-hot);
  border-radius:999px;
  background:rgba(255,20,147,.14);
  backdrop-filter:blur(6px);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.hero-btn:hover{background:rgba(255,20,147,.3);transform:translateY(-2px)}

/* 正文 + 右侧栏 */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:44px 20px 0;
}
.board{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:34px;
  align-items:start;
}
.prose{min-width:0}
.prose div{
  padding:clamp(18px,3vw,32px);
  margin:0 0 22px;
  border:1px solid var(--line);
  border-radius:4px;
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,20,147,.035));
  transition:border-color .3s ease,transform .3s ease,background .3s ease;
}
.prose div:hover{
  border-color:var(--line-hot);
  background:linear-gradient(160deg,rgba(255,255,255,.065),rgba(255,20,147,.08));
  transform:translateY(-2px);
}
.prose div[id]{scroll-margin-top:26px}
.prose h2{
  margin:0 0 6px;
  font-size:clamp(1.35rem,3vw,1.72rem);
  font-weight:700;
  line-height:1.26;
  color:#fff;
}
.prose h3{
  margin:22px 0 4px;
  font-size:clamp(1.12rem,2.2vw,1.28rem);
  line-height:1.34;
  color:#fff;
}
.prose h2+hr,
.prose h3+hr{margin:10px 0 16px}
.prose p{margin:0 0 15px;line-height:1.82;color:#f4e4e6}
.prose p:last-child{margin-bottom:0}
.prose a{color:#ff8ac4;text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose ul,.prose ol{padding-left:1.25em;margin:0 0 15px;line-height:1.8}
.prose li{margin-bottom:7px}
.prose blockquote{
  margin:0 0 16px;
  padding:6px 0 6px 16px;
  border-left:3px solid var(--pink);
  color:#ffd9ea;
  font-style:normal;
}
.prose img{border-radius:4px;border:1px solid var(--line);margin:0 0 16px;width:auto;max-width:100%}
.prose figure{margin:0 0 16px}
.prose figcaption{font-size:16px;color:rgba(253,240,241,.72);margin-top:8px}
.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:9px 8px;text-align:left}
.prose hr{margin:18px 0}
.prose code{
  font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;
  font-size:15px;
  background:rgba(255,20,147,.16);
  padding:2px 6px;
  border-radius:4px;
}

.rail{
  position:sticky;
  top:26px;
  padding:18px 18px 20px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(255,20,147,.07);
  backdrop-filter:blur(4px);
}
.rail-title{
  margin:0;
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:.02em;
}
.rail hr{height:2px;margin:9px 0 12px}
.rail-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:none;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 10px;
  border-radius:4px;
  font-size:16px;
  text-decoration:none;
  color:#fbe3e9;
  transition:background .22s ease,color .22s ease,padding-left .22s ease;
}
.rail-list a:hover{
  background:rgba(255,20,147,.22);
  color:#fff;
  padding-left:14px;
}
.rail-fig{margin:16px 0 0}
.rail-fig .rail-img{
  width:100%;
  border-radius:4px;
  border:1px solid var(--line);
}

/* 页脚 */
.foot{
  max-width:1180px;
  margin:42px auto 0;
  padding:46px 20px 8px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line);
}
.foot small{font-size:16px;color:rgba(253,240,241,.7)}
.foot-cta{margin:0}
.foot-cta a{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  padding:0 26px;
  border:1px solid var(--line-hot);
  border-radius:999px;
  background:rgba(255,20,147,.12);
  color:#fff;
  font-family:'Outfit',sans-serif;
  font-size:clamp(1.05rem,2.4vw,1.3rem);
  font-weight:600;
  text-decoration:none;
  transition:background .25s ease,transform .25s ease;
}
.foot-cta a:hover{background:rgba(255,20,147,.28);transform:translateY(-2px)}

.js .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .65s ease var(--d,0ms),transform .65s cubic-bezier(.22,.7,.25,1) var(--d,0ms);
}
.js .reveal.in{opacity:1;transform:none}

@media (max-width:900px){
  .board{grid-template-columns:1fr;gap:22px}
  .rail{position:static;top:auto}
  .rail-list{flex-direction:row;flex-wrap:wrap}
  .rail-list a{padding:0 12px;border:1px solid var(--line)}
  .rail-fig{margin-top:14px}
  .prose div:hover{transform:none}
}

@media (max-width:620px){
  body{font-size:17px}
  .brand-txt{max-width:5.4em}
  .dock{gap:7px;padding-left:9px;padding-right:9px}
  .caps a{padding:0 13px}
  .shell{padding:30px 14px 0}
  .hero{padding:58px 16px 52px;min-height:66vh}
  .foot{padding:40px 14px 4px}
}

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

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