/* ============================================================
   无界云控 · 统一视觉 — Telegram 结构 + 液态玻璃材质
   令牌来源：web-ui references/telegram-style.md
   材质来源：web-ui references/liquid-glass.md
   ============================================================ */

:root {
  /* ---- Telegram 色彩令牌（暗色为默认） ---- */
  --bg:            #0e1621;
  --sidebar-bg:    #17212b;
  --chat-bg:       #0e1621;
  --primary:       #3390ec;
  --primary-hover: #4aa3f0;
  --text:          #ffffff;
  --text-2:        #7f8fa6;
  --divider:       rgba(255,255,255,.08);
  --bubble-in:     #182533;
  --bubble-out:    #2b5278;
  --hover:         #202b36;
  --active:        #2b5278;
  --badge:         #3d7ec2;
  --badge-mute:    #3d4750;
  --input-bg:      #17212b;
  --error:         #ef5350;
  --ok:            #34d399;

  /* ---- 液态玻璃场景（彩色渐变 + 光斑，玻璃的光学燃料） ---- */
  --scene:
    radial-gradient(42% 46% at 18% 22%, #2b4a8f 0%, transparent 60%),
    radial-gradient(38% 42% at 82% 18%, #1d6fb8 0%, transparent 62%),
    radial-gradient(46% 50% at 72% 84%, #6d3d8f 0%, transparent 60%),
    radial-gradient(40% 44% at 22% 82%, #1a7f7a 0%, transparent 58%),
    #0b0e1a;

  /* ---- 玻璃材质层 ---- */
  --glass-surface: rgba(255,255,255,.07);
  --glass-strong:  rgba(255,255,255,.12);
  --glass-border:  rgba(255,255,255,.16);
  --hl-top:        rgba(255,255,255,.40);
  --hl-bottom:     rgba(255,255,255,.10);
  --ring:          linear-gradient(135deg,
                     rgba(255,255,255,.55), rgba(255,255,255,.06) 40%,
                     rgba(255,255,255,0) 62%, rgba(255,255,255,.28));
  --shadow:        0 12px 40px rgba(0,0,0,.28);
  --orb-blend:     screen;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, "PingFang SC",
          "Microsoft YaHei", sans-serif;
}

[data-theme="light"] {
  --bg:            #ffffff;
  --sidebar-bg:    #ffffff;
  --chat-bg:       #f4f4f5;
  --text:          #000000;
  --text-2:        #707579;
  --divider:       #e6e6e6;
  --bubble-in:     #ffffff;
  --bubble-out:    #effdde;
  --hover:         #f4f4f5;
  --active:        #e9e9e9;
  --badge:         #3390ec;
  --badge-mute:    #c4c9cc;
  --input-bg:      #f4f4f5;
  --error:         #e53935;

  --scene:
    radial-gradient(42% 46% at 18% 22%, #c4b5fd 0%, transparent 60%),
    radial-gradient(38% 42% at 82% 18%, #93c5fd 0%, transparent 62%),
    radial-gradient(46% 50% at 72% 84%, #f9a8d4 0%, transparent 60%),
    radial-gradient(40% 44% at 22% 82%, #99f6e4 0%, transparent 58%),
    #eef2ff;

  --glass-surface: rgba(255,255,255,.42);
  --glass-strong:  rgba(255,255,255,.58);
  --glass-border:  rgba(255,255,255,.65);
  --hl-top:        rgba(255,255,255,.75);
  --hl-bottom:     rgba(255,255,255,.35);
  --ring:          linear-gradient(135deg,
                     rgba(255,255,255,.9), rgba(255,255,255,.3) 40%,
                     rgba(255,255,255,0) 62%, rgba(255,255,255,.5));
  --shadow:        0 8px 24px rgba(31,41,55,.16);
  --orb-blend:     normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--scene);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: color .3s ease;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 漂移光斑（折射与聚光的动态素材） ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: var(--orb-blend);
  pointer-events: none;
  z-index: 0;
}
.orb--1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw;
          background: radial-gradient(circle, rgba(43,74,143,.85), transparent 65%);
          animation: drift1 26s ease-in-out infinite alternate; }
.orb--2 { width: 40vw; height: 40vw; right: -8vw; top: 10vh;
          background: radial-gradient(circle, rgba(29,111,184,.8), transparent 65%);
          animation: drift2 32s ease-in-out infinite alternate; }
.orb--3 { width: 44vw; height: 44vw; left: 30vw; bottom: -18vw;
          background: radial-gradient(circle, rgba(109,61,143,.75), transparent 65%);
          animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vw, 10vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-11vw, -8vh) scale(1.08); } }

/* ---------- 玻璃基类（三层结构的表面层） ---------- */
.glass {
  position: relative;
  border-radius: 28px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.06);
          backdrop-filter: blur(18px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 1px var(--hl-top),
    inset 0 -1px 1px var(--hl-bottom),
    var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* 镜头①：边缘高光环（1px 渐变描边） */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* 镜头④：跟随指针的镜面光泽 */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,.28), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 2;
}
.glass:hover::after { opacity: 1; }
.glass.glass--lift:hover { transform: translateY(-2px); }
.glass:active { transform: scale(.985); transition-duration: .12s; }

/* 镜头①：折射层（背景副本 + SVG 位移） */
.glass__lens {
  position: absolute;
  inset: 0;
  background: var(--scene);
  background-attachment: fixed;
  filter: url(#lg-refraction);
  z-index: 0;
  pointer-events: none;
}

/* 内容层 */
.glass__content {
  position: relative;
  z-index: 1;
}

/* ---------- 登录/表单卡片 ---------- */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 38px 34px 32px;
}

.auth-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(51,144,236,.35);
  position: relative;
}
.auth-logo svg { width: 32px; height: 32px; color: #fff; }

/* 品牌字标「无界」 */
.auth-brand {
  display: block;
  text-align: center;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 0 0 6px;
  background: linear-gradient(120deg, var(--primary), #7c5cff 55%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 10px;
}

/* 登录卡顶部装饰条 */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, var(--primary), #7c5cff, transparent);
  opacity: .85;
  z-index: 2;
}

/* 卡片周围浮动玻璃徽章 */
.auth-deco {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9999px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  pointer-events: none;
}
.auth-deco i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(51,144,236,.7);
}
.auth-deco--a { top: 12%; left: 8%; }
.auth-deco--b { top: 22%; right: 7%; }
.auth-deco--c { bottom: 18%; left: 10%; }
.auth-deco--d { bottom: 26%; right: 9%; }

/* 底部能力胶囊 */
.auth-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
}
.auth-features span {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 9999px;
  color: var(--primary);
  background: rgba(51,144,236,.1);
  border: 1px solid rgba(51,144,236,.22);
  letter-spacing: .3px;
}

.auth-hint {
  font-size: 15px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ---------- 表单字段 ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
}

.input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--divider);
  border-radius: 16px;
  background: var(--glass-strong);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .12s ease-out, background-color .12s ease-out;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
          backdrop-filter: blur(10px) saturate(160%);
}
.input::placeholder { color: var(--text-2); }
.input:focus { border-color: var(--primary); }
.input.has-error { border-color: var(--error); }
input[type="password"].input, input[inputmode="numeric"].input { letter-spacing: .3px; }

textarea.input {
  height: auto;
  min-height: 88px;
  padding: 11px 14px;
  line-height: 1.5;
  resize: vertical;
  border-radius: 16px;
}

/* 验证码组合行 */
.cap-row { display: flex; gap: 10px; align-items: stretch; }
.cap-row .input { flex: 1; min-width: 0; }
.cap-q {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--divider);
  border-radius: 16px;
  background: var(--glass-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  white-space: nowrap;
}
.cap-q a { color: var(--primary); font-size: 16px; }

/* 主按钮 */
.btn {
  width: 100%;
  height: 44px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
  transition: background-color .12s ease-out, transform .1s ease-out;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-inline {
  width: auto;
  padding: 0 18px;
  flex-shrink: 0;
  margin-top: 0;
}

.link-btn {
  color: var(--primary);
  font-size: 15px;
  border-radius: 8px;
  padding: 2px 6px;
  transition: opacity .12s ease-out;
}
.link-btn:hover { opacity: .82; }

/* 错误提示 */
.err {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(239,83,80,.12);
  border: 1px solid rgba(239,83,80,.4);
  color: var(--error);
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.ok-msg {
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.4);
  color: var(--ok);
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.auth-foot a { font-weight: 500; }

/* 主题切换（右上角） */
.auth-theme {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  z-index: 5;
  transition: background-color .12s ease-out, color .12s ease-out;
}
.auth-theme:hover { background: var(--hover); color: var(--text); }
.auth-theme svg { width: 20px; height: 20px; }

/* ============================================================
   液态玻璃增量层：胶囊卡片 / 左侧展示栏 / 过渡动效
   ============================================================ */

/* ---------- 胶囊卡片（全站通用） ---------- */
.cap-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 20px 13px 14px;
  border-radius: 9999px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
          backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 1px var(--hl-top),
    inset 0 -1px 1px var(--hl-bottom),
    0 8px 22px rgba(0,0,0,.12);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
/* 光泽层用 ::before，::after 留给潜在的提示气泡，避免伪元素互相覆盖 */
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx,50%) var(--my,50%),
              rgba(255,255,255,.28), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 1px var(--hl-top),
    inset 0 -1px 1px var(--hl-bottom),
    0 16px 36px rgba(51,144,236,.22);
}
.cap-card:hover::before { opacity: 1; }
.cap-card:active { transform: scale(.97); transition-duration: .12s; }

.cap-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(51,144,236,.16);
  border: 1px solid rgba(51,144,236,.38);
  color: var(--primary);
}
.cap-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cap-ico--v { background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.38); color: #7c5cff; }
.cap-ico--g { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.38); color: #34d399; }
.cap-ico--o { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.38); color: #f59e0b; }
.cap-txt { min-width: 0; }
.cap-tt { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cap-ss { font-size: 11.5px; color: var(--text-2); margin-top: 2px; line-height: 1.35; }

/* ---------- 左侧展示栏（登录/注册/找回密码）：紧凑卡片堆叠 + 点触切换 ---------- */
.auth-side {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: min(252px, 26vw);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.auth-side-brand {
  font-size: clamp(1.5rem, 1.9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 7px;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--primary), #7c5cff 55%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-side-brand::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #7c5cff, transparent);
}
.auth-side-sub {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* 卡片堆叠：3 张叠放，点触/点击切换到下一张 */
.cap-stack {
  position: relative;
  height: 112px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.stack-card {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 16px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
          backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 1px var(--hl-top),
    0 10px 24px rgba(0,0,0,.12);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
  overflow: hidden;
}
/* 堆叠位次：0=前卡 1=中 2=后（露出顶边） */
.stack-card[data-pos="0"] { transform: translateY(38px) scale(1);    opacity: 1;   z-index: 3; }
.stack-card[data-pos="1"] { transform: translateY(19px) scale(.95);  opacity: .68; z-index: 2; }
.stack-card[data-pos="2"] { transform: translateY(0)    scale(.9);   opacity: .4;  z-index: 1; }
/* 非前卡只露玻璃边，不透文字，避免叠字（直接显隐，不加过渡） */
.stack-card:not([data-pos="0"]) > * { opacity: 0; }
.stack-card .cap-ico { width: 34px; height: 34px; }
.stack-card .cap-ico svg { width: 16px; height: 16px; }
.stack-card .cap-tt { font-size: 12.5px; }
.stack-card .cap-ss { font-size: 10.5px; }

.stack-dots {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.stack-dots i {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(51,144,236,.25);
  transition: width .22s ease, background-color .22s ease;
}
.stack-dots i.on { width: 16px; background: var(--primary); }

/* 宽屏：双栏（左展示栏 + 右表单卡），装饰徽章退场 */
@media (min-width: 1080px) {
  .auth-wrap {
    flex-direction: row;
    gap: 48px;
    align-items: center;
    justify-content: center;
  }
  .auth-side { display: flex; }
  .auth-deco { display: none; }
}

/* ============================================================
   全局动效层：入场 / 悬浮 / 聚焦 / 扫光 / 渐变流动
   ============================================================ */

/* 入场：页面元素自下而上升起 */
.auth-card, .auth-side, .auth-deco {
  animation: riseIn .55s cubic-bezier(.2,.8,.2,1) both;
}
.auth-side-brand { animation: riseIn .5s cubic-bezier(.2,.8,.2,1) both .05s; }
.auth-side-sub   { animation: riseIn .5s cubic-bezier(.2,.8,.2,1) both .12s; }
.cap-stack       { animation: riseIn .55s cubic-bezier(.2,.8,.2,1) both .18s; }
.stack-dots      { animation: riseIn .5s cubic-bezier(.2,.8,.2,1) both .26s; }
.auth-deco--a { animation-delay: .15s; }
.auth-deco--b { animation-delay: .25s; }
.auth-deco--c { animation-delay: .35s; }
.auth-deco--d { animation-delay: .45s; }
.auth-card .field:nth-of-type(1) { animation: riseIn .45s ease both .18s; }
.auth-card .field:nth-of-type(2) { animation: riseIn .45s ease both .26s; }
.auth-card .field:nth-of-type(3) { animation: riseIn .45s ease both .34s; }
.auth-card .field:nth-of-type(4) { animation: riseIn .45s ease both .42s; }
.auth-card .field:nth-of-type(5) { animation: riseIn .45s ease both .5s; }
.auth-card .field:nth-of-type(6) { animation: riseIn .45s ease both .58s; }
.auth-card .btn  { animation: riseIn .45s ease both .42s; }
.auth-card .auth-foot { animation: riseIn .45s ease both .5s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* 品牌渐变流动 */
.auth-brand, .auth-side-brand {
  background-size: 200% 100%;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* 按钮扫光 + 悬浮上浮 */
.btn {
  position: relative;
  overflow: hidden;
  transition: background-color .2s ease, transform .22s cubic-bezier(.34,1.56,.64,1),
              box-shadow .22s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(51,144,236,.35);
}
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: scale(.97); transition-duration: .1s; }

/* 输入聚焦光晕 */
.input {
  transition: border-color .22s ease, background-color .22s ease,
              box-shadow .22s ease, transform .22s ease;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(51,144,236,.18), 0 6px 18px rgba(51,144,236,.12);
}
.cap-q {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.cap-q:hover { transform: translateY(-1px); border-color: rgba(51,144,236,.5); }

/* 徽章悬浮呼吸（窄屏装饰） */
.auth-deco { animation-name: riseIn, decoFloat; animation-duration: .55s, 6s;
             animation-timing-function: cubic-bezier(.2,.8,.2,1), ease-in-out;
             animation-iteration-count: 1, infinite;
             animation-fill-mode: both, none;
             animation-direction: normal, alternate; }
.auth-deco--a { animation-delay: .15s, 0s; }
.auth-deco--b { animation-delay: .25s, 1.2s; }
.auth-deco--c { animation-delay: .35s, 2.1s; }
.auth-deco--d { animation-delay: .45s, 3s; }
@keyframes decoFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}

/* 堆叠卡悬浮微抬升（不切换，纯触感） */
.stack-card[data-pos="0"]:hover {
  transform: translateY(35px) scale(1.015);
  box-shadow: inset 0 1px 1px var(--hl-top), 0 16px 34px rgba(51,144,236,.22);
}
.cap-stack:hover .stack-card[data-pos="1"] { transform: translateY(17px) scale(.955); }
.cap-stack:hover .stack-card[data-pos="2"] { transform: translateY(-2px) scale(.905); }

/* 链接下划线滑入 */
.auth-foot a, .link-btn {
  position: relative;
  transition: color .2s ease, opacity .2s ease;
}
.auth-foot a::after, .link-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.auth-foot a:hover::after, .link-btn:hover::after { transform: scaleX(1); }

/* 主题按钮悬浮旋转 */
.auth-theme { transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.auth-theme:hover { transform: rotate(18deg) scale(1.08); }

/* 胶囊卡光泽扫过（叠加在指针光泽之上） */
.cap-card {
  background-image: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: 120% 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1),
              box-shadow .25s ease, background-position .7s ease;
}
.cap-card:hover {
  background-position: -30% 0;
  transform: translateY(-3px);
}

/* 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
