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

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f7eeee;
  font-family: Manrope, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: -12% -12% -12% -12%;
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
  background:
    radial-gradient(42vw 42vw at 8% 2%, rgba(255, 0, 0, .52), transparent 62%),
    radial-gradient(50vw 50vw at 94% 16%, rgba(139, 0, 255, .58), transparent 64%),
    radial-gradient(72vw 52vw at 46% 104%, rgba(255, 0, 0, .3), transparent 72%);
}

a { color: #ffb9b9; }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid #ff8f8f;
  outline-offset: 3px;
  border-radius: 8px;
}

/* 顶部 */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  font-family: Syne, "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
}

.brand-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #8b00ff);
  box-shadow: 0 0 18px rgba(255, 0, 0, .95);
}

.cta {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff0000, #8b00ff);
  box-shadow: 0 10px 26px rgba(139, 0, 255, .45);
}

.cta:hover { filter: brightness(1.1); }

.pills {
  order: 3;
  flex: 1 0 100%;
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  color: #f3e8ec;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pill:hover { background: rgba(255, 255, 255, .18); }

/* 头图 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 45vh;
  padding: 40px 18px 66px;
  text-align: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
}

.hero-media {
  position: absolute;
  inset: -50px 0 0 0;
  z-index: -3;
}

.hero-img {
  width: 100%;
  height: calc(100% + 90px);
  object-fit: cover;
  opacity: .52;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(38, 23, 23, .35), rgba(38, 23, 23, .88));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .26) 1px, transparent 1px);
  background-size: 15px 15px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 22px 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-mark {
  margin: 0 0 8px;
  font-family: Syne, sans-serif;
  font-size: 16px;
  letter-spacing: .3em;
  color: #ffc7c7;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: Syne, "PingFang SC", sans-serif;
  font-size: clamp(27px, 6.6vw, 52px);
  line-height: 1.18;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}

.hero-desc {
  margin: 0;
  font-size: 16px;
  color: #f2e1e4;
}

/* 粘性锚点条 */
.subbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(38, 23, 23, .66);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.subnav {
  display: flex;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 16px;
  color: #f0e0e6;
  text-decoration: none;
  white-space: nowrap;
}

.subnav a:hover { background: rgba(255, 255, 255, .14); }

/* 主区 */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 12px;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 28px;
  align-items: start;
}

.stage { min-width: 0; }

.prose > section {
  padding: 26px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scroll-margin-top: 96px;
}

.prose > section + section { margin-top: 22px; }

.prose h2 {
  margin: 0;
  font-family: Syne, "PingFang SC", sans-serif;
  font-size: clamp(20px, 3.5vw, 27px);
  line-height: 1.35;
  color: #fff;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.45;
  color: #ffd8d8;
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 12px 0 18px;
  background: linear-gradient(90deg, #ff0000, rgba(139, 0, 255, .6), rgba(255, 255, 255, 0));
}

.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li { margin: 0 0 8px; }

.prose a { color: #ffb0b0; }

.prose strong { color: #fff; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 76px;
  padding: 20px 16px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .32);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.rail-title {
  margin: 0;
  font-family: Syne, "PingFang SC", sans-serif;
  font-size: 17px;
  letter-spacing: .1em;
  color: #fff;
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, rgba(255, 0, 0, .85), rgba(139, 0, 255, .3), transparent);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav a {
  display: block;
  min-height: 40px;
  padding: 9px 9px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #f2e4e9;
  text-decoration: none;
}

.rail-nav a:hover { background: rgba(255, 255, 255, .14); }

.rail-foot {
  margin: 14px 0 0;
  font-family: Syne, sans-serif;
  font-size: 16px;
  letter-spacing: .12em;
  color: #ffbfbf;
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1180px;
  margin: 46px auto 0;
  padding: 40px 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.foot-a, .foot-b { min-width: 0; }

.foot-brand {
  margin: 0;
  font-family: Syne, "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -.01em;
  background: linear-gradient(118deg, #ffffff, #ffb3b3 42%, #cfa4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-desc {
  margin: 12px 0 0;
  max-width: 32em;
  color: #e8d8dd;
}

.foot dl { margin: 0; display: grid; gap: 8px; }

.foot dt {
  font-size: 16px;
  letter-spacing: .16em;
  color: #ffb3b3;
}

.foot dt a { color: inherit; text-decoration: none; }

.foot dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  color: #f3e7eb;
  text-decoration: none;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
}

.foot dd a:hover { background: rgba(255, 255, 255, .16); }

.foot-c {
  grid-column: 1 / -1;
  padding-top: 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.foot-c p { margin: 0; font-size: 16px; color: #e2d2d7; }
.foot-c .totop { margin-top: 6px; }
.foot-c a { color: #ffb9b9; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }

/* 动效 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* 断点 */
@media (min-width: 900px) {
  .bar { padding: 18px 18px; }
  .pills {
    order: 0;
    flex: 0 1 auto;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }
  main { padding-top: 44px; }
  .hero { padding: 56px 18px 82px; }
}

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .prose > section { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .hero { padding: 30px 14px 58px; }
  .hero-inner { padding: 18px 16px 20px; }
  .brand { font-size: 18px; }
  .cta { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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