@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink: #26171f;
  --rose: #ff0080;
  --mag: #ff00ff;
  --bg: #100910;
  --fg: #fbeef6;
  --dim: rgba(251, 238, 246, 0.72);
  --card: #2c1a24;
  --card2: #331d2a;
  --r: 28px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 12% 18%, rgba(255, 0, 128, 0.55), transparent 68%),
    radial-gradient(42% 38% at 88% 12%, rgba(255, 0, 255, 0.42), transparent 70%),
    radial-gradient(46% 42% at 74% 86%, rgba(255, 0, 128, 0.32), transparent 72%),
    radial-gradient(50% 44% at 20% 88%, rgba(255, 0, 255, 0.24), transparent 74%),
    var(--bg);
  filter: blur(48px) saturate(1.15);
  animation: flow 22s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 28%, #000, transparent 88%);
  mask-image: radial-gradient(70% 60% at 50% 28%, #000, transparent 88%);
}

@keyframes flow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(48px) hue-rotate(0deg) saturate(1.15);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(1.08);
    filter: blur(52px) hue-rotate(26deg) saturate(1.32);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.04);
    filter: blur(46px) hue-rotate(-18deg) saturate(1.2);
  }
}

a {
  color: #ff6fb8;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* 顶部 */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 9, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 0, 128, 0.22);
}

.ticker {
  background: linear-gradient(90deg, var(--rose), var(--mag));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 3px 14px;
  text-transform: uppercase;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.brandlink {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  background: #3a1f2c;
  flex: 0 0 auto;
}

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

.brandname {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: linear-gradient(96deg, #fff, #ffc2e2 60%, #ff5fb0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 导航 */
.nav {
  position: relative;
}

.navlist {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

.navitem {
  position: relative;
}

.navlink {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  line-height: 24px;
  border-radius: 14px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.navlink:hover,
.navlink:focus-visible {
  background: rgba(255, 0, 128, 0.22);
  color: #fff;
}

.navsub {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 184px;
  padding: 8px;
  border-radius: 18px;
  background: #341d2b;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.navsub a {
  display: block;
  padding: 9px 12px;
  min-height: 40px;
  line-height: 22px;
  border-radius: 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

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

.hassub:hover .navsub,
.hassub:focus-within .navsub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 首屏 */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 4vw, 44px);
  min-height: 70vh;
  padding: clamp(28px, 6vw, 64px) 0;
  text-align: right;
}

.heroart {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(84px, 12vw, 138px);
  filter: drop-shadow(0 0 34px rgba(255, 0, 128, 0.5));
  will-change: transform;
}

.heroart svg {
  width: 100%;
  height: auto;
  display: block;
  animation: spin 26s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 6.6vw, 4.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 8%, #ffd0e8 55%, #ff5fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--dim);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* 主栅格 */
.stage {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.rail {
  position: sticky;
  top: 176px;
  align-self: start;
}

.railhead {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ff8fc4;
}

.raillist {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.raillist a,
.railtop a {
  display: block;
  padding: 8px 10px;
  min-height: 40px;
  line-height: 24px;
  border-left: 2px solid rgba(255, 0, 128, 0.35);
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

.railtop {
  margin: 0;
}

.raillist a:hover,
.railtop a:hover {
  color: #fff;
  border-color: var(--mag);
  background: rgba(255, 0, 255, 0.1);
}

/* 正文卡片 */
.stream {
  min-width: 0;
}

.stream > section {
  background: var(--card);
  border-radius: var(--r);
  padding: clamp(22px, 3.4vw, 42px);
  margin-bottom: clamp(18px, 3vw, 30px);
  scroll-margin-top: 172px;
  box-shadow: 0 30px 64px -34px rgba(0, 0, 0, 0.95);
}

.stream > section:nth-child(even) {
  background: var(--card2);
}

.stream h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.28;
  font-weight: 700;
}

.stream h2 > span {
  padding-bottom: 3px;
  background: linear-gradient(90deg, var(--rose), var(--mag)) bottom left / 100% 3px no-repeat;
}

.stream h3 {
  margin: 24px 0 10px;
  font-size: 1.18rem;
  line-height: 1.4;
}

.stream h3 > span {
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(255, 0, 128, 0.55);
}

.stream p {
  margin: 0 0 16px;
}

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

.stream ul,
.stream ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.stream li {
  margin-bottom: 8px;
}

.stream a {
  color: #ff6fb8;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 111, 184, 0.45);
}

.stream img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.stream figure {
  margin: 0 0 18px;
}

.stream blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--mag);
  background: rgba(255, 0, 255, 0.08);
  border-radius: 0 18px 18px 0;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.stream th,
.stream td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* 页脚 */
.foot {
  margin-top: 20px;
  padding: clamp(32px, 6vw, 64px) 0 26px;
  background: linear-gradient(180deg, rgba(38, 23, 31, 0.35), #150b13);
  border-top: 1px solid rgba(255, 0, 255, 0.18);
}

.cta {
  border-radius: var(--r);
  padding: clamp(26px, 5vw, 56px);
  margin-bottom: clamp(28px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: radial-gradient(120% 150% at 6% 0%, #ff0080, #ff00ff 54%, #7d0f62 100%);
  box-shadow: 0 34px 80px -40px rgba(255, 0, 255, 0.9);
}

.ctabig {
  margin: 0;
  font-size: clamp(1.65rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.ctabtn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #170b13;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ctabtn:hover {
  transform: translateY(-2px);
  background: #2a1224;
}

.footgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.footbrand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footimg {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #3a1f2c;
}

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

.footlinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footlinks dl {
  margin: 0;
}

.footlinks dt {
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #ff8fc4;
}

.footlinks dd {
  margin: 0;
}

.footlinks a {
  display: block;
  padding: 8px 0;
  min-height: 40px;
  line-height: 24px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

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

.copy {
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(251, 238, 246, 0.55);
  font-size: 16px;
}

/* 入场 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
  }
  .navlist {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .navlist::-webkit-scrollbar {
    display: none;
  }
  .navsub {
    display: none;
  }
  .footgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-height: 0;
    padding: 28px 0 22px;
  }
  .heroart {
    width: 76px;
  }
  .footlinks {
    grid-template-columns: 1fr 1fr;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before,
  .heroart svg {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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