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

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --ink-deep: #180d0d;
  --text: #f7efef;
  --muted: #cbb2b2;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.10);
  --radius: 28px;
  --display: 'Syne', 'Manrope', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 24px 64px -28px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 6%, rgba(255, 0, 0, 0.58), transparent 62%),
    radial-gradient(44% 36% at 88% 3%, rgba(139, 0, 255, 0.55), transparent 64%),
    radial-gradient(48% 42% at 72% 94%, rgba(139, 0, 255, 0.34), transparent 68%),
    radial-gradient(42% 34% at 18% 84%, rgba(255, 0, 0, 0.26), transparent 70%);
  filter: blur(48px) saturate(1.15);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; }

/* ---------- 顶部 ---------- */
.sitehead {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(24, 13, 13, 0.78), rgba(38, 23, 23, 0.28));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  flex: none;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}

.brand__logo--dot {
  background: linear-gradient(135deg, var(--red), var(--violet));
  box-shadow: 0 0 22px -4px rgba(255, 0, 0, 0.8);
}

.brand__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav p {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav p::-webkit-scrollbar { display: none; }

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav a:hover { color: #fff; background: var(--glass); }

.ico {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--violet));
}

.cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(120deg, var(--red), var(--violet));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(255, 0, 0, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -14px rgba(139, 0, 255, 0.95);
}

/* ---------- 锚点条 ---------- */
.anchors {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 clamp(12px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(24, 13, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.anchors::-webkit-scrollbar { display: none; }

.anchors a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.anchors b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

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

.anchors a.on {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ---------- 头部大图 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 45vh;
  padding: clamp(22px, 5vw, 58px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 20%, rgba(139, 0, 255, 0.5), transparent 68%),
    radial-gradient(58% 66% at 18% 80%, rgba(255, 0, 0, 0.42), transparent 70%),
    #1c1010;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(258deg, rgba(24, 13, 13, 0.94) 6%, rgba(38, 23, 23, 0.6) 48%, rgba(139, 0, 255, 0.24) 100%);
}

.hero__copy {
  max-width: min(760px, 100%);
  text-align: right;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 6.2vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  background: linear-gradient(150deg, #ffffff 30%, #ffd3d3 70%, #dcc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- 主体 ---------- */
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) clamp(14px, 4vw, 40px);
}

.doc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.rail {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.rail h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
}

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

.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: 0 10px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.rail__list a:hover {
  color: #fff;
  background: rgba(255, 0, 0, 0.14);
}

.prose {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.prose > div {
  position: relative;
  scroll-margin-top: 96px;
  padding: clamp(20px, 3.4vw, 38px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.prose > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--red), var(--violet));
  opacity: 0.75;
}

.prose h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #fff;
}

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

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  line-height: 1.4;
  color: #fff;
}

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

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

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

.prose li { margin: 7px 0; }

.prose a {
  color: #ff8080;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: #ffb3b3; }

.prose strong { color: #fff; }

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

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

.prose hr {
  border: 0;
  height: 1px;
  margin: 24px 0;
  background: var(--line-soft);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 44px;
  padding: clamp(28px, 5vw, 54px) clamp(14px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.36), rgba(18, 10, 10, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.foot__top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.foot__addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot__addr strong {
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
}

.foot__addr p {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  color: var(--muted);
}

.foot__links,
.foot__meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__links {
  display: grid;
  gap: 2px;
  align-content: start;
}

.foot__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.foot__bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

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

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

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

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 760px) {
  .sitehead {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
  }

  .hero { min-height: 46vh; }

  .hero__copy { text-align: right; }
}

@media (min-width: 900px) {
  .doc {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
  }

  .rail {
    position: sticky;
    top: 84px;
  }

  .foot__top {
    grid-template-columns: 1.5fr 1fr;
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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