@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');

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --deep: #170e0e;
  --paper: #fbeeee;
  --muted: #cbb0b6;
  --line: rgba(255, 20, 147, .24);
  --sans: 'Exo', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .005em;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 12%, rgba(255, 0, 0, .55), transparent 70%),
    radial-gradient(42% 38% at 82% 22%, rgba(255, 20, 147, .5), transparent 72%),
    radial-gradient(52% 44% at 50% 88%, rgba(255, 0, 0, .26), transparent 70%),
    conic-gradient(from 120deg at 60% 40%, rgba(255, 20, 147, .22), rgba(255, 0, 0, .16), rgba(255, 20, 147, .22));
  filter: blur(70px) saturate(1.25);
  opacity: .5;
  mix-blend-mode: screen;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(5%, 4%, 0) rotate(11deg) scale(1.14); }
  100% { transform: translate3d(-4%, 6%, 0) rotate(-8deg) scale(1.1); }
}

@keyframes glyph-drift {
  from { transform: rotate(0deg); }
  to   { transform: rotate(300deg); }
}

a { color: #ffbfd6; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 骨架 */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
}

/* 侧栏 / 导航 */
.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(30, 18, 18, .72);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding-right: 8px;
  color: var(--paper);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: #1a0f0f;
  background: conic-gradient(from 200deg, #ff0000, #ff1493 45%, #ff0000);
  box-shadow: 0 0 20px rgba(255, 0, 0, .45);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
}

.rail-contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  background: linear-gradient(120deg, rgba(255, 0, 0, .18), rgba(255, 20, 147, .18));
}
.rail-contact span[aria-hidden] { color: var(--pink); }

.rail-nav {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.rail-nav ul {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rail-nav li { flex: 0 0 auto; }

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  background: rgba(255, 20, 147, .07);
}

.rail-nav a::before {
  content: attr(data-i);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--pink);
  opacity: .85;
}

.rail-nav a:hover,
.rail-nav a[aria-current] {
  background: rgba(255, 0, 0, .16);
  border-color: var(--line);
  color: #fff;
}

/* 主区 */
main {
  min-width: 0;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 18px 26px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  top: -50%;
  height: 210%;
  z-index: -1;
  background: conic-gradient(from 0deg at 50% 50%, rgba(255, 0, 0, .38), rgba(255, 20, 147, .34), rgba(255, 0, 0, .1), rgba(255, 20, 147, .38));
  filter: blur(66px) saturate(1.3);
  opacity: .55;
  animation: aurora 12s ease-in-out infinite alternate;
}

.hero-glyph {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  will-change: transform;
  animation: glyph-drift 24s linear infinite;
}

.hero h1 {
  margin: 0;
  width: 100%;
  max-width: 24ch;
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.005em;
  text-shadow: 0 0 34px rgba(255, 0, 0, .35);
  overflow-wrap: anywhere;
}

.lead {
  margin: 0;
  width: 100%;
  max-width: 48ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 14px 54px;
}

.entry {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 20, 147, .16);
  border-radius: 4px;
  background: rgba(30, 18, 18, .6);
  box-shadow: 0 26px 60px -32px rgba(0, 0, 0, .95);
  backdrop-filter: blur(6px);
}

/* 正文 */
.prose {
  min-width: 0;
  max-width: 100%;
  font-size: 17px;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

.prose div {
  min-width: 0;
  scroll-margin-top: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 20, 147, .14);
}
.prose div:first-of-type { border-top: 0; padding-top: 4px; }

.prose h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 600;
  line-height: 1.32;
  color: #fff;
  overflow-wrap: anywhere;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffd9e6;
  overflow-wrap: anywhere;
}

.prose hr {
  width: 78px;
  max-width: 100%;
  height: 2px;
  margin: 0 0 16px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--pink) 55%, transparent);
}

.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

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

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

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--pink);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 20, 147, .08);
  color: #f4dde4;
}

.prose code {
  font-family: var(--mono);
  font-size: 15px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre {
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .38);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.prose pre code { padding: 0; background: transparent; white-space: pre; overflow-wrap: normal; word-break: normal; }

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.prose th, .prose td {
  padding: 9px 10px;
  border: 1px solid rgba(255, 20, 147, .2);
  text-align: left;
  overflow-wrap: anywhere;
}
.prose th { background: rgba(255, 0, 0, .12); }

.prose img,
.prose iframe,
.prose video,
.prose svg {
  max-width: 100%;
  height: auto;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: 8px;
  padding: 30px 16px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 20, 147, .1), rgba(23, 14, 14, .92) 55%);
}

.f-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
@media (min-width: 720px) {
  .f-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

.f-brand {
  min-width: 0;
}

.f-brand h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.f-brand hr {
  width: 64px;
  max-width: 100%;
  height: 2px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.f-brand address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.f-brand address .f-host {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .02em;
  color: #a98f95;
  overflow-wrap: anywhere;
}

.f-links {
  min-width: 0;
}

.f-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
@media (min-width: 420px) {
  .f-links ul { columns: 2; column-gap: 18px; }
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
}
.f-links a:hover { color: #fff; text-decoration: underline; }

.sub {
  max-width: 1000px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
}

.sub input {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(23, 14, 14, .8);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}
.sub input::placeholder { color: #a98f95; }

.sub button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 0, 0, .3);
}
.sub button:hover { filter: saturate(1.3) brightness(1.08); }

.copy {
  max-width: 1000px;
  margin: 20px auto 0;
  font-size: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* 桌面：侧栏在左 */
@media (min-width: 900px) {
  .shell {
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    padding: 24px 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 20, 147, .12), rgba(30, 18, 18, .62) 42%, rgba(23, 14, 14, .85));
  }

  .rail-contact { order: 3; margin-left: 0; align-self: flex-start; }

  .rail-nav { order: 0; flex: 1 1 auto; }
  .rail-nav ul { flex-direction: column; gap: 2px; overflow: visible; padding: 0; }
  .rail-nav a {
    background: transparent;
    padding: 10px 9px;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
  }
  .rail-nav a:hover,
  .rail-nav a[aria-current] {
    background: linear-gradient(90deg, rgba(255, 0, 0, .22), transparent);
    border-color: transparent;
    border-left-color: var(--pink);
  }

  .hero { min-height: 45vh; padding: 40px 30px 34px; }
  .wrap { padding: 38px 36px 76px; }
  .entry { padding: 30px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body::before, .hero::after, .hero-glyph { animation: none; }
  html { scroll-behavior: auto; }
}
</details>

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