:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --deep: #170e0f;
  --line: rgba(255, 255, 255, 0.13);
  --txt: #f8eef1;
  --muted: rgba(255, 255, 255, 0.66);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 6% 0%, rgba(255, 0, 0, 0.3), transparent 58%),
    radial-gradient(110% 80% at 94% 4%, rgba(255, 20, 147, 0.28), transparent 60%),
    linear-gradient(180deg, #1e1213 0%, #170e0f 45%, #110a0b 100%);
  background-attachment: fixed;
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(255, 0, 0, 0.52), transparent 62%),
    radial-gradient(42% 38% at 78% 22%, rgba(255, 20, 147, 0.48), transparent 64%),
    radial-gradient(46% 44% at 66% 82%, rgba(255, 0, 0, 0.3), transparent 66%),
    radial-gradient(36% 40% at 14% 74%, rgba(255, 20, 147, 0.34), transparent 60%);
  background-size: 200% 200%;
  filter: blur(48px) saturate(1.25);
  opacity: 0.9;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, 1%, 0) scale(1);
    background-position: 0% 50%;
  }
  100% {
    transform: translate3d(3%, -3%, 0) scale(1.12);
    background-position: 100% 50%;
  }
}

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

a {
  color: #ff9dc1;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* 顶部细条 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 18px;
  background: linear-gradient(96deg, var(--red), var(--pink) 62%, #ff5ab0);
  background-size: 200% 100%;
  animation: sweep 9s ease-in-out infinite alternate;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}

.topbar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@keyframes sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 页头：品牌行 + 菜单行 */
.masthead {
  position: relative;
  z-index: 20;
  background: rgba(23, 14, 15, 0.74);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  padding: 14px clamp(16px, 4vw, 52px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: conic-gradient(from 210deg, var(--red), var(--pink), var(--ink), var(--red));
  box-shadow: 0 0 18px rgba(255, 20, 147, 0.5);
}

.menu {
  padding: 4px clamp(16px, 4vw, 52px) 12px;
}

.menu ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-block;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease,
    box-shadow 0.3s ease, transform 0.22s ease;
}

.menu a:hover,
.menu a.is-active {
  color: #fff;
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 20, 147, 0.55);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.28);
  transform: translateY(-1px);
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 5vw, 60px) clamp(18px, 5vw, 76px) clamp(48px, 7vw, 84px);
}

.hero-media {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-figure {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  max-height: 64vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-figure--blank {
  background: conic-gradient(from 160deg at 50% 50%, #ff0000, #ff1493, #261717, #ff5b8f, #ff0000);
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 10s ease-in-out infinite alternate;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(118deg, #ffffff 8%, #ffd8e8 46%, #ff1493 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(112deg, var(--red), var(--pink));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 36px rgba(255, 0, 0, 0.34);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.hero-cue:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(255, 20, 147, 0.45);
}

.hero-slash {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.75), transparent);
  transform: rotate(-2.5deg);
  pointer-events: none;
}

/* 正文区 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 40px) 0;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.doc-head {
  margin-bottom: 4px;
}

.doc-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.subtitle {
  margin: 0 0 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}

.doc > article {
  padding: clamp(26px, 3.4vw, 46px) 0;
  scroll-margin-top: 150px;
}

.doc > article + article {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(1.32rem, 2.1vw, 1.7rem);
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 1.5em 0 0.55em;
  font-size: 19px;
  line-height: 1.45;
  color: #fff;
}

.doc p {
  margin: 0 0 1.05em;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.84);
}

.doc ul,
.doc ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.84);
}

.doc li {
  margin: 0.4em 0;
}

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

.doc blockquote {
  margin: 1.3em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 20, 147, 0.11);
}

.doc blockquote p {
  margin-bottom: 0;
}

.doc blockquote p + p {
  margin-top: 0.85em;
}

.doc img {
  border-radius: var(--radius);
  margin: 0.6em 0;
}

.doc a:hover {
  color: #ffd0e2;
}

/* 侧栏 */
.side {
  position: sticky;
  top: 150px;
  padding: 20px 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: sticky;
}

.side::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.side-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.side ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.13);
}

.side a {
  display: block;
  min-height: 42px;
  padding: 11px 2px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease, padding-left 0.22s ease;
}

.side a:hover {
  color: #fff;
  padding-left: 8px;
}

/* 页脚 */
.foot {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 48px) 24px;
  border-top: 1px solid var(--line);
  background: rgba(17, 10, 11, 0.72);
}

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

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
}

.foot dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.foot a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.foot a:hover {
  color: #fff;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
}

.foot-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 30;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(38, 23, 23, 0.92);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, background-color 0.2s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: linear-gradient(112deg, var(--red), var(--pink));
  border-color: transparent;
}

@media (min-width: 861px) {
  .masthead {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 1024px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    top: auto;
    margin-top: 8px;
  }

  .doc > article {
    scroll-margin-top: 24px;
  }
}

@media (max-width: 860px) {
  .menu ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .menu ol::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 26px;
    gap: 26px;
  }

  .hero-copy {
    order: -1;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
  }

  .hero-figure {
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  .hero-slash {
    display: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .foot-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .topbar {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .topbar,
  .hero-figure--blank {
    animation: none;
  }

  .hero-cue,
  .menu a,
  .side a,
  .to-top {
    transition: none;
  }
}

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