@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

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

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

body{
  margin:0;
  min-height:100vh;
  background-color:#1d1212;
  color:#f2e8e8;
  font-family:'Fira Code',ui-monospace,SFMono-Regular,Menlo,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:16px;
  line-height:1.7;
  letter-spacing:.01em;
  padding-bottom:130px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(52vw 46vw at 12% 4%,rgba(255,0,0,.30),transparent 62%),
    radial-gradient(48vw 44vw at 88% 12%,rgba(139,0,255,.34),transparent 64%),
    radial-gradient(60vw 50vw at 50% 92%,rgba(139,0,255,.20),transparent 70%),
    linear-gradient(180deg,#261717 0%,#1a1010 58%,#140c0c 100%);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(120% 90% at 50% 0%,#000 10%,transparent 78%);
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%,#000 10%,transparent 78%);
}

a{color:#ff8a8a;text-decoration:none}
a:hover{color:#fff}
img{max-width:100%}

.shell{position:relative}

.glass{
  background:linear-gradient(155deg,rgba(255,255,255,.11),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.17);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
}

.glass-soft{
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter:blur(12px) saturate(140%);
  backdrop-filter:blur(12px) saturate(140%);
}

.mark{
  display:inline-block;
  width:9px;
  height:9px;
  margin-right:9px;
  border-radius:50%;
  background:#ff0000;
  box-shadow:0 0 10px 2px rgba(255,0,0,.85),0 0 22px 6px rgba(139,0,255,.55);
  vertical-align:1px;
  flex:0 0 auto;
}

/* ===== 首屏 ===== */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:70vh;
  min-height:70svh;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.16);
}

.hero-media{
  position:absolute;
  inset:-12% 0 0;
  z-index:-3;
  background:
    radial-gradient(60% 70% at 78% 30%,rgba(139,0,255,.62),transparent 66%),
    radial-gradient(70% 80% at 16% 74%,rgba(255,0,0,.52),transparent 68%),
    linear-gradient(140deg,#2a1414,#120b0b 70%);
  will-change:transform;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.62;
  mix-blend-mode:luminosity;
}

.hero-grid{
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.10) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(90% 80% at 30% 50%,#000 6%,transparent 86%);
  -webkit-mask-image:radial-gradient(90% 80% at 30% 50%,#000 6%,transparent 86%);
}

.hero-veil{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(96deg,rgba(30,17,17,.94) 0%,rgba(30,17,17,.74) 52%,rgba(139,0,255,.24) 100%);
}

.hero-inner{
  position:relative;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(64px,12vh,140px) 22px clamp(40px,7vh,80px);
}

.hero-tag{
  display:inline-flex;
  align-items:center;
  margin:0 0 18px;
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,0,0,.16);
  color:#ffd9d9;
  font-family:'Share Tech Mono',ui-monospace,monospace;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.16em;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.hero h1{
  margin:0;
  max-width:16em;
  font-size:clamp(30px,5.6vw,60px);
  line-height:1.16;
  font-weight:600;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 0 26px rgba(255,0,0,.36),0 2px 26px rgba(0,0,0,.6);
}

/* ===== 主体 ===== */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(26px,4vw,48px) 20px 0;
}

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:clamp(18px,2.4vw,34px);
  padding:clamp(18px,3vw,34px);
  border-radius:28px;
}

.stage-head{
  grid-column:1/-1;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.stage-head h2{
  margin:0 0 8px;
  font-size:clamp(20px,2.4vw,26px);
  line-height:1.35;
  font-weight:600;
  color:#fff;
  letter-spacing:.02em;
}

.subtitle{
  margin:0;
  color:#d6c3c3;
  font-size:16px;
  line-height:1.7;
}

.prose{
  grid-column:1;
  min-width:0;
}

.prose > article{
  padding-bottom:30px;
  margin-bottom:30px;
  border-bottom:1px dashed rgba(255,255,255,.15);
  scroll-margin:24px 0 130px;
}

.prose > article:last-child{
  border-bottom:0;
  margin-bottom:0;
  padding-bottom:4px;
}

.prose h2{
  position:relative;
  margin:0 0 12px;
  padding-left:18px;
  font-size:clamp(20px,2.6vw,25px);
  line-height:1.4;
  font-weight:600;
  color:#fff;
}

.prose h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.28em;
  bottom:.28em;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg,#ff0000,#8b00ff);
  box-shadow:0 0 12px rgba(255,0,0,.7);
}

.prose h3{
  margin:26px 0 10px;
  font-size:18px;
  line-height:1.5;
  font-weight:600;
  color:#ffe2e2;
}

.prose p{
  margin:0 0 14px;
  color:#e2d4d4;
}

.prose ul,.prose ol{
  margin:0 0 16px;
  padding-left:22px;
}

.prose li{margin:0 0 8px;color:#e2d4d4}

.prose strong{color:#fff}

.prose a{
  color:#ff9a9a;
  border-bottom:1px dotted rgba(255,154,154,.6);
}

.prose a:hover{color:#fff;border-bottom-color:#fff}

.prose blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  border-left:3px solid rgba(139,0,255,.9);
  border-radius:0 16px 16px 0;
  background:rgba(255,255,255,.06);
  color:#eadede;
}

.prose figure{margin:0 0 18px}

.prose img{
  display:block;
  width:100%;
  height:auto;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.18);
}

/* ===== 侧栏 ===== */
.side{
  grid-column:2;
  align-self:start;
  position:sticky;
  top:20px;
  padding:18px;
  border-radius:24px;
}

.side-title{
  margin:0 0 12px;
  font-family:'Share Tech Mono',ui-monospace,monospace;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.2em;
  color:#ffbcbc;
  font-weight:400;
}

.side-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:side;
}

.side-list li{counter-increment:side;margin:0 0 4px}

.side-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:6px 10px;
  border-radius:14px;
  color:#e8dcdc;
  font-size:16px;
  line-height:1.5;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.side-list a::before{
  content:counter(side,decimal-leading-zero);
  font-family:'Share Tech Mono',ui-monospace,monospace;
  font-size:14px;
  color:#ff5f5f;
  opacity:.85;
}

.side-list a:hover{
  background:rgba(255,255,255,.12);
  color:#fff;
  transform:translateX(3px);
}

/* ===== 页脚 ===== */
.foot{
  max-width:1180px;
  margin:clamp(34px,5vw,60px) auto 0;
  padding:0 20px;
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:clamp(22px,3.4vw,38px);
  border-radius:28px;
}

.cta-brand{
  margin:0;
  font-size:clamp(22px,3.6vw,36px);
  line-height:1.3;
  font-weight:600;
  color:#fff;
  letter-spacing:.02em;
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.3);
  background:linear-gradient(120deg,rgba(255,0,0,.85),rgba(139,0,255,.85));
  color:#fff;
  font-size:16px;
  font-weight:600;
  letter-spacing:.08em;
  transition:transform .2s ease,box-shadow .2s ease;
}

.cta-btn:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(255,0,0,.35);
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 22px;
  margin-top:20px;
  padding:16px 4px 0;
  border-top:1px solid rgba(255,255,255,.14);
}

.foot-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#fff;
  font-weight:600;
  letter-spacing:.04em;
}

.foot-nav ol{
  display:flex;
  flex-wrap:wrap;
  gap:4px 14px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  font-size:16px;
  color:#cfbfbf;
}

.foot-nav a:hover{color:#fff}

.copy{
  margin:0;
  font-family:'Share Tech Mono',ui-monospace,monospace;
  font-size:16px;
  color:#b8a5a5;
}

/* ===== 底部固定导航 ===== */
.dock{
  position:fixed;
  left:16px;
  right:16px;
  bottom:14px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  border-radius:999px;
  background:linear-gradient(155deg,rgba(52,32,32,.82),rgba(28,17,17,.86));
  border:1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 18px 44px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.18);
  max-width:1180px;
  margin:0 auto;
}

.dock-col{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
  flex:0 0 auto;
}

.dock-col-l{margin-right:auto}
.dock-col-r{margin-left:auto}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  color:#f0e6e6;
  font-size:16px;
  line-height:1.4;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease;
}

.pill:hover{
  color:#fff;
  background:rgba(255,0,0,.32);
  border-color:rgba(255,255,255,.4);
  transform:translateY(-2px);
}

.dock-brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  color:#fff;
  font-weight:600;
  font-size:16px;
  letter-spacing:.04em;
  white-space:nowrap;
  background:rgba(139,0,255,.22);
  border:1px solid rgba(255,255,255,.22);
}

.dock-brand:hover{color:#fff;background:rgba(139,0,255,.4)}

.search{flex:0 0 auto;margin:0}

.search input{
  width:132px;
  height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.07);
  color:#fff;
  font-family:inherit;
  font-size:16px;
  line-height:1.4;
  outline:none;
  transition:border-color .2s ease,background .2s ease,width .24s ease;
}

.search input::placeholder{color:#c8b6b6}

.search input:focus{
  width:170px;
  border-color:rgba(255,0,0,.75);
  background:rgba(255,255,255,.14);
}

.dock-col li[hidden]{display:none}

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

/* ===== 响应式 ===== */
@media (max-width:1080px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .side{grid-column:1;position:static}
}

@media (max-width:999px){
  body{padding-bottom:168px}

  .dock{
    left:0;
    right:0;
    bottom:0;
    flex-wrap:wrap;
    gap:8px;
    padding:9px 12px 12px;
    border-radius:24px 24px 0 0;
  }

  .dock-brand{
    order:-3;
    flex:1 1 auto;
    margin:0;
    justify-content:center;
  }

  .search{order:-2;flex:0 0 auto}

  .search input{width:104px}
  .search input:focus{width:126px}

  .dock-col{
    flex:1 1 0;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .dock-col::-webkit-scrollbar{display:none}

  .dock-col-l{order:1;margin-right:0}
  .dock-col-r{order:2;margin-left:0}

  .pill{padding:0 12px}
}

@media (max-width:560px){
  .hero{min-height:64vh;min-height:64svh}
  .hero-inner{padding-top:clamp(52px,14vh,110px)}
  .wrap{padding-left:14px;padding-right:14px}
  .foot{padding:0 14px}
  .stage{padding:16px;border-radius:24px}
  .cta{flex-direction:column;align-items:flex-start}
  .foot-row{justify-content:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-media{transform:none!important}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

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