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

:root{
  --red:#ff0000;
  --purple:#8b00ff;
  --ink:#261717;
  --txt:#f8eff3;
  --dim:rgba(248,239,243,.74);
  --line:rgba(255,255,255,.22);
  --line-soft:rgba(255,255,255,.14);
  --glass:rgba(255,255,255,.1);
  --glass-2:rgba(255,255,255,.17);
  --r:4px;
  --shadow:0 22px 48px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.28);
}

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

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

body{
  margin:0;
  padding:12px 0 0;
  font:400 17px/1.68 Inter,"Noto Sans SC",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--txt);
  background:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:-16% -12%;
  z-index:-2;
  background:
    radial-gradient(46% 36% at 82% 4%, rgba(255,0,0,.58), rgba(255,0,0,0) 70%),
    radial-gradient(52% 44% at 4% 26%, rgba(139,0,255,.54), rgba(139,0,255,0) 72%),
    radial-gradient(58% 44% at 62% 98%, rgba(139,0,255,.34), rgba(255,0,0,0) 74%),
    linear-gradient(155deg,#2c1519 0%,#1a0f19 56%,#261717 100%);
  filter:blur(8px);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(118deg,rgba(255,255,255,.16) 0 16%,rgba(255,255,255,0) 27%);
  mix-blend-mode:screen;
}

a{color:inherit}
img{max-width:100%}

:focus-visible{
  outline:2px solid #ffd7d7;
  outline-offset:3px;
}

/* ---- 顶部胶囊导航 ---- */
.topbar{
  position:sticky;
  top:10px;
  z-index:60;
  width:calc(100% - 24px);
  max-width:1180px;
  margin:0 auto;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:var(--r);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  box-shadow:var(--shadow);
}

.brand{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  text-decoration:none;
  background:linear-gradient(120deg,var(--red),var(--purple));
  border:1px solid rgba(255,255,255,.4);
  box-shadow:0 8px 22px rgba(255,0,0,.34);
}
.brand .mark{
  font-weight:800;
  font-size:15px;
  line-height:1;
  letter-spacing:-.04em;
  color:#fff;
}
.brand .mark-img{
  width:26px;
  height:26px;
  object-fit:contain;
  display:block;
}

.pills{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  margin:0;
  padding:2px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}
.pills::-webkit-scrollbar{display:none}

.pills a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
  color:var(--txt);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:background .2s ease,border-color .2s ease;
}
.pills a:hover{
  background:rgba(255,255,255,.2);
  border-color:var(--line);
}

/* ---- 主体 ---- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 12px;
}

.stage{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:26px;
  min-height:70vh;
  padding:46px 6px 40px;
}

.ghost{
  position:absolute;
  left:6px;
  top:20px;
  margin:0;
  font-size:clamp(2.9rem,13vw,8.6rem);
  font-weight:800;
  line-height:1;
  letter-spacing:-.055em;
  white-space:nowrap;
  color:rgba(255,255,255,.085);
  pointer-events:none;
  transform:translateY(var(--par,0px));
}

.stage-copy{
  position:relative;
  z-index:2;
  text-align:right;
}

.stage-copy h1{
  margin:0 0 14px;
  font-size:clamp(2rem,6.4vw,4.1rem);
  line-height:1.05;
  letter-spacing:-.04em;
  font-weight:800;
  background:linear-gradient(96deg,#ffffff 18%,#ffd9d9 56%,#e5caff 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  margin:0 0 0 auto;
  max-width:52ch;
  color:var(--dim);
  font-size:17px;
}

.stage-media{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.frame{
  display:block;
  flex:1 1 0;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,255,255,.1);
  box-shadow:var(--shadow);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.frame img{
  display:block;
  width:100%;
  height:auto;
}
.frame.a{transform:translateY(calc(-12px + var(--par,0px))) rotate(-1.4deg)}
.frame.b{transform:translateY(calc(22px - var(--par,0px))) rotate(1.8deg)}

@media (min-width:900px){
  .stage{
    flex-direction:row-reverse;
    align-items:center;
    gap:46px;
    padding:82px 6px 76px;
  }
  .stage-copy{flex:1 1 54%}
  .stage-media{flex:1 1 46%}
  .ghost{top:34px}
}

/* ---- 正文列 + 右侧栏 ---- */
.cols{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  padding:10px 6px 0;
}

@media (min-width:900px){
  .cols{grid-template-columns:minmax(0,1fr) 262px;gap:30px}
}

main section[id]{scroll-margin-top:92px}

.prose{
  min-width:0;
  padding:24px 20px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--glass);
  -webkit-backdrop-filter:blur(15px) saturate(140%);
  backdrop-filter:blur(15px) saturate(140%);
  box-shadow:var(--shadow);
}

@media (min-width:700px){
  .prose{padding:36px 34px}
}

.prose section + section{
  margin-top:36px;
  padding-top:32px;
  border-top:1px solid var(--line-soft);
}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(1.5rem,3.4vw,2.05rem);
  line-height:1.22;
  letter-spacing:-.025em;
  font-weight:800;
}

.prose h3{
  margin:26px 0 10px;
  font-size:clamp(1.15rem,2.4vw,1.35rem);
  line-height:1.35;
  font-weight:700;
}

.prose h2 span,
.prose h3 span,
.rail h2 span,
.cta h2 span{
  display:inline-block;
  position:relative;
}

.prose h2 span::after,
.rail h2 span::after,
.cta h2 span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  height:3px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--purple));
}

.prose p{margin:0 0 15px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.25em}
.prose li{margin:0 0 8px}
.prose strong{color:#fff}
.prose a{color:#ffd3d3;text-underline-offset:3px}
.prose img{height:auto;border-radius:var(--r);border:1px solid var(--line-soft)}
.prose blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:3px solid var(--red);
  background:rgba(255,255,255,.07);
  border-radius:var(--r);
  color:var(--dim);
}
.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{padding:9px 10px;border-bottom:1px solid var(--line-soft);text-align:left}

.rail{
  height:max-content;
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,255,255,.09);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:var(--shadow);
}

@media (min-width:900px){
  .rail{position:sticky;top:88px}
}

.rail h2{
  margin:0 0 14px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.09em;
}

.rail-list{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:var(--r);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
  transition:background .2s ease,border-color .2s ease;
}
.rail-list a:hover{
  background:rgba(255,255,255,.15);
  border-color:var(--line-soft);
}

/* ---- 页脚 ---- */
footer{
  display:flex;
  flex-direction:column;
  gap:20px;
  width:calc(100% - 24px);
  max-width:1180px;
  margin:44px auto 26px;
  padding:26px 20px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:var(--shadow);
}

@media (min-width:840px){
  footer{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:30px 28px;
  }
}

.cta{flex:1 1 auto;min-width:0}

.cta h2{
  margin:0 0 16px;
  font-size:clamp(1.4rem,3vw,1.95rem);
  line-height:1.2;
  letter-spacing:-.03em;
  font-weight:800;
}

.btn{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  border-radius:var(--r);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(100deg,var(--red),var(--purple));
  border:1px solid rgba(255,255,255,.34);
  box-shadow:0 12px 26px rgba(255,0,0,.28);
}
.btn:hover{filter:brightness(1.08)}

.f-nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}

.f-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 12px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}
.f-nav a:hover{background:rgba(255,255,255,.18)}

.copy{
  color:var(--dim);
  font-size:16px;
  white-space:nowrap;
}

/* ---- 滚动揭示 ---- */
.js [data-reveal],
.js main section[id]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].in,
.js main section[id].in{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal],
  .js main section[id]{opacity:1;transform:none;transition:none}
  .frame.a,.frame.b{transform:none}
  .ghost{transform:none}
}

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