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

:root{
  --red:#ff0000;
  --red-soft:#ff5f5f;
  --violet:#8b00ff;
  --ink:#261717;
  --text:#f7efee;
  --muted:#c9b5b7;
  --line:rgba(255,255,255,0.18);
  --line-soft:rgba(255,255,255,0.1);
  --glass:rgba(255,255,255,0.08);
  --glass-2:rgba(255,255,255,0.15);
  --blur:saturate(150%) blur(16px);
  --shadow:0 20px 44px -24px rgba(0,0,0,0.9);
  --serif:"Newsreader",Georgia,"Times New Roman","Songti SC",serif;
  --sans:"Roboto",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  padding:0;
  background:transparent;
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  font-weight:400;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before,
body::after{
  content:"";
  position:fixed;
  z-index:-1;
  width:min(64vw,600px);
  aspect-ratio:1;
  border-radius:50%;
  filter:blur(74px);
  pointer-events:none;
}
body::before{
  top:-14vh;
  left:-12vw;
  background:radial-gradient(circle,rgba(255,0,0,0.78),rgba(255,0,0,0) 70%);
  animation:drift 22s ease-in-out infinite alternate;
}
body::after{
  bottom:-18vh;
  right:-14vw;
  background:radial-gradient(circle,rgba(139,0,255,0.72),rgba(139,0,255,0) 70%);
  animation:drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(4vw,-3vh,0) scale(1.14)}
}

a{color:var(--red-soft);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--red-soft);outline-offset:2px}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.16;
  letter-spacing:-0.01em;
  color:#ffffff;
  margin:0;
}

img{max-width:100%;height:auto;display:block}

.shell{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* 顶栏 */
.mast{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
}
.mast-glass{
  position:absolute;
  inset:0;
  background:rgba(38,23,23,0.56);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  box-shadow:0 14px 30px -26px rgba(0,0,0,0.9);
}
.mast-in{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  padding:0.5rem 1.1rem 0.65rem;
  display:grid;
  gap:0.4rem;
}
.brand-row{display:flex;align-items:center;justify-content:center}
.brand{
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  min-height:44px;
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:600;
  letter-spacing:0.02em;
  color:#ffffff;
}
.brand:hover{text-decoration:none;color:#ffffff}
.brand-mark{
  width:13px;
  height:13px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 18px rgba(255,0,0,0.85);
}
.bar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.6rem;
}

/* 遮罩菜单 */
.drawer{position:relative}
.burger{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  min-height:44px;
  padding:0.3rem 0.95rem;
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#ffffff;
  font-size:0.95rem;
  letter-spacing:0.1em;
  cursor:pointer;
  position:relative;
  z-index:6;
  user-select:none;
}
.burger::-webkit-details-marker{display:none}
.burger::before{
  content:"";
  width:16px;
  height:2px;
  background:currentColor;
  box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor;
}
.drawer[open] .burger{background:var(--glass-2);border-color:rgba(255,255,255,0.4)}
.drawer-list{
  list-style:none;
  margin:0;
  position:fixed;
  inset:0;
  z-index:5;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0.1rem;
  padding:5rem 1.4rem 2rem;
  background:rgba(16,9,9,0.84);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.drawer-list a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0.4rem 1rem;
  font-family:var(--serif);
  font-size:clamp(1.2rem,4.6vw,1.5rem);
  color:#ffffff;
  border-bottom:1px solid var(--line-soft);
}
.drawer-list a:hover{color:var(--red-soft);text-decoration:none}

/* 搜索 */
.find{
  display:flex;
  align-items:center;
  gap:0.4rem;
  flex:1 1 auto;
  min-width:0;
  justify-content:flex-end;
}
.find input{
  flex:1 1 auto;
  min-width:0;
  max-width:230px;
  min-height:44px;
  padding:0.3rem 0.75rem;
  border:1px solid var(--line);
  border-radius:0;
  background:rgba(255,255,255,0.07);
  color:var(--text);
  font-family:var(--sans);
  font-size:0.95rem;
}
.find input::placeholder{color:var(--muted)}
.find input:focus{
  outline:2px solid rgba(255,0,0,0.55);
  outline-offset:1px;
  background:rgba(255,255,255,0.13);
}
.find button{
  flex:0 0 auto;
  min-height:44px;
  padding:0.3rem 0.95rem;
  border:1px solid rgba(255,255,255,0.24);
  border-radius:0;
  background:linear-gradient(135deg,rgba(255,0,0,0.6),rgba(139,0,255,0.6));
  color:#ffffff;
  font-family:var(--sans);
  font-size:0.95rem;
  letter-spacing:0.06em;
  cursor:pointer;
}
.find button:hover{background:linear-gradient(135deg,rgba(255,0,0,0.85),rgba(139,0,255,0.85))}

/* 首屏 */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1.1rem;
  text-align:center;
  padding:3rem 1.2rem 2.2rem;
}
.hero-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:0.9rem;
  animation:rise 0.75s ease both;
}
.hero-mark-wrap{display:inline-flex;align-items:center}
.hero-mark{
  width:clamp(38px,7vw,54px);
  height:auto;
  aspect-ratio:1;
  filter:drop-shadow(0 12px 24px rgba(255,0,0,0.45));
}
.hero h1{
  max-width:20ch;
  font-size:clamp(1.9rem,7.6vw,3.7rem);
  text-align:center;
}
.cue{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 0.5rem;
  font-size:0.86rem;
  letter-spacing:0.2em;
  color:var(--muted);
  animation:rise 0.9s ease both;
}
.cue::after{
  content:"";
  margin-left:0.5rem;
  width:8px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
}
@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

/* 正文骨架 */
.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:1rem 1.1rem 4rem;
  display:grid;
  grid-template-columns:1fr;
  gap:1.6rem;
  align-items:start;
}
.rail{
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  box-shadow:var(--shadow);
  padding:1.1rem 1.15rem;
}
.rail-h{font-size:1.1rem}
.rail .subtitle{
  margin:0.35rem 0 0.85rem;
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.55;
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:0.2rem;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0.15rem 0.7rem;
  border-left:2px solid transparent;
  color:var(--text);
  font-size:0.94rem;
}
.rail-list a:hover{
  border-left-color:var(--red);
  background:rgba(255,0,0,0.12);
  color:#ffffff;
  text-decoration:none;
}

.stage{min-width:0}
.prose{font-size:1.03rem}
.prose section{
  padding:2.3rem 0 1.4rem;
  border-top:1px solid var(--line-soft);
  scroll-margin-top:9rem;
}
.prose section:first-child{border-top:0;padding-top:0.3rem}
.prose h2{
  font-size:clamp(1.45rem,4.6vw,2.05rem);
  margin:0 0 0.55rem;
}
.prose h2 + p.subtitle,
.prose h2 + p.subhead,
.prose h2 + p.lead,
.prose h2 + p.desc{
  color:var(--muted);
  font-size:1rem;
  margin:0 0 1rem;
}
.prose h3{font-size:1.18rem;margin:1.7rem 0 0.5rem}
.prose p{margin:0 0 1.05rem;max-width:68ch;overflow-wrap:break-word}
.prose ul,.prose ol{margin:0 0 1.1rem;padding-left:1.25rem}
.prose li{margin:0.3rem 0;max-width:66ch}
.prose a{color:var(--red-soft);text-decoration:underline;text-underline-offset:3px}
.prose strong{color:#ffffff}
.prose em{color:#ffffff;font-style:italic}
.prose blockquote{
  margin:1.2rem 0;
  padding:0.85rem 1.1rem;
  border-left:3px solid var(--violet);
  background:rgba(139,0,255,0.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose img{
  width:100%;
  margin:1.2rem 0;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.prose hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.1rem 0;
  font-size:0.95rem;
}
.prose th,.prose td{
  border:1px solid var(--line-soft);
  padding:0.5rem 0.6rem;
  text-align:left;
  vertical-align:top;
}
.prose th{background:rgba(255,255,255,0.07);color:#ffffff}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  border-top:1px solid var(--line);
  background:rgba(38,23,23,0.55);
  backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:0.2rem 0.9rem;
  padding:0.5rem clamp(1.1rem,4vw,3rem);
}
.foot-brand a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-family:var(--serif);
  font-size:1.05rem;
  color:#ffffff;
}
.foot-nav{
  display:flex;
  flex-wrap:wrap;
  gap:0 0.35rem;
  order:3;
  width:100%;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 0.3rem;
  font-size:0.84rem;
  color:var(--muted);
}
.foot-nav a:hover{color:#ffffff;text-decoration:none}
.foot-meta{
  display:flex;
  align-items:center;
  gap:0.7rem;
  font-size:0.84rem;
  color:var(--muted);
}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 0.3rem;
  color:var(--muted);
}
.totop:hover{color:#ffffff}

body.lock{overflow:hidden}

/* 滚动显现 */
.js .prose section{
  opacity:0;
  transform:translateY(18px);
  transition:opacity 0.55s ease,transform 0.55s ease;
}
.js .prose section.in{opacity:1;transform:none}

@media (min-width:760px){
  .foot-nav{order:0;width:auto}
  .mast-in{padding:0.5rem 1.9rem 0.7rem}
  .wrap{padding:1rem 1.9rem 4.5rem}
}

@media (min-width:900px){
  .wrap{
    grid-template-columns:17rem minmax(0,1fr);
    gap:2.4rem;
    padding-top:2.4rem;
  }
  .rail{position:sticky;top:8.6rem}
  .rail-list{flex-direction:column;gap:0}
  .rail-list a{padding:0.15rem 0.85rem}
  .prose section{scroll-margin-top:8.5rem}
  .prose{padding-right:0.5rem}
}

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

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