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

:root {
  --deep: #170d0d;
  --ink: #261717;
  --red: #ff0000;
  --pur: #8b00ff;
  --txt: #f8f0ed;
  --dim: #cbb8b2;
  --line: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.1);
  --r: 28px;
}

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

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

body {
  margin: 0;
  background: var(--deep);
  color: var(--txt);
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.74;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58vw 58vw at 84% -8%, rgba(255, 0, 0, 0.32), transparent 62%),
    radial-gradient(52vw 52vw at 4% 16%, rgba(139, 0, 255, 0.32), transparent 60%),
    radial-gradient(70vw 48vw at 62% 90%, rgba(255, 0, 0, 0.14), transparent 66%),
    linear-gradient(180deg, #2b1a1a, #170d0d 46%, #1e1111);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(12px, 3.4vw, 36px);
  background: rgba(23, 13, 13, 0.58);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ng {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.ng.left { justify-self: end; justify-content: flex-end; }
.ng.right { justify-self: start; }

.ng a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ng a:hover,
.ng a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.ng a.on {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -2px 0 var(--red);
}

.ng a.cta {
  padding: 0 20px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(100deg, var(--red), var(--pur));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 26px -14px rgba(255, 0, 0, 0.9);
}

.ng a.cta:hover {
  box-shadow: 0 16px 32px -14px rgba(139, 0, 255, 0.95);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(96px, 12vh, 150px) clamp(16px, 5vw, 64px) clamp(70px, 9vh, 110px);
  overflow: hidden;
}

.slash {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 14%;
  height: clamp(46px, 8vw, 84px);
  transform: skewY(-6deg);
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.6), rgba(139, 0, 255, 0.6));
  filter: blur(1px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: min(62vh, 540px);
}

.shot {
  position: absolute;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.42), rgba(139, 0, 255, 0.42));
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.shot .ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.s1 {
  left: 0;
  top: 4%;
  width: min(76%, 400px);
  aspect-ratio: 4 / 5;
  transform: rotate(-4deg);
  z-index: 3;
}

.shot.s2 {
  right: 0;
  bottom: 0;
  width: min(60%, 300px);
  aspect-ratio: 1 / 1;
  transform: rotate(5deg);
  opacity: 0.94;
  z-index: 2;
}

.hero-panel {
  position: relative;
  z-index: 4;
  text-align: right;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(38, 23, 23, 0.55));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-panel h1 {
  margin: 0 0 0.5em;
  font-size: clamp(1.85rem, 4.6vw, 3.2rem);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 auto 1.4em;
  max-width: 34ch;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--red), var(--pur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 38px -18px rgba(255, 0, 0, 0.95);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -18px rgba(139, 0, 255, 0.95);
}

/* ---------- 正文骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.6vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 52px) clamp(14px, 4vw, 40px) 34px;
}

.side {
  position: sticky;
  top: 86px;
  padding: 20px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.side small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #ff9a9a;
  margin-bottom: 0.3em;
}

.side h2 {
  margin: 0 0 0.7em;
  font-size: 1.06rem;
  font-weight: 600;
}

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

.toc li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.toc li:first-child { border-top: 0; }

.toc a {
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #ff7b7b;
}

.toc a:hover,
.toc a.on {
  color: #fff;
  padding-left: 4px;
}

.body { min-width: 0; }
.doc { overflow-wrap: anywhere; }

.doc section {
  position: relative;
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 38px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 56%, rgba(139, 0, 255, 0.1));
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 30px 70px -46px #000, inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  scroll-margin-top: 108px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.doc section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pur));
  opacity: 0.9;
}

.doc section:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
}

.doc h2 {
  margin: 0.1em 0 0.55em;
  font-size: clamp(1.3rem, 2.4vw, 1.74rem);
  line-height: 1.34;
  font-weight: 600;
}

.doc h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.12rem;
  color: #ffd9d4;
}

.doc p { margin: 0 0 1em; }

.doc small {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  color: #ff8f8f;
}

.doc ul,
.doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li { margin: 0.35em 0; }

.doc a {
  color: #ff9b9b;
  text-underline-offset: 3px;
}

.doc a:hover { color: #fff; }

.doc strong { color: #fff; }

.doc blockquote {
  margin: 1em 0;
  padding: 0.7em 1em;
  border-left: 3px solid var(--pur);
  border-radius: 0 18px 18px 0;
  background: rgba(139, 0, 255, 0.13);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  padding: 0.55em 0.6em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.totop {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px clamp(14px, 4vw, 40px) 30px;
  text-align: right;
}

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 0.94rem;
  text-decoration: none;
}

.totop a:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 40px) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 13, 13, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

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

.foot dl { margin: 0; }

.foot dt {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: #ff9a9a;
  margin-bottom: 0.35em;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  font-size: 0.95rem;
  text-decoration: none;
}

.foot dd a:hover { color: #fff; }

.copy {
  max-width: 1180px;
  margin: 16px auto 0;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #a48f8a;
}

/* ---------- 动效 ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

[data-rv].in {
  opacity: 1;
  transform: none;
}

.shot.s1[data-rv].in { transform: rotate(-4deg); }
.shot.s2[data-rv].in { transform: rotate(5deg); }

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px clamp(14px, 5vw, 40px) 64px;
    gap: 22px;
  }
  .hero-panel { text-align: left; }
  .lede { margin-left: 0; }
  .hero-art { min-height: 46vh; }
  .shot.s1 { width: min(58%, 300px); }
  .shot.s2 { width: min(44%, 220px); }
  .wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .side h2 { font-size: 1rem; }
  .toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
  .toc li { border-top: 0; }
}

@media (max-width: 720px) {
  .top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px 8px;
  }
  .brand {
    order: -1;
    flex: 1 0 100%;
    justify-content: center;
    letter-spacing: 0.2em;
  }
  .ng,
  .ng.left,
  .ng.right {
    justify-content: center;
    justify-self: auto;
  }
  .ng a { padding: 0 9px; font-size: 15px; }
  .ng a.cta { padding: 0 14px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .doc section { padding: 18px 16px; }
  .toc { grid-template-columns: 1fr; }
  .sl  ash { bottom: 8%; }
  .foot-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1; transform: none; transition: none; }
  .doc section,
  .btn,
  .ng a,
  .toc a { transition: none; }
  .doc section:hover,
  .btn:hover,
  .ng a:hover { transform: none; }
}

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