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

:root {
  --pink: #ff72b6;
  --cyan: #42d4d0;
  --ink: #26171e;
  --paper: #fdf3f8;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.17);
  --chrome: linear-gradient(135deg, #ffffff, #cfdae4 28%, #94a9b9 50%, #f4fbff 72%, #b9c8d6);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--pink) #1a1015;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: #f7ecf3;
  background:
    radial-gradient(900px 620px at 10% -12%, rgba(255, 114, 182, 0.44), transparent 64%),
    radial-gradient(820px 540px at 96% 6%, rgba(66, 212, 208, 0.34), transparent 62%),
    radial-gradient(740px 700px at 58% 112%, rgba(255, 114, 182, 0.22), transparent 62%),
    var(--ink);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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: 46px 46px;
  -webkit-mask-image: linear-gradient(#000, transparent 76%);
  mask-image: linear-gradient(#000, transparent 76%);
}

::selection { background: var(--pink); color: #26171e; }

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

img { display: block; max-width: 100%; }

a { color: inherit; }

menu { margin: 0; padding: 0; list-style: none; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(12px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 18, 24, 0.9), rgba(30, 18, 24, 0.56));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

.mark, .f-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  text-decoration: none;
  color: #241319;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 114, 182, 0.55),
    0 8px 20px rgba(255, 114, 182, 0.34),
    inset 0 -7px 12px rgba(110, 132, 152, 0.45),
    inset 0 6px 10px rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mark:hover, .f-mark:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(66, 212, 208, 0.9),
    0 12px 26px rgba(66, 212, 208, 0.5),
    inset 0 -7px 12px rgba(110, 132, 152, 0.45),
    inset 0 6px 10px rgba(255, 255, 255, 0.7);
}

.mark-txt {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mark-img { width: 26px; height: 26px; object-fit: contain; }

.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

.rail a,
.navpop summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  font-weight: 600;
  color: #f7ecf3;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  list-style: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.rail a:hover,
.navpop summary:hover {
  color: #fff;
  border-color: rgba(66, 212, 208, 0.7);
  background: linear-gradient(135deg, rgba(255, 114, 182, 0.34), rgba(66, 212, 208, 0.28));
  box-shadow: 0 0 18px rgba(66, 212, 208, 0.45);
  transform: translateY(-1px);
}

.navpop { position: relative; }

.navpop summary::-webkit-details-marker { display: none; }

.navpop summary::after {
  content: "▾";
  font-size: 12px;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

.navpop[open] summary {
  border-color: rgba(255, 114, 182, 0.7);
  background: linear-gradient(135deg, rgba(255, 114, 182, 0.42), rgba(66, 212, 208, 0.3));
  box-shadow: 0 0 20px rgba(255, 114, 182, 0.4);
}

.navpop[open] summary::after { transform: rotate(180deg); }

.navpop menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 196px;
  padding: 8px;
  background: rgba(26, 16, 21, 0.94);
  border: 1px solid rgba(66, 212, 208, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 114, 182, 0.25);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.navpop menu li + li { margin-top: 4px; }

.navpop menu li a {
  display: flex;
  width: 100%;
  padding: 11px 12px;
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 4vw, 38px);
  align-content: center;
  min-height: 70vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(30px, 7vh, 70px) clamp(16px, 4vw, 32px) clamp(26px, 6vh, 54px);
}

.hero-copy { position: relative; max-width: 780px; }

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #10222a;
  background: linear-gradient(135deg, #e4fdff, var(--cyan) 46%, #bff8f6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 24px rgba(66, 212, 208, 0.6), inset 0 -5px 10px rgba(0, 110, 110, 0.28);
  animation: bob 6.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

h1 {
  margin: 0;
  font-size: clamp(31px, 6.4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  background: linear-gradient(118deg, #ffffff 6%, #ffd8ea 40%, #9deff0 68%, #ffffff 97%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 20px rgba(255, 114, 182, 0.3));
}

.lede {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 17.5px;
  color: rgba(247, 236, 243, 0.84);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #26171e;
  text-decoration: none;
  background: linear-gradient(135deg, #ffeaf4, var(--pink) 40%, #ffa3cf 62%, #ffdcec);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(255, 114, 182, 0.44),
    inset 0 -7px 12px rgba(160, 20, 80, 0.24),
    inset 0 7px 12px rgba(255, 255, 255, 0.65);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.15);
  box-shadow:
    0 18px 38px rgba(255, 114, 182, 0.62),
    inset 0 -7px 12px rgba(160, 20, 80, 0.24),
    inset 0 7px 12px rgba(255, 255, 255, 0.65);
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(132deg, rgba(255, 114, 182, 0.4), rgba(66, 212, 208, 0.32) 52%, rgba(255, 255, 255, 0.14));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.46), inset 0 0 70px rgba(255, 255, 255, 0.12);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.24), transparent 42%, rgba(38, 23, 30, 0.34));
  mix-blend-mode: screen;
}

.hero-art img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) clamp(40px, 8vh, 78px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.prose {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 22px 46px rgba(0, 0, 0, 0.36);
}

.prose article[id] {
  scroll-margin-top: 96px;
  padding-bottom: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(22px, 3.4vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose article[id]:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.prose p { margin: 0 0 1em; }

.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }

.prose li { margin: 0.4em 0; }

.prose li::marker { color: var(--pink); }

.prose strong { color: #fff; }

.prose a {
  color: #9deff0;
  text-decoration: underline;
  text-decoration-color: rgba(66, 212, 208, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover { color: #fff; background: rgba(255, 114, 182, 0.24); }

.prose h2 {
  margin: 0 0 2px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

.prose h3 {
  margin: 1.5em 0 0.45em;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #9deff0;
  text-wrap: balance;
}

.prose blockquote {
  margin: 1.3em 0;
  padding: 12px 16px;
  color: #ffe4f1;
  background: rgba(255, 114, 182, 0.11);
  border-left: 3px solid var(--pink);
}

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

.prose th, .prose td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; }

.prose th { background: rgba(66, 212, 208, 0.14); color: #bff8f6; }

.prose img { margin: 1.1em 0; border: 1px solid var(--line); }

.prose hr,
.side hr {
  height: 2px;
  border: 0;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), rgba(66, 212, 208, 0));
  box-shadow: 0 0 14px rgba(255, 114, 182, 0.55);
}

.prose h2 + hr, .side h2 + hr { margin-top: 14px; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 96px;
  padding: 18px 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.side h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9deff0;
}

.jump li + li { margin-top: 6px; }

.jump a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 16px;
  color: #f7ecf3;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border-left: 2px solid rgba(66, 212, 208, 0.55);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.jump a:hover {
  transform: translateX(3px);
  border-left-color: var(--pink);
  background: linear-gradient(90deg, rgba(255, 114, 182, 0.32), rgba(66, 212, 208, 0.16));
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas:
    "brand links"
    "sub   sub"
    "copy  top";
  gap: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) clamp(16px, 4vw, 32px) clamp(30px, 5vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 114, 182, 0.12), transparent 72%);
}

.f-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.f-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  align-content: flex-start;
  justify-content: flex-end;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  font-size: 16px;
  color: rgba(247, 236, 243, 0.86);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.f-links a:hover {
  color: #26171e;
  border-color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.f-sub {
  grid-area: sub;
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0;
}

.f-sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.f-sub input::placeholder { color: rgba(247, 236, 243, 0.55); }

.f-sub button {
  min-height: 46px;
  padding: 10px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #10222a;
  cursor: pointer;
  border: 1px solid #fff;
  background: linear-gradient(135deg, #e4fdff, var(--cyan) 55%, #a5f4f1);
  box-shadow: 0 10px 22px rgba(66, 212, 208, 0.36);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.f-sub button:hover { filter: saturate(1.2); transform: translateY(-1px); }

.f-copy {
  grid-area: copy;
  font-size: 16px;
  color: rgba(247, 236, 243, 0.62);
}

.f-top {
  grid-area: top;
  justify-self: end;
  font-size: 16px;
}

.f-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  color: #9deff0;
  text-decoration: none;
  border: 1px solid rgba(66, 212, 208, 0.45);
}

.f-top a:hover { color: #26171e; background: var(--cyan); }

/* ---------- 滚动出现 ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@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;
  }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .hero { min-height: 0; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .top { gap: 8px; }
  .rail { gap: 5px; }
  .rail a, .navpop summary { padding: 10px 11px; font-size: 16px; }

  /* 下拉改为贴边全宽面板，保证菜单项不被屏幕边缘截断 */
  .navpop { position: static; }
  .navpop menu {
    left: 10px;
    right: 10px;
    top: calc(100% + 6px);
    min-width: 0;
    width: auto;
    max-width: none;
    max-height: 62vh;
    overflow-y: auto;
    padding: 10px;
  }
  .navpop menu li + li { margin-top: 6px; }
  .navpop menu li a {
    white-space: normal;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "links"
      "sub"
      "copy"
      "top";
  }
  .f-links { justify-content: flex-start; }
  .f-top { justify-self: start; }
  .hero-art { min-height: 150px; }
}

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