/* =============================================================================
 * 天天互助站 · Web 版 —— 登录 / 注册「双栏沉浸式」舞台 auth-v2.css
 * -----------------------------------------------------------------------------
 * 作用域：所有选择器一律以 body.auth-stage-page 前缀限定，只影响 login.html /
 *        register.html 两页，不改动站点其它任何页面。
 * 依赖：tokens.css（色彩 / 圆角 / 阴影 / 动效变量）、auth.css（原有表单结构）
 * 原则：纯视觉叠加层。不改变任何 DOM 契约、不改动 tokens/base/components/pages。
 * 色彩纪律：唯一强调色为品牌橙 #FF5A36，其余只用墨色 / 灰阶 / 白。
 * ========================================================================== */

/* ---------------------------------------------------------------- 0. 舞台底色 */
body.auth-stage-page {
  --stage-r: 32px;
  --stage-glass: rgba(255, 255, 255, .90);
  --stage-hair: inset 0 1px 0 rgba(255, 255, 255, .75);
  --stage-shadow:
    0 40px 90px -30px rgba(10, 20, 25, .55),
    0 2px 8px rgba(10, 20, 25, .06);
  --stage-brand-glow: 0 18px 40px -14px rgba(255, 90, 54, .62);

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: #141C21;
  background-image: var(--grad-ink);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--c-white);
}

/* 新布局中导航与页脚只做视觉隐藏，DOM 节点必须保留（auth.js 仍需读写） */
body.auth-stage-page .nav,
body.auth-stage-page .nav__drawer,
body.auth-stage-page .footer,
body.auth-stage-page .auth-stage__crumb {
  display: none !important;
}

/* 滚动进度条保留节点，仅压低存在感 */
body.auth-stage-page .scroll-progress {
  z-index: 6;
  opacity: .45;
}

/* ------------------------------------------------------- 1. 沉浸层背景与光斑 */
body.auth-stage-page .auth-stage__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.auth-stage-page .auth-stage__glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(96px);
  will-change: transform, opacity;
}

body.auth-stage-page .auth-stage__glow--a {
  top: -20%;
  left: -14%;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle, rgba(255, 90, 54, .58), rgba(255, 90, 54, 0) 68%);
  opacity: .58;
  animation: authBreathe 13s var(--ease-glow) infinite;
}

body.auth-stage-page .auth-stage__glow--b {
  top: 4%;
  right: -16%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(255, 122, 82, .42), rgba(255, 122, 82, 0) 70%);
  opacity: .52;
  animation: authBreathe 17s var(--ease-glow) infinite reverse;
}

body.auth-stage-page .auth-stage__glow--c {
  bottom: -26%;
  left: 26%;
  width: 760px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 61, 46, .30), rgba(255, 61, 46, 0) 72%);
  opacity: .46;
  animation: authBreathe 21s var(--ease-glow) infinite;
}

/* 细噪点：轻量 data URI（复用 tokens 的全局噪点纹理） */
body.auth-stage-page .auth-stage__grain {
  position: absolute;
  inset: 0;
  background-image: var(--bg-noise);
  background-size: 160px 160px;
  opacity: .05;
  mix-blend-mode: overlay;
}

/* 边缘压暗，让卡片更「浮」起来 */
body.auth-stage-page .auth-stage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 90% at 50% -10%, rgba(6, 12, 16, 0) 42%, rgba(6, 12, 16, .55) 100%);
}

/* --------------------------------------------------------- 2. 顶部返回与切换器 */
body.auth-stage-page .auth-stage__top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 18px clamp(16px, 3vw, 40px);
  pointer-events: none;
}

body.auth-stage-page .auth-stage__top > * {
  pointer-events: auto;
}

body.auth-stage-page .auth-stage__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px 0 15px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  color: var(--c-white-88);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out-expo),
              border-color var(--dur-2) var(--ease-out-expo),
              color var(--dur-2) var(--ease-out-expo),
              transform var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .auth-stage__back:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .30);
  color: var(--c-white);
  transform: translateX(-2px);
}

/* 分段控件：胶囊玻璃底 + 白色滑块 */
body.auth-stage-page .auth-stage__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.auth-stage-page .auth-stage__switch-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 34px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .auth-stage__switch-item:hover { color: rgba(255, 255, 255, .92); }

body.auth-stage-page .auth-stage__switch-item.is-active,
body.auth-stage-page .auth-stage__switch-item.is-active:hover {
  color: var(--c-ink);
  font-weight: var(--fw-semi);
}

body.auth-stage-page .auth-stage__switch-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--r-full);
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(8, 16, 20, .30), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform 380ms var(--ease-spring);
  pointer-events: none;
}

body.auth-stage-page[data-page="register"] .auth-stage__switch-pill {
  transform: translateX(100%);
}

/* ----------------------------------------------------------- 3. 主舞台与卡片 */
body.auth-stage-page .auth-stage__main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(78px, 9.5vh, 100px) clamp(14px, 3vw, 32px) clamp(20px, 4vh, 44px);
}

body.auth-stage-page .auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: 52fr 48fr;
  width: min(1120px, 94vw);
  height: min(720px, 88vh);
  border-radius: var(--stage-r);
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--stage-glass);
  box-shadow: var(--stage-shadow), var(--stage-hair);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  overflow: hidden;
  animation: authShellIn 760ms var(--ease-out-expo) both;
}

/* --------------------------------------------------------- 4. 左侧品牌视觉栏 */
body.auth-stage-page .auth-visual {
  --mx: 0;
  --my: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(120% 92% at 14% 4%, rgba(255, 90, 54, .36), transparent 62%),
    radial-gradient(96% 84% at 92% 98%, rgba(255, 61, 46, .26), transparent 62%),
    var(--grad-ink);
}

/* 左栏顶部细高光，模拟玻璃压边 */
body.auth-stage-page .auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 26%);
}

body.auth-stage-page .auth-visual__brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

body.auth-stage-page .auth-visual__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7);
}

body.auth-stage-page .auth-visual__wordmark {
  display: grid;
  gap: 1px;
}

body.auth-stage-page .auth-visual__wordmark b {
  font-size: 14px;
  font-weight: var(--fw-semi);
  letter-spacing: .01em;
  color: var(--c-white);
}

body.auth-stage-page .auth-visual__wordmark i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .46);
}

body.auth-stage-page .auth-visual__copy {
  position: relative;
  z-index: 3;
  margin-top: clamp(16px, 2.6vh, 30px);
}

body.auth-stage-page .auth-visual__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .54);
}

body.auth-stage-page .auth-visual__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 12px rgba(255, 90, 54, .95);
}

body.auth-stage-page .auth-visual h2 {
  margin: 11px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.05vw, 27px);
  font-weight: var(--fw-semi);
  line-height: 1.34;
  letter-spacing: -.02em;
  color: var(--c-white);
}

body.auth-stage-page .auth-visual__sub {
  margin: 10px 0 0;
  max-width: 31ch;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .52);
}

/* 插画层 */
body.auth-stage-page .auth-hero-wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
  margin-top: clamp(8px, 1.6vh, 18px);
}

body.auth-stage-page .auth-hero {
  position: relative;
  width: min(300px, 68%);
  height: auto;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 8px), 0);
  transition: transform 340ms var(--ease-out-expo);
  filter: drop-shadow(0 22px 38px rgba(6, 12, 16, .42));
  overflow: visible;
}

/* 眼球跟随：瞳孔位移由 auth-fx.js 写入 --ex / --ey */
body.auth-stage-page .fx-eye-pupil {
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: transform 160ms linear;
}

/* 漂浮气泡卡：外层负责视差，内层负责悬浮动画 */
body.auth-stage-page .auth-bubble {
  position: absolute;
  z-index: 4;
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 16px), 0);
  transition: transform 380ms var(--ease-out-expo);
  pointer-events: none;
}

/* 气泡卡锚定插画中线，随插画舞台收窄等比内收，避免漂浮到舞台边缘 */
body.auth-stage-page .auth-bubble--1 { left: calc(50% - 250px); top: calc(50% - 110px); }
body.auth-stage-page .auth-bubble--2 { right: calc(50% - 250px); top: calc(50% - 4px); }
body.auth-stage-page .auth-bubble--3 { left: calc(50% - 250px); bottom: calc(50% - 142px); }

body.auth-stage-page .auth-bubble__inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 26px -14px rgba(4, 10, 14, .85), inset 0 1px 0 rgba(255, 255, 255, .34);
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  letter-spacing: .01em;
  white-space: nowrap;
  animation: authFloat 7.6s var(--ease-in-out) infinite;
}

body.auth-stage-page .auth-bubble--2 .auth-bubble__inner { animation-delay: -2.4s; }
body.auth-stage-page .auth-bubble--3 .auth-bubble__inner { animation-delay: -4.9s; }

body.auth-stage-page .auth-bubble__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 10px rgba(255, 90, 54, .95);
  flex: none;
}

/* 底部三个小数据点：等分栅格铺满父容器，三列在整行宽度上均匀分布 */
body.auth-stage-page .auth-visual__stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  width: 100%;
  column-gap: clamp(8px, 1.4vw, 16px);
  margin-top: clamp(12px, 2vh, 20px);
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

body.auth-stage-page .auth-visual__stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  justify-items: start;
}

body.auth-stage-page .auth-visual__stat b {
  font-size: 13px;
  font-weight: var(--fw-semi);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
}

body.auth-stage-page .auth-visual__stat span {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .46);
}

/* --------------------------------------------------------- 5. 右侧表单承载栏 */
body.auth-stage-page .auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(22px, 2.3vw, 34px) clamp(22px, 3.2vw, 48px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 100%);
  color: var(--c-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 滚动条：轨道完全透明、滑块 6px、平时极淡、仅 hover 加深。
   注意 1：base.css 的 html { scrollbar-width: thin; scrollbar-color: ... } 会被继承，
   Chromium/Edge 一旦拿到标准属性就忽略 ::-webkit-scrollbar 伪元素样式，
   退回 ~10px 的灰色原生滚动槽（线上验收问题 1 的根因），所以这里先把它重置回 auto。
   注意 2：Firefox 不支持 ::-webkit-scrollbar，才用标准属性兜底。 */
@supports selector(::-webkit-scrollbar) {
  body.auth-stage-page .auth-panel {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

@supports not selector(::-webkit-scrollbar) {
  body.auth-stage-page .auth-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 50, 56, .16) transparent;
  }
}

body.auth-stage-page .auth-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}
body.auth-stage-page .auth-panel::-webkit-scrollbar-track {
  background: transparent;
  box-shadow: none;
}
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb {
  background: rgba(38, 50, 56, .12);
  border-radius: var(--r-full);
}
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb:hover { background: rgba(38, 50, 56, .30); }
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb:window-inactive { background: rgba(38, 50, 56, .10); }
body.auth-stage-page .auth-panel::-webkit-scrollbar-corner { background: transparent; }

/* 原 auth-card 的玻璃外观在此布局中由 shell 承担，只保留排版承载职责 */
body.auth-stage-page .auth-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: none;
  margin: 0;
}

body.auth-stage-page .auth-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.auth-stage-page .auth-head {
  display: grid;
  gap: 7px;
  margin-bottom: clamp(14px, 1.9vh, 18px);
  animation: authFieldIn 700ms 40ms var(--ease-out-expo) both;
}

body.auth-stage-page .auth-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: var(--fw-semi);
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--c-ink);
}

/* 卡片顶部说明文字：原 var(--c-ink-55) 对玻璃底仅 3.08:1，统一提到 .76（与 .auth-foot 同级） */
body.auth-stage-page .auth-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(38, 50, 56, .76);
}

body.auth-stage-page .auth-error {
  margin-bottom: var(--sp-4);
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 62, 27, .26);
  background: rgba(201, 62, 27, .07);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
}

/* ------------------------------------------------------------------ 6. 表单 */
body.auth-stage-page .form { gap: 16px; }

body.auth-stage-page .field {
  position: relative;
  gap: 7px;
}

body.auth-stage-page .field__label {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink-80);
}

body.auth-stage-page .field__label b {
  color: var(--c-brand);
  font-weight: var(--fw-semi);
}

body.auth-stage-page .field__hint {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(38, 50, 56, .72);
}

body.auth-stage-page .input {
  height: 54px;
  padding: 0 var(--sp-4);
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(38, 50, 56, .035);
  font-size: 15px;
  color: var(--c-ink);
  transition: background var(--dur-2) var(--ease-out-expo),
              border-color var(--dur-2) var(--ease-out-expo),
              box-shadow var(--dur-2) var(--ease-out-expo),
              transform var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .input::placeholder { color: var(--c-ink-40); }

body.auth-stage-page .input:hover {
  background: rgba(38, 50, 56, .055);
  border-color: rgba(38, 50, 56, .12);
}

body.auth-stage-page .input:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, .14);
  transform: scale(1.005);
}

body.auth-stage-page .field__check {
  font-size: 12px;
  line-height: 1.65;
  /* 原 var(--c-ink-55) 对白/玻璃底不足 4.5:1；提到 .72 保证协议勾选文字可读性 */
  color: rgba(38, 50, 56, .72);
}

body.auth-stage-page .field__check input[type="checkbox"] { accent-color: var(--c-brand); }
body.auth-stage-page .field__check a { color: var(--c-brand-ink); }

/* 密码可见切换按钮（由 auth-fx.js 注入，不改 HTML 结构） */
body.auth-stage-page .fx-pw {
  position: relative;
  display: block;
}

body.auth-stage-page .fx-pw .input { padding-right: 48px; }

body.auth-stage-page .fx-pw__btn {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--c-ink-40);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--dur-2) var(--ease-out-expo),
              color var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .fx-pw__btn:hover {
  background: rgba(38, 50, 56, .06);
  color: var(--c-ink-68);
}

body.auth-stage-page .fx-pw__btn.is-on { color: var(--c-brand); }

body.auth-stage-page .fx-pw__btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.auth-stage-page .fx-pw__btn .fx-pw__icon--off { display: none; }
body.auth-stage-page .fx-pw__btn.is-on .fx-pw__icon--on { display: none; }
body.auth-stage-page .fx-pw__btn.is-on .fx-pw__icon--off { display: block; }

/* 实名提示条（注册页）：极浅底色 + 细描边，退为辅助信息层 */
body.auth-stage-page .real-tip {
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 54, .20);
  background: rgba(255, 90, 54, .05);
  color: rgba(38, 50, 56, .78);
  font-size: 11.5px;
  line-height: 1.6;
}

body.auth-stage-page .real-tip b { color: var(--c-ink); font-weight: var(--fw-semi); }

body.auth-stage-page .real-tip__dot {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  background: var(--c-brand);
  box-shadow: none;
}

body.auth-stage-page .real-tip__link { color: var(--c-brand-ink); font-size: 11.5px; }

body.auth-stage-page .form__row--2 { gap: var(--sp-4); }

/* --------------------------------------------------------------- 7. 主按钮 */
body.auth-stage-page [data-auth-submit] {
  --btn-bg: rgba(38, 50, 56, .07);
  --btn-fg: rgba(38, 50, 56, .42);
  --btn-bd: transparent;
  height: 54px;
  margin-top: 6px;
  padding: 0 var(--sp-6);
  border-radius: 16px;
  font-size: 15px;
  font-weight: var(--fw-semi);
  letter-spacing: .01em;
  box-shadow: none;
  transition: background var(--dur-2) var(--ease-out-expo),
              color var(--dur-2) var(--ease-out-expo),
              box-shadow var(--dur-2) var(--ease-out-expo),
              transform var(--dur-2) var(--ease-out-expo),
              opacity var(--dur-1) linear;
}

body.auth-stage-page [data-auth-submit]::after { opacity: .32; }

/* 必填项齐全（.is-ready 由 auth-fx.js 依据字段非空切换）或表单内有焦点时点亮 */
body.auth-stage-page form.is-ready [data-auth-submit],
body.auth-stage-page form:focus-within [data-auth-submit] {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  box-shadow: var(--stage-brand-glow), inset 0 1px 0 rgba(255, 255, 255, .34);
}

body.auth-stage-page form.is-ready [data-auth-submit]::after,
body.auth-stage-page form:focus-within [data-auth-submit]::after { opacity: .5; }

body.auth-stage-page [data-auth-submit]:hover { transform: translateY(-2px); }

body.auth-stage-page form.is-ready [data-auth-submit]:hover,
body.auth-stage-page form:focus-within [data-auth-submit]:hover {
  box-shadow: 0 24px 50px -16px rgba(255, 90, 54, .70), inset 0 1px 0 rgba(255, 255, 255, .40);
}

body.auth-stage-page [data-auth-submit]:active {
  transform: translateY(1px);
  box-shadow: none;
}

body.auth-stage-page [data-auth-submit].is-loading {
  opacity: .72;
  transform: none;
  cursor: progress;
}

/* ------------------------------------------------------------- 8. 辅助文案 */
body.auth-stage-page .auth-card form + .auth-foot {
  margin-top: auto;
  padding-top: clamp(14px, 2vh, 20px);
}

body.auth-stage-page .auth-foot {
  margin-top: var(--sp-4);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(38, 50, 56, .76);
  text-align: center;
}

body.auth-stage-page .auth-foot a { color: var(--c-brand-ink); font-weight: var(--fw-medium); }
body.auth-stage-page .auth-foot.fs-xs {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(38, 50, 56, .72);
}

body.auth-stage-page .auth-note {
  margin-top: var(--sp-4);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(38, 50, 56, .72);
}

/* --------------------------------------------------------------- 9. 底部法务 */
body.auth-stage-page .auth-stage__legal {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 var(--sp-5) clamp(14px, 2.4vh, 22px);
  text-align: center;
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.6;
  color: rgba(255, 255, 255, .30);
}

/* ------------------------------------------------------------- 10. 入场动效 */
body.auth-stage-page .form > * {
  animation: authFieldIn 640ms var(--ease-out-expo) both;
}

body.auth-stage-page .form > *:nth-child(1) { animation-delay: .10s; }
body.auth-stage-page .form > *:nth-child(2) { animation-delay: .17s; }
body.auth-stage-page .form > *:nth-child(3) { animation-delay: .24s; }
body.auth-stage-page .form > *:nth-child(4) { animation-delay: .31s; }
body.auth-stage-page .form > *:nth-child(5) { animation-delay: .38s; }
body.auth-stage-page .form > *:nth-child(6) { animation-delay: .45s; }
body.auth-stage-page .form > *:nth-child(7) { animation-delay: .52s; }
body.auth-stage-page .form > *:nth-child(8) { animation-delay: .59s; }
body.auth-stage-page .form > *:nth-child(9) { animation-delay: .66s; }
body.auth-stage-page .form > *:nth-child(10) { animation-delay: .73s; }
body.auth-stage-page .form > *:nth-child(11) { animation-delay: .80s; }
body.auth-stage-page .form > *:nth-child(12) { animation-delay: .87s; }

/* 右栏内容比卡片高时在 .auth-panel 内部私有滚动，入场动效只播一次 */
@keyframes authShellIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFieldIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes authFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1.4deg); }
}

@keyframes authBreathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .50; }
  50%      { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: .70; }
}

/* --------------------------------------------------------------- 11. 响应式 */
@media (max-width: 980px) {
  body.auth-stage-page .auth-stage__top { padding: 12px 14px; }

  body.auth-stage-page .auth-stage__back {
    height: 36px;
    padding: 0 15px 0 13px;
    font-size: 12.5px;
  }

  body.auth-stage-page .auth-stage__switch-item {
    min-width: 68px;
    height: 30px;
    padding: 0 var(--sp-3);
    font-size: 12.5px;
  }

  /* 单列：隐藏品牌视觉栏，只留表单 */
  body.auth-stage-page .auth-visual { display: none; }

  /* 单列：卡片在主区域内垂直居中，卡片↔法务条的留白上下对称（问题 4） */
  body.auth-stage-page .auth-stage__main {
    place-items: center;
    padding: 72px 14px 10px;
  }

  body.auth-stage-page .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    /* 原 min(520px, 94vw) 在 390 宽下算得 366.6px，超出父容器可用宽 362px 导致左右留白不对称；
       改为跟随父容器 100% 可用宽，左右留白严格相等 */
    width: min(520px, 100%);
    max-width: 100%;
    height: auto;
    border-radius: 26px;
  }

  body.auth-stage-page .auth-panel {
    padding: 26px 20px 28px;
    background: transparent;
    overflow: visible;
  }

  body.auth-stage-page .auth-card { min-height: 0; }

  body.auth-stage-page .auth-card form + .auth-foot { margin-top: var(--sp-4); }

  body.auth-stage-page .auth-stage__legal {
    font-size: 12px;
    line-height: 1.6;
    padding-bottom: 12px;
  }

  /* 移动端说明文字统一提到 12.5px 以上、行高 ≥1.55（问题 5） */
  body.auth-stage-page .field__hint { font-size: 13px; line-height: 1.6; }
  body.auth-stage-page .auth-note { font-size: 13px; line-height: 1.6; }
  body.auth-stage-page .auth-head p { font-size: 13px; line-height: 1.6; }
  body.auth-stage-page .real-tip { font-size: 12.5px; line-height: 1.6; }
  body.auth-stage-page .real-tip__link { font-size: 12.5px; }
  body.auth-stage-page .field__check { font-size: 12.5px; line-height: 1.6; }
  body.auth-stage-page .auth-visual__stat span { font-size: 12.5px; line-height: 1.55; }
}

@media (max-width: 420px) {
  body.auth-stage-page .auth-panel { padding: 22px 16px 24px; }
  body.auth-stage-page .auth-head h1 { font-size: 24px; }
  body.auth-stage-page .form__row--2 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------- 11.4 登录页右栏滚动收口（1440×900 不出现滚动槽） */
/* 登录页的 .auth-note 位于 .auth-card 之外，而 .auth-card 有 min-height:100%，
   会把卡片撑满后让 note 溢出 12px。这里让卡片按内容高度收敛，整组垂直居中。 */
body.auth-stage-page[data-page="login"] .auth-wrap {
  justify-content: center;
}

body.auth-stage-page[data-page="login"] .auth-card {
  min-height: 0;
}

body.auth-stage-page[data-page="login"] .auth-card form + .auth-foot {
  margin-top: 12px;
  padding-top: 0;
}

body.auth-stage-page[data-page="login"] .auth-foot + .auth-foot { margin-top: 6px; }

body.auth-stage-page[data-page="login"] .auth-note { margin-top: 12px; }

/* ------------------------------- 11.5 注册页桌面首屏适配（1440×900 收在首屏内） */
@media (min-width: 981px) {
  body.auth-stage-page[data-page="register"] .auth-stage__main {
    padding-top: clamp(16px, 2vh, 22px);
    padding-bottom: 0;
  }

  /* 外壳高度放宽：min(846px, 94vh)，比登录页更高，容纳 6 个字段 + 协议 + 按钮 */
  body.auth-stage-page[data-page="register"] .auth-shell { height: min(846px, 94vh); }

  body.auth-stage-page[data-page="register"] .auth-stage__legal {
    font-size: 10.5px;
    padding-bottom: 8px;
  }

  body.auth-stage-page[data-page="register"] .auth-panel {
    padding-top: clamp(24px, 2.2vw, 32px);
    padding-bottom: clamp(18px, 1.8vw, 26px);
  }

  body.auth-stage-page[data-page="register"] .auth-head { gap: 6px; margin-bottom: 14px; }
  body.auth-stage-page[data-page="register"] .auth-head p { font-size: 12.5px; line-height: 1.55; }

  body.auth-stage-page[data-page="register"] .form { gap: 11px; }
  body.auth-stage-page[data-page="register"] .field { gap: 4px; }
  body.auth-stage-page[data-page="register"] .input { height: 52px; }

  body.auth-stage-page[data-page="register"] .real-tip {
    padding: 8px 12px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  body.auth-stage-page[data-page="register"] [data-auth-submit] { height: 52px; margin-top: 2px; }

  body.auth-stage-page[data-page="register"] .auth-note { font-size: 12.5px; line-height: 1.55; margin-top: 8px; }
  body.auth-stage-page[data-page="register"] .auth-card form + .auth-foot { padding-top: 6px; }
  body.auth-stage-page[data-page="register"] .auth-foot { margin-top: 4px; }
}

/* =============================================================================
 * 12. 注册须知模态框（.real-modal）并入暗场玻璃体系（?v=20261025j）
 * -----------------------------------------------------------------------------
 * 痛点：主面板已是深墨玻璃，但注册首弹的「注册须知」仍是 rgba(255,255,255,.9)
 *       浅白玻璃，在整页暗场里是一块刺眼亮块，材质与调性断裂。
 * 方案：把弹窗做成「暗场上的第三块玻璃」——与 §14 右栏主面板同族：
 *   ① 面板 rgba(18,24,30,.72) + blur(30px) saturate(1.5) + 1px 白 .14 描边
 *      + 顶部内高光 + 28px 圆角 + 深色大扩散投影（略更不透明以保证长文本可读）；
 *   ② 遮罩深墨 + blur 18→14px，避免背景被糊成一片死黑、保留一点舞台层次；
 *   ③ 标题/正文/列表/承诺块全反白，marker 与图标用品牌橙，勾选框自绘高对比描边；
 *   ④ 主按钮保持橙渐变 + 橙光作唯一焦点，次按钮改白玻璃描边。
 * 约束：仅视觉层覆盖。不动 auth.js，不改 [data-real-modal] 及子节点结构与 data-*
 *      属性（data-real-cancel / data-real-ok / data-real-check-wrap /
 *      data-real-agree / data-real-warn / role / aria-* 全部保持原样）。
 * 对比度：以面板实测底色 composited 计算，正文 / 标题 / 勾选文案 ≥4.5:1，
 *        控件描边与面板底 ≥3:1（数值见验收报告）。
 * ========================================================================== */

/* 12.1 容器与遮罩：深墨底 + 略降的模糊，保留舞台层次 */
body.auth-stage-page .real-modal {
  padding: clamp(16px, 3vw, 24px);
}

body.auth-stage-page .real-modal__scrim {
  background:
    radial-gradient(122% 104% at 50% 0%, rgba(9, 14, 18, .58) 0%, rgba(8, 13, 17, .70) 62%, rgba(7, 11, 15, .78) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.10);
  backdrop-filter: blur(14px) saturate(1.10);
}

/* 12.2 面板：深墨玻璃（第三块玻璃）+ 28px 圆角 + 白 .14 描边 + 顶部内高光 */
body.auth-stage-page .real-modal__panel {
  position: relative;
  isolation: isolate;
  width: min(452px, 100%);
  max-height: min(86vh, 720px);
  padding: 26px 26px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(88% 58% at 6% -4%, rgba(255, 96, 60, .10), transparent 66%),
    radial-gradient(72% 50% at 104% 104%, rgba(255, 90, 54, .07), transparent 70%),
    linear-gradient(178deg,
      rgba(24, 31, 37, .74) 0%,
      rgba(18, 24, 30, .72) 54%,
      rgba(14, 20, 26, .76) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 .5px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    0 50px 110px -40px rgba(4, 9, 12, .86),
    0 18px 44px -22px rgba(4, 9, 12, .62);
  color: rgba(255, 255, 255, .80);
  overscroll-behavior: contain;
}

body.auth-stage-page .real-modal__panel::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
body.auth-stage-page .real-modal__panel::-webkit-scrollbar-track { background: transparent; box-shadow: none; }
body.auth-stage-page .real-modal__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: var(--r-full);
}
body.auth-stage-page .real-modal__panel::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .32); }

@supports not selector(::-webkit-scrollbar) {
  body.auth-stage-page .real-modal__panel { scrollbar-color: rgba(255, 255, 255, .18) transparent; }
}

/* 12.3 图标块：品牌橙薄底 + 橙 .34 描边；emoji 字形收敛，改绘线性证件图标（#FF8A66） */
body.auth-stage-page .real-modal__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  border: 1px solid rgba(255, 90, 54, .34);
  /* 左上高光改为「背景图层」承载：背景永远绘于 border 之下，1px 橙描边全程压在
     高光之上，四角弧线完整不断笔。此前用 ::after 承载高光，定位伪元素绘于 border
     之上，会把左上角那段描边冲淡，视觉上像被切了个小圆角（?v=20261025k 修正） */
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(255, 255, 255, .16), transparent 62%),
    linear-gradient(155deg, rgba(255, 90, 54, .14) 0%, rgba(255, 90, 54, .07) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

body.auth-stage-page .real-modal__icon::before {
  content: "";
  width: 21px;
  height: 21px;
  background: no-repeat center / 21px 21px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A66' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.6' y='4.8' width='18.8' height='14.4' rx='3.2'/%3E%3Ccircle cx='8.4' cy='10.9' r='1.9'/%3E%3Cpath d='M5.6 15.9c.7-1.5 1.6-2.2 2.8-2.2s2.1.7 2.8 2.2'/%3E%3Cpath d='M14.4 10.1h4.2M14.4 13.7h4.2'/%3E%3C/svg%3E");
}

/* 高光已下沉到 .real-modal__icon 的 background 图层，此处不再绘制，避免覆盖描边 */
body.auth-stage-page .real-modal__icon::after {
  content: none;
}

/* 12.4 文字层级：全反白，标题 .96 / 正文 .80，字体节奏与主表单一致 */
body.auth-stage-page .real-modal__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-semi, 600);
  line-height: 1.34;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 0 rgba(4, 10, 14, .42);
}

body.auth-stage-page .real-modal__body {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .80);
}

body.auth-stage-page .real-modal__body p { margin: 0 0 10px; }
body.auth-stage-page .real-modal__body strong { color: rgba(255, 255, 255, .96); font-weight: var(--fw-semi, 600); }

body.auth-stage-page .real-modal__list {
  margin: 0 0 12px;
  padding-left: 17px;
  display: grid;
  gap: 6px;
}

/* marker 用亮一档的品牌橙，暗底上实测 ≥6:1 */
body.auth-stage-page .real-modal__list li::marker { color: #FF8A66; }

/* 12.4.1 承诺勾选块：白 .06 底 + 白 .12 描边（对面板底 ≥3:1） */
body.auth-stage-page .real-modal__check {
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .80);
  transition: border-color var(--dur-2) var(--ease-out-expo),
              background var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .real-modal__check:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .085);
}

/* 自绘勾选框：默认白 .46 描边（对底 ≥3.9:1），选中品牌橙 + 白勾，不依赖系统主题 */
body.auth-stage-page .real-modal__check input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, .06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out-expo),
              border-color var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .real-modal__check input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, .64);
}

body.auth-stage-page .real-modal__check input[type="checkbox"]:checked {
  border-color: rgba(255, 138, 102, .92);
  background-color: #F4552F;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.6l3.1 3.1 6.5-6.9'/%3E%3C/svg%3E");
}

body.auth-stage-page .real-modal__check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 138, 102, .70);
  outline-offset: 2px;
}

/* 警告文案：底部说明独立成层——12.5px / 1.65 行高 / 与上方承诺块留 12px（?v=20261025k）
   注：warn 是 .real-modal__body 内的 <p>，需用 (0,3,2) 的特异性压过
   `body.auth-stage-page .real-modal__body p`(0,2,2) 的 margin 归零，否则段间距被吃掉 */
body.auth-stage-page .real-modal__body p.real-modal__warn {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .002em;
  color: #FFB4A0;
}

/* 12.5 按钮：主按钮橙渐变 + 橙光作唯一焦点；次按钮白玻璃描边 */
body.auth-stage-page .real-modal__actions {
  gap: 10px;
  margin-top: 18px;
}

body.auth-stage-page .real-modal__actions .btn {
  height: 46px;
  min-width: 116px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13.5px;
  letter-spacing: .01em;
}

body.auth-stage-page .real-modal__actions .btn--primary {
  /* 回归全站「橙底白字」语言：字色 rgba(255,255,255,.98)，渐变整体压深一档，
     使白字对比度由 2.7:1 抬到 2.5–3.9:1 区间（仍未达 4.5:1，实测见验收报告），
     再用 1px 暗红描边 + 顶部内高光 + 橙光投影维持焦点质感，避免发灰发廉价 */
  --btn-bg: linear-gradient(135deg, #FF7A55 0%, #F0562F 54%, #E04A24 100%);
  --btn-fg: rgba(255, 255, 255, .98);
  color: rgba(255, 255, 255, .98);
  text-shadow: 0 1px 1px rgba(104, 24, 0, .32);
  box-shadow:
    0 14px 30px -13px rgba(255, 84, 44, .66),
    0 0 0 1px rgba(255, 146, 112, .34) inset,
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -.5px 0 rgba(120, 28, 0, .22);
}

body.auth-stage-page .real-modal__actions .btn--primary::after { opacity: 0; }

body.auth-stage-page .real-modal__actions .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px -14px rgba(255, 90, 54, .70),
    0 0 0 1px rgba(255, 138, 102, .52) inset,
    inset 0 1px 0 rgba(255, 255, 255, .40);
}

body.auth-stage-page .real-modal__cancel {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.auth-stage-page .real-modal__cancel::after { display: none; }

body.auth-stage-page .real-modal__cancel:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
  box-shadow: 0 10px 22px -16px rgba(3, 8, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* 12.6 移动端：圆角略收、按钮竖排满宽，面板保持完整可见 */
@media (max-width: 480px) {
  body.auth-stage-page .real-modal { padding: 16px; }

  body.auth-stage-page .real-modal__panel {
    padding: 22px 20px 20px;
    border-radius: 26px;
    max-height: 88vh;
  }

  body.auth-stage-page .real-modal__title { font-size: 17.5px; }
  body.auth-stage-page .real-modal__body { font-size: 12.8px; line-height: 1.7; }
  body.auth-stage-page .real-modal__list { padding-left: 16px; gap: 5px; }

  body.auth-stage-page .real-modal__actions { flex-direction: column-reverse; gap: 8px; }
  body.auth-stage-page .real-modal__actions .btn { width: 100%; min-width: 0; height: 46px; }
}

/* --------------------------------------------------- 13. 减少动态效果降级 */
@media (prefers-reduced-motion: reduce) {
  body.auth-stage-page *,
  body.auth-stage-page *::before,
  body.auth-stage-page *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  body.auth-stage-page .auth-hero,
  body.auth-stage-page .auth-bubble,
  body.auth-stage-page .fx-eye-pupil {
    transform: none !important;
  }
}

/* =============================================================================
 * 14. 右栏「暗场玻璃」重做（?v=20261025h）
 * -----------------------------------------------------------------------------
 * 痛点：左栏是深红褐暗场 + 光斑 + 玻璃气泡，右栏却是一整块纯白实心卡片，
 *       左右明度差 3–4 倍、交界是一条生硬垂直直线。
 * 方案：把右栏做成「同一块暗玻璃上的第二块玻璃」——
 *   ① 舞台铺深墨→红褐渐变 + ≤.10 品牌橙氛围光晕 + 细噪点，全页不再有大片纯白；
 *   ② 面板 rgba(20,26,32,.52) + blur(28px) saturate(1.5) + 描边 + 顶部 .5px 内高光
 *      + 深色大扩散投影；左侧 160px 横向渐变把交界从「切线」变「过渡」；
 *   ③ 面板内文字 / 输入 / 勾选 / 分段 / 错误条全面反白，主按钮成唯一焦点。
 * 约束：纯视觉层。不动 auth.js 的 DOM 契约（form[data-auth-form]、各 name 字段、
 *       data-auth-error、data-auth-submit、data-real-* 与分段控件结构一律不改）。
 * 对比度：面板内可读文字一律按暗底 composite 取 ≥4.5:1（余量见验收报告）。
 * ========================================================================== */

/* ---- 14.1 舞台底色：深墨 → 红褐 + 极淡橙光晕（≤.10）+ 细噪点 ---- */
body.auth-stage-page {
  --panel-ink: 20, 26, 32;
  --panel-glass: rgba(20, 26, 32, .52);
  --panel-edge: rgba(255, 255, 255, .14);
  --panel-seam: rgba(255, 128, 86, .055);

  background-color: #121A1F;
  background-image:
    radial-gradient(92% 76% at 26% 12%, rgba(255, 90, 54, .085) 0%, rgba(255, 90, 54, 0) 64%),
    radial-gradient(74% 64% at 76% 40%, rgba(255, 112, 76, .098) 0%, rgba(255, 112, 76, 0) 72%),
    radial-gradient(86% 72% at 88% 92%, rgba(190, 72, 44, .078) 0%, rgba(190, 72, 44, 0) 68%),
    linear-gradient(168deg, #111920 0%, #1B2429 44%, #2A2524 78%, #33231E 100%);
}

/* 噪点保持极轻，只在暗场上提供一点点颗粒质感 */
body.auth-stage-page .auth-stage__grain {
  opacity: .07;
  mix-blend-mode: soft-light;
}

/* ---- 14.2 外壳：不再是一块白玻璃，退成「暗玻璃的框」 ---- */
body.auth-stage-page .auth-shell {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(13, 19, 24, .12);
  box-shadow:
    0 60px 130px -48px rgba(4, 9, 12, .88),
    0 4px 12px rgba(6, 12, 16, .32),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---- 14.3 左栏：右缘向面板色调收拢，交界两侧同一底色 —— */
body.auth-stage-page .auth-visual {
  background:
    linear-gradient(270deg, var(--panel-seam) 0px, rgba(255, 128, 86, 0) 120px),
    linear-gradient(90deg, rgba(21, 26, 32, 0) 62%, rgba(21, 26, 32, .18) 84%, rgba(21, 26, 32, .30) 100%),
    radial-gradient(120% 92% at 14% 4%, rgba(255, 90, 54, .27), transparent 62%),
    radial-gradient(90% 80% at 74% 96%, rgba(255, 61, 46, .17), transparent 64%),
    var(--grad-ink);
}

/* ---- 14.4 右栏面板：深墨玻璃（第二块玻璃） ---- */
body.auth-stage-page .auth-panel {
  position: relative;
  isolation: isolate;
  /* 不对称内边距：左侧更宽，让内容远离交界，视觉上「浮」在玻璃里 */
  padding-left: clamp(30px, 3.8vw, 58px);
  color: rgba(255, 255, 255, .88);
  background:
    linear-gradient(90deg, var(--panel-seam) 0px, rgba(255, 128, 86, 0) 118px),
    radial-gradient(60% 44% at 2% 102%, rgba(255, 96, 60, .10), transparent 74%),
    linear-gradient(96deg,
      rgba(21, 26, 32, .16) 0px,
      rgba(20, 26, 32, .25) 56px,
      rgba(20, 26, 32, .32) 112px,
      rgba(19, 25, 31, .34) 100%);
  /* 玻璃体内的一层极淡暖光：把面板明度提到与左栏光斑同一档 */
  background-color: rgba(255, 150, 116, .18);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 .5px 0 rgba(255, 255, 255, .18),
    inset -1px 0 0 var(--panel-edge),
    inset 0 -1px 0 rgba(255, 255, 255, .10),
    0 50px 110px -40px rgba(6, 12, 16, .75);
}

/* 滚动槽反白：暗底上不再出现浅灰轨道 */
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .32); }
body.auth-stage-page .auth-panel::-webkit-scrollbar-thumb:window-inactive { background: rgba(255, 255, 255, .12); }

@supports not selector(::-webkit-scrollbar) {
  body.auth-stage-page .auth-panel { scrollbar-color: rgba(255, 255, 255, .20) transparent; }
}

/* ---- 14.5 面板内排版与文字全面反白 ---- */
body.auth-stage-page .auth-head h1 {
  color: #F6F8F9;
  text-shadow: 0 1px 0 rgba(4, 10, 14, .45);
}

body.auth-stage-page .auth-head p { color: rgba(255, 255, 255, .76); }

body.auth-stage-page .field__label { color: rgba(255, 255, 255, .86); }
body.auth-stage-page .field__label b { color: #FF8A66; }
body.auth-stage-page .field__hint { color: rgba(255, 255, 255, .72); }

/* 错误条：品牌橙薄底 + 橙白字（不再用浅粉底） */
body.auth-stage-page .auth-error {
  border: 1px solid rgba(255, 90, 54, .42);
  background: rgba(255, 90, 54, .16);
  color: #FFD9CC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* ---- 14.6 输入框：玻璃片 + 焦点橙光 ---- */
body.auth-stage-page .input {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #F6F8F9;
  caret-color: #FF7A52;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

body.auth-stage-page .input::placeholder { color: rgba(255, 255, 255, .62); }

body.auth-stage-page .input:hover {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 255, 255, .24);
}

body.auth-stage-page .input:focus {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 122, 82, .88);
  box-shadow:
    0 0 0 4px rgba(255, 90, 54, .18),
    0 12px 28px -16px rgba(255, 90, 54, .68),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: scale(1.005);
}

/* 浏览器自动填充不再给白底黑字块 */
body.auth-stage-page .input:-webkit-autofill,
body.auth-stage-page .input:-webkit-autofill:hover,
body.auth-stage-page .input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F6F8F9;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 60px rgba(31, 37, 43, .96) inset;
}

/* 前置图标 / 密码眼睛：一律改亮色 */
body.auth-stage-page .fx-pw__btn { color: rgba(255, 255, 255, .74); }
body.auth-stage-page .fx-pw__btn:hover {
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .94);
}
body.auth-stage-page .fx-pw__btn.is-on { color: #FF8A66; }

/* ---- 14.7 勾选框：白描边 + 橙填充 + 白勾 ---- */
body.auth-stage-page .field__check {
  color: rgba(255, 255, 255, .80);
}
body.auth-stage-page .field__check a { color: #FFA184; }

body.auth-stage-page .field__check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background-color: rgba(255, 255, 255, .06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  accent-color: var(--c-brand);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out-expo),
              border-color var(--dur-2) var(--ease-out-expo),
              box-shadow var(--dur-2) var(--ease-out-expo);
}

body.auth-stage-page .field__check input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, .78);
  background-color: rgba(255, 255, 255, .12);
}

body.auth-stage-page .field__check input[type="checkbox"]:checked {
  border-color: rgba(255, 122, 82, .90);
  background-color: var(--c-brand);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 8.6l3 3 6.2-6.4'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgba(255, 90, 54, .18);
}

body.auth-stage-page .field__check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 138, 102, .9);
  outline-offset: 2px;
}

/* 实名提示条：橙薄底 + 亮字 */
body.auth-stage-page .real-tip {
  border: 1px solid rgba(255, 90, 54, .30);
  background: rgba(255, 90, 54, .12);
  color: rgba(255, 255, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.auth-stage-page .real-tip b { color: #FFFFFF; }
body.auth-stage-page .real-tip__link { color: #FFA184; }
body.auth-stage-page .real-tip__dot { background: #FF7A52; }

/* ---- 14.8 主按钮：暗场上的唯一焦点 ---- */
body.auth-stage-page [data-auth-submit] {
  /* 未填完时也是暖橙（暗场唯一焦点），但压低到深橙玻璃阶，
     白字实测 ≥4.5:1；填齐后升为满饱和品牌橙渐变 */
  --btn-bg: linear-gradient(135deg, rgba(214, 58, 18, .62) 0%, rgba(178, 41, 7, .70) 100%);
  --btn-fg: rgba(255, 255, 255, .96);
  --btn-bd: rgba(255, 138, 102, .42);
  border: 1px solid var(--btn-bd);
  box-shadow:
    0 18px 42px -22px rgba(255, 90, 54, .55),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

body.auth-stage-page [data-auth-submit]::after { opacity: .20; }

/* 必填齐全 / 表单内有焦点：点亮为品牌橙深阶渐变（保证白字 ≥4.5:1） */
body.auth-stage-page form.is-ready [data-auth-submit],
body.auth-stage-page form:focus-within [data-auth-submit] {
  --btn-bg: linear-gradient(135deg, #D63A12 0%, #C6310C 52%, #B22907 100%);
  --btn-fg: #FFFFFF;
  --btn-bd: rgba(255, 138, 102, .52);
  border-color: var(--btn-bd);
  box-shadow:
    0 22px 48px -18px rgba(255, 90, 54, .72),
    0 0 0 1px rgba(255, 90, 54, .20),
    inset 0 1px 0 rgba(255, 255, 255, .26);
}

body.auth-stage-page form.is-ready [data-auth-submit]::after,
body.auth-stage-page form:focus-within [data-auth-submit]::after { opacity: .42; }

body.auth-stage-page form.is-ready [data-auth-submit]:hover,
body.auth-stage-page form:focus-within [data-auth-submit]:hover {
  box-shadow:
    0 26px 56px -18px rgba(255, 90, 54, .82),
    0 0 0 1px rgba(255, 90, 54, .28),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

body.auth-stage-page [data-auth-submit][disabled],
body.auth-stage-page [data-auth-submit][aria-disabled="true"] {
  --btn-bg: rgba(255, 255, 255, .10);
  --btn-fg: rgba(255, 255, 255, .62);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

/* ---- 14.9 页脚 / 辅助小字 / 法务条提亮 ---- */
body.auth-stage-page .auth-foot,
body.auth-stage-page .auth-note { color: rgba(255, 255, 255, .74); }
body.auth-stage-page .auth-foot a { color: #FFA184; }

body.auth-stage-page .auth-stage__legal { color: rgba(255, 255, 255, .60); }

/* ---- 14.10 顶部分段控件：轨道 .08 + 玻璃白滑块（spring 位移不变） ---- */
body.auth-stage-page .auth-stage__switch {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

body.auth-stage-page .auth-stage__switch-item { color: rgba(255, 255, 255, .72); }
body.auth-stage-page .auth-stage__switch-item:hover { color: rgba(255, 255, 255, .95); }

body.auth-stage-page .auth-stage__switch-item.is-active,
body.auth-stage-page .auth-stage__switch-item.is-active:hover { color: #1B2429; }

body.auth-stage-page .auth-stage__switch-pill {
  background: linear-gradient(180deg, #FFFFFF 0%, #E9EFF2 100%);
  box-shadow:
    0 6px 18px -8px rgba(4, 10, 14, .60),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

/* ---- 14.11 移动端：同一块暗玻璃，不是白卡片 ---- */
@media (max-width: 980px) {
  body.auth-stage-page .auth-shell {
    background: rgba(13, 19, 24, .30);
    border-color: rgba(255, 255, 255, .14);
    box-shadow:
      0 46px 96px -44px rgba(4, 9, 12, .86),
      inset 0 1px 0 rgba(255, 255, 255, .10);
  }

  body.auth-stage-page .auth-panel {
    padding: 26px 20px 28px;
    background:
      radial-gradient(120% 90% at 50% -14%, rgba(255, 128, 86, .10) 0%, rgba(255, 128, 86, 0) 62%),
      linear-gradient(180deg, rgba(24, 27, 30, .60) 0%, rgba(20, 26, 32, .52) 58%, rgba(17, 23, 29, .58) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    backdrop-filter: blur(22px) saturate(1.45);
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16);
    overflow: visible;
  }

  body.auth-stage-page .auth-stage__legal { color: rgba(255, 255, 255, .62); }
}

@media (max-width: 420px) {
  body.auth-stage-page .auth-panel { padding: 22px 16px 24px; }
}

/* =============================================================================
 * 15. 暗场收敛（round7）—— 只压「刺眼感」与「占屏感」，不改任何结构 / 文案
 *   15.1 注册页实名提示条：由「红色警告」降为「温馨提示」
 *   15.2 移动端登录页底部说明：三行封顶 + 省略号，不截断文案本身
 * ========================================================================== */

/* ---- 15.1 实名提示条：低饱和克制（非错误警报） ---- */
body.auth-stage-page .real-tip {
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 90, 54, .10);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  box-shadow: none;
  text-shadow: none;
}

/* 强调词只提白、不加饱和橙，靠字重 500 建立层级 */
body.auth-stage-page .real-tip b {
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
}

/* 引导链接同样退白，避免成为第二个「警报点」 */
body.auth-stage-page .real-tip__link {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .32);
  text-underline-offset: 2px;
}

body.auth-stage-page .real-tip__link:hover {
  color: rgba(255, 255, 255, .98);
  text-decoration-color: rgba(255, 255, 255, .55);
}

/* 圆点保留品牌橙，但改成 7px 小圆点（不再是 14px「!」徽标），去掉所有发光 / 投影：
   由「警示徽章」降为「列表符号」，避免整条读成红色警报 */
body.auth-stage-page .real-tip__dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #FF5A36;
  box-shadow: none;
  filter: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* ---- 15.2 移动端登录页底部说明：三行封顶 + 省略号 ---- */
@media (max-width: 980px) {
  body.auth-stage-page[data-page="login"] .auth-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    max-height: 4.5em; /* 3 行 × 1.5em 行高，兜底防不同引擎取值差异（不得小于 3 行） */
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .80);
  }
}

/* =============================================================================
 * 15. 立体桌宠角色（?v=20261202j）
 * 以用户参考图的正/侧面立绘为素材，通过 CSS 3D 分层、光影、呼吸、转身与
 * 拖拽反馈形成桌宠；不重画人物，不触碰任何表单字段或提交逻辑。
 * ========================================================================== */
body.auth-stage-page .auth-hero-wrap {
  perspective: 1100px;
  perspective-origin: 50% 46%;
}

body.auth-stage-page .auth-hero.auth-pet {
  --pet-x: 0px;
  --pet-y: 0px;
  --pet-lift: 0px;
  --pet-turn: 0deg;
  --pet-scale: 1;
  --shadow-scale: 1;
  --face: 0;
  position: relative;
  width: min(300px, 76%);
  height: 96%;
  min-height: 0;
  max-width: 92%;
  max-height: 520px;
  transform: translate3d(var(--pet-x), var(--pet-y), 0);
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-out-expo, cubic-bezier(.22, 1, .36, 1));
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
body.auth-stage-page .auth-pet[data-facing="side"] { --face: 1; }
body.auth-stage-page .auth-pet.is-dragging {
  --pet-scale: 1.035;
  --shadow-scale: .82;
  transition: none;
  cursor: grabbing;
}
body.auth-stage-page .auth-pet:focus-visible .auth-pet__aura {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 138, 102, .75), 0 0 44px rgba(255, 150, 88, .34);
}

/* 舞台光晕与地面投影：分别位于不同的 Z 深度 */
body.auth-stage-page .auth-pet__aura {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 48%;
  width: min(360px, 118%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 138, .26), rgba(255, 126, 82, .12) 40%, rgba(255, 105, 72, .04) 58%, transparent 72%);
  transform: translate(-50%, -50%) translateZ(-64px);
  opacity: .78;
  pointer-events: none;
  animation: petAura 5.6s var(--ease-in-out, ease-in-out) infinite;
}
body.auth-stage-page .auth-pet__shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 1.5%;
  width: 62%;
  height: 18px;
  border-radius: 50%;
  background: rgba(3, 8, 14, .62);
  filter: blur(10px);
  transform: translateX(-50%) translateZ(-30px) scale(var(--shadow-scale));
  transform-origin: 50% 50%;
  transition: transform 260ms ease, opacity 260ms ease;
  opacity: .82;
  pointer-events: none;
}

/* 3D 转台：指针视差 + 拖动转向 + 状态倾斜 */
body.auth-stage-page .auth-pet__rig {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--pet-lift), 0)
    rotateX(calc(var(--my, 0) * -4deg))
    rotateY(calc(var(--mx, 0) * 8deg + var(--pet-turn)))
    scale(var(--pet-scale));
  transform-origin: 50% 84%;
  transition: transform 320ms var(--ease-out-expo, cubic-bezier(.22, 1, .36, 1));
  pointer-events: none;
}
body.auth-stage-page .auth-pet.is-dragging .auth-pet__rig { transition: none; }

/* 背后的同色暗化层，制造轻微体积与厚度 */
body.auth-stage-page .auth-pet__depth {
  position: absolute;
  inset: 0;
  transform: translateZ(-42px) scale(1.035);
  transform-origin: 50% 84%;
  opacity: .24;
  filter: brightness(.48) saturate(.72) blur(1.2px);
  pointer-events: none;
}

/* 呼吸待机层 */
body.auth-stage-page .auth-pet__body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 84%;
  animation: petBreathe 4.8s var(--ease-in-out, ease-in-out) infinite;
  pointer-events: none;
}

body.auth-stage-page .auth-pet__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 30px rgba(6, 12, 16, .42));
  transition: opacity 260ms ease, filter 300ms ease;
  backface-visibility: hidden;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
body.auth-stage-page .auth-pet__view--front {
  z-index: 2;
  opacity: calc(1 - var(--face));
  transform: translateZ(0);
}
body.auth-stage-page .auth-pet__view--side {
  z-index: 3;
  opacity: var(--face);
  transform: translateZ(10px);
}

/* 前景星光，增强空间层次 */
body.auth-stage-page .auth-pet__spark {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe3a3;
  box-shadow: 0 0 12px rgba(255, 190, 100, .95);
  opacity: 0;
  transform: translateZ(46px);
  animation: petSpark 4.2s var(--ease-in-out, ease-in-out) infinite;
  pointer-events: none;
}
body.auth-stage-page .auth-pet__spark--1 { left: 18%; top: 28%; animation-delay: -.8s; }
body.auth-stage-page .auth-pet__spark--2 { right: 16%; top: 42%; width: 4px; height: 4px; animation-delay: -2.1s; }
body.auth-stage-page .auth-pet__spark--3 { right: 24%; top: 18%; width: 3px; height: 3px; animation-delay: -3.4s; }

/* 表单状态：邮箱正确时更明亮；密码输入时转身回避；显示密码时探头 */
body.auth-stage-page .auth-pet[data-mood="happy"] {
  --pet-scale: 1.018;
  --shadow-scale: .95;
}
body.auth-stage-page .auth-pet[data-mood="happy"] .auth-pet__view {
  filter: drop-shadow(0 20px 32px rgba(6, 12, 16, .44)) drop-shadow(0 0 18px rgba(255, 190, 112, .24));
}
body.auth-stage-page .auth-pet[data-mood="secret"] {
  --face: 1;
  --pet-turn: -14deg;
  --pet-scale: .99;
  --pet-lift: -2px;
}
body.auth-stage-page .auth-pet[data-mood="peek"] {
  --face: 1;
  --pet-turn: 12deg;
  --pet-scale: 1.022;
}

/* 填完表单欢呼；点击桌宠歪头跳一下；随机眨眼用极轻的压缩模拟 */
body.auth-stage-page .auth-pet[data-mood="cheer"] .auth-pet__body { animation: petCheer 900ms var(--ease-in-out, ease-in-out) infinite; }
body.auth-stage-page .auth-pet.is-wave .auth-pet__body { animation: petWave 1.1s var(--ease-out-expo, ease-out); }
body.auth-stage-page .auth-pet.is-blink .auth-pet__body { animation: petBlink 150ms ease-out; }
body.auth-stage-page .auth-pet.is-dragging .auth-pet__body { animation: none; }

@keyframes petAura {
  0%, 100% { opacity: .68; transform: translate(-50%, -50%) translateZ(-64px) scale(.96); }
  50% { opacity: .92; transform: translate(-50%, -50%) translateZ(-64px) scale(1.04); }
}
@keyframes petBreathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -3px, 0) scale(1.006, 1.012); }
}
@keyframes petCheer {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -9px, 0) scale(1.014); }
}
@keyframes petWave {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  18% { transform: translate3d(0, -13px, 0) rotate(-4deg) scale(1.025); }
  42% { transform: translate3d(0, 1px, 0) rotate(3deg) scale(.99, 1.01); }
  62% { transform: translate3d(0, -5px, 0) rotate(-1.5deg) scale(1.01); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
@keyframes petBlink {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012, .975); }
}
@keyframes petSpark {
  0%, 100% { opacity: 0; transform: translate3d(0, 6px, 46px) scale(.5); }
  35% { opacity: .85; }
  65% { opacity: .35; transform: translate3d(0, -10px, 46px) scale(1); }
}

/* 角色说话气泡 */
body.auth-stage-page .fx-say {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 1%;
  transform: translate(-50%, 8px) scale(.9);
  max-width: 84%;
  padding: 9px 15px;
  border-radius: 16px 16px 16px 5px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 249, 244, .95);
  color: var(--c-ink, #263238);
  font-size: 13px;
  font-weight: var(--fw-semi, 600);
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 30px -14px rgba(4, 10, 14, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out-spring, ease-out);
}
body.auth-stage-page .fx-say.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 640px) {
  body.auth-stage-page .auth-hero.auth-pet { width: min(280px, 84%); height: 94%; }
  body.auth-stage-page .auth-pet__shadow { width: 66%; }
  body.auth-stage-page .fx-say { top: 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-stage-page .auth-pet__aura,
  body.auth-stage-page .auth-pet__body,
  body.auth-stage-page .auth-pet[data-mood="cheer"] .auth-pet__body,
  body.auth-stage-page .auth-pet.is-wave .auth-pet__body,
  body.auth-stage-page .auth-pet.is-blink .auth-pet__body,
  body.auth-stage-page .auth-pet__spark { animation: none !important; }
  body.auth-stage-page .auth-pet,
  body.auth-stage-page .auth-pet__rig,
  body.auth-stage-page .auth-pet__view { transition: none; }
}
