:root {
  /* 登录 / 注册 / 首页背景色（原深空近黑蓝 #060b1c，已改为浅蓝） */
  /* 天空底色：与首页 body 完全同一组色值，云朵配色也取自这一色系，保证整体一致 */
  --deep1: #eaf5ff;
  --deep2: #e0eeff;
  --deep3: #d2e6fd;
  --ink: #22364d;
  --ink2: #5b6b80;
  --muted: #9fb0c2;
  --line: #e7edf5;
  --line2: #d9e4f0;
  --field: #f7fbff;
  --sky: #4aa8ff;
  --violet: #2f7fd0;
  --coral: #f0a23c;
  --sun: #ffd166;
  --mint: #2dd4bf;
  /* 浅底配柔和阴影，深色重阴影在浅蓝底上会显脏 */
  /* 表单外框阴影：由深色重阴影改为极淡的天空色柔光（卡片本身已改为半透明白融入天空） */
  --shadow-card: 0 10px 30px rgba(37, 99, 201, .08);
}

body.is-login {
  padding-left: 0 !important;
  color: var(--ink);
  background-color: var(--deep1);
  position: relative;
}
body.is-login #app { max-width: 100%; }
body.is-login .sidebar,
body.is-login .topbar,
body.is-login .bottomnav { display: none !important; }

#screen-login {
  position: relative;
  padding: 0;
}

.rq-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 78% 8%, rgba(56, 189, 248, .18), rgba(56, 189, 248, 0) 70%),
    radial-gradient(760px 560px at 14% 88%, rgba(74, 168, 255, .16), rgba(74, 168, 255, 0) 70%),
    linear-gradient(180deg, var(--deep1) 0%, var(--deep2) 46%, var(--deep3) 100%);
}

/* ===== 浅蓝天空 · 太阳 + 云层 =====
   云：4 种形态的矢量云（--rq-cloud1~4，定义在 style.css），SVG 内带高斯模糊，
       边缘柔和、与天空自然融合；每朵云独立漂浮 —— 形态 / 大小 / 高度 / 速度 /
       延迟 / 透明度各不相同，像星空一样错落流动，而不是整层一起左右晃。
   太阳：无硬边的柔和光球（核心→光晕→暖光全程平滑过渡），带极缓慢的呼吸感。 */

/* 卡通太阳：亮黄圆盘（白高光 + 白圈）+ 8 道圆头光芒 + 暖光晕，更亮更童趣 */
/* 云：公共部分 */
.rq-cloud {
  position: absolute;
  left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  will-change: transform;
  animation-name: rqDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* 一次完整横向穿场（-32vw → 110vw），纵向带轻微起伏：像飘，不像滑 */
@keyframes rqDrift {
  0%   { transform: translate3d(-32vw, 0, 0); }
  25%  { transform: translate3d(3.5vw, -7px, 0); }
  50%  { transform: translate3d(39vw, 0, 0); }
  75%  { transform: translate3d(74.5vw, 7px, 0); }
  100% { transform: translate3d(110vw, 0, 0); }
}

/* 水平翻转版：同一形态镜像后再用，等于多一倍形态（8 朵里 3 朵翻转） */
@keyframes rqDriftFlip {
  0%   { transform: translate3d(-32vw, 0, 0) scaleX(-1); }
  25%  { transform: translate3d(3.5vw, -7px, 0) scaleX(-1); }
  50%  { transform: translate3d(39vw, 0, 0) scaleX(-1); }
  75%  { transform: translate3d(74.5vw, 7px, 0) scaleX(-1); }
  100% { transform: translate3d(110vw, 0, 0) scaleX(-1); }
}

/* 8 朵云：6 种形态交替 + 部分镜像，大小 / 高度 / 速度 / 起始位置 / 浓淡 全不同 */
.rq-cloud.c1 { top: 18%; width: 168px; height: 73px; background-image: var(--rq-cloud1); opacity: .96; animation-duration: 172s; animation-delay:  -14s; }
.rq-cloud.c2 { top: 29%; width: 120px; height: 64px; background-image: var(--rq-cloud3); opacity: .88; animation-duration: 134s; animation-delay:  -82s; animation-name: rqDriftFlip; }
.rq-cloud.c3 { top: 12%; width: 208px; height: 80px; background-image: var(--rq-cloud6); opacity: .93; animation-duration: 214s; animation-delay: -156s; }
.rq-cloud.c4 { top: 36%; width: 104px; height: 68px; background-image: var(--rq-cloud5); opacity: .84; animation-duration: 121s; animation-delay:  -48s; }
.rq-cloud.c5 { top: 63%; width: 248px; height: 88px; background-image: var(--rq-cloud2); opacity: .98; animation-duration: 196s; animation-delay:  -97s; animation-name: rqDriftFlip; }
.rq-cloud.c6 { top: 74%; width: 140px; height: 61px; background-image: var(--rq-cloud1); opacity: .95; animation-duration: 148s; animation-delay:  -31s; }
.rq-cloud.c7 { top: 86%; width: 190px; height: 49px; background-image: var(--rq-cloud4); opacity: .84; animation-duration: 163s; animation-delay: -124s; }
.rq-cloud.c8 { top: 52%; width:  86px; height: 56px; background-image: var(--rq-cloud5); opacity: .76; animation-duration: 129s; animation-delay:  -67s; animation-name: rqDriftFlip; }

/* ===== 雁群：7 只大雁排成人字队列整群穿场，每只翅膀独立扇动 ===== */
.rq-flock {
  position: absolute;
  top: 22%;
  left: 0;
  width: 200px;
  height: 176px;
  z-index: 3;
  pointer-events: none;
  /* 往返一趟 78 秒（去程约 39 秒、回程约 39 秒） */
  animation: rqFlockFly 78s linear infinite;
  animation-delay: -12s;   /* 打开页面时雁群已在画面中、正在向左飞 */
  will-change: transform;
}
/* 每只雁 = 身体（自身背景）+ 上下两片翅膀（两个伪元素）。
   尺寸全部用 em，改 font-size 即整体缩放；队形里越靠后的雁越小（越远）。 */
.rq-goose {
  position: absolute;
  font-size: 10px;
  width: 3.4em;
  height: 1.9em;
  background: var(--rq-goose) no-repeat center / contain;
  /* 队形随机切换时的平滑过渡（js/flock.js 改的是 left / top / font-size） */
  -webkit-transition: left 2.4s ease-in-out, top 2.4s ease-in-out, font-size 2.4s ease-in-out;
          transition: left 2.4s ease-in-out, top 2.4s ease-in-out, font-size 2.4s ease-in-out;
}
.rq-goose::before,
.rq-goose::after {
  content: '';
  position: absolute;
  width: 2.6em;
  height: 2.1em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
/* 上翅：根部落在翅膀元素左下角，向左上方舒展 */
.rq-goose::before {
  background-image: var(--rq-wing-a);
  left: 1.44em;
  top: -.89em;
  transform-origin: .13em 1.84em;
  animation: rqFlapUp .64s ease-in-out infinite;
}
/* 下翅：根部落在翅膀元素左上角，向左下方舒展 */
.rq-goose::after {
  background-image: var(--rq-wing-b);
  left: 1.44em;
  top: .69em;
  transform-origin: .13em .26em;
  animation: rqFlapDown .64s ease-in-out infinite;
}
@keyframes rqFlapUp {
  0%, 100% { transform: rotate(-24deg); }
  50%      { transform: rotate(15deg); }
}
@keyframes rqFlapDown {
  0%, 100% { transform: rotate(24deg); }
  50%      { transform: rotate(-15deg); }
}
/* 队形：头雁领飞（最左），其余向右上 / 右下两列展开，构成人字 */
.rq-flock .g1 { left:   0px; top:  74px; font-size: 10.6px; }
.rq-flock .g2 { left:  52px; top:  50px; font-size:  9.7px; }
.rq-flock .g3 { left:  52px; top: 100px; font-size:  9.7px; }
.rq-flock .g4 { left: 104px; top:  26px; font-size:  8.9px; }
.rq-flock .g5 { left: 104px; top: 124px; font-size:  8.9px; }
.rq-flock .g6 { left: 154px; top:   2px; font-size:  8.1px; }
.rq-flock .g7 { left: 154px; top: 148px; font-size:  8.1px; }
/* g8 / g9 默认藏在人字末端；数量随机到 9 只时才由 JS 显示出来 */
.rq-flock .g8 { left: 200px; top: -22px; font-size:  7.6px; }
.rq-flock .g9 { left: 200px; top: 172px; font-size:  7.6px; }
/* 每只雁的扇动频率与相位都不同 → 不会整齐划一 */
.rq-flock .g1::before, .rq-flock .g1::after { animation-duration: .64s; animation-delay: -.05s; }
.rq-flock .g2::before, .rq-flock .g2::after { animation-duration: .60s; animation-delay: -.22s; }
.rq-flock .g3::before, .rq-flock .g3::after { animation-duration: .68s; animation-delay: -.41s; }
.rq-flock .g4::before, .rq-flock .g4::after { animation-duration: .62s; animation-delay: -.13s; }
.rq-flock .g5::before, .rq-flock .g5::after { animation-duration: .70s; animation-delay: -.34s; }
.rq-flock .g6::before, .rq-flock .g6::after { animation-duration: .58s; animation-delay: -.52s; }
.rq-flock .g7::before, .rq-flock .g7::after { animation-duration: .66s; animation-delay: -.28s; }
.rq-flock .g8::before, .rq-flock .g8::after { animation-duration: .61s; animation-delay: -.47s; }
.rq-flock .g9::before, .rq-flock .g9::after { animation-duration: .69s; animation-delay: -.18s; }
/* 整群往返穿场：
   0%→50%  自右向左飞过（scaleX(1)，雁头朝左）
   50%     抵达左侧屏外，短暂停顿
   50%→52% 转身：整体水平翻转成 scaleX(-1)（雁头朝右，此时在屏外看不见）
   52%→100% 自左向右飞回（雁头朝右）
   两端都留足屏外距离（-60vw / 128vw），保证转身与循环跳变都在画面外发生，
   不会再出现"雁群凭空窜回右边"的突兀感。 */
@keyframes rqFlockFly {
  0%   { transform: translate3d(128vw,  10px, 0) scaleX(1); }
  10%  { transform: translate3d( 90vw,  -8px, 0) scaleX(1); }
  20%  { transform: translate3d( 53vw,   7px, 0) scaleX(1); }
  30%  { transform: translate3d( 15vw,  -6px, 0) scaleX(1); }
  40%  { transform: translate3d(-22vw,   9px, 0) scaleX(1); }
  48%  { transform: translate3d(-52vw,  -5px, 0) scaleX(1); }
  50%  { transform: translate3d(-60vw,   4px, 0) scaleX(1); }
  52%  { transform: translate3d(-60vw,   4px, 0) scaleX(-1); }
  60%  { transform: translate3d(-22vw,  -7px, 0) scaleX(-1); }
  70%  { transform: translate3d( 15vw,   8px, 0) scaleX(-1); }
  80%  { transform: translate3d( 53vw,  -6px, 0) scaleX(-1); }
  90%  { transform: translate3d( 90vw,   6px, 0) scaleX(-1); }
  100% { transform: translate3d(128vw,  10px, 0) scaleX(-1); }
}

.rq-stars {
  /* 浅蓝底：白色星点是给深色星空设计的，浅底上看不见，直接隐藏 */
  display: none;
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.8px 1.8px at 6% 14%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.4px 1.4px at 17% 27%, #dbe9ff, rgba(219, 233, 255, 0) 100%),
    radial-gradient(2.0px 2.0px at 28% 9%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 38% 21%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(1.7px 1.7px at 46% 6%,  #ffe9b0, rgba(255, 233, 176, 0) 100%),
    radial-gradient(1.3px 1.3px at 57% 18%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(2.1px 2.1px at 66% 11%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 75% 24%, #d7e6ff, rgba(215, 230, 255, 0) 100%),
    radial-gradient(1.6px 1.6px at 84% 8%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.3px 1.3px at 93% 19%, #ffe3c9, rgba(255, 227, 201, 0) 100%),
    radial-gradient(1.5px 1.5px at 11% 41%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 22% 52%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(1.9px 1.9px at 33% 44%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.3px 1.3px at 43% 57%, #e4ecff, rgba(228, 236, 255, 0) 100%),
    radial-gradient(1.6px 1.6px at 61% 47%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 71% 58%, #d7e6ff, rgba(215, 230, 255, 0) 100%),
    radial-gradient(1.8px 1.8px at 81% 43%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.3px 1.3px at 90% 55%, #ffe9b0, rgba(255, 233, 176, 0) 100%),
    radial-gradient(1.5px 1.5px at 8%  71%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 19% 83%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(2.0px 2.0px at 30% 76%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.3px 1.3px at 40% 89%, #e4ecff, rgba(228, 236, 255, 0) 100%),
    radial-gradient(1.6px 1.6px at 52% 79%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 64% 91%, #d7e6ff, rgba(215, 230, 255, 0) 100%),
    radial-gradient(1.8px 1.8px at 74% 74%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.3px 1.3px at 86% 86%, #ffe3c9, rgba(255, 227, 201, 0) 100%),
    radial-gradient(1.5px 1.5px at 95% 72%, #ffffff, rgba(255, 255, 255, 0) 100%);
  opacity: .9;
  animation: rqTwinkle 9s ease-in-out infinite;
}

.rq-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.1px 1.1px at 13% 8%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 25% 17%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 36% 4%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 49% 15%, #ffe9b0, rgba(255, 233, 176, 0) 100%),
    radial-gradient(1.1px 1.1px at 60% 6%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 72% 16%, #d7e6ff, rgba(215, 230, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 88% 5%,  #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 5%  33%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.1px 1.1px at 27% 37%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 54% 32%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 68% 38%, #ffe9b0, rgba(255, 233, 176, 0) 100%),
    radial-gradient(1.0px 1.0px at 92% 34%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.1px 1.1px at 15% 63%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 35% 68%, #d7e6ff, rgba(215, 230, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 58% 62%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 78% 66%, #cfe0ff, rgba(207, 224, 255, 0) 100%),
    radial-gradient(1.1px 1.1px at 9%  94%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 44% 96%, #ffe3c9, rgba(255, 227, 201, 0) 100%),
    radial-gradient(1.2px 1.2px at 69% 93%, #ffffff, rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.0px 1.0px at 97% 95%, #cfe0ff, rgba(207, 224, 255, 0) 100%);
  opacity: .55;
  animation: rqTwinkle 6.5s ease-in-out infinite reverse;
}
@keyframes rqTwinkle {
  0%, 100% { opacity: .92; }
  50%      { opacity: .58; }
}

.rq-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}
.rq-nebula.n1 {
  width: clamp(280px, 44vw, 620px); height: clamp(280px, 44vw, 620px);
  left: -10vw; top: -12vw;
  background: radial-gradient(circle, rgba(47, 95, 208, .18), rgba(47, 95, 208, 0) 70%);
  animation: rqNebulaA 52s ease-in-out infinite;
}
.rq-nebula.n2 {
  width: clamp(240px, 38vw, 540px); height: clamp(240px, 38vw, 540px);
  right: -8vw; top: 6vh;
  background: radial-gradient(circle, rgba(74, 168, 255, .20), rgba(74, 168, 255, 0) 70%);
  animation: rqNebulaB 64s ease-in-out infinite;
}
.rq-nebula.n3 {
  width: clamp(220px, 36vw, 500px); height: clamp(220px, 36vw, 500px);
  left: 18vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(240, 162, 60, .14), rgba(240, 162, 60, 0) 70%);
  animation: rqNebulaA 74s ease-in-out infinite reverse;
}
@keyframes rqNebulaA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(34px, -22px); }
}
@keyframes rqNebulaB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 26px); }
}

.rq-shoot {
  /* 同上：白色流星只在深色底可见，浅蓝底隐藏 */
  display: none;
  position: absolute;
  width: 150px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .90));
  filter: drop-shadow(0 0 8px rgba(170, 214, 255, .55));
  opacity: 0;
}
.rq-shoot.s1 { top: 20%; left: 0; animation: rqShoot 19s linear infinite 4s; }
.rq-shoot.s2 { top: 54%; left: 0; animation: rqShoot 29s linear infinite 13s; }
@keyframes rqShoot {
  0%   { opacity: 0;   transform: rotate(22deg) translateX(0); }
  3%   { opacity: .95; }
  11%  { opacity: 0;   transform: rotate(22deg) translateX(115vw); }
  100% { opacity: 0;   transform: rotate(22deg) translateX(115vw); }
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 42px 24px 34px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 40px 44px 32px;
  /* 与天空融合：半透明白底 + 毛玻璃，云会从卡片后面淡淡透出 */
  background: rgba(255, 255, 255, .86);
  border: 0;
  border-radius: 28px;
  /* 四角处理（关键）：原来是 1px 蓝色外描边 rgba(37,99,201,.06)，描边在 4 个圆角处
     会形成一段切线，颜色和天空不一致 → 看起来割裂、像"漏边"。
     改为白色内高光（颜色贴近卡片自身，圆角过渡自然）+ 一层极淡天空色柔光做边界过渡。 */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .70),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 14px 40px rgba(37, 99, 201, .07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateZ(0);        /* 圆角独立合成，消除四角锯齿 */
  overflow: visible;
}
/* 卡片顶部一道极淡的横向高光，让上边缘与天空衔接更柔和（不参与点击） */
.login-card::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; top: 0;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events: none;
}
.login-card::before { display: none; }

.lc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 20px;
}

.lc-emoji {
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  box-shadow: 0 12px 26px rgba(74, 168, 255, .38);
  margin-bottom: 2px;
  transform-origin: 50% 50%;
}

.lc-eye {
  position: relative;
  width: 30px; height: 36px;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: radial-gradient(120% 92% at 50% 26%, #ffffff 0%, #f5f9ff 58%, #dbe7fb 100%);
  box-shadow:
    inset 0 -3px 6px rgba(96, 128, 186, .22),
    0 2px 6px rgba(18, 38, 90, .22);
  overflow: hidden;
}

.lc-iris {
  position: absolute;
  left: 50%; top: 52%;
  width: 21px; height: 21px;
  margin: -10.5px 0 0 -10.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #0d1638 0 22%, #2f6bff 23% 52%, #1f4fb0 53% 78%, #4f7fd0 79% 100%);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .82);
  animation: lcLook 4.6s cubic-bezier(.36, 1.16, .38, 1) infinite;
}

.lc-iris::before {
  content: '';
  position: absolute; left: 20%; top: 16%;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}

.lc-eye::after {
  content: '';
  position: absolute; left: -1px; right: -1px; top: -1px;
  height: 104%;
  background: #6e8dff;
  transform-origin: 50% 0;
  transform: scaleY(0);
  animation: lcBlink 5.6s ease-in-out infinite;
}

.lc-eye:first-child::after { background: #5b93ff; }
.lc-eye:last-child::after  { background: #7c82ff; }

@keyframes lcLook {
  0%,   14%  { transform: translate(0, 0); }
  20%,  38%  { transform: translate(-7px, 1px); }
  46%,  62%  { transform: translate(7px, 0); }
  70%,  84%  { transform: translate(-4px, -1px); }
  92%,  100% { transform: translate(0, 0); }
}

@keyframes lcBlink {
  0%, 90%, 100% { transform: scaleY(0); }
  93%           { transform: scaleY(1); }
  96%           { transform: scaleY(0); }
}
.lc-hero .lh-title,
.lc-hero .lh-en { display: none; }
.lc-hero .lh-sub {
  font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: .8px;
}
.lc-hero .lh-desc {
  font-size: 15px; font-weight: 600; color: var(--ink2); letter-spacing: .4px;
}

.login-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 22px;
  background: #f2f6fc;
  border: 0;
  border-radius: 18px;
}
.login-tabs button {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 6px;
  font-size: 15px; font-weight: 800;
  color: var(--ink2);
  background: transparent;
  border: 0; border-radius: 13px;
  white-space: nowrap;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.login-tabs button:hover { color: var(--sky); }
.login-tabs button.on {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  box-shadow: 0 8px 18px rgba(74, 168, 255, .35);
}

.login-tabs .lt-ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 201, .12);
  transition: transform .22s cubic-bezier(.34, 1.4, .52, 1), box-shadow .2s ease;
}
.login-tabs button:hover .lt-ico { transform: translateY(-2px) rotate(-6deg); }
.login-tabs button.on .lt-ico {
  box-shadow: 0 4px 12px rgba(37, 99, 201, .20);
  animation: ltPop .5s cubic-bezier(.34, 1.42, .52, 1);
}
@keyframes ltPop {
  0%   { transform: scale(.6) rotate(-14deg); }
  60%  { transform: scale(1.12) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

/* 分段切换：轨道内嵌 4px，滑块与轨道同为全圆角，阴影收小不外溢（消除"贴纸/错位"感） */
.lg-tabs{position:relative;display:flex;background:#e7eefb;border-radius:999px;margin:0 2px 18px;padding:4px;box-shadow:inset 0 1px 3px rgba(31,73,150,.07)}
.lg-tab{flex:1;border:0;background:none;padding:11px 10px;font-size:15px;font-weight:800;color:var(--ink2);cursor:pointer;position:relative;z-index:2;border-radius:999px;transition:color .25s;font-family:inherit}
.lg-tab.on{color:#fff}
.lg-tab-ind{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:linear-gradient(135deg,var(--sky),var(--violet));box-shadow:0 4px 12px rgba(47,109,224,.24);transition:transform .28s cubic-bezier(.4,0,.2,1);z-index:1}
.lg-viewport{overflow:hidden;transition:height .3s cubic-bezier(.4,0,.2,1)}
.lg-track{display:flex;width:200%;transition:transform .3s cubic-bezier(.4,0,.2,1);align-items:flex-start}
.lg-slide{flex:0 0 50%;width:50%;box-sizing:border-box}
.lg-tabs.nojs{position:relative;display:flex;background:#e7eefb;border-radius:999px;margin:0 0 18px;padding:4px;box-shadow:inset 0 1px 3px rgba(31,73,150,.07)}
.lg-tabs.nojs input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);pointer-events:none}
.lg-tabs.nojs .lg-tab{flex:1;text-align:center;padding:11px 10px;font-size:15px;font-weight:800;color:var(--ink2);cursor:pointer;border-radius:999px;user-select:none;transition:color .25s}
#lgm-login:checked ~ .lg-tabs.nojs .lg-tab[for="lgm-login"],
#lgm-reg:checked ~ .lg-tabs.nojs .lg-tab[for="lgm-reg"]{color:#fff;background:linear-gradient(135deg,var(--sky),var(--violet));box-shadow:0 4px 12px rgba(47,109,224,.24)}
.lg-panel{display:none}
#lgm-login:checked ~ .lg-panel[data-for="login"],
#lgm-reg:checked ~ .lg-panel[data-for="reg"]{display:block}
.lg-block{position:relative;background:#f7faff;border:1.5px solid #e1ebfa;border-radius:22px;padding:24px 22px;transition:box-shadow .25s ease}
.lg-block.lg-reg{background:#fff8f1;border-color:#ffe0c4}
.lg-block:hover{box-shadow:0 8px 22px rgba(37,99,201,.08)}
.lg-block-h{display:flex;align-items:center;gap:12px;margin-bottom:4px}
.lg-bico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none}
.lg-bico svg{width:26px;height:26px}
.lg-login .lg-bico{background:linear-gradient(135deg,var(--sky),var(--violet));box-shadow:0 8px 18px rgba(74,168,255,.34)}
.lg-reg .lg-bico{background:linear-gradient(135deg,#ffb15c,#ff7a18);box-shadow:0 8px 18px rgba(255,122,24,.34)}
.lg-bh-tx b{display:block;font-size:17px;font-weight:900;color:var(--ink)}
.lg-bh-tx i{display:block;font-style:normal;font-size:12.5px;color:var(--ink2);margin-top:1px}
.lg-steps{display:flex;gap:8px;margin:16px 0 2px}
.lg-steps span{flex:1;text-align:center;font-size:12.5px;font-weight:800;color:var(--ink2);padding:8px 6px;border-radius:999px;background:#eef3fb;transition:color .22s,background .22s,box-shadow .22s}
.lg-steps span.on{color:#fff;background:linear-gradient(135deg,var(--sky),var(--violet));box-shadow:0 4px 12px rgba(47,109,224,.24)}
.lg-block .login-pane label{margin:14px 0 8px}
.lg-row{display:flex;gap:10px;margin-top:24px}
.lg-row .lg-btn{margin-top:0;flex:1}
.lg-block .lg-btn.lg-btn-sm{margin-top:0;background:#fff;color:var(--ink2);border:2px solid var(--line);box-shadow:none;font-size:15px;padding:14px}
.lg-block .lg-btn.lg-btn-sm:hover{background:#fff;color:var(--sky);border-color:var(--sky);transform:none;filter:none}

.login-pane label {
  display: block;
  font-size: 14px; font-weight: 800; color: var(--ink2);
  margin: 17px 10px 9px;
}
.lg-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 16.5px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lg-input::placeholder { color: #b8c6d6; }
.lg-input:focus {
  border-color: var(--sky);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 168, 255, .16);
}

.lg-hint {
  font-size: 12px; color: var(--muted);
  margin: 12px 4px 0; line-height: 1.65; text-align: center;
}
.lg-tip {
  font-size: 12.5px; color: var(--ink2);
  background: #f4f8ff; border: 2px solid #e3edfb;
  border-radius: 16px; padding: 12px 14px; line-height: 1.65; margin-top: 12px;
}
.lg-tip.warn { color: #a4620a; background: #fff6e6; border-color: #ffe0a8; }
.lg-renew {
  display: inline-block; margin-top: 8px; padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #ff9d2e, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
  transition: transform .2s, filter .2s;
}
.lg-renew:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* 购买回来后的「用原账号 / 新建账号」二选一引导 */
.lg-guide {
  background: #f2f8ff; border: 2px solid #d9e9fb; border-radius: 16px;
  padding: 12px 14px; margin-bottom: 10px; line-height: 1.7;
}
.lg-guide-h { font-size: 13.5px; font-weight: 800; color: #17467e; margin-bottom: 8px; }
.lg-guide-i { margin: 8px 0 0; font-size: 12.8px; color: var(--ink2); }
.lg-guide-i b { color: #17467e; }
.lg-guide-n {
  float: left; width: 20px; height: 20px; border-radius: 50%; margin: 2px 8px 0 0;
  background: linear-gradient(135deg, #4aa8ff, #3757e8); color: #fff;
  font-size: 12px; font-style: normal; font-weight: 800;
  display: grid; place-items: center;
}
.lg-who {
  font-size: 13px; font-weight: 800; color: #0d7a6a;
  background: #e9fbf4; border: 2px solid #bdecd9;
  border-radius: 16px; padding: 11px 14px; margin-bottom: 10px;
}

.lg-devlist { margin-top: 12px; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.lg-dev {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; font-size: 12px; color: var(--ink2);
  border-bottom: 1px solid #eff4fa; background: #ffffff;
}
.lg-dev:last-child { border-bottom: 0; }
.lg-dev.oldest { background: #fff5f8; color: #c2477a; font-weight: 700; }
.lg-dev-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-dev-no { font-family: ui-monospace, Consolas, monospace; }
.lg-dev-t { color: var(--muted); white-space: nowrap; font-weight: 400; }
.lg-dev-kick {
  flex: none; padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--coral); background: #ffffff;
  color: #e2568a; font-size: 12px; font-weight: 800; cursor: pointer;
}
.lg-dev-kick:hover { background: #fff0f5; }

.lg-btn {
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  font-size: 18px; font-weight: 800;
  letter-spacing: 3px; text-indent: 3px;
  color: #ffffff;
  border: 0; border-radius: 18px;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  box-shadow: 0 14px 30px rgba(74, 168, 255, .38);
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lg-btn:hover { filter: brightness(1.04); box-shadow: 0 18px 38px rgba(74, 168, 255, .46); }
.lg-btn:active { transform: translateY(1px) scale(.995); }
.lg-btn:disabled { opacity: .6; cursor: default; }

.lg-link {
  display: block; width: 100%; margin-top: 12px;
  font-size: 13px; color: var(--ink2); font-weight: 700; text-align: center;
}
.lg-link:hover { color: var(--sky); }

.login-msg {
  min-height: 0; margin-top: 14px;
  font-size: 13px; text-align: center; color: var(--ink2);
  line-height: 1.5; border-radius: 14px; padding: 0;
  transition: all .18s ease;
}
.login-msg:not(:empty) { padding: 11px 14px; background: #f4f8ff; font-size: 14px; }
/* 登录失败必须一眼看见：警示图标 + 更大字号 + 更强对比，
   否则用户会以为「账号被禁用 / 密码错误」点下去没有任何反应 */
.login-msg.err {
  color: #b42318; font-weight: 800; font-size: 14.5px;
  background: #fff1ef; border: 2px solid #ffd5cf;
  box-shadow: 0 8px 20px rgba(226, 59, 59, .16);
}
.login-msg.err::before { content: "⚠️ "; }
.login-msg.ok {
  color: #0f7a45; font-weight: 800; font-size: 14px;
  background: #ecfdf3; border: 2px solid #b7ecd0;
}
.login-msg.ok::before { content: "✅ "; }

/* 登录失败时整张卡片抖一下 —— 最常见的失败反馈，用户不可能察觉不到 */
@keyframes lgShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-9px); }
  36% { transform: translateX(8px); }
  54% { transform: translateX(-6px); }
  72% { transform: translateX(4px); }
  88% { transform: translateX(-2px); }
}
.login-card.shake { animation: lgShake .45s cubic-bezier(.36, .07, .19, .97); }
@media (prefers-reduced-motion: reduce) {
  .login-card.shake { animation: none; }
}

.login-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.login-slogan {
  margin: 0;
  font-size: 13px; font-weight: 600; color: var(--ink2);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
}

.lf-buy {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 12px;
  border: 1.5px solid transparent;
  font-size: 14px; font-weight: 700; color: #ffffff; letter-spacing: .4px;
  background: linear-gradient(180deg, #ffa63d 0%, #ff7a18 100%);
  box-shadow: 0 4px 12px rgba(255, 122, 24, .30);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, filter .16s ease;
}

.lf-buy .lf-ico {
  position: relative; z-index: 1;
  flex: none; width: 18px; height: 18px;
  animation: lfFly 3.2s ease-in-out infinite;
}
.lf-buy > span { position: relative; z-index: 1; }

@keyframes lfFly {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-2px) rotate(-3deg); }
}
.lf-buy:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(255, 122, 24, .38);
}
.lf-buy:active {
  transform: scale(.97);
  filter: brightness(.97);
  box-shadow: 0 3px 9px rgba(255, 122, 24, .24);
}

.lf-query {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: #bd5c0c;
  background: #fff7ef; border: 1.5px solid #ffdcc0;
  transition: transform .14s ease, background .16s ease, border-color .16s ease;
}
.lf-query .lf-ico { flex: none; width: 18px; height: 18px; }
.lf-query:hover { background: #fff1e2; border-color: #ffc99e; }
.lf-query:active { transform: scale(.97); }

.la-note {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 11.5px; line-height: 1.7;
  /* 浅蓝底：白字会看不见，改为深蓝灰 */
  color: rgba(31, 49, 92, .55);
  text-align: center;
}

@media (max-width: 900px) {
  .login-wrap { padding: 36px 18px 28px; }
  .login-card { max-width: 540px; padding: 36px 34px 28px; }
  .la-note { max-width: 540px; }
}

@media (max-width: 640px) {
  .login-wrap { padding: 28px 16px 24px; }
  .login-card { max-width: 480px; }
  .la-note { max-width: 480px; }
  .lg-tab{font-size:14px;padding:12px 6px}
  .lg-tabs{margin:0 0 16px}
}

@media (max-width: 420px) {
  .login-wrap { padding: 22px 14px 20px; }
  .login-card { max-width: 100%; border-radius: 22px; padding: 26px 20px 22px; }

  .lc-emoji { transform: scale(.76); margin-top: -11px; margin-bottom: -13px; }
  .lc-hero .lh-sub { font-size: 21px; }
  .login-tabs { gap: 6px; padding: 7px; }
  .login-tabs button {
    flex-direction: column; gap: 4px;
    font-size: 12.5px; padding: 9px 2px;
  }
  .login-tabs .lt-ico { width: 27px; height: 27px; }
  .lf-buy { padding: 7px 13px; font-size: 13.5px; }
  .lf-query { padding: 7px 11px; font-size: 13px; }
  .lg-btn { letter-spacing: 1px; text-indent: 1px; }
  .la-note { max-width: 94%; font-size: 11px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .login-wrap { padding: 18px 16px; }
  .lc-emoji { transform: scale(.62); margin-top: -17px; margin-bottom: -19px; }
  .lc-hero { margin-bottom: 14px; gap: 6px; }
  .lc-hero .lh-sub { font-size: 19px; }
  .login-tabs { margin-bottom: 14px; }
  .login-pane label { margin: 10px 6px 6px; }
  .lg-btn { margin-top: 14px; padding: 13px; }
}