:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --ink-deep: #0b0a14;
  --fg: #f3edff;
  --dim: #b5adda;
  --line: rgba(255, 0, 110, 0.26);
  --glass: rgba(255, 255, 255, 0.055);
  --r: 18px;
  --pad: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: 'Roboto', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(255, 0, 110, 0.22), transparent 62%),
    radial-gradient(880px 520px at 6% 14%, rgba(255, 0, 0, 0.15), transparent 66%),
    linear-gradient(180deg, #1a1a2e 0%, #131122 55%, #0b0a14 100%);
  background-attachment: fixed;
}

a { color: var(--pink); text-underline-offset: 3px; overflow-wrap: break-word; }
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 6px;
}

img, svg, video, canvas { max-width: 100%; height: auto; }

img { display: block; }

::selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #100e1c; }
::-webkit-scrollbar-thumb { background: #3a2f5c; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* CRT 扫描线覆层 */
.crt {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.34) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.45) 100%);
}

/* 顶部区 */
.topwrap {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: 100vw;
}

.masthead {
  background: rgba(17, 15, 30, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ticker {
  margin: 0;
  padding: 5px 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--pink);
  border-bottom: 1px solid rgba(255, 0, 110, 0.16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker span {
  display: inline-block;
  padding: 1px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 0, 110, 0.4);
  box-shadow: inset 0 0 12px rgba(255, 0, 110, 0.35);
}

.masthead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  max-width: 100%;
}

.nav-wing {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.nav-wing--end { justify-content: flex-end; }

.nav-wing a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color 0.22s, border-color 0.22s, box-shadow 0.22s, text-shadow 0.22s;
}

.nav-wing a:hover {
  color: #fff;
  border-color: var(--line);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.45);
  text-shadow: 0 0 9px var(--pink);
}

.brand {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 110, 0.2));
  box-shadow: 0 0 24px rgba(255, 0, 110, 0.32);
  max-width: 100%;
}

.brand-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 26px var(--pink);
  animation: pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

.brand-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* 二级粘性锚点条 */
.jumpline {
  background: rgba(11, 10, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 0, 110, 0.16);
}

.jump { position: relative; padding: 3px 16px; }

.jump summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--pink);
}

.jump summary::-webkit-details-marker { display: none; }

.jump summary::after {
  content: "+";
  margin-left: 9px;
  font-size: 15px;
  color: var(--red);
  transition: transform 0.25s;
}

.jump[open] summary::after { transform: rotate(45deg); }

.jump dl {
  position: absolute;
  left: 16px;
  top: calc(100% - 1px);
  z-index: 5;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 3px;
  min-width: 232px;
  max-width: calc(100vw - 48px);
  max-height: 62vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 16, 34, 0.98);
  box-shadow: 0 0 34px rgba(255, 0, 110, 0.32);
}

.jump dd { margin: 0; }

.jump dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  border-radius: 9px;
}

.jump dd a:hover { background: rgba(255, 0, 110, 0.18); color: #fff; }

/* 主区 */
main { display: block; max-width: 100%; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 120px var(--pad) 74px;
  overflow: hidden;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.06);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.32) 0%, rgba(15, 13, 27, 0.86) 68%, #12101f 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: min(660px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: 0.09s; }
.hero-text > *:nth-child(3) { animation-delay: 0.18s; }

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

.hero-badge {
  font-size: 12px;
  letter-spacing: 0.3em;
  padding: 6px 15px;
  border-radius: 99px;
  color: var(--pink);
  border: 1px solid rgba(255, 0, 110, 0.62);
  background: rgba(255, 0, 110, 0.1);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.42);
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.75rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 0, 110, 0.78), 0 0 64px rgba(255, 0, 0, 0.42);
  overflow-wrap: break-word;
}

.hero-sub {
  margin: 0;
  max-width: 54ch;
  font-size: 16px;
  color: var(--dim);
  overflow-wrap: break-word;
}

/* 内容区：aside 在左 */
.zone {
  display: grid;
  grid-template-columns: minmax(196px, 252px) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 62px var(--pad) 92px;
}

.rail {
  position: sticky;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow: 0 0 36px rgba(255, 0, 110, 0.14);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.85);
}

.rail-h {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
}

.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;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rail-list a:hover {
  color: #fff;
  border-left-color: var(--pink);
  background: rgba(255, 0, 110, 0.13);
}

/* 正文 */
.prose {
  min-width: 0;
  max-width: 74ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prose * { max-width: 100%; }

.prose > article { padding-bottom: 6px; }

.prose > article[id] { scroll-margin-top: 152px; }

.prose > article + article {
  margin-top: 56px;
  padding-top: 54px;
  border-top: 1px dashed rgba(255, 0, 110, 0.24);
}

.prose small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.72);
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.5);
  overflow-wrap: break-word;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.16rem;
  color: #fff;
}

.prose p { margin: 0 0 18px; color: #ddd7f4; }
.prose strong { color: #fff; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin: 0 0 8px; }

.prose blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 0, 110, 0.08);
}

.prose figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--glass);
}

.prose figure img { border: 0; border-radius: 0; }

.prose figcaption {
  padding: 10px 15px;
  font-size: 14px;
  color: var(--dim);
  border-top: 1px solid rgba(255, 0, 110, 0.16);
}

.prose aside {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 0, 110, 0.32);
  border-radius: var(--r);
  background: rgba(255, 0, 110, 0.09);
}

.prose img { border-radius: 14px; border: 1px solid var(--line); height: auto; }

.prose pre {
  margin: 0 0 20px;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 5, 12, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.prose code { overflow-wrap: anywhere; }

.prose table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th, .prose td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid rgba(255, 0, 110, 0.22);
  overflow-wrap: break-word;
}

.prose th { background: rgba(255, 0, 110, 0.12); color: #fff; }

/* 页脚 */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad) 26px;
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.08), rgba(11, 10, 20, 0.94));
  max-width: 100%;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.95fr 1fr;
  gap: 30px;
  max-width: 1220px;
  margin: 0 auto;
}

.foot-brand, .foot-col { min-width: 0; }

.giant {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  word-break: break-word;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.82), 0 0 56px rgba(255, 0, 0, 0.45);
}

.foot-col { font-size: 15px; }
.foot-col dl { margin: 0; }

.foot-col dt {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red);
}

.foot-col dd { margin: 0; }

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, text-shadow 0.2s;
}

.foot-col a:hover { color: #fff; text-shadow: 0 0 10px var(--pink); }

.foot-links { list-style: none; margin: 0; padding: 0; }

address {
  font-style: normal;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 0, 110, 0.42);
  color: var(--dim);
  line-height: 1.8;
}

.addr-brand { color: #fff; letter-spacing: 0.06em; }
.addr-host { font-size: 14px; overflow-wrap: anywhere; }

.copy {
  max-width: 1220px;
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 0, 110, 0.2);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #8d86b6;
  overflow-wrap: break-word;
}

.to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(19, 16, 34, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.34);
}

.to-top:hover { color: #fff; border-color: var(--pink); }

/* 滚动显现 */
.reveal-in { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

@media (max-width: 1000px) {
  .zone {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 42px;
  }
  .rail { position: static; }
  .rail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .rail-list li { flex: 0 0 auto; }
  .rail-list a {
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    white-space: nowrap;
  }
  .rail-list a:hover { border-left-color: var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .prose > article[id] { scroll-margin-top: 176px; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  .masthead-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 8px 8px;
  }
  .brand { order: -1; flex-basis: 100%; justify-content: center; padding: 7px 14px; }
  .nav-wing { justify-content: center; flex: 1 1 0; min-width: 0; gap: 2px; }
  .nav-wing a { font-size: 14px; padding: 0 6px; letter-spacing: 0; }
  .hero { min-height: 88vh; padding: 92px var(--pad) 54px; }
  .hero-figure { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-text { max-width: 100%; }
  .zone { padding-top: 34px; padding-bottom: 62px; }
  .prose > article + article { margin-top: 40px; padding-top: 38px; }
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .giant { font-size: 2rem; }
  .copy { text-align: center; }
  .to-top { right: 12px; bottom: 12px; }
  .jump dl { left: 10px; max-width: calc(100vw - 32px); }
}

@media (max-width: 420px) {
  .nav-wing a { padding: 0 4px; font-size: 13.5px; }
  .hero-badge { font-size: 11px; letter-spacing: 0.2em; padding: 5px 11px; }
  .prose th, .prose td { padding: 6px 7px; font-size: 14px; }
}

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

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