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

:root{
  --ink:#261717;
  --ink-soft:#3a2323;
  --red:#ff0000;
  --pink:#ff1493;
  --cream:#f7ecec;
  --muted:#d8c2c4;
  --hair:rgba(255,255,255,.10);
  --radius:18px;
  --shadow:0 22px 48px -22px rgba(0,0,0,.78);
  --maxw:1180px;
}

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

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

body{
  margin:0;
  background:#170d0d;
  color:var(--cream);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:-22vmax;
  z-index:0;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(36% 44% at 16% 10%, rgba(255,0,0,.30), rgba(255,0,0,0) 64%),
    radial-gradient(40% 48% at 84% 6%, rgba(255,20,147,.30), rgba(255,20,147,0) 62%),
    radial-gradient(52% 58% at 64% 92%, rgba(255,20,147,.16), rgba(255,20,147,0) 60%),
    conic-gradient(from 205deg at 50% 50%, rgba(255,0,0,.14), rgba(255,20,147,.10), rgba(255,0,0,.14));
  background-size:200% 200%;
  filter:saturate(1.2) blur(18px);
  animation:aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora{
  0%{background-position:0% 0%}
  100%{background-position:100% 100%}
}

.topbar,.rail,main,footer{position:relative;z-index:1}

a{color:inherit}
img{max-width:100%}
menu{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--pink);outline-offset:3px;border-radius:8px}

/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:9px 16px;
  background:linear-gradient(180deg,rgba(23,13,13,.88),rgba(23,13,13,.62));
  border-bottom:1px solid var(--hair);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.bar-left{justify-self:start}
.bar-right{justify-self:end;display:flex;align-items:center;gap:8px}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:4px 8px;
  text-decoration:none;
  font-weight:700;
  font-size:17px;
  letter-spacing:-.01em;
  color:#fff;
  white-space:nowrap;
}
.brand-mark{width:24px;height:24px;border-radius:8px;display:block}

.menu-drawer{position:relative}
.menu-drawer>summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 15px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#f8eeef;
  font-size:16px;
  font-weight:500;
  white-space:nowrap;
  transition:border-color .25s ease,background .25s ease;
}
.menu-drawer>summary::-webkit-details-marker{display:none}
.menu-drawer>summary::before{
  content:"";
  width:16px;
  height:2px;
  border-radius:2px;
  background:#fff;
  box-shadow:0 5px 0 #fff,0 -5px 0 #fff;
  transition:transform .25s ease;
}
.menu-drawer[open]>summary{
  border-color:rgba(255,20,147,.55);
  background:linear-gradient(100deg,rgba(255,0,0,.32),rgba(255,20,147,.28));
}
.menu-drawer[open]>summary::before{transform:rotate(90deg)}

.menu-drawer menu{
  position:absolute;
  top:calc(100% + 9px);
  min-width:196px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,0,0,.30);
  background:rgba(38,23,23,.97);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.bar-left .menu-drawer menu{left:0}
.bar-right .menu-drawer menu{right:0}

.menu-drawer menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 13px;
  border-radius:11px;
  font-size:16px;
  text-decoration:none;
  color:#f4e5e7;
  transition:background .2s ease,color .2s ease;
}
.menu-drawer menu a::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(140deg,var(--red),var(--pink));
  flex:none;
}
.menu-drawer menu a:hover,.menu-drawer menu a:focus-visible{
  background:linear-gradient(95deg,rgba(255,0,0,.30),rgba(255,20,147,.24));
  color:#fff;
}

.call{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(100deg,var(--red),var(--pink));
  box-shadow:0 12px 26px -12px rgba(255,0,0,.85);
}

/* 粘性锚点条 */
.rail{
  position:sticky;
  top:63px;
  z-index:30;
  background:linear-gradient(180deg,rgba(20,11,11,.9),rgba(20,11,11,.7));
  border-bottom:1px solid var(--hair);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.rail menu{
  display:flex;
  gap:6px;
  padding:7px 14px;
  overflow-x:auto;
  scrollbar-width:none;
}
.rail menu::-webkit-scrollbar{display:none}
.rail menu li{flex:0 0 auto}
.rail menu a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:16px;
  color:#e6d3d5;
  text-decoration:none;
  white-space:nowrap;
  transition:color .22s ease,border-color .22s ease,background .22s ease;
}
.rail menu a:hover,.rail menu a:focus-visible{
  color:#fff;
  border-color:rgba(255,20,147,.55);
  background:rgba(255,20,147,.14);
}

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:13vh 20px 11vh;
  overflow:hidden;
  text-align:center;
}
.hero-media{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
  overflow:hidden;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.40;
  filter:saturate(1.15);
  transform:scale(1.06);
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(23,13,13,.24), rgba(23,13,13,.82) 88%),
    linear-gradient(180deg, rgba(23,13,13,.45), rgba(23,13,13,.88));
}
.hero-word{
  position:absolute;
  left:0;
  right:0;
  bottom:4%;
  font-weight:700;
  font-size:clamp(38px,11vw,132px);
  line-height:.9;
  letter-spacing:-.06em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.22);
  text-stroke:1px rgba(255,255,255,.22);
  opacity:.85;
}
.hero-copy{
  position:relative;
  z-index:2;
  max-width:900px;
}
.hero h1{
  margin:0;
  font-size:clamp(28px,5.4vw,58px);
  line-height:1.14;
  letter-spacing:-.035em;
  font-weight:700;
  text-wrap:balance;
  color:#fff;
  background:linear-gradient(100deg,#ffffff 8%,#ffd3e0 44%,var(--pink) 76%,var(--red) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-cue{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:26px;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  font-size:16px;
  color:#f5e7e9;
}
.hero-cue::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}

/* 正文区 */
.body-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 318px;
  gap:38px;
  align-items:start;
  max-width:var(--maxw);
  margin:0 auto;
  padding:56px 20px 84px;
}

.prose{min-width:0}
.prose [id]{scroll-margin-top:132px}

.prose section{
  margin:0 0 26px;
  padding:30px 28px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg,rgba(255,255,255,.062),rgba(255,255,255,.022));
  box-shadow:var(--shadow);
}
.prose section:last-child{margin-bottom:0}

.prose h2{
  margin:0 0 12px;
  font-size:clamp(22px,3vw,30px);
  line-height:1.28;
  letter-spacing:-.025em;
  font-weight:700;
  color:#fff;
}
.prose h3{
  margin:26px 0 10px;
  font-size:19px;
  line-height:1.4;
  color:#ffe4ec;
}
.prose p{margin:0 0 15px;color:#e6d5d6}
.prose p:last-child{margin-bottom:0}
.prose .subtitle,.prose .lead{
  font-size:17px;
  color:#ffc4d9;
  margin-bottom:16px;
}
.prose ul,.prose ol{margin:0 0 16px;padding-left:22px;color:#e6d5d6}
.prose li{margin:0 0 8px}
.prose a{color:#ff8fbb;text-underline-offset:3px}
.prose a:hover{color:#ffd0e2}
.prose figure{margin:18px 0}
.prose figure img{border-radius:14px;display:block;width:100%;height:auto}
.prose figcaption{margin-top:8px;font-size:16px;color:#c9b0b3}
.prose blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-left:3px solid var(--pink);
  border-radius:0 14px 14px 0;
  background:rgba(255,20,147,.10);
  color:#f3e2e5;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose strong{color:#fff}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(255,255,255,.10);
}
.prose hr{border:0;border-top:1px solid var(--hair);margin:26px 0}

/* 侧栏 */
.rail-aside{
  position:sticky;
  top:126px;
  padding:22px 20px 18px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(165deg,rgba(255,0,0,.17),rgba(255,20,147,.11) 46%,rgba(255,255,255,.035));
  box-shadow:var(--shadow);
}
.rail-aside h2{
  margin:0 0 5px;
  font-size:19px;
  letter-spacing:-.01em;
  color:#fff;
}
.rail-aside .subtitle{
  margin:0 0 14px;
  font-size:16px;
  color:#f0c8d7;
}
.aside-menu{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.aside-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:6px 8px;
  border-radius:10px;
  font-size:16px;
  color:#f1dfe2;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.aside-menu a::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(140deg,var(--red),var(--pink));
  flex:none;
}
.aside-menu a:hover{background:rgba(255,255,255,.12);color:#fff}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:10px;
  padding:6px 4px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#ffb4d0;
}
.to-top::after{content:"";margin-left:8px;width:7px;height:7px;border-left:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg)}

/* 页脚 */
.site-foot{
  border-top:1px solid var(--hair);
  background:linear-gradient(180deg,rgba(38,23,23,.55),#100808 88%);
  padding:54px 20px 26px;
}
.foot-huge{
  margin:0 auto 34px;
  max-width:var(--maxw);
  text-align:center;
  font-size:clamp(38px,11.5vw,142px);
  font-weight:700;
  line-height:.86;
  letter-spacing:-.055em;
  background:linear-gradient(94deg,var(--red),var(--pink) 58%,#ffc0d8);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  max-width:var(--maxw);
  margin:0 auto 28px;
}
.foot-cols dl{margin:0}
.foot-cols dt{
  margin:0 0 10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  color:#ff9dc0;
}
.foot-cols dd{
  margin:0 0 2px;
  font-size:16px;
  color:#e7d6d7;
  line-height:1.5;
}
.foot-cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
  color:#e7d6d7;
}
.foot-cols dd a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.foot-line{
  max-width:var(--maxw);
  margin:0 auto;
  padding-top:18px;
  border-top:1px solid var(--hair);
  text-align:center;
  font-size:16px;
  color:#c2a9ab;
}

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

@media (max-width:960px){
  .body-grid{grid-template-columns:minmax(0,1fr);gap:26px;padding-top:40px}
  .rail-aside{position:static;top:auto;order:2}
  .prose [id]{scroll-margin-top:118px}
}

@media (max-width:760px){
  body{font-size:16px;line-height:1.72}
  .call{display:none}
  .topbar{padding:8px 12px;gap:8px}
  .brand{font-size:16px}
  .menu-drawer>summary{padding:10px 12px;font-size:15px;gap:8px}
  .rail{top:60px}
  .rail menu{padding:6px 10px}
  .hero{min-height:66vh;padding:11vh 18px 10vh}
  .prose section{padding:22px 18px;border-radius:16px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:18px}
  .foot-cols dl:first-child{grid-column:1 / -1}
}

@media (max-width:420px){
  .hero-word{letter-spacing:-.07em}
  .rail menu a{padding:7px 12px;font-size:15px}
  .foot-cols{grid-template-columns:1fr}
  .foot-cols dl:first-child{grid-column:auto}
}

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

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