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

:root {
  --mag: #ff0080;
  --vio: #ff00ff;
  --ink: #26171f;
  --deep: #140c11;
  --paper: #f7eef4;
  --dim: #d3bcca;
  --line: rgba(255, 255, 255, 0.16);
  --railw: 236px;
  --font: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --display: 'Calistoga', '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%;
}

body {
  margin: 0;
  padding-left: var(--railw);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: var(--deep);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(255, 0, 128, 0.55), transparent 62%),
    radial-gradient(34% 40% at 78% 12%, rgba(255, 0, 255, 0.42), transparent 64%),
    radial-gradient(46% 52% at 62% 82%, rgba(120, 40, 200, 0.42), transparent 68%),
    radial-gradient(30% 34% at 12% 88%, rgba(255, 0, 128, 0.3), transparent 70%);
  filter: blur(34px) hue-rotate(0deg);
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: drift 26s ease-in-out infinite alternate, shimmer 40s linear infinite;
}

@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.26); }
}

@keyframes shimmer {
  0% { filter: blur(34px) hue-rotate(0deg); }
  100% { filter: blur(34px) hue-rotate(58deg); }
}

a {
  color: #ff9ecb;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: #fff;
}

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

hr {
  border: 0;
  height: 2px;
  margin: 0 0 1.4rem;
  background: linear-gradient(90deg, var(--mag), rgba(255, 0, 255, 0.3) 58%, transparent);
}

:focus-visible {
  outline: 2px solid var(--vio);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--mag);
}

.skip:focus {
  top: 8px;
}

/* ---------- 左侧固定竖列 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: var(--railw);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 22px;
  border-right: 1px solid var(--line);
  background: rgba(18, 11, 16, 0.78);
  backdrop-filter: blur(12px);
}

.mark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 6px 10px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(140deg, var(--mag), var(--vio));
  border-bottom: 3px solid rgba(0, 0, 0, 0.4);
}

.railnav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.railnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 8px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
}

.railnav a:hover,
.railnav a[aria-current] {
  color: #fff;
  border-bottom-color: var(--mag);
  padding-left: 12px;
}

.cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, var(--mag), var(--vio));
  border-bottom: 3px solid rgba(0, 0, 0, 0.42);
  transition: filter 0.2s, transform 0.2s;
}

.cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ---------- 主区 ---------- */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 12vh 0 14vh;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), 0 100%);
  border-bottom: 2px solid var(--mag);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(92deg, rgba(20, 12, 17, 0.94) 8%, rgba(20, 12, 17, 0.6) 52%, rgba(20, 12, 17, 0.12) 92%);
  pointer-events: none;
}

.heroimg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: clamp(14px, 2.4vw, 30px);
  border-left: 3px solid var(--mag);
}

.hero-in h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.num {
  position: absolute;
  right: 0;
  top: -0.42em;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(110px, 17vw, 230px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.lead {
  max-width: 44ch;
  margin: 0 0 26px;
  font-size: 18px;
  color: #efdde8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, var(--mag), var(--vio));
  border-bottom: 3px solid rgba(0, 0, 0, 0.42);
  transition: filter 0.2s, transform 0.2s;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ---------- 内容栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  padding: 3.5rem 0 5rem;
  align-items: start;
}

.side {
  position: sticky;
  top: 96px;
  padding-top: 14px;
  border-top: 2px solid var(--vio);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.22em;
}

.side hr {
  margin: 0 0 10px;
}

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

.side a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side a:hover,
.side a[aria-current] {
  color: #fff;
  border-bottom-color: var(--mag);
}

.flow {
  min-width: 0;
}

.flow h2 {
  margin: 3rem 0 0.5rem;
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.flow h3 {
  margin: 2rem 0 0.4rem;
  font-size: 20px;
}

.flow p,
.flow li {
  color: #ead9e4;
}

.flow p {
  margin: 0 0 1.05rem;
}

.flow ul,
.flow ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.flow li {
  margin-bottom: 0.5rem;
}

.flow a {
  color: #ff9ecb;
  text-underline-offset: 3px;
}

.flow strong {
  color: #fff;
}

.flow img {
  display: block;
  width: 100%;
  margin: 1.6rem 0;
  border-bottom: 3px solid var(--mag);
}

.flow figure {
  margin: 1.8rem 0;
}

.flow figcaption {
  margin-top: 0.6rem;
  font-size: 16px;
  color: var(--dim);
}

.flow blockquote {
  margin: 1.8rem 0;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--vio);
  color: var(--dim);
}

.flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 16px;
}

.flow th,
.flow td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.flow > section {
  padding-bottom: 1rem;
}

.flow > section + section {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.flow > section:first-child h2 {
  margin-top: 0;
}

main section[id] {
  scroll-margin-top: 90px;
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 3rem clamp(18px, 4vw, 48px) 2rem;
  border-top: 1px solid var(--line);
  background: rgba(11, 7, 10, 0.62);
}

.fcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.fbrand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #fff, var(--vio) 55%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 0;
}

.fcols dl {
  margin: 0;
}

.fcols dt {
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #fff;
}

.fcols dd {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--dim);
}

.fcols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fcols dd a:hover {
  color: #fff;
  border-bottom-color: var(--mag);
}

.fbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.fbar p {
  margin: 0;
}

.fbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

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

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  body {
    padding-left: 0;
  }

  .rail {
    position: sticky;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mark {
    margin-right: auto;
  }

  .cta {
    margin-top: 0;
    order: 2;
    min-height: 44px;
    padding: 10px 16px;
  }

  .railnav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .railnav p {
    flex-direction: row;
    gap: 4px;
  }

  .railnav a {
    white-space: nowrap;
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
  }

  .railnav a:hover,
  .railnav a[aria-current] {
    padding-left: 12px;
  }

  .hero {
    min-height: 62vh;
    padding: 8vh 0 9vh;
  }

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

  .side {
    position: static;
    top: auto;
  }

  .side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .side a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  main section[id] {
    scroll-margin-top: 150px;
  }

  .fcols {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

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

  .hero-in h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .num {
    font-size: 120px;
    opacity: 0.7;
  }

  .lead {
    font-size: 17px;
  }

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

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

  body::before,
  .cta,
  .btn,
  .railnav a {
    animation: none !important;
    transition: none !important;
  }

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

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