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

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

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --text:#f6eeee;
  --muted:#cdbcbf;
  --link:#ff9d9d;
  --line:rgba(255,255,255,.18);
  --line-hi:rgba(255,255,255,.38);
  --glass:rgba(255,255,255,.085);
  --glass-2:rgba(255,255,255,.15);
  --r:28px;
}

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

body{
  margin:0;
  font-family:"Lexend","Source Sans 3",-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  background:#1b1112;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(58vw 58vw at 8% 4%, rgba(255,0,0,.42), transparent 62%),
    radial-gradient(54vw 54vw at 92% 16%, rgba(139,0,255,.46), transparent 64%),
    radial-gradient(84vw 62vw at 50% 98%, rgba(139,0,255,.24), transparent 70%),
    linear-gradient(180deg,#1b1011, #261717 56%, #150c0d);
}

body > *{ position:relative; z-index:1; }

a{ color:var(--link); }
a:hover{ color:#fff; }

:focus-visible{
  outline:2px solid var(--red);
  outline-offset:2px;
}

/* ---------- 顶部玻璃条 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:rgba(32,19,20,.58);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
}

.tbar-nav{ flex:1 1 0; min-width:0; }
.tbar-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.tbar-nav--a ul{ justify-content:flex-end; }
.tbar-nav--b ul{ justify-content:flex-start; }

.tbar-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:6px 11px;
  font-size:16px;
  line-height:1.4;
  color:var(--text);
  text-decoration:none;
  border-radius:999px;
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.tbar-nav a:hover,
.tbar-nav a:focus-visible{
  background:var(--glass-2);
  border-color:var(--line);
  transform:translateY(-1px);
  color:#fff;
}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 18px;
  min-height:44px;
  text-decoration:none;
  color:#fff;
  border-radius:999px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(255,0,0,.20), rgba(139,0,255,.22));
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.brand-mark{
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 12px rgba(255,0,0,.75);
}
.brand-word{
  font-weight:600;
  font-size:17px;
  letter-spacing:.03em;
  white-space:nowrap;
}

/* ---------- 首屏拼贴 ---------- */
.hero{
  position:relative;
  min-height:45vh;
  display:grid;
  place-items:center;
  padding:clamp(30px,6vw,64px) 20px;
  overflow:hidden;
}

.hero-collage{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.shot{
  position:absolute;
  display:block;
  width:min(40vw,300px);
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid var(--line-hi);
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 24px 60px rgba(0,0,0,.34);
}
.shot-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:3 / 4;
}
.shot--1{
  left:max(2%, 12px);
  top:9%;
  transform:rotate(-6deg);
  opacity:.92;
}
.shot--2{
  right:max(2%, 12px);
  bottom:8%;
  transform:rotate(5deg);
  opacity:.88;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:740px;
  text-align:center;
  padding:clamp(20px,3.6vw,36px) clamp(18px,4vw,44px);
  border-radius:var(--r);
  border:1px solid var(--line-hi);
  background:rgba(32,19,20,.46);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 28px 70px rgba(0,0,0,.30);
}

.hero-copy h1{
  margin:0 0 12px;
  font-size:clamp(28px,6vw,52px);
  line-height:1.2;
  font-weight:600;
  letter-spacing:.01em;
  text-shadow:0 0 28px rgba(255,0,0,.35);
}

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

/* ---------- 主体栅格 ---------- */
.page{ display:block; }

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(26px,4.5vw,54px) 20px clamp(30px,5vw,60px);
  display:grid;
  grid-template-columns:246px minmax(0,1fr);
  gap:clamp(18px,2.6vw,32px);
  align-items:start;
}

.rail{
  position:sticky;
  top:88px;
  padding:16px 14px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}

.rail-h,
.foot-h{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--muted);
}
.rail-h::before,
.foot-h::before{
  content:"";
  width:4px;
  height:18px;
  border-radius:2px;
  background:linear-gradient(180deg,var(--red),var(--violet));
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 11px;
  font-size:16px;
  line-height:1.4;
  color:var(--text);
  text-decoration:none;
  border-radius:14px;
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible{
  background:var(--glass-2);
  border-color:var(--line);
  transform:translateX(2px);
  color:#fff;
}
.rail-list a.is-on{
  background:linear-gradient(135deg, rgba(255,0,0,.26), rgba(139,0,255,.26));
  border-color:var(--line-hi);
  color:#fff;
}

.body-col{ min-width:0; }

/* ---------- 正文玻璃板 ---------- */
.prose{
  display:block;
  padding:clamp(20px,3.2vw,40px);
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20);
  overflow-wrap:break-word;
}

.prose section{ scroll-margin-top:96px; }
.prose section + section{
  margin-top:clamp(28px,4vw,46px);
  padding-top:clamp(26px,3.6vw,42px);
  border-top:1px solid var(--line);
}

.prose h2{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0 0 14px;
  font-size:clamp(22px,3.1vw,30px);
  line-height:1.35;
  font-weight:600;
}
.prose h2 > span::before{
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:10px;
  border-radius:50%;
  vertical-align:middle;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 10px rgba(255,0,0,.6);
}

.prose h3{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:26px 0 10px;
  font-size:clamp(18px,2.4vw,22px);
  line-height:1.45;
  font-weight:600;
}
.prose h3 > span::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:9px;
  border-radius:2px;
  vertical-align:middle;
  background:var(--violet);
}

.prose p{ margin:0 0 15px; }
.prose p:last-child{ margin-bottom:0; }

.prose ul,
.prose ol{ margin:0 0 16px; padding-left:1.35em; }
.prose li{ margin:0 0 8px; }

.prose strong{ color:#fff; font-weight:600; }

.prose blockquote{
  margin:22px 0;
  padding:16px 20px;
  border-left:3px solid var(--red);
  border-radius:0 18px 18px 0;
  background:rgba(255,0,0,.10);
  color:#fff;
}
.prose blockquote p:last-child{ margin-bottom:0; }

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

.prose :where(table){
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
  font-size:16px;
}
.prose :where(th, td){
  padding:10px 12px;
  border:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.prose :where(th){ background:var(--glass-2); }

.prose a{
  color:var(--link);
  text-underline-offset:3px;
}
.prose a:hover{ color:#fff; }

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(30px,5vw,60px);
  padding:clamp(26px,4vw,48px) 20px 18px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.foot-cols{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr)) minmax(0,1.6fr);
  gap:clamp(18px,3vw,34px);
}

.foot dl{ margin:0; }
.foot dt{
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:8px;
}
.foot dd{
  margin:0 0 4px;
  font-size:16px;
  color:var(--text);
}
.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--text);
  text-decoration:none;
  transition:color .2s ease;
}
.foot dd a:hover{ color:var(--link); }

.foot-sub{
  padding:16px 18px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(140deg, rgba(255,0,0,.16), rgba(139,0,255,.18));
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.sub-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.sub-form input{
  flex:1 1 140px;
  min-width:0;
  min-height:44px;
  padding:8px 15px;
  font:inherit;
  font-size:16px;
  color:#fff;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.12);
}
.sub-form input::placeholder{ color:var(--muted); }
.sub-form button{
  flex:0 0 auto;
  min-height:44px;
  padding:8px 22px;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#fff;
  cursor:pointer;
  border:1px solid var(--line-hi);
  border-radius:999px;
  background:linear-gradient(135deg, var(--red), var(--violet));
  transition:transform .2s ease, filter .2s ease;
}
.sub-form button:hover{ transform:translateY(-1px); filter:brightness(1.08); }

.copy{
  max-width:1180px;
  margin:clamp(20px,3vw,32px) auto 0;
  padding-top:14px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:16px;
  color:var(--muted);
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  .rail-list li{
    animation:rise .5s ease both;
  }
  .rail-list li:nth-child(1){ animation-delay:.02s; }
  .rail-list li:nth-child(2){ animation-delay:.06s; }
  .rail-list li:nth-child(3){ animation-delay:.10s; }
  .rail-list li:nth-child(4){ animation-delay:.14s; }
  .rail-list li:nth-child(5){ animation-delay:.18s; }
  .rail-list li:nth-child(6){ animation-delay:.22s; }
  .rail-list li:nth-child(7){ animation-delay:.26s; }

  .hero-copy{
    animation:rise .6s ease both;
  }
}

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

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

/* ---------- 窄屏 ---------- */
@media (max-width: 900px){
  .topbar{
    position:static;
    flex-wrap:wrap;
    justify-content:center;
    padding:8px 10px 12px;
  }
  .brand{ order:-1; flex:1 1 100%; justify-content:center; margin-bottom:6px; }
  .tbar-nav{ flex:1 1 100%; }
  .tbar-nav ul{ justify-content:center; }
  .tbar-nav a{ padding:6px 10px; }

  .hero{ min-height:0; padding:34px 14px 40px; }
  .shot{ width:min(44vw,190px); }
  .shot--1{ top:0; opacity:.6; }
  .shot--2{ bottom:0; opacity:.6; }

  .wrap{
    grid-template-columns:minmax(0,1fr);
    padding:22px 14px 32px;
  }
  .rail{ position:static; padding:14px 12px; }
  .rail-list{
    grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
    gap:4px;
  }
  .rail-list a{ min-height:44px; }
  .prose section{ scroll-margin-top:20px; }

  .foot-cols{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .foot-sub{ grid-column:1 / -1; }
}

@media (max-width: 420px){
  body{ font-size:16px; }
  .prose{ padding:18px 15px; }
  .foot-cols{ grid-template-columns:minmax(0,1fr); }
  .shot{ width:120px; }
}

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