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

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

:root{
  --ink:#261717;
  --ink-deep:#170e0f;
  --red:#ff0000;
  --violet:#8b00ff;
  --paper:#f7eef1;
  --muted:#c2a9b0;
  --glass:rgba(255,255,255,.06);
  --glass-2:rgba(255,255,255,.13);
  --line:rgba(255,255,255,.18);
  --line-soft:rgba(255,255,255,.09);
  --rail:300px;
  --sans:'Syne','Manrope',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

body{
  margin:0;
  min-height:100vh;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:var(--paper);
  background:var(--ink-deep);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(68vw 68vw at 6% -14%,rgba(255,0,0,.42),rgba(255,0,0,0) 62%),
    radial-gradient(58vw 58vw at 98% 2%,rgba(139,0,255,.4),rgba(139,0,255,0) 60%),
    radial-gradient(60vw 60vw at 62% 100%,rgba(255,0,0,.22),rgba(255,0,0,0) 66%),
    linear-gradient(175deg,#211315,#150d0e 58%,#1b1012);
}

a{color:inherit}

/* 左侧磨砂玻璃竖栏 */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:1.4rem;
  padding:1.6rem 1.2rem;
  background:rgba(255,255,255,.055);
  border-right:1px solid var(--line);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  backdrop-filter:blur(20px) saturate(150%);
}

.rail-brand{
  align-self:center;
  padding:.5rem .3rem;
  font-size:17px;
  font-weight:600;
  letter-spacing:.2em;
  text-decoration:none;
  color:#fff;
  border-bottom:1px solid var(--red);
}

.rail-nav{margin:auto 0;overflow-y:auto}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  column-count:2;
  column-gap:.6rem;
}

.rail-list li{break-inside:avoid;margin:0 0 .15rem}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.45rem .42rem;
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  color:var(--paper);
  border:1px solid transparent;
  border-left:1px solid var(--line-soft);
  transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible{
  background:var(--glass-2);
  border-color:var(--line);
  border-left-color:var(--red);
  color:#fff;
  transform:translateX(3px);
}

.rail-list li.is-off{display:none}

.rail-search input{
  width:100%;
  min-height:44px;
  padding:.5rem .7rem;
  font:inherit;
  font-size:16px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
  border-radius:0;
  -webkit-appearance:none;
  appearance:none;
}

.rail-search input::placeholder{color:var(--muted)}
.rail-search input:focus{outline:2px solid var(--red);outline-offset:1px}

.shell{margin-left:var(--rail)}

.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:center;
  gap:2.4rem;
  padding:5rem 3.4rem 4rem;
  overflow:hidden;
}

.hero-ghost{
  position:absolute;
  right:-.05em;
  bottom:-.2em;
  z-index:0;
  font-size:clamp(10rem,25vw,23rem);
  font-weight:700;
  line-height:.78;
  letter-spacing:-.06em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.14);
  pointer-events:none;
}

.hero-copy{position:relative;z-index:1;max-width:32ch}

.eyebrow{
  margin:0 0 1rem;
  font-size:16px;
  letter-spacing:.3em;
  color:#ff8080;
}

.hero h1{
  margin:0;
  font-size:clamp(2.1rem,5vw,4.4rem);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.02em;
  color:#fff;
  overflow-wrap:break-word;
}

.hero-cue{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin:2rem 0 0;
  font-size:16px;
  color:var(--muted);
}

.hero-cue::before{
  content:"";
  width:1px;
  height:34px;
  background:linear-gradient(180deg,var(--red),rgba(255,0,0,0));
}

.hero-figure{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  margin:0;
  height:clamp(320px,60vh,580px);
  overflow:hidden;
  background:var(--glass);
  border:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.hero-figure img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s ease;
}

.hero-figure:hover img{transform:scale(1.045)}

.hero-orb{
  display:block;
  width:62%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle at 34% 28%,rgba(255,0,0,.92),rgba(139,0,255,.78) 58%,rgba(38,23,23,.25));
}

/* 正文与右侧栏 */
.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:2.2rem;
  align-items:start;
  max-width:1480px;
  padding:0 3.4rem 4rem;
}

.prose{min-width:0}

.prose > article{
  position:relative;
  margin:0 0 1.5rem;
  padding:2rem clamp(1.1rem,2.4vw,2rem);
  background:var(--glass);
  border:1px solid var(--line);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  scroll-margin-top:1.4rem;
  overflow-wrap:break-word;
}

.prose > article::after{
  content:"";
  position:absolute;
  top:-1px;
  left:-1px;
  width:52px;
  height:2px;
  background:linear-gradient(90deg,var(--red),var(--violet));
}

.prose h2{
  margin:.1rem 0 .8rem;
  font-size:clamp(1.45rem,2.5vw,2rem);
  line-height:1.25;
  letter-spacing:-.01em;
  color:#fff;
}

.prose h3{
  margin:1.6rem 0 .5rem;
  font-size:1.12rem;
  color:#fff;
}

.prose p{margin:0 0 1rem}

.prose p.subtitle,
.prose p.subhead,
.prose p.lead,
.prose p.desc{
  margin:0 0 1.1rem;
  padding-left:.85rem;
  border-left:2px solid var(--violet);
  color:var(--muted);
  font-size:16px;
}

.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.3rem}
.prose li{margin:0 0 .4rem}
.prose a{color:#ff7676;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose img{max-width:100%;height:auto;border:1px solid var(--line)}
.prose strong{color:#fff}
.prose blockquote{
  margin:1.2rem 0;
  padding:.9rem 1rem;
  border-left:2px solid var(--red);
  background:rgba(255,255,255,.05);
  color:var(--muted);
}

.side{
  position:sticky;
  top:1.4rem;
  align-self:start;
  padding:1.4rem 1.2rem;
  background:rgba(255,255,255,.09);
  border:1px solid var(--line);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
}

.side h2{
  margin:0 0 .55rem;
  font-size:1.15rem;
  letter-spacing:.02em;
  color:#fff;
}

.side .subtitle{
  margin:0 0 1rem;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

.side-list{list-style:none;margin:0;padding:0}
.side-list li + li{border-top:1px solid var(--line-soft)}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .1rem;
  font-size:16px;
  text-decoration:none;
  color:var(--paper);
  transition:padding-left .2s ease,color .2s ease;
}

.side-list a::before{
  content:"";
  flex:0 0 auto;
  width:9px;
  height:1px;
  margin-right:.6rem;
  background:var(--violet);
}

.side-list a:hover{padding-left:.45rem;color:#fff}

.side-top{
  display:flex;
  align-items:center;
  min-height:40px;
  margin-top:.6rem;
  padding-top:.6rem;
  border-top:1px solid var(--line);
  font-size:16px;
  text-decoration:none;
  color:var(--muted);
}

.side-top:hover{color:#fff}

/* 三栏页脚 */
.foot{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:1.6rem 2.2rem;
  padding:3.2rem 3.4rem 2rem;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.045);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

.foot-brand{
  margin:0;
  font-size:clamp(1.9rem,4.2vw,3.2rem);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.02em;
  color:#fff;
  overflow-wrap:break-word;
}

.foot-desc{margin:0;font-size:16px;line-height:1.65;color:var(--muted)}

.foot-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0 .45rem;
  margin:0;
  font-size:16px;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.2rem .05rem;
  text-decoration:none;
  color:var(--paper);
  border-bottom:1px solid transparent;
}

.foot-nav a:hover{color:#fff;border-bottom-color:var(--red)}
.foot-nav span{color:var(--violet)}

.foot small{
  grid-column:1/-1;
  padding-top:.9rem;
  border-top:1px solid var(--line);
  font-size:16px;
  letter-spacing:.08em;
  color:var(--muted);
}

.rv{opacity:0;transform:translateY(16px);transition:opacity .65s ease,transform .65s ease}
.rv-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .hero-figure img{transition:none}
}

@media (max-width:1100px){
  :root{--rail:264px}
  .hero{grid-template-columns:1fr;min-height:auto;padding:4rem 2rem 3rem}
  .hero-figure{height:clamp(260px,44vh,380px)}
  .content-grid{grid-template-columns:1fr;padding:0 2rem 3rem}
  .side{position:static}
  .foot{grid-template-columns:1fr 1fr;padding:2.6rem 2rem 1.6rem}
  .foot-brand{grid-column:1/-1}
}

@media (max-width:820px){
  .rail{
    position:static;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:.7rem .9rem;
    padding:.9rem 1.15rem 1rem;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .rail-brand{align-self:auto;padding:.3rem 0}
  .rail-nav{order:3;flex:1 0 100%;margin:0;overflow:visible}
  .rail-search{order:2;margin-left:auto;flex:0 0 auto}
  .rail-search input{width:9.5rem}
  .shell{margin-left:0}
  .hero{padding:2.2rem 1.15rem 2rem;gap:1.5rem}
  .hero-ghost{font-size:clamp(7rem,30vw,11rem)}
  .content-grid{padding:0 1.15rem 2.4rem}
  .foot{grid-template-columns:1fr;padding:2.2rem 1.15rem 1.4rem}
  .foot small{font-size:15px}
}

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