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

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

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --text: #f7eded;
  --muted: #c8afb4;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.045);
  --r: 28px;
  --wrap: 1140px;
  --head-h: 74px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(46% 38% at 12% 6%, rgba(255, 0, 0, 0.42), transparent 68%),
    radial-gradient(42% 40% at 88% 16%, rgba(255, 20, 147, 0.36), transparent 66%),
    radial-gradient(64% 48% at 50% 94%, rgba(255, 0, 72, 0.24), transparent 72%),
    conic-gradient(from 210deg at 62% 40%, rgba(255, 20, 147, 0.2), rgba(255, 0, 0, 0.15), rgba(255, 20, 147, 0.24));
  background-size: 200% 200%;
  background-attachment: fixed;
  overflow-x: hidden;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
  }
  100% {
    background-position: 26% 18%, 72% 26%, 42% 68%, 22% 34%;
  }
}

a {
  color: inherit;
}

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

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

/* ---------- 顶部导航 ---------- */

.site-head {
  position: relative;
  z-index: 20;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 11px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 20, 147, 0.16);
}

.nav-b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-b p {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.9);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(112deg, var(--red), var(--pink));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.25) brightness(1.08);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 52px 22px 64px;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.3) contrast(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(38, 23, 23, 0.55) 0%, rgba(38, 23, 23, 0.72) 55%, rgba(38, 23, 23, 0.96) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 45%, #000 10%, transparent 78%);
  mask-image: radial-gradient(72% 72% at 50% 45%, #000 10%, transparent 78%);
}

.hero-inner {
  position: relative;
  max-width: 860px;
}

.hero h1 {
  margin: 0;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  background: linear-gradient(104deg, #ffffff 8%, #ffd6e6 46%, var(--pink) 78%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 20, 147, 0.28);
}

.lead {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- 粘性锚点条 ---------- */

.dock {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(30, 17, 18, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.dock p {
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 8px 18px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock p::-webkit-scrollbar {
  display: none;
}

.dock a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.dock a:hover,
.dock a.on {
  color: #fff;
  border-color: rgba(255, 20, 147, 0.5);
  background: rgba(255, 20, 147, 0.2);
}

/* ---------- 主体 ---------- */

.page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px 22px 64px;
}

.sheet {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 0 34px;
  align-items: start;
}

.sheet > article {
  grid-column: 2;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  scroll-margin-top: 96px;
}

.sheet > article + article {
  margin-top: 24px;
}

.sheet h2 {
  margin: 0 0 0.55em;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.1vw, 2rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.sheet h2 > span {
  background: linear-gradient(100deg, #fff 10%, #ffd0e2 58%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sheet h3 {
  margin: 1.5em 0 0.45em;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #ffe4ef;
}

.sheet h3 > span {
  display: inline-block;
}

.sheet p {
  margin: 0 0 1em;
}

.sheet p:last-child {
  margin-bottom: 0;
}

.sheet a {
  color: #ffb3d4;
  text-underline-offset: 3px;
}

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

.sheet ul,
.sheet ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.sheet li {
  margin: 0 0 0.45em;
}

.sheet li::marker {
  color: var(--pink);
}

.sheet blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--pink);
  color: #ffe0ec;
}

.sheet img {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.sheet > article:first-of-type {
  border-color: rgba(255, 20, 147, 0.34);
}

/* ---------- 侧栏 ---------- */

.rail {
  grid-column: 1;
  grid-row: 1 / span 100;
  position: sticky;
  top: 92px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.035);
}

.rail-title {
  margin: 0 0 10px;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rail-title > span {
  color: #ffb3d4;
}

.rail-item {
  margin: 0;
}

.rail-item a,
.rail-top a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 6px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.rail-item a:hover,
.rail-top a:hover {
  color: #fff;
  padding-left: 12px;
}

.rail-top {
  margin: 14px 0 0;
}

.rail-top a {
  border-bottom: 0;
  color: #ff9ec9;
  letter-spacing: 0.04em;
}

/* ---------- 页脚 ---------- */

.site-foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 22px 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px 24px;
  font-size: 16px;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.foot-brand {
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}

.foot-key {
  font-size: 16px;
  letter-spacing: 0.22em;
  color: #ffb3d4;
}

.site-foot > small {
  grid-column: 1 / 3;
  margin-top: 26px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.foot-btm {
  grid-column: 3 / 5;
  margin-top: 26px;
  flex-direction: row !important;
  justify-content: flex-end;
  gap: 20px;
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.site-foot a,
.rail-item a,
.dock a {
  transition-duration: 0.22s;
}

/* ---------- 平板 ---------- */

@media (max-width: 980px) {
  .site-head {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px 10px;
  }

  .brand {
    order: -1;
    justify-content: center;
    min-height: 46px;
    font-size: 20px;
  }

  .nav p {
    justify-content: center;
  }

  .nav-b {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-b p {
    justify-content: center;
  }

  .cta {
    margin: 4px 0 0;
  }

  .hero {
    min-height: 64vh;
    padding: 40px 18px 52px;
  }

  .page {
    padding: 32px 18px 52px;
  }

  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail,
  .sheet > article {
    grid-column: 1;
  }

  .rail {
    grid-row: auto;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .rail-title {
    width: 100%;
    margin: 0 0 2px;
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .rail-item a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .rail-item a:hover {
    padding-left: 12px;
    background: rgba(255, 20, 147, 0.16);
  }

  .rail-top {
    display: none;
  }

  .site-foot {
    grid-template-columns: 1fr 1fr;
    padding: 40px 18px 34px;
  }

  .site-foot > small {
    grid-column: 1 / 2;
  }

  .foot-btm {
    grid-column: 2 / 3;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav a {
    padding: 10px 9px;
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.6rem);
  }

  .lead {
    font-size: 16px;
  }

  .dock p {
    padding: 7px 12px;
  }
}

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

  body {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}

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