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

:root{
  --red:#ff0000;
  --pur:#8b00ff;
  --ink:#261717;
  --r:28px;
  --line:rgba(255,255,255,.7);
  --edge:rgba(38,23,23,.14);
}

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

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

body{
  margin:0;
  font-family:'Figtree','Noto Sans',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--ink);
  background-color:#fbf3f2;
  background-image:
    radial-gradient(54vw 54vw at 8% 4%, rgba(255,0,0,.46), rgba(255,0,0,0) 70%),
    radial-gradient(48vw 48vw at 94% 12%, rgba(139,0,255,.40), rgba(139,0,255,0) 70%),
    radial-gradient(62vw 62vw at 80% 86%, rgba(255,0,0,.26), rgba(255,0,0,0) 72%),
    radial-gradient(44vw 44vw at 2% 70%, rgba(139,0,255,.24), rgba(139,0,255,0) 72%);
  background-repeat:no-repeat;
  background-attachment:fixed;
  overflow-x:hidden;
}

a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--pur);outline-offset:2px}

/* ---------- 顶部两行 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(253,246,245,.62);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.72);
}

.brandrow{
  max-width:1180px;
  margin:0 auto;
  padding:8px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  font-weight:600;
  font-size:20px;
  letter-spacing:.02em;
  transition:opacity .2s ease;
}
.brand:hover{opacity:.72}
.mark{
  width:22px;
  height:22px;
  border-radius:9px;
  flex:none;
  background:linear-gradient(135deg,var(--red),var(--pur));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}

.find{
  display:flex;
  align-items:center;
  gap:6px;
}
.find input{
  width:clamp(104px,34vw,210px);
  height:40px;
  padding:0 14px;
  font-size:16px;
  font-family:inherit;
  color:var(--ink);
  border-radius:999px;
  border:1px solid rgba(255,255,255,.85);
  background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.find input::placeholder{color:rgba(38,23,23,.5)}
.find button{
  height:40px;
  min-width:44px;
  padding:0 12px;
  font-size:16px;
  font-family:inherit;
  color:#fff;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  background:linear-gradient(135deg,var(--red),var(--pur));
}

.menuline{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 8px;
}
.menu ul{
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}
.menu ul::-webkit-scrollbar{display:none}
.menu li{animation:rise .5s cubic-bezier(.2,.72,.3,1) both;animation-delay:calc(var(--i) * 55ms)}
.menu a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:9px 13px;
  font-size:16px;
  line-height:1.5;
  white-space:nowrap;
  text-decoration:none;
  border-radius:999px;
  border:1px solid transparent;
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
}
.menu a:hover{
  background:rgba(255,255,255,.62);
  border-color:rgba(255,255,255,.9);
  transform:translateY(-1px);
}
.dot{
  width:6px;
  height:6px;
  border-radius:50%;
  flex:none;
  background:linear-gradient(135deg,var(--red),var(--pur));
}

/* ---------- 主体栅格 ---------- */
.stage{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 72px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
}

/* ---------- 满屏标题 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  padding:9vh 0 64px;
}
.ghost{
  position:absolute;
  top:14vh;
  left:-2vw;
  font-size:clamp(4rem,20vw,15rem);
  font-weight:700;
  line-height:.88;
  letter-spacing:-.05em;
  white-space:nowrap;
  pointer-events:none;
  color:rgba(139,0,255,.09);
  -webkit-text-stroke:1.5px rgba(139,0,255,.42);
}
.hero-in{position:relative;width:100%}
.hero h1{
  margin:0;
  max-width:13em;
  font-size:clamp(2.3rem,8.2vw,5.4rem);
  line-height:1.08;
  letter-spacing:-.02em;
  font-weight:600;
  animation:rise .7s cubic-bezier(.2,.72,.3,1) both;
}

/* ---------- 正文 ---------- */
.prose{
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:clamp(20px,4vw,46px);
}
.prose > section{scroll-margin-top:150px}
.prose > section + section{
  margin-top:34px;
  padding-top:30px;
  border-top:1px dashed var(--edge);
}
.prose h2{
  position:relative;
  margin:0 0 12px;
  font-size:clamp(1.32rem,3vw,1.85rem);
  line-height:1.36;
  letter-spacing:-.01em;
}
.prose h2::before{
  content:'';
  display:block;
  width:34px;
  height:4px;
  margin-bottom:12px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pur));
}
.prose h3{
  margin:26px 0 8px;
  font-size:1.16rem;
  line-height:1.45;
}
.prose p{margin:0 0 16px;line-height:1.85}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.3em}
.prose li{margin:0 0 8px;line-height:1.8}
.prose hr{
  border:0;
  height:1px;
  margin:0 0 18px;
  background:linear-gradient(90deg,rgba(255,0,0,.5),rgba(139,0,255,.24),rgba(139,0,255,0));
}
.prose a{color:#b300b3;text-decoration:none;border-bottom:1px solid rgba(139,0,255,.34);transition:color .2s ease,border-color .2s ease}
.prose a:hover{color:var(--red);border-bottom-color:var(--red)}
.prose strong{font-weight:600}
.prose blockquote{
  margin:0 0 16px;
  padding:12px 18px;
  border-left:3px solid rgba(255,0,0,.55);
  border-radius:0 14px 14px 0;
  background:rgba(255,255,255,.5);
}

/* ---------- 右侧目录 ---------- */
.rail{
  background:rgba(255,255,255,.5);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:20px 16px;
}
.rail h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
}
.rail hr{
  border:0;
  height:1px;
  margin:0 0 12px;
  background:rgba(38,23,23,.16);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.rail-list li{animation:rise .5s cubic-bezier(.2,.72,.3,1) both;animation-delay:calc(var(--i) * 55ms)}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 11px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-radius:14px;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.rail-list a:hover{
  background:rgba(255,0,0,.1);
  transform:translateX(2px);
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:8px;
  padding:42px 20px 26px;
  color:#f8efeb;
  background:rgba(38,23,23,.9);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:var(--r) var(--r) 0 0;
}
.foot > *{max-width:1180px;margin-left:auto;margin-right:auto}
.bigmark{
  margin:0 auto 26px;
  font-size:clamp(2.6rem,12.5vw,6.6rem);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.045em;
  color:rgba(255,255,255,.16);
}
.cols{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.foot dl{margin:0}
.foot dt{
  margin-bottom:6px;
  font-size:16px;
  letter-spacing:.14em;
  color:rgba(255,255,255,.6);
}
.foot dd{margin:0;font-size:16px;line-height:1.7}
.foot a{
  display:inline-block;
  padding:9px 2px;
  min-height:40px;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease,color .2s ease;
}
.foot a:hover{border-bottom-color:rgba(255,255,255,.65);color:#ffd9d9}
.sep{margin:0 5px;color:rgba(255,255,255,.38)}
.colophon{
  margin:26px auto 0;
  padding-top:16px;
  text-align:center;
  font-size:16px;
  color:rgba(255,255,255,.64);
  border-top:1px solid rgba(255,255,255,.14);
}

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

@media (min-width:760px){
  .cols{grid-template-columns:repeat(3,1fr);gap:26px}
}
@media (min-width:900px){
  .menu ul{flex-wrap:wrap;overflow:visible}
}
@media (min-width:980px){
  .stage{grid-template-columns:minmax(0,1fr) 248px;align-items:start;gap:32px}
  .rail{position:sticky;top:132px}
}
@media (max-width:600px){
  body{font-size:16px}
  .ghost{top:20vh;left:-8px}
  .hero{padding:7vh 0 56px}
  .foot{padding:34px 18px 22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
}

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