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

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

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --bg: #140c0e;
  --fg: #f9f1f3;
  --dim: #cbb2b8;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.06);
  --r: 28px;
  --wrap: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background:
    radial-gradient(900px 700px at 10% -8%, rgba(255, 0, 0, 0.32), transparent 62%),
    radial-gradient(820px 640px at 92% 4%, rgba(255, 20, 147, 0.3), transparent 64%),
    radial-gradient(1100px 820px at 50% 112%, rgba(255, 20, 147, 0.16), transparent 62%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: -28%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(70px) saturate(1.25);
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(255, 0, 0, 0.24),
    rgba(255, 20, 147, 0.22),
    rgba(120, 26, 64, 0.18),
    rgba(255, 74, 96, 0.2),
    rgba(255, 0, 0, 0.24));
  animation: drift 13s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) rotate(15deg) scale(1.12); }
}

img {
  max-width: 100%;
}

a {
  color: #ff8fbb;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 20, 147, 0.5);
  color: #fff;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  background: rgba(24, 12, 15, 0.6);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-list {
  flex: 1;
  margin: 0;
  padding: 5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.62rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: #f2e3e7;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.nav-list a:hover {
  color: #fff;
  background: rgba(255, 20, 147, 0.24);
  box-shadow: 0 0 22px rgba(255, 20, 147, 0.35) inset;
}

.brand {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.brand a {
  gap: 0.45rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: none;
}

.brand a:hover {
  background: none;
  box-shadow: none;
}

.mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.85);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(115deg, var(--red), var(--pink));
  box-shadow: 0 6px 24px rgba(255, 20, 147, 0.4);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.55);
}

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(2rem, 8vh, 4.5rem) 1.25rem clamp(3.5rem, 9vh, 6rem);
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 clamp(2.5rem, 8vw, 6rem) clamp(2.5rem, 8vw, 6rem);
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: float 11s ease-in-out infinite alternate;
}

.b1 {
  width: 54vw;
  height: 54vw;
  left: -10vw;
  top: -14vw;
  background: radial-gradient(circle at 40% 40%, #ff0000, rgba(255, 0, 0, 0) 68%);
}

.b2 {
  width: 48vw;
  height: 48vw;
  right: -12vw;
  top: -8vw;
  animation-duration: 14s;
  background: radial-gradient(circle at 50% 50%, #ff1493, rgba(255, 20, 147, 0) 70%);
}

.b3 {
  width: 62vw;
  height: 62vw;
  left: 18vw;
  bottom: -32vw;
  animation-duration: 9s;
  background: radial-gradient(circle at 50% 50%, rgba(255, 96, 140, 0.9), rgba(255, 0, 0, 0) 72%);
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vh, 0) scale(1.16); }
}

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

.hero-in {
  position: relative;
  max-width: 780px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 6px 40px rgba(255, 20, 147, 0.45);
}

.lead {
  margin: 1rem auto 0;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 240, 244, 0.86);
}

.chips {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.24s ease, background 0.24s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 20, 147, 0.32);
}

/* 主体 */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.doc {
  min-width: 0;
}

div {
  font-size: 17px;
  line-height: 1.8;
  color: #efe2e6;
}

div > *:first-child {
  margin-top: 0;
}

div article {
  scroll-margin-top: 108px;
}

div article + article {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

div h2 {
  margin: 0 0 0.9rem;
  padding-left: 0.85rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  border-left: 3px solid var(--pink);
}

div h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #ffe1ea;
}

div p {
  margin: 0 0 1.05rem;
}

div ul,
div ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

div li {
  margin-bottom: 0.4rem;
}

div img {
  display: block;
  width: auto;
  height: auto;
  margin: 1.4rem 0;
  border-radius: 20px;
  border: 1px solid var(--line);
}

div blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 20px;
  border-left: 3px solid var(--red);
  background: var(--glass);
  color: #f3e2e7;
}

div strong {
  color: #fff;
}

div hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, var(--red), var(--pink), transparent);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 88px;
  padding: 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.kicker {
  display: block;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 190, 210, 0.85);
}

.rail-title {
  margin: 0.15rem 0 0.85rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.rail-title a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 20, 147, 0.6);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.6rem;
  border-radius: 14px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.rail-list a:hover {
  padding-left: 0.95rem;
  color: #fff;
  background: rgba(255, 20, 147, 0.18);
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 1.4rem;
  border-top: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  background: rgba(22, 11, 14, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.foot-in {
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.foot-brand .mark {
  width: 18px;
  height: 18px;
}

.foot-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}

.foot-lbl {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(255, 190, 210, 0.85);
}

.foot-field {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.foot-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: transparent;
}

.foot-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.foot-field button {
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(115deg, var(--red), var(--pink));
  transition: box-shadow 0.24s ease;
}

.foot-field button:hover {
  box-shadow: 0 0 26px rgba(255, 20, 147, 0.6);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.6rem;
}

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(255, 190, 210, 0.8);
}

.foot-cols dd {
  margin: 0.35rem 0 0;
  font-size: 16px;
  color: var(--dim);
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.22s ease;
}

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

.copy {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.52);
}

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .doc article {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .doc article.in {
    opacity: 1;
    transform: none;
  }
}

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

  .blob,
  body::after {
    animation: none;
  }
}

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

  .rail {
    position: static;
    order: -1;
  }

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

@media (max-width: 760px) {
  .topbar {
    position: relative;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-list {
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
  }

  .brand {
    flex: 1 0 100%;
    order: -1;
    justify-content: center;
  }

  .cta {
    flex: 1 0 100%;
    justify-content: center;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 420px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

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