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

:root {
  --ink: #1a1a2e;
  --deep: #0c0c16;
  --red: #ff0000;
  --pink: #ff006e;
  --cyan: #00e0ff;
  --text: #eaeaf8;
  --dim: #a9a9c6;
  --glass: rgba(30, 30, 58, 0.58);
  --line: rgba(255, 0, 110, 0.28);
  --r: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background-color: var(--deep);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, rgba(255, 0, 110, 0.2), transparent 62%),
    radial-gradient(900px 520px at 96% 2%, rgba(255, 0, 0, 0.15), transparent 58%),
    linear-gradient(180deg, #0b0b14, #151526 42%, #0b0b14);
  background-attachment: fixed;
  font-family: 'Exo 2', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

h1, h2, h3, .wordmark, .cta {
  font-family: 'Orbitron', 'Exo 2', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.01em;
}

a { color: var(--cyan); }

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(12px, 3vw, 26px);
  background: rgba(12, 12, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 8px;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
}

.logo:hover .wordmark { text-shadow: 0 0 12px var(--pink), 0 0 26px var(--red); }

.wordmark {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.7);
}

.glyph {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.85);
  flex: none;
}

.mark { width: 40px; height: 40px; border-radius: 10px; display: block; }

.nav { min-width: 0; }

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.dropbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.menu a:hover,
.dropbtn:hover,
.drop:focus-within > .dropbtn {
  color: #fff;
  background: rgba(255, 0, 110, 0.16);
  border-color: var(--line);
  text-shadow: 0 0 10px var(--pink);
}

.drop { position: relative; }

.sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(20, 20, 40, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -22px rgba(255, 0, 110, 0.8);
}

.drop:hover > .sub,
.drop:focus-within > .sub { display: flex; }

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #12000a;
  text-decoration: none;
  background: linear-gradient(100deg, var(--red), var(--pink));
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.6);
}

.cta:hover { box-shadow: 0 0 26px rgba(255, 0, 110, 0.95), 0 0 46px rgba(255, 0, 0, 0.5); }

/* 版心 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(12px, 3vw, 26px) 64px;
}

.doc { min-width: 0; }

.doc > div {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 3.2vw, 34px);
  margin-bottom: 20px;
  scroll-margin-top: 96px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 44px -30px rgba(255, 0, 110, 0.9);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.doc > div:nth-child(2) { animation-delay: 0.06s; }
.doc > div:nth-child(3) { animation-delay: 0.1s; }
.doc > div:nth-child(4) { animation-delay: 0.14s; }
.doc > div:nth-child(5) { animation-delay: 0.18s; }
.doc > div:nth-child(n+6) { animation-delay: 0.22s; }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: center;
  min-height: 45vh;
}

.hero-copy { text-align: center; }
.hero-copy:only-child { grid-column: 1 / -1; }

h1 {
  margin: 0;
  font-size: clamp(27px, 4.6vw, 48px);
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.9), 0 0 34px rgba(255, 0, 0, 0.55);
  animation: flicker 7s steps(1) infinite;
}

.lede {
  margin: 14px auto 0;
  max-width: 34em;
  color: var(--dim);
  font-size: 17px;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  filter: saturate(1.15) contrast(1.04);
  box-shadow: 0 0 26px -8px rgba(255, 0, 110, 0.7);
}

/* 正文排版 */
.doc small,
.rail small {
  display: inline-block;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.55);
}

.doc h2 {
  margin: 4px 0 12px;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

.doc h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
}

.doc p { margin: 0 0 14px; }
.doc p:last-child { margin-bottom: 0; }

.doc ul,
.doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--pink); }

.doc a { color: var(--cyan); text-underline-offset: 3px; }
.doc a:hover { color: #fff; text-shadow: 0 0 10px var(--cyan); }

.doc strong { color: #fff; text-shadow: 0 0 8px rgba(255, 0, 110, 0.6); }

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

.doc code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 16px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.doc figure { margin: 0 0 16px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.doc th { color: #fff; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.rail h2 {
  margin: 4px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 9px rgba(255, 0, 110, 0.6);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.toc a:hover {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 0, 110, 0.14);
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px clamp(12px, 3vw, 26px);
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 20, 0.92);
}

.f-nav dl { margin: 0; }
.f-nav dt, .f-nav dd { margin: 0; }

.f-nav dt a { font-weight: 700; color: #fff; }
.f-nav dd a { color: var(--dim); }

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 16px;
  text-decoration: none;
}

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

.f-copy p {
  margin: 0;
  padding-top: 6px;
  font-size: 16px;
  color: var(--dim);
}

.f-brand .logo { padding-left: 0; }

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes flicker {
  0%, 91%, 100% { opacity: 1; }
  92% { opacity: 0.68; }
  94% { opacity: 1; }
  96% { opacity: 0.82; }
  98% { opacity: 1; }
}

/* 断点 */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 18px; }
  .hero-img { order: -1; max-height: 230px; }
  .bar { flex-wrap: wrap; row-gap: 4px; }
  .cta { order: 2; margin-left: auto; }
  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { height: 0; }
  .menu { flex-wrap: nowrap; }
  .dropbtn { display: none; }
  .sub {
    position: static;
    display: flex;
    flex-direction: row;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .foot { grid-template-columns: 1fr 1fr; }
  .f-copy { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .foot { grid-template-columns: 1fr; }
  .f-copy { grid-column: auto; }
  .wordmark { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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