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

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --bg:#150d0d;
  --bg2:#241415;
  --text:#f7ecec;
  --dim:#cdb8b8;
  --line:rgba(255,255,255,.16);
  --line-soft:rgba(255,255,255,.08);
  --glass:rgba(255,255,255,.09);
  --glass-soft:rgba(255,255,255,.05);
  --radius:10px;
  --rail:268px;
}

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

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

body{
  margin:0;
  background:
    radial-gradient(120% 90% at 12% -10%, #3a1a1c 0%, rgba(58,26,28,0) 60%),
    radial-gradient(100% 80% at 90% 20%, #2c1234 0%, rgba(44,18,52,0) 62%),
    var(--bg);
  color:var(--text);
  font-family:Inter,-apple-system,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.68;
  overflow-x:hidden;
  min-height:100vh;
}

h1,h2,h3,.cta-mark,.brand-name,.strip-mark,.ghost{
  font-family:Calistoga,Georgia,"PingFang SC",serif;
  font-weight:400;
  letter-spacing:.01em;
}

a{color:var(--text)}

img{max-width:100%}

.glow{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.glow i{
  position:absolute;
  display:block;
  border-radius:50%;
  filter:blur(80px);
  opacity:.4;
}
.glow i:nth-child(1){
  width:44vw;height:44vw;
  background:var(--red);
  top:-14vw;left:-10vw;
  opacity:.32;
}
.glow i:nth-child(2){
  width:38vw;height:38vw;
  background:var(--violet);
  top:34vh;right:-12vw;
  opacity:.42;
}
.glow i:nth-child(3){
  width:34vw;height:34vw;
  background:#ff3d5a;
  bottom:-12vw;left:26vw;
  opacity:.24;
}

/* ---------- 左侧固定竖排导航 ---------- */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--rail);
  z-index:20;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px 18px 20px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.035));
  border-right:1px solid var(--line);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:12px 0 40px rgba(0,0,0,.28);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:4px 6px;
  text-decoration:none;
  color:var(--text);
}
.brand-mark{
  width:38px;height:38px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid var(--line);
}
.brand-dot{
  width:14px;height:14px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 16px rgba(255,0,0,.7);
  flex:0 0 auto;
}
.brand-name{
  font-size:22px;
  line-height:1.2;
  background:linear-gradient(92deg,#fff,#ffb9b9 60%,#d7b6ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.rail nav{flex:1 1 auto;min-height:0}

.rail nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rail nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  border-left:2px solid transparent;
  border-radius:8px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.rail nav a:hover,
.rail nav a:focus-visible{
  background:rgba(255,255,255,.12);
  border-left-color:var(--red);
  color:#fff;
  transform:translateX(2px);
}

.rail-top{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  background:var(--glass-soft);
  transition:border-color .18s ease,color .18s ease;
}
.rail-top:hover{border-color:var(--violet);color:#fff}

/* ---------- 主区 ---------- */
.page{
  position:relative;
  z-index:1;
  margin-left:var(--rail);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 28px;
  border-bottom:1px solid var(--line-soft);
  background:rgba(255,255,255,.045);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.strip-mark{
  font-size:17px;
  color:#ffd9d9;
  letter-spacing:.04em;
}
.strip-top{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
}
.strip-top:hover{color:#fff}

main{
  flex:1 1 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:24px;
  align-items:start;
  padding:0 28px 24px;
  width:100%;
  max-width:1240px;
}

/* ---------- Hero ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:56px 10px 40px;
  overflow:hidden;
  border-radius:0 0 var(--radius) var(--radius);
}

.ghost{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-46%);
  font-size:clamp(4rem,17vw,13rem);
  line-height:.86;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.11);
  z-index:0;
  pointer-events:none;
}

.hero-in{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  flex-wrap:wrap;
  text-align:center;
  padding:26px 30px;
  border-radius:18px;
  background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.04));
  border:1px solid var(--line);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.28);
  max-width:760px;
}

.hero-copy{display:flex;flex-direction:column;align-items:center;gap:10px}

.hero h1{
  margin:0;
  font-size:clamp(2.1rem,5.6vw,3.7rem);
  line-height:1.16;
  text-shadow:0 0 26px rgba(255,0,0,.32);
}

.hero-brand{
  margin:0;
  font-size:clamp(1rem,2.2vw,1.2rem);
  letter-spacing:.22em;
  color:#ffbdbd;
  text-transform:uppercase;
}

.hero .subtitle{
  margin:0;
  max-width:44ch;
  color:var(--dim);
  font-size:16px;
  line-height:1.7;
}

.hero-art{
  width:clamp(96px,16vw,148px);
  height:auto;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:0 14px 34px rgba(0,0,0,.42);
}

/* ---------- 正文 ---------- */
.prose{
  grid-column:1;
  min-width:0;
  padding-top:8px;
}

.prose > article{
  margin:0 0 22px;
  padding:clamp(20px,3vw,34px);
  background:linear-gradient(170deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  border:1px solid var(--line);
  border-bottom:2px solid rgba(255,0,0,.55);
  border-radius:var(--radius);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
  scroll-margin-top:96px;
  animation:rise .5s ease both;
  transition:transform .2s ease,border-bottom-color .2s ease,box-shadow .2s ease;
}
.prose > article:hover{
  transform:translateY(-2px);
  border-bottom-color:var(--violet);
  box-shadow:0 24px 52px rgba(0,0,0,.4);
}

.prose > article:nth-of-type(1){animation-delay:.02s}
.prose > article:nth-of-type(2){animation-delay:.06s}
.prose > article:nth-of-type(3){animation-delay:.1s}
.prose > article:nth-of-type(4){animation-delay:.14s}
.prose > article:nth-of-type(5){animation-delay:.18s}
.prose > article:nth-of-type(6){animation-delay:.22s}
.prose > article:nth-of-type(7){animation-delay:.26s}
.prose > article:nth-of-type(8){animation-delay:.3s}

@keyframes rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.28;
  color:#fff;
}
.prose h3{
  margin:26px 0 10px;
  font-size:clamp(1.15rem,2.2vw,1.4rem);
  line-height:1.35;
  color:#ffd7d7;
}
.prose p{margin:0 0 14px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.3em}
.prose li{margin:6px 0}
.prose strong{color:#fff}
.prose a{color:#ffb0b0;text-decoration-color:rgba(255,0,0,.6)}
.prose a:hover{color:#fff}
.prose blockquote{
  margin:18px 0;
  padding:12px 18px;
  border-left:3px solid var(--violet);
  background:rgba(139,0,255,.12);
  border-radius:0 var(--radius) var(--radius) 0;
  color:#efdff7;
}
.prose img{
  display:block;
  height:auto;
  margin:18px 0;
  border-radius:var(--radius);
  border:1px solid var(--line);
}
.prose figure{margin:18px 0}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0;
  font-size:16px;
}
.prose th,.prose td{
  padding:9px 11px;
  border:1px solid var(--line-soft);
  text-align:left;
}
.prose th{background:rgba(255,255,255,.08);color:#fff}
.prose code{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:15px;
  background:rgba(255,255,255,.1);
  padding:2px 5px;
  border-radius:5px;
}

/* ---------- 右侧栏 ---------- */
.side{
  grid-column:2;
  position:sticky;
  top:18px;
  padding:18px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  border-top:2px solid var(--violet);
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  box-shadow:0 16px 40px rgba(0,0,0,.3);
}
.side h2{
  margin:0 0 12px;
  font-size:19px;
  letter-spacing:.08em;
  color:#e8d3ff;
}
.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:5px 9px;
  border-radius:8px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  transition:background .18s ease,color .18s ease;
}
.side-list a:hover{background:rgba(255,255,255,.11);color:#fff}

/* ---------- 页脚 ---------- */
footer{
  position:relative;
  z-index:1;
  margin-top:36px;
  padding:38px 28px 20px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  padding:24px 26px;
  margin-bottom:32px;
  border:1px solid var(--line);
  border-radius:14px;
  background:
    radial-gradient(90% 140% at 8% 0%, rgba(255,0,0,.24), rgba(255,0,0,0) 62%),
    radial-gradient(80% 130% at 96% 100%, rgba(139,0,255,.3), rgba(139,0,255,0) 60%),
    rgba(255,255,255,.05);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26);
}
.cta-mark{
  margin:0;
  font-size:clamp(1.6rem,4vw,2.4rem);
  line-height:1.2;
  color:#fff;
  text-shadow:0 0 30px rgba(255,0,0,.4);
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:linear-gradient(100deg,var(--red),var(--violet));
  color:#fff;
  font-size:16px;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(139,0,255,.35);
  transition:transform .18s ease,box-shadow .18s ease;
}
.cta-btn:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(255,0,0,.42)}

.cols{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:24px;
  padding-bottom:26px;
}

.col-brand-name{
  margin:0 0 8px;
  font-size:18px;
  color:#fff;
}
.col-brand-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
}
.col-brand-link:hover{color:#fff}

footer dl{margin:0}
footer dt{
  font-size:16px;
  letter-spacing:.14em;
  color:#ffc9c9;
  padding-bottom:8px;
  border-bottom:1px solid var(--line-soft);
  margin-bottom:8px;
}
footer dd{margin:0}
footer dd a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  transition:color .18s ease,padding-left .18s ease;
}
footer dd a:hover{color:#fff;padding-left:4px}

.base{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:14px;
  border-top:1px solid var(--line-soft);
  font-size:16px;
  color:var(--dim);
}
.base-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--dim);
  text-decoration:none;
}
.base-top:hover{color:#fff}

/* ---------- 响应式 ---------- */
@media (max-width:1024px){
  main{grid-template-columns:minmax(0,1fr) 250px;padding:0 20px 20px}
  .strip{padding:6px 20px}
  footer{padding:32px 20px 18px}
  .cols{grid-template-columns:1fr 1fr;gap:20px}
}

@media (max-width:900px){
  .rail{
    position:sticky;
    top:0;left:auto;right:auto;bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
  }
  .rail nav{flex:1 1 auto;min-width:0}
  .rail nav ul{
    flex-direction:row;
    gap:4px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .rail nav ul::-webkit-scrollbar{display:none}
  .rail nav a{
    white-space:nowrap;
    border-left:0;
    border-bottom:2px solid transparent;
    border-radius:8px 8px 0 0;
  }
  .rail nav a:hover,
  .rail nav a:focus-visible{border-left:0;border-bottom-color:var(--red);transform:none}
  .brand{min-height:44px;flex:0 0 auto;padding:0 4px}
  .brand-name{font-size:19px}
  .rail-top{flex:0 0 auto;padding:0 12px}
  .page{margin-left:0}
  main{grid-template-columns:minmax(0,1fr);padding:0 16px 18px;gap:18px}
  .hero{min-height:62vh;padding:34px 0 24px}
  .hero-in{padding:22px 18px;gap:16px}
  .side{position:static;grid-column:1;order:3}
  .prose > article{scroll-margin-top:92px}
  .cols{grid-template-columns:1fr}
  footer dd a{min-height:44px}
  .cta{padding:20px}
}

@media (max-width:560px){
  body{font-size:17px}
  .hero-in{width:100%;flex-direction:column}
  .hero h1{font-size:clamp(1.85rem,8vw,2.6rem)}
  .ghost{font-size:clamp(3.4rem,22vw,7rem)}
  .hero-art{width:104px}
  .strip{padding:4px 16px}
  .base{flex-direction:column;align-items:flex-start;gap:2px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-delay:0ms !important;
    transition-duration:.001ms !important;
  }
}

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