/* 官网主题限定在本页，管理端继续使用共享主题的默认值。 */
:root {
  color-scheme: dark;
  --header-height: clamp(72px, 9.4vh, 100px);
  --gutter: clamp(22px, 5vw, 90px);
  --ease-out: cubic-bezier(.18, .82, .25, 1);
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --theme-color-bg: #0e0e18;
  --theme-color-bg-subtle: #161524;
  --theme-color-card: #1e1c30;
  --theme-color-brand: #c5a6ff;
  --theme-color-brand-hover: #d7c1ff;
  --theme-color-brand-soft: #382956;
  --theme-color-text: #faf8ff;
  --theme-color-text-muted: #c2becf;
  --theme-color-border: #39364e;
  --theme-color-secondary: #8ce2c2;
  --theme-color-secondary-soft: #183933;
  --theme-color-danger: #ffaaa9;
  --on-accent: #170f28;
  --theme-font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  margin: 0;
  background: var(--theme-color-bg);
  color: var(--theme-color-text);
  font: 400 16px/1.7 var(--theme-font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h2, h3 { line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--theme-color-brand-hover); outline-offset: 4px; }
:disabled, [aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
::selection { background: var(--theme-color-brand); color: var(--on-accent); }
.container, .wide { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.container { max-width: 1180px; }
.wide { max-width: 1520px; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--theme-color-bg);
  transition: background-color .22s;
}
.site-header.at-top { background: transparent; }
.header-inner, .brand, .site-nav { display: flex; align-items: center; }
.header-inner { height: var(--header-height); justify-content: space-between; }
.brand { gap: .57em; font-size: clamp(20px, 1.93vw, 32px); line-height: 1.2; }
.brand strong { font-weight: 850; letter-spacing: -.035em; }
.brand img { width: 1.75em; height: 1.75em; border-radius: 25%; }
.site-nav { gap: clamp(26px, 2.9vw, 54px); font-size: clamp(16px, 1.43vw, 23px); font-weight: 600; }
.site-nav a { padding-block: 9px; transition: color .2s, border-color .2s; }
.site-nav .nav-activate { border: 1px solid #bebcc8; border-radius: 99px; padding: .35em 1.1em; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45em;
  min-height: 46px;
  padding: .72em 1.42em;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  transition: transform .22s var(--ease-out), background-color .2s, border-color .2s;
}
.btn-primary { color: var(--on-accent); background: var(--theme-color-brand); }
.btn-ghost { border: 1px solid #69667f; }
.btn-block { width: 100%; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn span, .hero-activate span, .nav-activate span {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}

/* 首屏由标题区和统计栏共同占据一屏，工具栏伸缩时保持稳定。 */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  flex: 1;
  padding: clamp(16px, 2.25vh, 38px) var(--gutter) clamp(22px, 3.9vh, 56px);
  text-align: center;
}
/* 柔光延伸到导航后方，裁切和位移仅作用于装饰层。 */
.aurora {
  position: absolute;
  inset: calc(-1 * var(--header-height)) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 75% at 8% 44%, #233e92a6, transparent 76%),
    radial-gradient(ellipse 46% 90% at 98% 50%, #692890c9, transparent 82%),
    radial-gradient(ellipse 60% 65% at 52% 100%, #322063, transparent 84%),
    #090b1b;
}
.aurora-flow { position: absolute; inset: 0; }
.aurora-cool, .aurora-warm {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  transform-origin: left center;
}
.aurora-cool { left: 0; }
.aurora-warm { right: 0; transform: scaleX(-1); transform-origin: center; }
/* 两侧各有两条光带。光带的渐变保持不变，动画只移动和拉伸合成层。 */
.aurora-flow span::before, .aurora-flow span::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -20%;
  transform-origin: 17% 50%;
  transform: translateY(var(--level)) skewY(var(--slope));
}
.aurora-flow span::after {
  /* 让弧线在图层边界前淡出，倾斜或拉伸时没有硬切边。 */
  -webkit-mask-image: radial-gradient(ellipse 77% 50% at 17% 50%, #000 33%, transparent);
  mask-image: radial-gradient(ellipse 77% 50% at 17% 50%, #000 33%, transparent);
}
.aurora-cool::before {
  --level: -12%;
  --slope: 31deg;
  background:
    radial-gradient(ellipse 28% 8% at 17% 50%, #19c8f2bb, transparent),
    radial-gradient(ellipse 39% 23% at 18% 49%, #2772eb, #164ed0a1 46%, transparent 90%),
    radial-gradient(ellipse 26% 18% at 32% 23%, #4d23d063, transparent);
}
.aurora-cool::after {
  --level: 15%;
  --slope: 16deg;
  background:
    radial-gradient(ellipse 31% 19% at 54% 57%, #344cdac9, transparent),
    radial-gradient(ellipse 58% 44% at 16% 94%, transparent 77%, #19ffe6b0 92%, #03e5db5c 99%, transparent 115%),
    radial-gradient(ellipse 31% 12% at 20% 51%, #00d8cb, #057baec2 42%, transparent),
    radial-gradient(ellipse 57% 20% at 33% 50%, #2368efd9, #3442d673 54%, transparent 84%),
    radial-gradient(ellipse 42% 40% at 14% 67%, #004268, transparent);
}
.aurora-warm::before {
  --level: -24%;
  --slope: 28deg;
  background:
    radial-gradient(ellipse 32% 9% at 16% 50%, #ff96d0a3, transparent),
    radial-gradient(ellipse 32% 22% at 20% 50%, #eb6fc3, #b253d3b0 52%, transparent),
    radial-gradient(ellipse 46% 36% at 22% 54%, #a63aedb0, transparent);
}
.aurora-warm::after {
  --level: 11%;
  --slope: 21deg;
  background:
    radial-gradient(ellipse 54% 56% at 39% 0%, transparent 78%, #cd66ff91 90%, #a253ea44 96%, transparent 106%),
    radial-gradient(ellipse 29% 9% at 18% 51%, #e266e6a3, transparent),
    radial-gradient(ellipse 42% 28% at 27% 50%, #953bd4b8, transparent);
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.aurora::before {
  background:
    radial-gradient(ellipse 37% 67% at 50% 48%, #08091af5, #0b0c21b0 48%, transparent 86%),
    linear-gradient(#07091b87, transparent 22%);
}
.aurora::after {
  background: radial-gradient(closest-side, #9c95ff30, #89cdff12 84%, #b0a1ff47 93%, transparent);
  inset: auto;
  top: 48%;
  left: 32%;
  width: min(100vw, 155vh);
  aspect-ratio: 1;
  opacity: 0;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(76px, min(10.3vw, 15.7vh), 185px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .035em;
}
.title-line { display: block; white-space: nowrap; padding-left: .4em; }
.title-response { display: flex; align-items: center; justify-content: center; padding-left: .68em; margin-top: .065em; }
.beat { transform-origin: 50% 86%; }
.period { color: #b48dfb; }
.cat-key {
  position: relative;
  isolation: isolate;
  flex: none;
  margin-right: .14em;
  letter-spacing: 0;
  color: var(--on-accent);
  border-radius: .25em;
  transform: rotate(-7deg);
  -webkit-tap-highlight-color: transparent;
}
.cat-key::before, .cat-key::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.cat-key::before {
  background: linear-gradient(105deg, #4be2ff, #9773fa 26%, #9664e2 65%, #ff94dc);
  transform: translateY(.11em);
  box-shadow: 0 .055em .18em #170c314d;
}
.cat-key::after { border: 2px solid var(--theme-color-brand); opacity: 0; }
.key-face {
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.16em;
  padding-bottom: .07em;
  border-radius: inherit;
  background: linear-gradient(150deg, #faf3ff, #ddcaff 42%, #c9abff);
  line-height: 1;
  box-shadow: inset 0 .02em .03em #fffe, inset .045em 0 .06em #69ffff,
    inset -.04em -.015em .06em #ffadeb, -.016em 0 .12em #22e5ff57, .05em .015em .14em #ff74e94d;
}
.hero-lead {
  margin-top: clamp(18px, 2.85vh, 42px);
  color: #f3effc;
  font-size: clamp(19px, min(2.12vw, 3.45vh), 36px);
  font-weight: 550;
  line-height: 1.48;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  margin-top: clamp(24px, 4.2vh, 46px);
  font-size: clamp(20px, min(2vw, 3.28vh), 34px);
  font-weight: 650;
  line-height: 1.4;
}
.hero-actions .btn { font-size: 1.06em; padding: .4em 1.7em; gap: .36em; font-weight: 800; }
.hero-actions .btn-primary { background: linear-gradient(112deg, #caadff, #b996ff 52%, #d6afff); }
.hero-activate { padding-block: .16em; border-bottom: 2px solid currentColor; transition: color .2s; }
.hero-platforms { margin-top: clamp(13px, 1.6vh, 22px); font-size: clamp(16px, 1.35vw, 23px); font-weight: 500; }
.hero-platforms span { margin-inline: .85em; }

/* 公开计数。统计关闭时由 hidden 一并收起，标题区自动填满剩余空间。 */
.stats {
  position: relative;
  background:
    radial-gradient(ellipse 50% 180% at 11% -30%, #134c7b9e, transparent 78%),
    radial-gradient(ellipse 34% 155% at 95% -15%, #66326c80, transparent 86%),
    linear-gradient(#14132a, #0b0c1b);
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6dccfe6b, #9561ff, #d1baff38, #f383ff99, transparent);
}
.stats-inner, .stats-list { display: flex; align-items: center; justify-content: space-between; }
.stats-inner {
  min-height: clamp(108px, 18.9vh, 180px);
  padding: clamp(14px, 2.2vh, 24px) .7vw;
  gap: clamp(40px, 9.7vw, 168px);
}
.stats h2 { flex: none; font-size: clamp(21px, 1.87vw, 31px); font-weight: 750; }
.stats h2::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  background: var(--theme-color-brand);
  margin-right: .68em;
  border-radius: 50%;
  vertical-align: .06em;
}
#stats-status { display: block; font-size: 14px; font-weight: 500; color: var(--theme-color-text-muted); }
#stats-status:empty { display: none; }
/* 统计列表始终占位，接口返回时只切换两层的可见性。 */
.stats-content { flex: 1; position: relative; min-width: 0; }
.stats-list { gap: 20px; }
.stats-list[aria-busy="true"], .stats-loader { visibility: hidden; opacity: 0; }
.stats-list[aria-busy="true"] + .stats-loader { visibility: visible; opacity: 1; }
.stats-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vh, 14px);
  color: #d8caff;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none;
}
.stats-wave { flex: none; width: 100%; max-width: min(1100px, 115vh); overflow: visible; }
.stats-line { stroke-width: 2.4; filter: drop-shadow(0 0 5px #af93ff70); }
.stats-spark {
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-dasharray: .01 100;
  stroke-dashoffset: -44;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #b18aff);
}
.stats-list > div { min-width: 0; }
.stats-list dt { font-size: clamp(16px, 1.36vw, 23px); font-weight: 500; }
.stats-list dd {
  margin-top: .12em;
  font-size: clamp(30px, min(3.16vw, 5.05vh), 54px);
  line-height: 1.15;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#hero-today-delta { color: var(--theme-color-brand); }

/* 四个版块按文档顺序叠放。缩放以底边为轴，保留原来的滚动高度和锚点。 */
#top { background: #090a16; }
.hero, .section {
  position: relative;
  isolation: isolate;
  transform-origin: center bottom;
}
.section {
  --sheet-bg: #121222;
  --sheet-radius: clamp(32px, 5.6vw, 82px);
  /* 每一段至少占满导航下方的可视区。按工具栏收起时的高度预留，长内容自然撑开。 */
  min-height: calc(100vh - var(--header-height) + 1px);
  min-height: calc(100lvh - var(--header-height) + 1px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: clamp(38px, 3.6vw, 66px) clamp(80px, 8vw, 132px);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  border-top: 2px solid transparent;
  /* 顶边承接首屏两侧的极光，正文下方保持不透明。 */
  background:
    radial-gradient(ellipse 38% 200px at 5% 0, #346ab845, transparent 80%) padding-box,
    radial-gradient(ellipse 40% 220px at 95% 0, #8c44bf40, transparent 80%) padding-box,
    linear-gradient(#15162b, var(--sheet-bg) 360px) padding-box,
    linear-gradient(100deg, #39dcff 5%, #91a8ff 31%, #d8bcff 54%, #ef9aff 95%) border-box;
  box-shadow: 0 -16px 38px -16px #030414b8;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--sheet-radius);
  border-radius: inherit;
  background:
    radial-gradient(ellipse 20% 17px at 13% 0, #40cfff40, transparent),
    radial-gradient(ellipse 24% 12px at 55% 0, #ad9aff38, transparent),
    radial-gradient(ellipse 18% 16px at 88% 0, #da82ff44, transparent);
  pointer-events: none;
}
.section-alt { --sheet-bg: var(--theme-color-bg-subtle); }

/* 装饰层不参与正文测量，也不接收滚轮、触摸或点击。 */
.section-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* 公益页：星点留在外缘，脚印从底部走向右上角的猫耳星座。 */
.night-sky {
  --path-side: min(19%, 50% - 590px);
  background:
    radial-gradient(ellipse 32% 66% at 4% 9%, #0fc9e348, transparent 85%),
    radial-gradient(ellipse 32% 56% at 95% 94%, #9644df55, transparent 88%),
    linear-gradient(125deg, #080a1a77, #08081999);
}
.night-sky svg { position: absolute; overflow: visible; }
.sky-stars {
  width: 100%;
  height: 100%;
  color: #9eeaff;
  background:
    radial-gradient(circle at 4% 18%, #dbfbff 1px, transparent 2px),
    radial-gradient(circle at 10% 9%, #9eeaff 1px, transparent 2px),
    radial-gradient(circle at 31% 10%, #ffcfff 1px, transparent 2px),
    radial-gradient(circle at 80% 13%, #ffcfff 1px, transparent 2px),
    radial-gradient(circle at 96% 60%, #e3c2ff 1px, transparent 2px);
}
.sky-stars use { filter: drop-shadow(0 0 5px #82daff); }
.sky-stars use:nth-child(3n) { color: #e0baff; }
.cat-stars {
  top: 10%;
  right: calc(var(--path-side) * .18);
  width: min(7vw, 136px);
  color: #fff3ff;
  filter: drop-shadow(0 0 5px #c373ff);
}
.paw-trail, .paw-ascent {
  color: #e3c7ff;
  fill: currentColor;
}
.paw-trail {
  left: 0;
  bottom: 0;
  width: calc(100% - var(--path-side));
  height: min(23%, 12vw, 200px);
}
.paw-ascent {
  top: 23%;
  right: 0;
  width: var(--path-side);
  height: 51%;
}
.paw-trail use, .paw-ascent use {
  opacity: .64;
  /* 先在原点转向再按画布百分比定位，避免旋转带动脚印坐标。 */
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(var(--x), var(--y)) rotate(var(--turn, 74deg)) scale(var(--size, 1));
  filter: drop-shadow(0 0 7px #bc61ff);
}
.paw-trail use:nth-child(n+5):nth-child(-n+10) { --turn: 100deg; --size: .88; }
.paw-trail use:nth-last-child(-n+3) { --turn: 55deg; --size: .9; }
.paw-ascent use { --turn: 32deg; --size: .82; }
.paw-ascent use:nth-last-child(-n+3) { --turn: 12deg; --size: .7; }

/* 下载页：两种色温分别呼应两个平台。用渐变本身的衰减代替全屏模糊。 */
.download-lights {
  background:
    radial-gradient(ellipse 47% 40% at 41% 94%, #344ecf55, transparent),
    radial-gradient(ellipse 42% 66% at 96% 68%, #8634e06b, transparent);
}
.download-lights::before, .download-lights::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 124%;
  top: -12%;
}
.download-lights::before {
  left: -29%;
  background:
    radial-gradient(ellipse 43% 16% at 56% 29%, #00edd4dc, #009eed59 49%, transparent),
    radial-gradient(ellipse 39% 41% at 42% 42%, #008ebb9e, transparent),
    radial-gradient(ellipse 32% 23% at 51% 76%, #135ff0ad, transparent);
  transform: rotate(-23deg);
}
.download-lights::after {
  right: -29%;
  background:
    radial-gradient(ellipse 42% 17% at 44% 69%, #d536efbf, #8c3dff75 50%, transparent),
    radial-gradient(ellipse 34% 46% at 61% 47%, #a436da78, transparent);
  transform: rotate(-34deg);
}
/* 星轨以表单所在列为基准，卡片展开或换成结果后自动跟随。 */
#activate { overflow: clip; }
.activate-column { position: relative; isolation: isolate; }
.orbit {
  --reach: clamp(30px, 31vw - 360px, 220px);
  inset: -20% calc(-1 * var(--reach));
  border-radius: 50%;
  overflow: visible;
  box-shadow: inset 0 0 0 1px #b69cfa30;
  background:
    radial-gradient(circle at 49% 99%, #a9eaff 1px, transparent 3px),
    radial-gradient(circle at 37% 2%, #ebc0ff 1px, transparent 3px),
    radial-gradient(circle at 94% 72%, #ebc0ff 1px, transparent 3px);
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: #61f7ff;
  mask-image: radial-gradient(ellipse 26% 24% at 23% 92%, black, transparent);
}
.orbit::after { color: #ff99fa; transform: rotate(180deg); }
.orbit span {
  position: absolute;
  isolation: isolate;
  width: 24px;
  height: 24px;
  left: 77%;
  top: 8%;
  color: #f49aff;
}
.orbit span + span { left: 23%; top: 92%; color: #63efff; }
.orbit span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  clip-path: polygon(50% 0,59% 34%,68% 42%,100% 50%,68% 58%,59% 66%,50% 100%,41% 66%,32% 58%,0 50%,32% 42%,41% 34%);
}
.orbit span::after {
  content: "";
  position: absolute;
  inset: -26px -32px -26px -94px;
  background:
    radial-gradient(circle at 8% 50%, currentColor 1px, transparent 2px),
    radial-gradient(circle at 17% 52%, currentColor 1px, transparent 2px),
    radial-gradient(ellipse 55% 6% at 67% 50%, currentColor, transparent),
    radial-gradient(ellipse 32% 50% at 70% 50%, currentColor, transparent);
  opacity: .75;
  z-index: -1;
}
.activate-column::before, .activate-column::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  top: -48%;
  right: -48%;
  background: radial-gradient(ellipse closest-side, #ca4bf382, #9932c838 50%, transparent);
}
.activate-column::after {
  inset: auto auto -48% -48%;
  background: radial-gradient(ellipse closest-side, #18ecffce, #1884d139 52%, transparent);
}
/* 键盘导航到退场中的按钮时，保持焦点和文字清晰。 */
#top > section:has(:focus-visible) {
  filter: none !important;
  opacity: 1 !important;
}
.site-footer { background: var(--theme-color-bg-subtle); }

/* 公益倡议、下载与激活 */
.section h2 { font-size: clamp(32px, 3.75vw, 56px); letter-spacing: -.03em; font-weight: 800; }
.section p { color: var(--theme-color-text-muted); text-wrap: pretty; }
.section-head { text-align: center; margin: 0 auto clamp(36px, 4.6vw, 74px); }
.section-head p, .activate-intro > p { margin-top: 16px; font-size: clamp(16px, 1.35vw, 20px); }
.section-head a { color: var(--theme-color-brand); text-decoration: underline; text-underline-offset: 4px; }
.pledge-grid, .download-grid, .activate-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pledge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.pledge-icon { color: var(--theme-color-brand); }
.pledge-icon svg { display: block; width: 32px; height: 32px; }
.pledge-card h3 { margin: 20px 0 12px; font-weight: 680; font-size: clamp(19px, 1.6vw, 23px); }
.pledge-card p { line-height: 1.85; }
.download-grid { gap: var(--theme-grid-gap, 24px); }
/* 三张操作卡共用深色表面，边缘和主按钮呼应各自的背景光。 */
.download-win {
  --card-ink: #8de8ff;
  --card-light: #31caff;
  --card-cta: linear-gradient(110deg, #92eeed, #91caff 85%);
  --surface: linear-gradient(125deg, #18344b, #1a2138 47%, #1c1c32);
}
.download-mac {
  --card-ink: #e0baff;
  --card-light: #cb86ff;
  --card-cta: linear-gradient(110deg, #c1a5ff, #e1aaff);
  --surface: linear-gradient(125deg, #302445, #211d39 48%, #291e40);
}
.download-card, .activate-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    var(--surface) padding-box,
    linear-gradient(135deg, var(--card-light), #484766 34%, #393652 70%, var(--card-light)) border-box;
  box-shadow: 0 18px 44px -26px #030317c9, inset 0 1px #ffffff0d;
  min-width: 0;
}
.download-card {
  container-type: inline-size;
  gap: 12px;
  overflow: hidden;
}
/* 右上角的弧线延续激活区的星轨，向正文方向逐渐隐去。 */
.download-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 56%;
  height: 48%;
  color: var(--card-light);
  background:
    radial-gradient(circle at 80% 28%, #fff 1px, currentColor 2px, transparent 4px),
    radial-gradient(circle at 62% 14%, #fff 1px, transparent 2px),
    repeating-radial-gradient(ellipse 95% 140% at 100% -76%, transparent 0 8%, currentColor 8.2%, transparent 8.5%),
    radial-gradient(ellipse at 100% 0, currentColor, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 100% at 100% 0, #0009, transparent);
  pointer-events: none;
}
.download-card h3 {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-bottom: 10px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.035em;
}
.platform-mark {
  width: 1em;
  height: 1em;
  color: var(--card-ink);
  filter: drop-shadow(0 0 14px #b2deff33);
}
.download-card .requirements { color: var(--theme-color-text); font-weight: 600; }
.download-card .requirements span::before { content: "· "; }
.download-card .requirements + p { line-height: 1.8; margin-bottom: 16px; text-wrap: pretty; }
.download-footer, .download-actions, .footer-beian {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.download-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #d8d6ff24;
  justify-content: space-between;
}
.download-meta {
  display: grid;
  gap: 6px;
  color: var(--theme-color-text-muted);
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.download-meta strong { margin-left: 4px; color: var(--card-ink); font-variant-numeric: tabular-nums; }
.download-meta strong, .result-meta, .download-guide { overflow-wrap: anywhere; }
.download-actions { gap: 8px; }
.download-card .btn-primary, .activate-panel .btn-primary {
  min-height: 48px;
  background: var(--card-cta);
  box-shadow: inset 0 1px 0 #ffffff52, 0 6px 20px -10px var(--card-light);
}
.download-card:focus-within, .activate-panel:focus-within {
  box-shadow: 0 16px 42px -28px var(--card-light), inset 0 0 0 1px #ffffff21;
}
@container (max-width: 470px) {
  .download-actions:has(.btn-ghost:not([hidden])) { width: 100%; }
  .download-actions .btn { flex: auto; }
}
@container (max-width: 340px) {
  .download-card .requirements span { display: block; }
  .download-card .requirements span::before { content: none; }
  .download-footer { padding-top: 16px; gap: 14px; }
  .download-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; }
  .download-actions, .download-actions .btn { width: 100%; }
}
.download-guide { margin-top: 24px; white-space: pre-line; text-align: center; }
.download-guide:empty { display: none; }
code, .extract-code {
  padding: .12em .42em;
  border-radius: 5px;
  font-family: var(--theme-font-mono, monospace);
  color: var(--theme-color-brand-hover);
  background: var(--theme-color-brand-soft);
}
.activate-shell { gap: clamp(40px, 6vw, 92px); align-items: start; }
.verify-rules { padding: 0; margin: 28px 0 0; list-style: none; counter-reset: step; }
.verify-rules li { position: relative; margin-top: 16px; padding-left: 40px; counter-increment: step; }
.verify-rules li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 27px;
  border-radius: 50%;
  background: var(--theme-color-brand-soft);
  color: var(--theme-color-brand-hover);
  font: 650 14px/27px var(--theme-font-body);
  text-align: center;
}
.req-parse-status.is-valid { color: var(--theme-color-secondary); }
.activate-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
}
.activate-panel {
  --card-light: #ae96ff;
  --card-cta: linear-gradient(108deg, #a5ddff, #c2b6ff 49%, #e1b5ff);
  --surface:
    radial-gradient(ellipse 70% 75% at 0 100%, #20658469, transparent),
    radial-gradient(ellipse 78% 75% at 100% 0, #9951bc47, transparent),
    linear-gradient(130deg, #23233e, #18182e);
  padding: clamp(26px, 2.4vw, 34px);
  gap: 22px;
  background:
    var(--surface) padding-box,
    linear-gradient(35deg, #80ebff, #495374 25%, #555174 68%, #e8b5ff) border-box;
}
/* 短状态与申请码标题并排，维护和演示等长提示可自然换到下一行。 */
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.field-head label { font-size: 22px; line-height: 1.4; font-weight: 750; cursor: text; }
.demo-notice {
  color: var(--theme-color-text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}
.demo-notice.is-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--theme-color-secondary);
  font-weight: 550;
}
.demo-notice.is-live::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px #8ce2c21a, 0 0 9px #76f7c866;
}
textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #716a8a;
  border-radius: 13px;
  background: var(--theme-color-bg);
  line-height: 1.6;
  font-size: 16px;
}
textarea { resize: vertical; font-family: var(--theme-font-mono, monospace); overflow-wrap: anywhere; }
textarea::placeholder, .slogan-input::placeholder { color: #aaa5be; }
textarea:focus { border-color: var(--theme-color-brand); }
/* 输入区与状态行共用边框，粘贴后将引导区的高度让给文本和校验结果。 */
.request-field {
  --field-color: #be9eff;
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 184px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  background: #101123d9;
  border: 1px solid #625c85;
  border-radius: 17px;
}
.request-field:has(.is-valid) { --field-color: var(--theme-color-secondary); }
.request-field:has(.is-invalid) { --field-color: var(--theme-color-danger); }
.request-field:has(textarea:not(:placeholder-shown)), .request-field:focus-within {
  border-color: var(--field-color);
}
.request-field:focus-within {
  box-shadow: 0 0 0 3px #bb9dff29, 0 0 22px #ab78ff1c;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-color) 18%, transparent);
}
.request-field textarea {
  grid-area: 1 / 1;
  align-self: stretch;
  min-height: 96px;
  background: transparent;
  border: none;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: #7b749b transparent;
}
.request-field textarea:focus { outline: 2px solid transparent; }
.request-field textarea:placeholder-shown { resize: none; }
.request-field textarea::placeholder { color: transparent; }
.request-hint {
  grid-area: 1 / 1;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: inherit;
  pointer-events: none;
  text-align: center;
  background:
    radial-gradient(ellipse 42% 85% at 50% 35%, #7c60d12b, transparent),
    radial-gradient(circle, #a6aeff24 .9px, transparent 1px) center / 18px 18px;
}
.request-cat { width: 132px; margin-bottom: 8px; }
.request-hint strong { font-size: 18px; font-weight: 650; }
.request-hint span { margin-top: 3px; color: var(--theme-color-text-muted); font-size: 14px; }
.request-hint bdi { color: #cbb6ff; font-family: var(--theme-font-mono, monospace); }
.request-field textarea:not(:placeholder-shown) + .request-hint { display: none; }
.req-parse-status {
  min-height: 46px;
  padding: 10px 16px;
  border-top: 1px solid #d0c3fa20;
  font-size: 14px;
  color: var(--theme-color-text-muted);
  overflow-wrap: anywhere;
}
.request-field textarea:placeholder-shown ~ .req-parse-status {
  position: absolute;
  clip-path: inset(50%);
  pointer-events: none;
}
.req-parse-status.is-invalid, .modal-error { color: var(--theme-color-danger); }
.activate-panel .btn-primary {
  min-height: 52px;
  border-radius: 15px;
  gap: .8em;
  font-weight: 750;
}
.activate-panel .btn-primary::after {
  content: "";
  width: 18px;
  height: 16px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 44%, 78% 44%, 47% 10%, 55% 1%, 100% 50%, 55% 99%, 47% 90%, 78% 56%, 0 56%);
}
@container (max-width: 385px) {
  .activate-panel { gap: 16px; }
  .field-head label { font-size: 18px; }
  .request-field { min-height: 164px; }
  .request-cat { width: 114px; }
  .request-hint strong { font-size: 16px; }
  .request-hint span, .req-parse-status { font-size: 13px; }
  .activate-panel .btn-primary { padding-inline: 8px; font-size: 15px; gap: .45em; }
}

/* 生成后在原位切换卡片，左侧标记已完成的步骤。 */
.activate-shell:has(.result-card:not([hidden])) { align-items: center; }
.activate-shell:has(.result-card:not([hidden])) .verify-rules li:not(:last-child) {
  color: var(--theme-color-text-muted);
}
.activate-shell:has(.result-card:not([hidden])) .verify-rules li:not(:last-child)::before {
  content: "✓";
  background: var(--theme-color-secondary-soft);
  color: var(--theme-color-secondary);
}
.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 28px 7% 14px;
  scroll-margin-block: 16px;
  text-align: center;
  border-top: 2px solid transparent;
  border-radius: var(--theme-card-radius, 20px);
  background:
    radial-gradient(ellipse 54% 50% at 7% -6%, #44dcff66, transparent 78%) padding-box,
    radial-gradient(ellipse 55% 50% at 91% -6%, #d668ff61, transparent 78%) padding-box,
    linear-gradient(#202036, var(--theme-color-card) 52%) padding-box,
    linear-gradient(100deg, #54ebff, #a3b5ff 48%, #efa8ff) border-box;
  box-shadow: inset 0 0 0 1px #ffffff08;
}
.result-mark { width: 124px; max-width: 100%; justify-self: center; }
.result-card h3 { margin-top: 8px; font-size: 30px; font-weight: 800; outline: none; }
.result-card .result-thanks { margin-top: 4px; font-size: 16px; font-weight: 550; color: var(--theme-color-brand-hover); }
.result-details {
  margin-top: 20px;
  background: #100f1da8;
  border: 1px solid #bfa6ff40;
  border-radius: 13px;
}
.result-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  color: var(--theme-color-brand-hover);
  font-size: 14px;
  border-radius: inherit;
}
.result-details summary::-webkit-details-marker { display: none; }
.result-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.result-details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.result-details[open] .result-expand, .result-details:not([open]) .result-collapse { display: none; }
.result-details bdi {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--theme-color-text);
  user-select: none;
}
.result-details bdi, .result-card textarea {
  font: 16px/1.55 ui-monospace, "Cascadia Mono", Consolas, Menlo, "Courier New", monospace;
}
.result-card textarea {
  display: block;
  padding: 10px 15px;
  border: 0;
  border-radius: 0;
  word-break: break-all;
  scrollbar-width: thin;
}
.result-meta { padding: 10px 14px; font-size: 13px; }
.result-copy {
  margin-top: 14px;
  min-height: 48px;
  padding: .55em .7em;
  font-size: 17px;
  font-weight: 750;
  background: var(--theme-color-brand) linear-gradient(110deg, #c7a9ff, #bf9dfc 52%, #ccaaff);
}
.result-card .result-copy.is-copied { background: var(--theme-color-secondary); }
.result-copy.is-copied svg, .result-meta:empty { display: none; }
.result-card .result-copy span { transform: none; }
.result-card .result-tip { margin: 12px 0 16px; font-size: 15px; text-wrap: balance; }
.result-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  padding-top: 5px;
  border-top: 1px solid var(--theme-color-border);
  color: var(--theme-color-text-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.result-link { min-height: 44px; color: var(--theme-color-brand-hover); font-size: 14px; }
.result-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.result-footer .result-link { margin-left: auto; }
/* 单栏时卡片已包含最后一步，收起上方已完成的步骤。 */
@media (max-width: 850px) {
  .activate-shell:has(.result-card:not([hidden])) .verify-rules { display: none; }
}
@container (max-width: 440px) {
  .result-card { padding: 24px 6% 10px; }
  .result-card h3 { font-size: 26px; }
  .result-details summary { padding-inline: 12px; gap: 6px; }
  .result-details bdi, .result-card .result-tip { font-size: 14px; }
  .result-footer, .result-link, .result-details summary { font-size: 13px; }
}
@container (max-width: 310px) {
  .result-details bdi { font-size: 12px; }
  .result-details summary { padding-inline: 8px; }
}
/* 手机横屏优先让激活码和复制按钮同时可见。 */
@media (max-height: 520px) and (orientation: landscape) {
  .result-card { padding-block: 14px 18px; }
  .result-mark { width: 92px; }
  .result-card h3 { margin-top: 4px; font-size: 23px; }
  .result-card .result-thanks { margin-top: 2px; font-size: 15px; }
  .result-details, .result-copy { margin-top: 10px; }
  .result-details summary, .result-copy { min-height: 44px; }
  .result-card .result-tip { margin-block: 6px; font-size: 14px; }
}

.site-footer { text-align: center; padding: 42px var(--gutter); }
.site-footer .container { width: 100%; }
.footer-inner p, .footer-beian { color: var(--theme-color-text-muted); font-size: 14px; }
.footer-inner p { margin-top: 8px; }
.footer-beian { justify-content: center; margin-top: 20px; }
.beian-item { display: inline-flex; align-items: center; gap: 6px; }
.beian-sep { opacity: .45; }

/* 激活弹窗。光晕留在遮罩上，猫耳和滑块不参与背景模糊。 */
body.verify-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  padding: max(40px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 42% 65% at -10% 34%, #2588db70, transparent 85%),
    radial-gradient(ellipse 33% 44% at -5% 65%, #04c6e866, transparent 80%),
    radial-gradient(ellipse 37% 67% at 107% 44%, #d75bdb80, transparent 85%),
    #080919e8;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal-card {
  --panel: #191829;
  --inset: clamp(16px, 16vw - 45px, 26px);
  position: relative;
  margin: auto;
  width: min(100%, 416px);
  min-width: 0;
  padding-inline: var(--inset);
  border: 2px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(var(--panel) 15%, #1b192e) padding-box,
    linear-gradient(transparent, #504066 80%) border-box,
    linear-gradient(90deg, #62eafa, #adc0ff 36%, #e3a8fa 64%, #fa9ddd) border-box;
  box-shadow: 0 20px 65px #03030b66;
}
.modal-ears {
  position: absolute;
  width: 118px;
  height: 36px;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--panel);
  pointer-events: none;
}
.modal-ears circle { filter: drop-shadow(0 0 4px #d9eaff); }
.modal-head { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 6px; }
.modal-steps {
  display: flex;
  gap: .25em;
  font-size: 20px;
  font-weight: 650;
  color: var(--theme-color-text-muted);
  font-variant-numeric: tabular-nums;
}
.m-step:not(.is-active) { display: none; }
.m-step.is-active { color: var(--theme-color-brand); }
.modal-head h3 {
  grid-column: 1 / -1;
  margin: 2px 0 10px;
  text-align: center;
  font-size: clamp(26px, 7.5vw, 33px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.modal-card:has(.modal-body[hidden] + .modal-body[hidden]) h3 { margin-bottom: 34px; font-size: 22px; }
.modal-close {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  border-radius: 50%;
}
.modal-head svg, .modal-body svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.modal-close svg { width: 24px; height: 24px; }
.modal-close:focus-visible { outline-offset: -3px; }
.modal-body {
  --refresh-height: 48px;
  container-type: inline-size;
}
.modal-desc {
  margin: 0 0 20px;
  font-size: clamp(14px, 4.1vw, 17px);
  line-height: 1.55;
  color: var(--theme-color-text-muted);
  text-align: center;
}
/* 两步共用拼图原始宽高比与换图按钮的占位，切换时底部操作区保持同一高度。 */
.modal-challenge {
  display: flex;
  flex-direction: column;
  min-height: calc(100cqw * 170 / 360 + var(--refresh-height));
}
.puzzle-stage, .slogan-stage {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: var(--theme-color-bg);
  user-select: none;
}
#puzzle-bg, #slogan-canvas { display: block; width: 100%; height: auto; }
#puzzle-piece { position: absolute; inset: 0 auto 0 0; width: calc(100% / 6); height: 100%; pointer-events: none; }
.modal-refresh {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  min-height: var(--refresh-height);
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 550;
  color: var(--theme-color-brand);
}
.puzzle-toast {
  position: absolute;
  inset: auto 0 0;
  padding: 6px 10px;
  text-align: center;
  font-size: 14px;
  color: white;
}
.puzzle-toast.is-ok { background: #126045ee; }
.puzzle-toast.is-err { background: #922937ee; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 91px;
  margin: 12px calc(-1 * var(--inset)) 0;
  padding: 18px var(--inset) 21px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(120deg, #29243e, #211e35 85%);
}
.modal-actions .btn { font-size: clamp(14px, 4.15vw, 18px); min-height: 46px; padding: .54em .5em; }
.modal-actions .btn-back { flex: 1; padding-inline: 0; color: var(--theme-color-brand); font-weight: 550; }
.modal-actions .btn-primary { min-width: 60%; font-weight: 750; }
.btn-back[hidden] + .btn-primary { width: 100%; }
.slider-track {
  position: relative;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  background: #100f1e;
  border: 1px solid #686181;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.slider-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #403a70, #624e91);
  transform-origin: left;
  transform: scaleX(0);
}
.slider-track.is-ok .slider-fill { background: var(--theme-color-secondary-soft); }
.slider-track.is-ok .slider-handle { background: var(--theme-color-secondary); }
.slider-track.is-err { border-color: var(--theme-color-danger); }
.slider-track:focus-within { outline: 2px solid var(--theme-color-brand); outline-offset: 2px; }
.slider-hint {
  position: absolute;
  inset: 0 0 0 54px;
  display: grid;
  place-items: center;
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 550;
  color: var(--theme-color-text-muted);
  pointer-events: none;
}
/* 手柄保留原有尺寸和两侧 3px 行程余量，位置始终跟随指针。 */
.slider-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--theme-color-brand);
  color: var(--on-accent);
  cursor: grab;
  touch-action: none;
}
.slider-handle svg { width: 30px; height: 30px; stroke-width: 2.4; }
.slider-handle:active { cursor: grabbing; }
.slider-handle:focus-visible { outline: none; }
.slogan-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px 8px;
  margin-top: auto;
  padding: 11px 16px 14px;
  background: #121121;
  border: 1px solid #655e7d;
  border-radius: 13px;
  cursor: text;
}
.slogan-field:focus-within { border-color: var(--theme-color-brand); box-shadow: 0 0 0 3px #c5a6ff18; }
.slogan-input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  outline: none;
  background: transparent;
  color: var(--theme-color-text);
  font-size: clamp(17px, 5vw, 21px);
  line-height: 1.5;
  caret-color: var(--theme-color-brand);
}
.slogan-input::placeholder { font-size: 16px; }
.slogan-count { color: var(--theme-color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slogan-progress { grid-column: 1 / -1; display: flex; gap: min(1.6%, 6px); }
.slogan-progress span { flex: 1; height: 5px; border-radius: 5px; background: #423f56; }
.slogan-progress .is-match { background: var(--theme-color-brand); }
.slogan-progress .is-wrong { background: var(--theme-color-danger); }
.modal-error { margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.toast-float {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 13px 21px;
  border-radius: 16px;
  background: #f4efff;
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 32px #0004;
}

/* 平板和触屏 */
@media (max-width: 1450px) {
  .sky-stars use:nth-child(3), .sky-stars use:last-child { visibility: hidden; }
  .cat-stars { width: 72px; }
  .paw-ascent { width: calc(var(--path-side) - 14px); }
}
@media (max-width: 1359px) {
  .night-sky { --path-side: 12%; }
  .paw-ascent { display: none; }
  .paw-trail { height: clamp(66px, 9vw, 125px); }
  .cat-stars { top: auto; bottom: 3%; right: 4%; width: min(7vw, 9vh); }
}
@media (max-width: 850px) {
  .orbit { inset: -8% -4%; --near-text: 1; }
  .orbit span { width: 16px; height: 16px; }
  .orbit span::after { inset: -16px -18px -16px -54px; }
  .activate-column::before, .activate-column::after { height: 54%; }
  .activate-column::before { top: -25%; }
  .activate-column::after { bottom: -25%; }
  .download-lights::before, .download-lights::after { width: 105%; height: 72%; }
  .download-lights { mask-image: linear-gradient(#0009, #0007 18%, black 31%, black 80%, #0006 94%); }
  .download-lights::before { left: -55%; }
  .download-lights::after { top: auto; bottom: -8%; right: -57%; }
}
@media (max-width: 700px) {
  .night-sky {
    --path-side: 16%;
    background-size: 150% 75%, 160% 70%, auto;
    background-position: top left, bottom right, center;
    background-repeat: no-repeat;
  }
  .paw-trail { height: 59px; left: 2%; }
  .night-sky .paw-trail use:nth-child(n) { --size: .53; }
  .paw-trail use:nth-child(even) { display: none; }
  .cat-stars { bottom: 10px; right: 4%; width: 44px; }
  .sky-stars { height: 36px; top: 10px; }
  .sky-stars use:nth-child(even) { visibility: hidden; }
}
@media (min-width: 1051px) {
  .hero-stage { padding-block: 12px 18px; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .stats-inner { min-height: max(108px, 17.5vh); }
  .section { padding-top: 34px; }
  .section-head p { margin-top: 9px; }
}
@media (max-width: 1050px) {
  .pledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
  .stats-inner { gap: 5vw; }
  .stats-list { gap: 14px; }
  .stats-list dd { font-size: clamp(24px, 3vw, 32px); }
  .download-actions .btn { padding-inline: 1.1em; }
  .activate-shell { gap: 32px; }
}
@media (max-width: 850px) {
  .activate-shell, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .container { max-width: 660px; }
  .site-nav { gap: 20px; }
  .stats-inner { gap: 4vw; }
  .stats h2 { font-size: 18px; }
  .stats-list dt { font-size: 15px; }
  .stats-list dd { font-size: 22px; }
}
@media (max-width: 700px) {
  :root { --header-height: 76px; --gutter: clamp(18px, 5.9vw, 32px); }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 8px;
    width: 46px;
    height: 46px;
    margin-right: -11px;
    border-radius: 12px;
  }
  .menu-toggle::before, .menu-toggle::after {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .24s var(--ease-out);
  }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--theme-color-bg-subtle);
    box-shadow: 0 18px 28px #0003;
    padding: 10px var(--gutter) 16px;
  }
  .menu-toggle[aria-expanded="true"] + .site-nav { display: block; }
  .site-nav a, .site-nav .nav-activate { display: block; border: 0; padding: 12px 0; }
  .site-nav .nav-activate { color: var(--theme-color-brand); }
  .hero-stage { padding-block: 38px 44px; }
  /* 窄屏把亮部移到对角，避免光带从说明文字和链接下穿过。 */
  .aurora-cool, .aurora-warm { width: 74%; }
  .aurora-cool::before { --level: -30%; --slope: 26deg; }
  .aurora-cool::after { --level: 47%; --slope: 15deg; opacity: .46; }
  .aurora-warm::before { --level: 22%; --slope: 36deg; }
  .aurora-warm::after { --level: 4%; --slope: 36deg; opacity: .48; }
  .aurora::before {
    background:
      radial-gradient(ellipse 64% 55% at 50% 55%, #0b0b20eb, #0d0b21ad 50%, transparent 86%),
      linear-gradient(#07091b80, transparent 24%);
  }
  .aurora::after { left: 22%; top: 45%; width: 160vw; }
  .hero h1 { font-size: clamp(42px, 14vw, 86px); line-height: 1.25; letter-spacing: -.015em; }
  .title-response { padding-left: .05em; margin-top: .12em; }
  .key-face { width: 1.34em; }
  .hero-lead { margin-top: 32px; font-size: clamp(15px, 4.1vw, 19px); line-height: 1.75; }
  .hero-actions { margin-top: 28px; font-size: clamp(16px, 4vw, 20px); gap: 1.4em; }
  .hero-actions .btn { font-size: 1em; padding: .85em 1.55em; }
  .hero-activate { display: flex; gap: .35em; align-items: center; min-height: 44px; border-width: 1px; }
  .hero-platforms { font-size: 14px; margin-top: 18px; }
  .stats-inner { display: block; padding: 27px 9px 31px; }
  .stats h2 { font-size: 17px; }
  #stats-status { display: inline; margin-left: 12px; }
  .stats-content { margin-top: 25px; }
  .stats-list { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 44px; }
  .stats-loader { gap: clamp(16px, 3.5vh, 30px); padding-bottom: clamp(16px, 3.8vh, 34px); }
  .stats-line { stroke-width: 3.8; }
  .stats-spark { stroke-width: 13; }
  .stats-list dd { font-size: clamp(26px, 7.9vw, 35px); }
  .section { padding-block: 46px 66px; }
  .section-head { text-align: left; }
  .section h2 { font-size: clamp(30px, 9.2vw, 40px); }
  .pledge-grid { gap: 28px; }
  .download-card, .activate-panel { padding: 24px; }
  .site-footer { text-align: left; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .footer-beian { justify-content: start; }
}
@media (max-width: 560px) {
  .pledge-grid { grid-template-columns: minmax(0, 1fr); }
  .pledge-card { display: grid; grid-template-columns: 27px 1fr; gap: 7px 13px; }
  .pledge-card h3 { margin: 0; }
  .pledge-card p { grid-column: 2; }
  .pledge-icon svg { width: 25px; height: 25px; }
  .download-card p, .pledge-card p, .verify-rules { font-size: 15px; }
  .download-card .requirements { font-size: 14px; }
  .beian-sep { display: none; }
  .footer-beian { flex-direction: column; align-items: start; }
}
@media (max-width: 420px), (max-height: 540px) {
  .modal-head { padding-top: 2px; }
  .modal-steps { font-size: 17px; }
  .modal-desc { margin-bottom: 16px; }
  .modal-actions { min-height: 82px; margin-top: 8px; padding-block: 14px 16px; }
  .slogan-field { padding: 9px 12px 12px; row-gap: 9px; }
  .slogan-count { font-size: 14px; }
}
@media (max-width: 365px) {
  .field-head label { font-size: 16px; }
  .demo-notice.is-live { font-size: 12px; gap: 7px; }
  :root { --gutter: 17px; --header-height: 64px; }
  .hero h1 { font-size: 13.3vw; }
  .hero-lead { font-size: 14px; }
  .hero-actions { gap: 16px; font-size: 15px; }
  .hero-actions .btn { padding-inline: 1.3em; }
  .stats-list { gap: 16px; }
  .stats-inner { padding: 21px 4px; }
  .download-card, .activate-panel { padding: 20px 17px; }
  .modal-backdrop { padding-inline: 10px; }
  .slogan-field { padding-block: 6px 8px; row-gap: 7px; }
  .slogan-input::placeholder { font-size: 14px; }
}
/* 短屏将标题并入顶栏，键盘弹出后仍可在遮罩内上下滚动。 */
@media (max-height: 540px) {
  .modal-backdrop { padding-block: 32px 8px; }
  .modal-card { --inset: 16px; width: min(100%, 360px); }
  .modal-head { padding-top: 0; }
  .modal-steps { grid-area: 1 / 1; justify-self: start; font-size: 15px; }
  .modal-head h3 { grid-row: 1; justify-self: center; max-width: calc(100% - 86px); margin: 0; font-size: 21px; }
  .modal-body { --refresh-height: 44px; }
  .modal-desc { font-size: 14px; margin-bottom: 6px; }
  .modal-actions { min-height: 68px; padding-block: 8px; margin-top: 3px; }
}
@media (min-width: 540px) and (max-height: 400px) {
  .modal-body { position: relative; }
  .modal-desc { display: flex; align-items: center; text-align: left; padding-right: 96px; min-height: var(--refresh-height); margin: 0; }
  .modal-refresh { position: absolute; top: 0; right: 0; font-size: 14px; gap: 4px; }
  .modal-refresh svg { width: 17px; }
  .modal-challenge { min-height: calc(100cqw * 170 / 360); }
}
/* 短屏手机与接近方形的窄窗口，按可用高度为双排统计预留空间。 */
@media (max-width: 700px) and (max-height: 740px),
       (min-width: 421px) and (max-width: 700px) and (max-height: 880px) {
  :root { --header-height: 64px; }
  .hero-stage { padding-block: 20px 22px; }
  .hero h1 { font-size: clamp(40px, min(14vw, 8.5vh), 86px); }
  .hero-lead { margin-top: 24px; font-size: clamp(14px, min(4.1vw, 2.4vh), 18px); }
  .hero-actions { margin-top: 20px; }
  .stats-inner { padding-block: 20px; }
  .stats-content { margin-top: 16px; }
  .stats-list { gap: 14px 24px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-height: 60px; }
  .hero h1 { font-size: clamp(46px, 13vh, 66px); }
  .hero-stage { padding-block: 20px 28px; }
  .hero-lead { margin-top: 18px; font-size: 16px; }
  .hero-actions { margin-top: 16px; font-size: 17px; }
  .hero-platforms { margin-top: 12px; }
  .site-nav { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
}

/* 悬停反馈只用于支持悬停的设备。 */
@media (hover: hover) {
  .modal-close:hover { background: var(--theme-color-brand-soft); }
  .modal-refresh:hover, .btn-back:hover { color: var(--theme-color-text); }
  .slider-handle:hover { background: var(--theme-color-brand-hover); }
  .site-nav a:hover, .hero-activate:hover, .beian-item:hover { color: var(--theme-color-brand); border-color: currentColor; }
  .btn-primary:hover:not(:disabled) { background: var(--theme-color-brand-hover); }
  .download-card .btn-primary:hover:not(:disabled), .activate-panel .btn-primary:hover:not(:disabled) {
    background: var(--card-cta);
    filter: brightness(1.06);
  }
  .btn-ghost:hover { border-color: var(--theme-color-brand); }
  .btn:hover:not(:disabled) span { transform: translate(2px, -2px); }
  .hero-actions .btn:hover span { transform: translateY(3px); }
  .hero-activate:hover span, .nav-activate:hover span { transform: translate(2px, -2px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .download-card:hover { transform: translateY(-4px); }
  .download-card:hover::before { transform: scale(1.12); }
  .download-card:hover .platform-mark { transform: translateY(-2px) scale(1.05); }
  .activate-panel .btn-primary:hover:not(:disabled)::after { transform: translateX(3px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(var(--rise-distance, 20px)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes press {
  0%, 100% { transform: translateY(0); }
  16%, 28% { transform: translateY(.1em) scale(.99); }
  65% { transform: translateY(-.028em); }
}
@keyframes echo {
  from { opacity: .66; transform: scale(.98); }
  to { opacity: 0; transform: scale(1.65); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  34% { transform: translateY(-.13em) rotate(-2deg); }
}
@keyframes glow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.12); }
  20% { opacity: .78; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.26); }
}
@keyframes aurora-drift {
  0%, 100% { transform: translateY(var(--level)) skewY(var(--slope)); }
  34% { transform: translate(-3%, calc(var(--level) - 7%)) skewY(calc(var(--slope) + 6deg)) scale(1.12, 1.16); }
  68% { transform: translate(2%, calc(var(--level) + 5%)) skewY(calc(var(--slope) - 5deg)) scale(.94, .87); }
}
@keyframes aurora-spread {
  0%, 100% { scale: 1; }
  26% { scale: 1.09 1.13; }
}
/* 路径长度归一到 100，单个圆头短线沿猫耳移动。 */
@keyframes stats-glide {
  0% { stroke-dashoffset: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes ear-pulse {
  from { opacity: .62; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.1); }
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .download-card, .activate-panel { transition: transform .32s var(--ease-out), box-shadow .3s; }
  .platform-mark, .download-card::before, .activate-panel .btn-primary::after {
    transition: transform .42s var(--ease-out);
  }
  .request-field { transition: border-color .2s, box-shadow .2s; }
  .request-cat { transition: transform .35s var(--ease-out); }
  .request-field:focus-within .request-cat { transform: translateY(-3px); }
  .request-field:focus-within .request-glints { animation: ear-pulse 1.5s ease-in-out infinite alternate; transform-origin: center; }
  /* 每枚脚印依次亮起再淡出，负延时让首次进入时已有一段足迹。 */
  @keyframes paw-step {
    0%, 100% { opacity: .18; }
    4%, 12% { opacity: 1; }
    40% { opacity: .46; }
    70% { opacity: .21; }
  }
  .paw-trail use, .paw-ascent use {
    animation: paw-step 8s calc(var(--step) * .4s - 8s) linear infinite;
  }
  @keyframes sky-pulse { from { opacity: .32; } to { opacity: 1; } }
  .sky-stars use, .cat-stars use { animation: sky-pulse 2.3s ease-in-out infinite alternate; }
  .sky-stars use:nth-child(odd), .cat-stars use:nth-child(odd) { animation-delay: -2s; }
  .cat-stars use:nth-child(3n) { animation-delay: -1.3s; }
  @keyframes cool-drift {
    from { transform: translate(-4%, 6%) rotate(-29deg); }
    to { transform: translate(8%, -4%) rotate(-16deg); }
  }
  @keyframes warm-drift {
    from { transform: translate(4%, -8%) rotate(-27deg); }
    to { transform: translate(-7%, 3%) rotate(-42deg); }
  }
  .download-lights::before { animation: cool-drift 8s -4s ease-in-out infinite alternate; }
  .download-lights::after { animation: warm-drift 10s -6s ease-in-out infinite alternate; }
  @supports (offset-path: ellipse(50% 50% at 50% 50%)) {
    /* 星光经过左侧说明时淡出，窄屏下说明在上方，无需淡出。 */
    @keyframes orbit-pass {
      32%, 68% { opacity: 1; }
      41%, 59% { opacity: var(--near-text, 0); }
      to { offset-distance: 100%; }
    }
    .orbit span, .orbit span + span {
      top: 0;
      left: 0;
      offset-path: ellipse(50% 50% at 50% 50%);
      animation: orbit-pass 20s -18s linear infinite;
    }
    .orbit span + span { animation-delay: -8s; }
  }
  .section-art::before, .section-art::after, .section-art use, .section-art.orbit span {
    animation-play-state: var(--art-state, paused);
  }
  .modal-ears circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: ear-pulse 1.7s ease-in-out infinite alternate;
  }
  .modal-body { animation: step-in .2s var(--ease-out); }
  .modal-refresh svg, .slider-handle svg { transition: transform .24s var(--ease-out); }
  .modal-refresh:active svg { transform: rotate(90deg); }
  .slider-handle:active svg { transform: translateX(2px) scale(.94); }
  .slogan-field { transition: border-color .18s, box-shadow .18s; }
  .slogan-progress span { transition: background-color .14s; }
  /* 结束时熄灭光点，避免动画移除后跳回静态耳尖。 */
  .stats-spark { opacity: 0; }
  .stats-list[aria-busy="true"] + .stats-loader .stats-spark {
    animation: stats-glide 2.4s -.55s cubic-bezier(.28,.46,.72,.54) infinite;
  }
  .stats-loader { transition: opacity .22s ease-in-out, visibility 0s .22s; }
  .stats-list[aria-busy="true"] { transform: translateY(5px); }
  .stats-list[aria-busy="false"] {
    transition: opacity .34s .1s ease, transform .38s .1s var(--ease-out);
  }
  .aurora-flow { transition: transform 1.15s var(--ease-out); }
  .aurora-flow span::before, .aurora-flow span::after {
    animation: aurora-drift 12s ease-in-out infinite;
    animation-play-state: var(--drift-state, paused);
  }
  .aurora-flow .aurora-cool::after { animation-duration: 9s; animation-delay: -1.2s; }
  .aurora-flow .aurora-warm::before { animation-duration: 11s; animation-direction: reverse; }
  .aurora-flow .aurora-warm::after { animation-duration: 14s; animation-delay: -2.7s; }
  .title-line, .hero-lead, .hero-actions, .hero-platforms, .stats-inner {
    animation: rise .62s var(--ease-out) backwards;
  }
  .title-response { animation-delay: .1s; }
  .hero-lead { animation-delay: .2s; }
  .hero-actions { animation-delay: .28s; }
  .hero-platforms { animation-delay: .36s; }
  /* 首屏尚未播完就上滑时，也给统计数字和下一段的光边留出间距。 */
  .stats-inner { --rise-distance: 4px; animation-delay: .42s; }
  .modal-card, .menu-toggle[aria-expanded="true"] + .site-nav { animation: rise .23s var(--ease-out); }
  .result-card { --rise-distance: 12px; animation: rise .4s var(--ease-out); }
  .result-check { stroke-dasharray: 1; animation: result-draw .3s .14s ease-out backwards; }
  .result-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: result-twinkle .48s .22s var(--ease-out) backwards;
  }
  .result-star + .result-star { animation-delay: .32s; }
  @keyframes result-draw { from { stroke-dashoffset: 1; } }
  @keyframes result-twinkle {
    from { opacity: 0; transform: scale(.4); }
    55% { opacity: 1; transform: scale(1.2); }
  }
  .is-tapping .key-face { animation: press .42s ease-out; }
  .is-tapping .cat-key::after { animation: echo .68s .09s var(--ease-out); }
  .is-tapping .beat { animation: bounce .39s .10s ease-in-out; }
  .is-tapping .beat:nth-of-type(2) { animation-delay: .16s; }
  .is-tapping .beat:nth-of-type(3) { animation-delay: .22s; }
  .is-tapping .beat:nth-of-type(4) { animation-delay: .28s; }
  .is-tapping .aurora-flow { animation: aurora-spread .85s ease-out; }
  .is-tapping .aurora::after { animation: glow .85s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .aurora-flow { transform: none !important; }
  .cat-key:active .key-face { background: var(--theme-color-brand-hover); }
}
