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

:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --void: #0a0a12;
  --panel: #141424;
  --text: #f2eef8;
  --dim: #a49fbb;
  --line: rgba(255, 0, 110, 0.28);
  --glow: 0 0 12px rgba(255, 0, 110, 0.55);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: 'Outfit', 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  padding-bottom: 108px;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(255, 0, 110, 0.22), transparent 70%),
    radial-gradient(760px 460px at 94% 2%, rgba(255, 0, 0, 0.16), transparent 72%),
    linear-gradient(180deg, #12122a 0%, var(--void) 45%, #07070d 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 3px);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.1) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

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

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

/* 版面骨架 */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 56px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.stage {
  min-width: 0;
}

.sheet {
  position: relative;
  border: 1px solid rgba(255, 0, 110, 0.2);
  border-radius: 14px;
  background: linear-gradient(185deg, rgba(26, 26, 46, 0.94), rgba(11, 11, 20, 0.96));
  box-shadow: 0 30px 70px -50px #000, inset 0 1px 0 rgba(255, 0, 110, 0.18);
  overflow: hidden;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.92), rgba(10, 10, 18, 0.94));
  box-shadow: 0 20px 44px -34px #000;
}

.rail-h {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: var(--glow);
}

.subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--pink);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #ffffff;
  border-color: var(--line);
  background: rgba(255, 0, 110, 0.12);
  text-shadow: var(--glow);
}

.rail-card {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.stamp {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.8), 0 0 24px rgba(255, 0, 0, 0.45);
}

.rail-kw {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--dim);
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  min-height: 45vh;
  padding: 30px 28px 36px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(118deg, rgba(255, 0, 110, 0.16), rgba(26, 26, 46, 0.12) 58%);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: 0.9;
}

.hero-copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--pink);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.7);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.75), 0 0 34px rgba(255, 0, 0, 0.4);
  animation: jitter 6s ease-in-out infinite;
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--dim);
  max-width: 40ch;
}

.hero-act {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 22px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.18);
  box-shadow: 0 0 18px -4px rgba(255, 0, 110, 0.7);
}

.btn:hover,
.btn:focus-visible {
  background: var(--pink);
  color: #10000a;
  text-shadow: none;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 26px -8px rgba(255, 0, 110, 0.6), inset 0 0 40px rgba(255, 0, 110, 0.12);
  background:
    repeating-linear-gradient(135deg, rgba(255, 0, 110, 0.16) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, rgba(255, 0, 0, 0.24), rgba(26, 26, 46, 0.92));
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

@keyframes jitter {
  0%, 92%, 100% { transform: skewX(0deg); }
  94% { transform: skewX(-1.6deg); }
  96% { transform: skewX(1.4deg); }
  98% { transform: skewX(-0.6deg); }
}

/* 正文 */
.sheet > section {
  padding: 30px 28px;
  border-bottom: 1px solid rgba(255, 0, 110, 0.14);
  scroll-margin-top: 20px;
}

.sheet > section:last-child {
  border-bottom: 0;
}

.sheet h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.36;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: var(--glow);
}

.sheet h2 + p.subtitle,
.sheet h2 + .subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--pink);
}

.sheet h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #ffe6f1;
}

.sheet p {
  margin: 0 0 14px;
  color: #ddd8ea;
  max-width: 68ch;
}

.sheet ul,
.sheet ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #ddd8ea;
}

.sheet li {
  margin: 0 0 6px;
}

.sheet li::marker {
  color: var(--pink);
}

.sheet strong {
  color: #ffffff;
}

.sheet a {
  color: #ff7db4;
  text-decoration-color: rgba(255, 0, 110, 0.55);
  text-underline-offset: 3px;
}

.sheet a:hover {
  color: #ffffff;
}

.sheet blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 0, 110, 0.1);
  color: #f3e6ef;
}

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

.sheet figure {
  margin: 0 0 18px;
}

.sheet figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -26px #000;
}

.sheet figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--dim);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.sheet th,
.sheet td {
  padding: 9px 12px;
  border: 1px solid rgba(255, 0, 110, 0.22);
  text-align: left;
}

.sheet th {
  color: #ffffff;
  background: rgba(255, 0, 110, 0.14);
}

.sheet code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 0, 110, 0.16);
  font-family: 'Courier New', monospace;
  font-size: 16px;
}

/* 页脚 */
.base {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.07), transparent 70%);
}

.base-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: start;
}

.base address {
  margin-top: 8px;
  font-style: normal;
  font-size: 16px;
  color: var(--dim);
}

.base-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.base nav dl {
  margin: 0;
}

.base dt {
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--pink);
}

.base dd {
  display: inline-block;
  margin: 0 10px 0 0;
}

.base ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
}

.base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 4px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.base a:hover,
.base a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--pink);
  text-shadow: var(--glow);
}

.copy {
  margin: 26px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--dim);
}

.note {
  margin: 2px 0 0;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: rgba(164, 159, 187, 0.72);
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 28, 0.88), rgba(8, 8, 14, 0.98));
  box-shadow: 0 -20px 44px -32px #000, inset 0 1px 0 rgba(255, 0, 110, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dock-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.dock-strip {
  display: contents;
}

.dock-side {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.dock-left {
  justify-self: end;
  justify-content: flex-end;
}

.dock-right {
  justify-self: start;
}

.dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 11px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
}

.dock a:hover,
.dock a:focus-visible {
  color: #ffffff;
  border-color: var(--line);
  background: rgba(255, 0, 110, 0.16);
  text-shadow: var(--glow);
}

.dock-brand {
  justify-self: center;
  padding: 6px 16px !important;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(255, 0, 110, 0.12) !important;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.85), 0 0 26px rgba(255, 0, 0, 0.5);
}

.dock-jump {
  border-style: dashed !important;
  border-color: rgba(255, 0, 110, 0.45) !important;
  color: var(--pink) !important;
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* 响应式 */
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 22px 28px;
  }
  .hero-art {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 14px 46px;
    gap: 16px;
  }
  .rail {
    position: static;
    grid-template-columns: 1fr;
  }
  .rail-list {
    grid-template-columns: 1fr 1fr;
  }
  .rail-card {
    display: none;
  }
  .base-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .base-links {
    grid-template-columns: 1fr 1fr;
  }
  .dock-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px 10px 10px;
  }
  .dock-brand {
    order: -1;
    justify-self: center;
  }
  .dock-strip {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dock-strip::-webkit-scrollbar {
    display: none;
  }
  .dock-side {
    justify-content: flex-start;
  }
  .dock a {
    padding: 8px 9px;
  }
  body {
    padding-bottom: 148px;
  }
  .sheet > section {
    padding: 24px 18px;
  }
  .sheet h2 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding: 20px 16px 26px;
  }
  .hero-art {
    aspect-ratio: 16 / 11;
  }
  .base {
    padding: 28px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero h1 {
    animation: none;
  }
  .hero-art img {
    transform: none !important;
  }
}

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