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

:root{
  --red:#ff0000;
  --purple:#8b00ff;
  --ink:#261717;
  --txt:#f7eded;
  --muted:#dcc9cb;
  --line:rgba(255,255,255,0.18);
  --glass:rgba(255,255,255,0.09);
  --glass-2:rgba(255,255,255,0.07);
  --radius:10px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  min-height:100vh;
  font-family:'Outfit',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--txt);
  background:
    radial-gradient(58vw 58vw at 8% -12%, rgba(139,0,255,0.48), rgba(139,0,255,0) 68%),
    radial-gradient(46vw 46vw at 98% 4%, rgba(255,0,0,0.34), rgba(255,0,0,0) 70%),
    radial-gradient(70vw 46vw at 46% 112%, rgba(139,0,255,0.3), rgba(139,0,255,0) 72%),
    var(--ink);
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size:23px 23px;
  opacity:.55;
  -webkit-mask-image:radial-gradient(circle at 50% 34%, #000 0%, rgba(0,0,0,0.35) 62%, transparent 92%);
  mask-image:radial-gradient(circle at 50% 34%, #000 0%, rgba(0,0,0,0.35) 62%, transparent 92%);
}

/* ---------- 顶部两行 ---------- */
.site-head{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(38,23,23,0.66);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 10px 34px rgba(0,0,0,0.28);
}

.head-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px 6px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:19px;
  letter-spacing:.01em;
  white-space:nowrap;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:var(--radius);
  font-size:15px;
  line-height:1;
  color:#fff;
  background:linear-gradient(135deg,var(--red),var(--purple));
  border:1px solid rgba(255,255,255,0.35);
  box-shadow:0 8px 22px rgba(255,0,0,0.36);
}

.brand-txt{
  background:linear-gradient(96deg,#ffffff 0%,#ffb9b9 46%,#d5a7ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.head-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  color:#fff;
  white-space:nowrap;
  background:linear-gradient(120deg, rgba(255,0,0,0.92), rgba(139,0,255,0.92));
  border:1px solid rgba(255,255,255,0.34);
  box-shadow:0 10px 26px rgba(139,0,255,0.34);
  transition:transform .25s ease, box-shadow .25s ease;
}

.head-cta:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(255,0,0,0.42)}

.head-nav{
  padding:0 10px 9px;
  overflow-x:auto;
  scrollbar-width:none;
}

.head-nav::-webkit-scrollbar{display:none}

.head-nav p{
  display:flex;
  gap:6px;
  margin:0;
  min-width:max-content;
}

.head-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:var(--radius);
  border:1px solid transparent;
  color:var(--muted);
  text-decoration:none;
  font-size:16px;
  transition:color .2s ease, background .2s ease, border-color .2s ease;
}

.head-nav a:hover,
.head-nav a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,0.12);
  border-color:var(--line);
}

/* ---------- 主体 ---------- */
.wrap{
  position:relative;
  z-index:1;
  max-width:1160px;
  margin:0 auto;
  padding:0 14px 56px;
}

.hero{
  display:grid;
  place-items:center;
  text-align:center;
  min-height:72svh;
  padding:58px 6px 48px;
}

.hero-in{animation:rise .75s cubic-bezier(.2,.7,.3,1) both}

.hero-title{
  margin:0 0 18px;
  font-size:clamp(2.25rem,9.5vw,5.4rem);
  font-weight:900;
  line-height:1.03;
  letter-spacing:-.02em;
  background:linear-gradient(104deg,#ffffff 0%,#ffd3d3 32%,var(--red) 66%,var(--purple) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 12px 34px rgba(255,0,0,0.26));
}

.subtitle{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  font-weight:400;
}

.hero-sub{max-width:46ch;margin:0 auto}

.content-section{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:26px;
  align-items:start;
}

.body{
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:14px;
  padding:6px 20px 26px;
  -webkit-backdrop-filter:blur(15px) saturate(135%);
  backdrop-filter:blur(15px) saturate(135%);
  box-shadow:0 26px 64px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow-wrap:break-word;
}

.body article{
  padding:28px 0;
  border-top:1px solid rgba(255,255,255,0.13);
  scroll-margin-top:132px;
}

.body article:first-child{border-top:0;padding-top:16px}

.body h2{
  margin:0 0 12px;
  font-size:clamp(1.32rem,3.6vw,1.85rem);
  line-height:1.28;
  font-weight:900;
  letter-spacing:-.01em;
  color:#fff;
}

.body h2::after{
  content:"";
  display:block;
  width:46px;
  height:3px;
  margin-top:12px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--purple));
}

.body h3{
  margin:22px 0 8px;
  font-size:1.1rem;
  font-weight:700;
  color:#ffd8d8;
}

.body p{margin:0 0 14px;color:#f0e4e4}

.body ul,
.body ol{margin:0 0 16px;padding-left:1.3em}

.body li{margin-bottom:8px}

.body strong{color:#fff;font-weight:700}

.body a{color:#ffa5a5;text-decoration:underline;text-underline-offset:3px}

.body a:hover{color:#fff}

.body blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:3px solid var(--red);
  border-radius:0 var(--radius) var(--radius) 0;
  background:rgba(255,0,0,0.1);
  color:#f5e7e7;
}

.body img{max-width:100%;height:auto;border-radius:var(--radius);border:1px solid var(--line)}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:126px;
  padding:16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--glass-2);
  -webkit-backdrop-filter:blur(15px) saturate(130%);
  backdrop-filter:blur(15px) saturate(130%);
  box-shadow:0 20px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.14);
}

.rail-title{
  margin:0 0 8px;
  font-size:1.05rem;
  font-weight:900;
  color:#fff;
  letter-spacing:.01em;
}

.rail-sub{font-size:16px;color:var(--muted)}

.rail-list{
  display:grid;
  gap:4px;
  margin:16px 0 0;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:var(--radius);
  border:1px solid transparent;
  color:var(--muted);
  text-decoration:none;
  font-size:16px;
  transition:color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
  animation:rise .5s ease both;
}

.rail-list a:nth-child(1){animation-delay:.05s}
.rail-list a:nth-child(2){animation-delay:.1s}
.rail-list a:nth-child(3){animation-delay:.15s}
.rail-list a:nth-child(4){animation-delay:.2s}
.rail-list a:nth-child(5){animation-delay:.25s}
.rail-list a:nth-child(6){animation-delay:.3s}

.rail-list a:hover{
  color:#fff;
  background:rgba(255,255,255,0.12);
  border-color:var(--line);
  transform:translateX(3px);
}

/* ---------- 页脚 ---------- */
.site-foot{
  position:relative;
  z-index:1;
  max-width:1160px;
  margin:0 auto;
  padding:0 14px 34px;
}

.foot-top{padding:0 0 22px}

.foot-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:104px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.3);
  text-decoration:none;
  color:#fff;
  font-weight:900;
  font-size:clamp(1.4rem,4.6vw,2.2rem);
  letter-spacing:.02em;
  background:linear-gradient(118deg, rgba(255,0,0,0.6), rgba(139,0,255,0.6));
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
  box-shadow:0 22px 54px rgba(139,0,255,0.3), inset 0 1px 0 rgba(255,255,255,0.28);
  transition:transform .25s ease, box-shadow .25s ease;
}

.foot-cta:hover{transform:translateY(-3px);box-shadow:0 28px 62px rgba(255,0,0,0.38)}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 4px;
  border-top:1px solid var(--line);
}

.foot-copy{margin:0;font-size:16px;color:var(--muted)}

.foot-copy span{color:#fff;font-weight:700}

.foot-up{margin:0}

.foot-up a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.1);
  color:#fff;
  font-size:16px;
  text-decoration:none;
  transition:background .2s ease, transform .2s ease;
}

.foot-up a:hover{background:rgba(255,255,255,0.18);transform:translateY(-2px)}

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

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

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .content-section{grid-template-columns:minmax(0,1fr);gap:22px}
  .rail{position:static}
  .body article{scroll-margin-top:124px}
}

@media (min-width:900px){
  .hero{min-height:84svh}
}

@media (max-width:680px){
  body{font-size:16px}
  .wrap,.site-foot{padding-left:12px;padding-right:12px}
  .hero-title{font-size:clamp(2rem,10vw,2.9rem)}
  .body{padding:4px 15px 20px;border-radius:12px}
  .body article{padding:24px 0}
  .foot-cta{min-height:88px}
}

@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}
