@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --ink-deep: #170d0d;
  --fg: #fdf2f2;
  --muted: #e3c6cb;
  --line: rgba(255, 255, 255, 0.14);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.028));
  --head: "Lexend Mega", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Public Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--fg);
  font: 17px/1.66 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -22% -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 18%, rgba(255, 0, 0, 0.6), transparent 62%),
    radial-gradient(42% 40% at 84% 14%, rgba(255, 20, 147, 0.52), transparent 64%),
    radial-gradient(52% 46% at 72% 84%, rgba(255, 0, 0, 0.36), transparent 68%),
    radial-gradient(46% 48% at 10% 80%, rgba(255, 20, 147, 0.42), transparent 66%),
    conic-gradient(from 210deg at 50% 50%, #261717, #4b1313, #261717, #5c1029, #261717);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  filter: saturate(1.2);
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%;
  }
  100% {
    background-position: 34% 24%, 68% 30%, 58% 72%, 42% 78%, 100% 100%;
  }
}

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

@keyframes sway {
  from {
    transform: rotate(-3deg) translateY(0);
  }
  to {
    transform: rotate(4deg) translateY(-8px);
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 顶部：品牌居中，菜单分列两侧 ---------- */
.top {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem clamp(0.8rem, 3vw, 2.2rem);
}

.top-l,
.top-r {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex-wrap: wrap;
}

.top-r {
  justify-content: flex-end;
}

.top a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease;
}

.top a:hover,
.top a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.ico {
  width: 13px;
  height: 13px;
  flex: none;
  fill: var(--pink);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s ease;
}

.top a:hover .ico {
  transform: rotate(calc(var(--r, 0deg) + 40deg)) scale(1.15);
}

.cta {
  margin-left: 0.35rem;
  background: linear-gradient(96deg, var(--red), var(--pink));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(255, 20, 147, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(92deg, #fff, var(--pink) 60%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  fill: var(--pink);
  border-radius: 4px;
  object-fit: cover;
}

/* ---------- 二级粘性锚点条 ---------- */
.anchors {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(28, 16, 16, 0.74);
  backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.anchors-in {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem clamp(0.6rem, 3vw, 2.2rem);
}

.anchors-in::-webkit-scrollbar {
  display: none;
}

.anchors-in a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
  min-height: 40px;
  padding: 0.3rem 0.62rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.anchors-in a:hover,
.anchors-in a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.anchors-in b,
.rail-list b {
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pink);
}

/* ---------- 英雄区 ---------- */
main {
  display: block;
}

main section {
  scroll-margin-top: 96px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  text-align: right;
  padding: clamp(1.4rem, 5vw, 3.4rem) clamp(1rem, 4vw, 3.6rem) clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg span {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(3.4rem, 19vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 20, 147, 0.1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-3%);
}

.hero-in {
  position: relative;
  max-width: 30ch;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 0 34px rgba(255, 20, 147, 0.35);
}

.lead {
  margin: 0 auto 1.1rem;
  max-width: 44ch;
  color: #f6dee2;
  font-size: 1.06rem;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 1.3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-go:hover,
.hero-go:focus-visible {
  border-color: var(--pink);
  background: linear-gradient(96deg, rgba(255, 0, 0, 0.55), rgba(255, 20, 147, 0.55));
}

.hero-fig {
  position: relative;
  width: min(100%, 780px);
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.22), rgba(255, 20, 147, 0.14));
  backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 40px 70px -50px rgba(0, 0, 0, 0.95);
}

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

.petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.petals path {
  fill: url(#petalGrad);
  opacity: 0.45;
  transform-origin: 50% 100%;
  animation: sway 9s ease-in-out infinite alternate;
}

.petals path:nth-child(2) { animation-duration: 10.5s; opacity: 0.3; }
.petals path:nth-child(3) { animation-duration: 12s; opacity: 0.5; }
.petals path:nth-child(4) { animation-duration: 8.5s; opacity: 0.28; }
.petals path:nth-child(5) { animation-duration: 11.5s; opacity: 0.42; }
.petals path:nth-child(6) { animation-duration: 9.6s; opacity: 0.34; }

/* ---------- 侧栏在左 + 正文 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(170px, 224px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: start;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3.6vw, 3.6rem) 3rem;
}

.rail {
  position: sticky;
  top: 66px;
  padding: 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 24px 46px -34px rgba(0, 0, 0, 0.9);
}

.rail small,
.flow small {
  display: block;
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--pink);
  margin-bottom: 0.28rem;
}

.rail-h {
  margin: 0 0 0.7rem;
  font-family: var(--head);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 0, 0.26);
}

.flow {
  min-width: 0;
}

.flow > section {
  position: relative;
  margin: 0 0 1.15rem;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(15px) saturate(1.3);
  box-shadow: 0 26px 52px -40px rgba(0, 0, 0, 0.95);
  animation: rise 0.75s both;
}

.flow > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--red), var(--pink) 55%, transparent);
}

.flow > section:nth-child(1) { animation-delay: 0.04s; }
.flow > section:nth-child(2) { animation-delay: 0.1s; }
.flow > section:nth-child(3) { animation-delay: 0.16s; }
.flow > section:nth-child(4) { animation-delay: 0.22s; }
.flow > section:nth-child(5) { animation-delay: 0.28s; }
.flow > section:nth-child(6) { animation-delay: 0.34s; }
.flow > section:nth-child(7) { animation-delay: 0.4s; }

.flow h2,
.flow h3 {
  font-family: var(--head);
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.flow h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
}

.flow h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #ffe3ea;
}

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

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

.flow a {
  color: #ffa8cb;
  text-decoration-color: rgba(255, 168, 203, 0.5);
  text-underline-offset: 3px;
}

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

.flow ul,
.flow ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

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

.flow figure {
  margin: 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.flow aside {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--pink);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 20, 147, 0.1);
}

.flow img {
  max-width: 100%;
  height: auto;
  display: block;
}

.flow figcaption {
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.flow blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--red);
  background: rgba(255, 0, 0, 0.1);
  border-radius: 0 4px 4px 0;
}

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

.flow th,
.flow td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.flow th {
  background: rgba(255, 20, 147, 0.16);
  font-family: var(--head);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 2.2rem clamp(1rem, 3.6vw, 3.6rem) 1.3rem;
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.35), rgba(12, 6, 6, 0.9));
  backdrop-filter: blur(18px);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.foot-brand {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 0 1 360px;
}

.sub input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.sub input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.sub button {
  min-height: 44px;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(96deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  margin-bottom: 0.45rem;
  font-family: var(--head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink);
}

.foot-cols dd {
  margin: 0;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.cr {
  margin: 0;
  font-size: 0.95rem;
}

.foot-links {
  display: flex;
  gap: 1rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.5rem 0.8rem;
  }

  .brand {
    order: -1;
  }

  .top-l,
  .top-r {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .top-l::-webkit-scrollbar,
  .top-r::-webkit-scrollbar {
    display: none;
  }

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

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

  .rail-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    gap: 0.3rem;
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    text-align: left;
    padding-top: 2rem;
  }

  .lead {
    margin-left: 0;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .foot-cols {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-bg span {
    font-size: 21vw;
  }

  .hero-fig {
    aspect-ratio: 4 / 3;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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