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

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

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

body {
  margin: 0;
  font-family: Exo, -apple-system, "Segoe UI", system-ui, "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: #f7e9e9;
  background-color: #261717;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(44% 44% at 84% 10%, rgba(255, 20, 147, 0.5), transparent 64%),
    radial-gradient(50% 46% at 64% 90%, rgba(255, 20, 147, 0.3), transparent 66%),
    radial-gradient(34% 34% at 6% 92%, rgba(255, 74, 74, 0.26), transparent 62%);
  filter: blur(38px) saturate(1.22);
  animation: aurora 11s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1.04); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.17); }
}

a { color: #ff9dc0; }
a:hover { color: #ffd2e2; }

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

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* 顶栏 */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(30, 17, 17, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 20, 147, 0.3);
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 18px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #fff2f6;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 20, 147, 0.55);
}

.brand .logomark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 20, 147, 0.55);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.35), rgba(255, 20, 147, 0.35));
  font-size: 1rem;
}

.brandname {
  background: linear-gradient(92deg, #ffffff 20%, #ff9dc0 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ticker {
  margin: 0;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: #ffb0cd;
  text-align: right;
}

.menurow { padding: 0 18px 10px; }

.nav > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 20, 147, 0.55);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: #ffd8e7;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 20, 147, 0.08);
}
.nav > summary::-webkit-details-marker { display: none; }
.nav > summary::before {
  content: "";
  width: 15px;
  height: 2px;
  background: #ff1493;
  box-shadow: 0 4px 0 #ff0000, 0 -4px 0 #ff1493;
}

.nav menu {
  list-style: none;
  margin: 12px 0 2px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.04);
  color: #ffeaf2;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav menu a:hover,
.nav menu a:focus-visible {
  border-color: rgba(255, 20, 147, 0.8);
  background: rgba(255, 20, 147, 0.16);
}

/* 大图头图 */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  border-radius: 0 0 62px 62px;
  background: #2c1818;
  margin-bottom: 26px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -100px 0 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.15);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(38, 23, 23, 0.7), rgba(38, 23, 23, 0.35) 45%, rgba(38, 23, 23, 0.9)),
    radial-gradient(60% 80% at 10% 90%, rgba(255, 0, 0, 0.35), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  padding: clamp(26px, 5vw, 58px) clamp(18px, 5vw, 56px);
  text-align: left;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff6f9;
  text-shadow: 0 2px 22px rgba(255, 20, 147, 0.35);
}

.hero .lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #ffd9e6;
}

.beam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  z-index: 3;
  background: linear-gradient(90deg, #ff0000, #ff1493 55%, #ff0000);
  clip-path: polygon(0 0, 100% 52%, 100% 100%, 0 62%);
}

/* 主体骨架 */
main {
  position: relative;
  z-index: 1;
  padding: 0 18px 64px;
}

.wrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

aside.side {
  position: sticky;
  top: 138px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 20, 147, 0.34);
  border-radius: 28px;
  background: rgba(38, 23, 23, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

aside.side h2 {
  margin: 0 0 6px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #ffb3ce;
}

aside.side hr {
  border: 0;
  height: 2px;
  width: 100%;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #ff0000, #ff1493, transparent);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #ffdceb;
  text-decoration: none;
}
.side-list a:hover { color: #ffffff; }

/* 正文 */
.body { min-width: 0; }

section.prose {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(28, 16, 16, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

section.prose > article[id] { scroll-margin-top: 152px; }
section.prose > article + article {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 20, 147, 0.26);
}

section.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.3vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #fff4f8;
}

section.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #ffd8e8;
}

section.prose hr {
  border: 0;
  height: 3px;
  width: min(220px, 62%);
  margin: 16px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff0000, #ff1493, transparent);
}
section.prose h2 + hr,
section.prose h3 + hr { margin: 0 0 20px; }

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

section.prose ul,
section.prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
section.prose li { margin-bottom: 0.4em; }
section.prose li::marker { color: #ff1493; }

section.prose strong { color: #fff0f6; font-weight: 600; }

section.prose blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid #ff1493;
  border-radius: 0 20px 20px 0;
  background: rgba(255, 20, 147, 0.09);
  color: #ffdcea;
}

section.prose figure { margin: 22px 0; }
section.prose img {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
section.prose figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #e8bccb;
}

section.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
section.prose th,
section.prose td {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}
section.prose th {
  background: rgba(255, 20, 147, 0.12);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-weight: 500;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  padding: 44px 18px 30px;
  border-top: 1px solid rgba(255, 20, 147, 0.32);
  background: rgba(24, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.cols dl {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
}

.cols dt {
  margin-bottom: 8px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: #ffa9c9;
}

.cols dd {
  margin: 0;
  font-size: 0.95rem;
}
.cols dd + dd { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cols dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #ffe4ee;
  text-decoration: none;
}
.cols dd a:hover { color: #ffffff; }
.cols dd.host {
  color: #f0cfd9;
  word-break: break-all;
  line-height: 1.6;
}

.base {
  max-width: 1180px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #e7bdc9;
}
.base p { margin: 4px 0; }
.base .copy { letter-spacing: 0.1em; }
.base .host {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: #cb9fae;
  word-break: break-all;
}

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 20px; }
  aside.side { position: static; }
  .side-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-list li + li { border-top: 0; }
  .side-list a {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.9rem;
  }
  .hero { min-height: 46vh; border-radius: 0 0 44px 44px; }
  .cols { grid-template-columns: 1fr; }
  .ticker { font-size: 0.8rem; letter-spacing: 0.1em; }
  section.prose { padding: 20px 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brandline { flex-wrap: wrap; }
  .ticker { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { transform: none !important; }
}

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