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

:root {
  --red: #ff0000;
  --rose: #ff006e;
  --ink: #1a1a2e;
  --bg: #0b0b16;
  --card: #14142a;
  --line: rgba(255, 0, 110, 0.35);
  --txt: #ece8f7;
  --dim: #a9a0c2;
  --glow: 0 0 12px rgba(255, 0, 110, 0.55);
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--txt);
  background:
    radial-gradient(1000px 620px at 12% -12%, rgba(255, 0, 110, 0.20), transparent 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(255, 0, 0, 0.14), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 94;
  pointer-events: none;
  background: radial-gradient(130% 92% at 50% 48%, transparent 56%, rgba(0, 0, 0, 0.55) 100%);
}

::selection {
  background: var(--rose);
  color: #12000a;
}

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

img { max-width: 100%; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 11, 22, 0.96), rgba(11, 11, 22, 0.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 14px;
}

.brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
}

.brand img { display: block; width: 26px; height: 26px; }

.bname {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.75);
}

.mark-dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--rose);
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  transform: rotate(45deg);
}

.mark-dot.big { width: 22px; height: 22px; }

/* ---------- 菜单 ---------- */
.menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 0, 110, 0.07);
  color: var(--txt);
  font-size: 13px;
  letter-spacing: 0.18em;
  user-select: none;
}

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

.menu > summary:hover,
.menu > summary:focus-visible {
  border-color: var(--rose);
  color: #fff;
}

.menu[open] > summary {
  background: var(--rose);
  border-color: var(--rose);
  color: #14000a;
}

.bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rose);
  box-shadow: 0 6px 0 var(--rose), 0 -6px 0 var(--rose);
}

.menu[open] .bars {
  background: #14000a;
  box-shadow: 0 6px 0 #14000a, 0 -6px 0 #14000a;
}

.panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 96px 22px 44px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: rgba(7, 7, 16, 0.975);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.menu-r .panel { align-items: flex-end; text-align: right; }

.panel li { width: 100%; }

.panel a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 0, 110, 0.22);
  text-decoration: none;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-r .panel a { justify-content: flex-end; }

.panel a:hover,
.panel a:focus-visible {
  color: var(--rose);
  text-shadow: var(--glow);
}

.meter {
  height: 2px;
  background: rgba(255, 0, 110, 0.14);
}

.meter i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--rose));
  box-shadow: 0 0 10px var(--rose);
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  min-height: 45vh;
  margin: 0 auto;
  padding: 28px 16px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #1c1130, #2b0a1f);
  box-shadow: inset 0 0 40px rgba(255, 0, 110, 0.18);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  filter: saturate(1.1) contrast(1.05);
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 0, 110, 0.22) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 0, 0, 0.16) 0 2px, transparent 2px 18px);
}

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: rgba(9, 9, 18, 0.82);
  color: var(--rose);
  font-size: 12px;
  letter-spacing: 0.2em;
  animation: badge-pulse 4s ease-in-out infinite;
}

.hero-copy { text-align: right; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(27px, 4.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #fff;
  animation: glitch-shadow 7s steps(1) infinite;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.66;
  color: var(--dim);
}

/* ---------- 主体骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 72px;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 20, 42, 0.62);
}

.rail h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--rose);
}

.rail-mark {
  margin-bottom: 12px;
  min-height: 24px;
}

.rail-brand {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.rail-kw {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--dim);
  word-break: break-word;
}

.stream { min-width: 0; }

/* ---------- 正文 ---------- */
.content {
  overflow-wrap: break-word;
}

.content > article {
  padding: 26px 0 34px;
  border-top: 1px dashed rgba(255, 0, 110, 0.3);
  scroll-margin-top: 96px;
}

.content > article:first-child {
  border-top: 0;
  padding-top: 4px;
}

.content h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.3;
  color: #fff;
}

.content h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.content h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), transparent);
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.7);
}

.content h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  color: #ffd6e6;
}

.content p {
  margin: 0 0 15px;
  max-width: 68ch;
}

.content a {
  color: var(--rose);
  text-underline-offset: 3px;
}

.content strong { color: #fff; }

.content ul,
.content ol {
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 68ch;
}

.content li { margin: 0 0 8px; }

.content blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--rose);
  background: rgba(255, 0, 110, 0.08);
  color: var(--dim);
}

.content table {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.content th,
.content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

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

.content time {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--rose);
}

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

/* ---------- 页脚 ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  border-top: 1px solid var(--line);
}

footer article {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

footer h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--rose);
}

footer h2 > span { display: inline-block; }

footer p {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
}

/* ---------- 动效 ---------- */
@keyframes glitch-shadow {
  0%, 91%, 100% { text-shadow: 0 0 20px rgba(255, 0, 110, 0.45); }
  92% { text-shadow: -2px 0 0 var(--red), 2px 0 0 var(--rose), 0 0 22px rgba(255, 0, 110, 0.85); }
  94% { text-shadow: 2px -1px 0 var(--red), -2px 1px 0 var(--rose); transform: skewX(-0.6deg); }
  96% { text-shadow: -1px 1px 0 var(--red), 1px -1px 0 var(--rose); transform: skewX(0.5deg); }
  98% { text-shadow: 0 0 20px rgba(255, 0, 110, 0.45); transform: none; }
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 0, 110, 0); }
  50% { box-shadow: 0 0 14px rgba(255, 0, 110, 0.65); }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 56px;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark head"
      "mark kw";
    align-items: center;
    gap: 2px 14px;
  }

  .rail h2 { grid-area: head; margin: 0; }
  .rail-mark { grid-area: mark; margin: 0; }
  .rail-brand { display: none; }
  .rail-kw { grid-area: kw; font-size: 12px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 18px 16px 8px;
  }

  .hero-media {
    aspect-ratio: auto;
    height: 148px;
  }

  .hero-copy { text-align: left; }
  .lede { margin: 0; }

  .content > article { scroll-margin-top: 88px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .lbl { display: none; }
  .menu > summary { padding: 8px 12px; }
  .panel a { font-size: 18px; }
  .content th,
  .content td { white-space: normal; }
}

@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}
