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

:root {
  --ink: #261717;
  --deep: #120909;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f8eded;
  --muted: #d5bcbf;
  --line: rgba(255, 20, 147, .24);
  --card-a: rgba(86, 44, 48, .58);
  --card-b: rgba(32, 18, 19, .9);
  --r: 28px;
  --serif: "Playfair Display SC", Georgia, "Songti SC", serif;
  --sans: Karla, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  padding-bottom: 108px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--paper);
  background:
    radial-gradient(120% 90% at 82% -12%, #3d1c22 0%, #1b0f10 46%, #0f0808 100%) fixed;
  overflow-x: hidden;
}

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

a { color: #ffc2d9; text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.22; letter-spacing: .012em; margin: 0; }

p { margin: 0 0 1em; }

/* ---------- 极光层 ---------- */
.aurora {
  position: fixed;
  inset: -20vh -15vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: saturate(1.3);
}
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: .5;
  filter: blur(70px);
  will-change: transform;
}
.aurora i:nth-child(1) {
  width: 72vw; height: 72vw; left: -14vw; top: -14vh;
  background: radial-gradient(circle, #ff1493 0%, rgba(255, 20, 147, 0) 68%);
  animation: drift-a 11s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 62vw; height: 62vw; right: -16vw; top: 24vh;
  background: radial-gradient(circle, #ff0000 0%, rgba(255, 0, 0, 0) 70%);
  animation: drift-b 9s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 68vw; height: 68vw; left: 22vw; bottom: -20vh;
  background: radial-gradient(circle, #ff6a8a 0%, rgba(255, 106, 138, 0) 70%);
  animation: drift-c 12s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.16); } }
@keyframes drift-b { to { transform: translate3d(-9vw, -7vh, 0) scale(1.22); } }
@keyframes drift-c { to { transform: translate3d(6vw, -9vh, 0) scale(1.1); } }

/* ---------- 顶部图标 ---------- */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 14px 18px 4px;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 11, 11, .55);
  box-shadow: 0 8px 22px -12px rgba(255, 20, 147, .9);
  overflow: hidden;
}
.mark-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark-fallback {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 0 16px rgba(255, 20, 147, .8);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 26px 18px 54px;
  overflow: hidden;
}
.hero-inner { max-width: 860px; margin: 0 auto; width: 100%; min-width: 0; }
.hero-badge { display: block; margin-bottom: 16px; line-height: 0; }
.hero h1 {
  font-size: clamp(30px, 7.2vw, 62px);
  margin-bottom: 14px;
  background: linear-gradient(104deg, #ffffff 8%, #ffd4e6 48%, #ff8ec2 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero-lead {
  max-width: 62ch;
  color: var(--muted);
  font-weight: 300;
  font-size: 17px;
  margin: 0;
  overflow-wrap: break-word;
}
.hero-band {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 22px;
  height: 5px;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0), var(--red) 22%, var(--pink) 72%, rgba(255, 20, 147, 0));
  transform: skewY(-1.6deg);
  opacity: .85;
  border-radius: 4px;
}

/* ---------- 主区骨架 ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 16px 0;
}

.rail {
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(170deg, rgba(70, 36, 40, .62), rgba(28, 16, 17, .88));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, .95);
}
.rail h2 { font-size: 20px; letter-spacing: .04em; }
.rail .subtitle {
  margin: 6px 0 14px;
  font-size: 15px;
  letter-spacing: .13em;
  color: #ff9cc6;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.rail-nav { min-width: 0; max-width: 100%; }
.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rail-nav li { min-width: 0; max-width: 100%; }
.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 15px;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
}
.rail-nav a:hover { color: #fff; border-color: var(--line); background: rgba(255, 20, 147, .14); }

.doc { min-width: 0; max-width: 100%; }

.doc > article {
  background: linear-gradient(165deg, var(--card-a), var(--card-b));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r);
  padding: clamp(20px, 3.6vw, 36px);
  margin: 0 0 24px;
  box-shadow: 0 30px 60px -42px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .055);
  scroll-margin-block: 24px 120px;
  overflow-wrap: break-word;
}

.doc h2 { font-size: clamp(23px, 4vw, 33px); margin: 0 0 12px; }
.doc h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}
.doc h3 { font-size: clamp(19px, 3vw, 23px); margin: 26px 0 10px; }
.doc h2 + p,
.doc h2 + p.subtitle {
  color: #ffc2d9;
  font-size: 17px;
  letter-spacing: .01em;
}
.doc p { color: #f0dfe0; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.25em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--pink); }
.doc strong { color: #fff; font-weight: 600; }
.doc blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 20, 147, .09);
  color: var(--muted);
}
.doc img { display: block; max-width: 100%; border-radius: 18px; margin: 20px 0; }
.doc table { width: 100%; max-width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 20px 0; font-size: 16px; }
.doc th, .doc td { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 10px 12px; text-align: left; }
.doc th { color: #ffb3d2; font-weight: 600; }
.doc pre { max-width: 100%; overflow-x: auto; }
.doc > article > :last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  padding: 34px 18px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 17, 18, .5), rgba(9, 5, 5, .94));
}
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; }
.foot-col { min-width: 0; max-width: 100%; }
address {
  font-style: normal;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.foot-brand { font-family: var(--serif); font-size: 22px; letter-spacing: .05em; color: #fff; }
.foot-host { font-size: 15px; color: var(--muted); word-break: break-all; }
.foot-kw { margin: 12px 0 0; font-size: 15px; color: #ff9cc6; letter-spacing: .08em; overflow-wrap: break-word; }

.sub { margin: 0 0 18px; max-width: 100%; }
.sub-label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; letter-spacing: .08em; }
.sub-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sub input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
}
.sub input::placeholder { color: #a98f92; }
.sub button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  cursor: pointer;
}

.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.foot-list a,
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  font-size: 16px;
  color: var(--paper);
}
.foot-list a:hover,
.foot-nav a:hover { color: #ff9cc6; }

.foot-nav { min-width: 0; max-width: 100%; }
.foot-nav dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  margin: 0;
  min-width: 0;
}
.foot-nav dt { font-size: 15px; letter-spacing: .1em; color: #ab9093; }
.foot-nav dd { margin: 0; min-width: 0; }

.foot-bar {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.foot-bar p { margin: 0; font-size: 15px; color: #a78d90; letter-spacing: .1em; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 100vw;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(18, 9, 9, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.dock ul {
  display: flex;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock ul::-webkit-scrollbar { display: none; }
.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  white-space: nowrap;
  font-size: 16px;
  color: var(--paper);
  border-radius: 999px;
}
.dock a:hover { background: rgba(255, 20, 147, .16); color: #fff; }
.dock a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(115deg, var(--red), var(--pink));
  box-shadow: 0 8px 20px -12px rgba(255, 20, 147, .95);
}

/* ---------- 滚动显现 ---------- */
html.js .doc > article {
  opacity: 0;
  transform: translateY(18px);
}
html.js .doc > article.in {
  opacity: 1;
  transform: none;
  transition: opacity .68s ease, transform .78s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 断点 ---------- */
@media (min-width: 480px) {
  .sub-row { flex-wrap: nowrap; }
}

@media (min-width: 640px) {
  .hero { padding: 40px 24px 72px; }
  .stage { padding-inline: 24px; }
  .hero-band { bottom: 30px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .stage {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 18px 24px 0;
  }
  .rail { position: sticky; top: 18px; }
  .rail-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; overflow: visible; }
  .rail-nav a {
    width: 100%;
    border-radius: 12px;
    border-color: transparent;
    background: transparent;
    padding: 0 10px;
  }
  .topbar { padding: 20px 26px 0; }
  .foot-top { grid-template-columns: 1.15fr 1fr 1fr; gap: 38px; }
  .dock ul { justify-content: center; overflow: visible; }
}

@media (min-width: 1180px) {
  .hero { padding-inline: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  html.js .doc > article { opacity: 1; transform: none; transition: none; }
}

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