@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root {
  --red: #ff0000;
  --pur: #8b00ff;
  --ink: #261717;
  --txt: #fff5f5;
  --dim: rgba(255, 245, 245, 0.72);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-2: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.22);
  --r: 28px;
  --dock: 78px;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + 44px);
  color: var(--txt);
  background-color: #130a0a;
  background-image:
    radial-gradient(62vw 62vw at 10% -8%, rgba(255, 0, 0, 0.45), transparent 62%),
    radial-gradient(58vw 58vw at 94% 6%, rgba(139, 0, 255, 0.5), transparent 60%),
    radial-gradient(76vw 62vw at 44% 112%, rgba(255, 0, 0, 0.24), transparent 66%),
    linear-gradient(168deg, #231313 0%, #120a0a 56%, #1c0d18 100%);
  background-repeat: no-repeat;
  font-family: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

/* ---------- 角落品牌 + 菜单按钮 ---------- */

.mark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.mark__img { display: block; border-radius: 50%; }
.mark__glyph { font-size: 20px; line-height: 1; }
.mark__word { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.burger {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.82), rgba(139, 0, 255, 0.82));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.burger:hover { transform: translateY(-2px); filter: brightness(1.12); }
.burger__ic {
  width: 16px;
  height: 10px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transition: transform 0.2s ease;
}
body.menu-open .burger__ic { transform: rotate(90deg); }

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

.hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(92px, 13vh, 132px) clamp(16px, 4vw, 48px) clamp(34px, 6vh, 64px);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.hero__fig {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

.hero__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(255, 0, 0, 0.55), transparent 70%),
    radial-gradient(70% 70% at 80% 80%, rgba(139, 0, 255, 0.6), transparent 70%);
}

.hero__copy { text-align: center; }

h1 {
  margin: 0 0 0.45em;
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 700;
  background: linear-gradient(102deg, #ffffff 8%, #ffd3d3 42%, #e0c2ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--dim);
  font-size: 17px;
}

/* ---------- 主体：左侧栏 + 正文 ---------- */

.stage {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 44px;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 34px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 22px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.rail__title {
  margin: 0.1em 0 0.9em;
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.rail__list li { counter-increment: rail; }

.rail__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  margin-bottom: 4px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.rail__list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.rail__list a:hover {
  color: #fff;
  background: rgba(255, 0, 0, 0.2);
  transform: translateX(3px);
}

.flow { min-width: 0; }

.flow section {
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  animation: rise 0.5s ease both;
}

.flow section[id] {
  scroll-margin-top: 96px;
  scroll-margin-bottom: calc(var(--dock) + 28px);
}

.flow section:nth-child(1) { animation-delay: 0.02s; }
.flow section:nth-child(2) { animation-delay: 0.07s; }
.flow section:nth-child(3) { animation-delay: 0.12s; }
.flow section:nth-child(4) { animation-delay: 0.17s; }
.flow section:nth-child(5) { animation-delay: 0.22s; }
.flow section:nth-child(6) { animation-delay: 0.27s; }
.flow section:nth-child(7) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.flow h2 {
  margin: 0.1em 0 0.7em;
  font-size: clamp(1.42rem, 3.2vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: #fff;
}

.flow h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.55em;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--pur) 72%, transparent);
}

.flow h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.flow p {
  margin: 0 0 1em;
  color: rgba(255, 245, 245, 0.87);
}

.flow ul,
.flow ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: rgba(255, 245, 245, 0.87);
}

.flow li { margin-bottom: 0.42em; }

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

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

.flow figure { margin: 0 0 1em; }
.flow figcaption { font-size: 15px; color: var(--dim); }

.flow blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--pur);
  color: var(--dim);
}

.flow img { border-radius: 18px; }

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

.foot {
  max-width: 1260px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 30px;
  border-top: 1px solid var(--line);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.foot__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.foot__nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot__nav a:hover { color: #fff; border-color: rgba(255, 0, 0, 0.7); }

.sub { display: flex; gap: 8px; }

.sub__input {
  width: 156px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sub__input::placeholder { color: var(--dim); }

.sub__btn {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  transition: filter 0.16s ease;
}

.sub__btn:hover { filter: brightness(1.15); }

.foot__base {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--dim);
}

.foot__base p { margin: 0; }

/* ---------- 底部固定条 / 全屏菜单 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: background 0.24s ease;
}

.dock__list {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  max-width: 1260px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock__list::-webkit-scrollbar { display: none; }

.dock__list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dock__list a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

body.menu-open .dock {
  top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 84px 20px 40px;
  overflow: auto;
  border-top: 0;
  background: rgba(19, 10, 10, 0.86);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
}

body.menu-open .dock__list {
  flex-direction: column;
  gap: 10px;
  width: min(430px, 100%);
  overflow: visible;
}

body.menu-open .dock__list a {
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  font-size: clamp(18px, 5vw, 23px);
  background: rgba(255, 255, 255, 0.09);
}

/* ---------- 断点 ---------- */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 26px;
  }
  .hero__copy { order: 1; }
  .hero__fig {
    order: 2;
    aspect-ratio: 16 / 11;
    max-height: 42vh;
  }
  .hero__lede { max-width: 30ch; }
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .rail__list a {
    margin-bottom: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-height: 42px;
  }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .foot__nav ol { gap: 6px; }
  .sub__input { width: 100%; min-width: 0; flex: 1; }
}

@media (max-width: 420px) {
  .mark__word { max-width: 30vw; }
  .flow section { border-radius: 22px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow section { animation: none; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}

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