@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --paper: #f7efec;
  --muted: #c9b6b1;
  --glass: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.2);
  --r: 10px;
  --dock-h: 118px;
  --head: "Lexend Mega", system-ui, -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0 0 calc(var(--dock-h) + 20px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: #ff9595; text-decoration: none; }
a:hover { color: #fff; }

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

img { display: block; max-width: 100%; height: auto; border-radius: var(--r); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
}

/* ---------- 背景光层 ---------- */
.aura {
  position: fixed;
  inset: -12%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

.aura::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 38% at 20% 16%, rgba(255, 0, 0, 0.62), transparent 68%),
    radial-gradient(48% 44% at 82% 26%, rgba(139, 0, 255, 0.58), transparent 70%),
    radial-gradient(70% 52% at 48% 100%, rgba(255, 0, 0, 0.26), transparent 72%);
  filter: blur(24px);
  animation: drift 28s ease-in-out infinite alternate;
}

.aura::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 14, 14, 0.5);
}

.aura i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.aura__a {
  width: 46vw; height: 46vw;
  top: 8%; left: -8%;
  background: var(--red);
  animation: floatA 22s ease-in-out infinite alternate;
}

.aura__b {
  width: 40vw; height: 40vw;
  bottom: 4%; right: -6%;
  background: var(--violet);
  animation: floatB 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6vw, 8vh, 0); }
}

@keyframes floatB {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-7vw, -9vh, 0); }
}

/* ---------- 跳转 ---------- */
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip:focus { transform: none; color: #fff; }

/* ---------- 底部工具条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(38, 23, 23, 0.62);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -20px 44px -30px rgba(0, 0, 0, 0.95);
}

.dock__brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--head);
  font-size: clamp(12px, 3.4vw, 15px);
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

.dock__set { position: relative; }
.dock__set--end { justify-self: end; }

.dock__set summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.dock__set summary::-webkit-details-marker { display: none; }
.dock__set summary::after {
  content: "";
  width: 0; height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dock__set[open] summary {
  background: linear-gradient(120deg, var(--red), var(--violet));
  border-color: transparent;
}

.dock__set menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(68vw, 250px);
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(35, 21, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 46px -26px #000;
}

.dock__set--end menu { left: auto; right: 0; }

.dock__set menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  color: #f0e2de;
}

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

.dock__find {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.dock__find input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.dock__find input::placeholder { color: #cbb8b3; }

.dock__find button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dock__find button:hover { background: var(--red); }

/* ---------- 版心 ---------- */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

.sheet { order: 1; min-width: 0; }

/* ---------- 侧栏 ---------- */
.rail {
  order: 2;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.rail__head {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  color: #fff;
}

.rail__head > span { display: flex; align-items: center; gap: 9px; }

.rail__bar {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--violet));
}

.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1px;
}

.rail__list li { counter-increment: step; }

.rail__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 15px;
  color: #e8dad6;
}

.rail__list a::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--head);
  font-size: 11px;
  color: #ff7d7d;
  flex: none;
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100svh - var(--dock-h) - 30px);
  padding: 54px 6px 84px;
}

.hero__h1 {
  margin: 0;
  font-size: clamp(2.3rem, 10.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(158deg, #ffffff 18%, #ffb1b1 56%, #d3a2ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero__split {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(340px, 62%);
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--violet));
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  animation: rise 0.9s 0.15s both;
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 正文块 ---------- */
.sheet > section { position: relative; }
.sheet > section[id] { scroll-margin-top: 26px; }

.sheet > section:not(.hero):not(.cta) {
  margin: 0 0 22px;
  padding: 26px 18px;
  border-radius: var(--r);
  background: rgba(30, 18, 18, 0.56);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 24px 48px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sheet h2 {
  font-size: clamp(1.3rem, 4.2vw, 2rem);
  color: #fff;
  margin: 0 0 0.7em;
}

.sheet h3 {
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  color: #ffe3e3;
  margin: 1.4em 0 0.55em;
}

.sheet h2 > span,
.sheet h3 > span {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.sheet h2 > span::before,
.sheet h3 > span::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--violet));
}

.sheet h2 > span > span,
.sheet h3 > span > span { display: inline; }

.sheet p { margin: 0 0 1.05em; }
.sheet p:last-child { margin-bottom: 0; }

.sheet ul,
.sheet ol { margin: 0 0 1.15em; padding-left: 1.25em; }
.sheet li { margin: 0 0 0.45em; }
.sheet li::marker { color: var(--red); }

.sheet strong { color: #fff; }

.sheet blockquote {
  margin: 1.3em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 255, 255, 0.06);
}

.sheet time {
  display: inline-block;
  margin: 0 0 12px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.18);
  color: #ffb2b2;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.sheet figcaption { font-size: 14px; color: var(--muted); }

.sheet > section.hit {
  animation: hit 1.1s ease;
}

@keyframes hit {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.85); }
  100% { box-shadow: 0 0 0 16px rgba(255, 0, 0, 0); }
}

/* ---------- 收尾 ---------- */
.cta {
  display: flex;
  justify-content: center;
  padding: 8px 0 46px;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), var(--violet));
  color: #fff;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: 0 26px 44px -26px rgba(255, 0, 0, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta__btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 30px 50px -24px rgba(139, 0, 255, 0.95);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 26px;
  font-size: 14px;
  color: var(--muted);
}

.foot p {
  margin: 0;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.foot small { display: flex; gap: 6px; }

.foot small a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: #e4d5d1;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.foot small a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- 宽屏 ---------- */
@media (min-width: 900px) {
  :root { --dock-h: 74px; }

  .dock {
    grid-template-columns: 1fr auto 1fr auto;
    gap: 12px;
    padding: 10px 22px;
  }

  .dock__set:first-of-type { justify-self: start; }
  .dock__find { grid-column: auto; width: 230px; }
  .dock__find button { padding: 0 16px; }

  main {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding: 0 22px;
  }

  .rail { order: 0; position: sticky; top: 22px; }
  .sheet { order: 0; }

  .sheet > section:not(.hero):not(.cta) { padding: 34px 34px; margin-bottom: 26px; }
  .hero { min-height: calc(100svh - var(--dock-h) - 20px); }
  .foot { padding: 12px 24px 30px; }
}

@media (min-width: 1200px) {
  .hero__h1 { letter-spacing: -0.055em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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