/* ==========================================================================
   未花的宝盒 · 门户样式系统
   --------------------------------------------------------------------------
   配色取自「圣园未花」：闪耀的紫 / 光环的金 / 茶会的粉
   页面：登录页(login) + 启动台(launcher)
   ========================================================================== */

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
  --ink:        #0d0912;
  --plum:       #1a1223;
  --plum-2:     #241a30;

  --pink:       #f7a8c4;
  --pink-lt:    #ffd6e4;
  --pink-dp:    #d9759b;
  --gold:       #f5d68a;
  --gold-dp:    #c9a24c;
  --violet:     #a98bdc;
  --violet-dp:  #7b5cb8;
  --cyan:       #8fd8e8;

  --text:       #f7f2f9;
  --text-dim:   #c4b7cf;
  --text-mute:  #8d7f9b;

  --glass:      rgba(20, 13, 29, 0.76);
  --glass-2:    rgba(34, 23, 46, 0.52);
  --line:       rgba(255, 255, 255, 0.13);
  --line-soft:  rgba(255, 255, 255, 0.07);

  --danger:     #ff8a9c;
  --ok:         #8fe4b8;

  --r-card:     28px;
  --r-field:    14px;
  --r-tile:     20px;

  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-back:  cubic-bezier(.34, 1.56, .64, 1);

  --font-ui: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
             "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
                  "SimSun", Georgia, serif;
}

/* ==========================================================================
   2. 复位
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(247, 168, 196, 0.32); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(247,168,196,.5), rgba(169,139,220,.5));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(247,168,196,.75); background-clip: padding-box; }

/* ==========================================================================
   3. 背景层（两页共用）
   ========================================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--plum);
  overflow: hidden;
}

.bg__layer {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 34%;
  background-repeat: no-repeat;
  background-color: var(--plum);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 2.4s var(--ease), filter 2.4s var(--ease);
  will-change: opacity, transform;
  filter: saturate(1.05) contrast(1.03);
}

.bg__layer.is-active {
  opacity: 1;
  animation: kenburns 26s ease-in-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.19) translate3d(-1.4%, -1.8%, 0); }
}

/* 色彩倾向 + 暗化，保证任何插画上文字都清晰 */
.bg__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(247, 168, 196, 0.07) 0%, transparent 52%),
    radial-gradient(90% 70% at 14% 82%, rgba(169, 139, 220, 0.12) 0%, transparent 58%),
    radial-gradient(120% 100% at 50% 106%, rgba(8, 5, 12, 0.97) 0%, transparent 62%),
    linear-gradient(180deg,
      rgba(8, 5, 12, 0.62) 0%,
      rgba(16, 10, 22, 0.58) 38%,
      rgba(8, 5, 12, 0.93) 100%);
}

/* 细颗粒 */
.bg__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 极光光斑：三团缓慢漂移的模糊色块 */
.aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  filter: blur(96px);
  opacity: 0.30;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--1 {
  width: 46vw; height: 46vw;
  left: -6%; top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(247,168,196,.42), transparent 68%);
  animation: drift1 34s ease-in-out infinite;
}
.aurora__blob--2 {
  width: 40vw; height: 40vw;
  right: -4%; top: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(169,139,220,.40), transparent 68%);
  animation: drift2 42s ease-in-out infinite;
}
.aurora__blob--3 {
  width: 34vw; height: 34vw;
  left: 38%; bottom: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(245,214,138,.30), transparent 70%);
  animation: drift3 38s ease-in-out infinite;
}

@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1.06); }
  50%     { transform: translate3d(-7vw, 5vh, 0) scale(0.94); }
}
@keyframes drift3 {
  0%,100% { transform: translate3d(0,0,0) scale(0.96); }
  50%     { transform: translate3d(4vw, -6vh, 0) scale(1.1); }
}

/* 粒子画布 */
.motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ==========================================================================
   4. 光环（未花的标志）
   参考原画：多层手绘椭圆轨道 + 中央纺锤体 + 四角星芒 + 散落光点
   ========================================================================== */
.halo {
  position: absolute;
  pointer-events: none;
}

.halo__svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* 整体极慢自转 */
.halo__assembly {
  transform-origin: 100px 100px;
  animation: haloSpin 150s linear infinite;
}

@keyframes haloSpin { to { transform: rotate(360deg); } }

/* 每条轨道带独立转速与倾角已写在 SVG 的 transform 里，这里只叠自转 */
.halo__orb-a { transform-origin: 100px 100px; animation: orbA 46s linear infinite; }
.halo__orb-b { transform-origin: 100px 100px; animation: orbB 33s linear infinite reverse; }
.halo__orb-c { transform-origin: 100px 100px; animation: orbC 22s linear infinite; }

@keyframes orbA { to { transform: rotate(360deg); } }
@keyframes orbB { to { transform: rotate(-360deg); } }
@keyframes orbC { to { transform: rotate(360deg); } }

/* 中央纺锤：缓慢反向自转 + 呼吸 */
.halo__core {
  transform-origin: 100px 100px;
  animation: haloCore 18s ease-in-out infinite;
}

@keyframes haloCore {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  50%      { transform: rotate(7deg) scale(1.045); }
}

/* 呼吸光晕 */
.halo__pulse {
  transform-origin: 100px 100px;
  animation: haloPulse 5.2s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: .35; transform: scale(.97); }
  50%      { opacity: .85; transform: scale(1.05); }
}

/* 星芒闪烁 */
.halo__spark { animation: sparkTwinkle 3.4s ease-in-out infinite; }
.halo__spark--1 { animation-delay: 0s; }
.halo__spark--2 { animation-delay: 1.1s; }
.halo__spark--3 { animation-delay: 2.2s; }

@keyframes sparkTwinkle {
  0%, 100% { opacity: .55; transform: scale(.86); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* 散落光点：轻微漂浮 + 亮度起伏 */
.halo__dot { animation: dotFloat 6s ease-in-out infinite; }
.halo__dot--1 { animation-delay: 0s; }
.halo__dot--2 { animation-delay: .9s; }
.halo__dot--3 { animation-delay: 1.7s; }
.halo__dot--4 { animation-delay: 2.5s; }
.halo__dot--5 { animation-delay: 3.3s; }
.halo__dot--6 { animation-delay: 4.1s; }

@keyframes dotFloat {
  0%, 100% { opacity: .45; transform: translateY(0) scale(1); }
  50%      { opacity: 1;   transform: translateY(-3.2px) scale(1.18); }
}

/* 主飘带：极轻微的摆荡，像被风吹动 */
.halo__ribbon {
  transform-origin: 100px 100px;
  animation: ribbonSway 26s ease-in-out infinite;
}

@keyframes ribbonSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50%      { transform: rotate(1.6deg); }
}

/* 兼容旧类名（启动台曾用过） */
.halo__spin-slow { transform-origin: 100px 100px; animation: spin 44s linear infinite; }
.halo__spin-mid  { transform-origin: 100px 100px; animation: spin 26s linear infinite reverse; }
.halo__spin-fast { transform-origin: 100px 100px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.halo__orbit-dot { animation: dotFloat 3.2s ease-in-out infinite; }

/* ==========================================================================
   5. 毛玻璃卡片
   ========================================================================== */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 30px 90px -22px rgba(0, 0, 0, 0.78);
}

/* 流动的渐变描边 */
.glass--ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ring-angle, 0deg),
    rgba(247,168,196,.75), rgba(245,214,138,.6), rgba(169,139,220,.75),
    rgba(143,216,232,.5), rgba(247,168,196,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.55;
  animation: ringRotate 9s linear infinite;
  pointer-events: none;
}

@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes ringRotate {
  to { --ring-angle: 360deg; }
}

/* 顶部高光 */
.glass--toplight::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent, rgba(247,168,196,.65), rgba(245,214,138,.55), transparent);
  pointer-events: none;
}

/* ==========================================================================
   6. 文字
   ========================================================================== */
.grad-text {
  background: linear-gradient(100deg, var(--pink-lt) 0%, var(--gold) 46%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 34px rgba(247, 168, 196, 0.26);
}

/* 标题流光扫过 */
.shimmer { position: relative; }
.shimmer::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%, rgba(255,255,255,.92) 48%, transparent 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 260% 100%;
  animation: shimmerSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0%, 62%, 100% { background-position: 190% 0; }
  78%           { background-position: -60% 0; }
}

/* 顶部小标签 */
.kicker {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ==========================================================================
   7. 表单控件
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  padding-left: 3px;
}

.field__box {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--r-field);
  background: rgba(10, 7, 16, 0.46);
  border: 1px solid var(--line-soft);
  transition: border-color .24s var(--ease), background .24s var(--ease),
              box-shadow .24s var(--ease), transform .24s var(--ease);
}

.field__box:focus-within {
  border-color: rgba(247, 168, 196, 0.62);
  background: rgba(10, 7, 16, 0.62);
  box-shadow: 0 0 0 3px rgba(247, 168, 196, 0.13),
              0 0 26px -6px rgba(247, 168, 196, 0.55);
  transform: translateY(-1px);
}

.field__icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-left: 14px;
  color: var(--text-mute);
  transition: color .24s var(--ease), transform .24s var(--ease);
}

.field__box:focus-within .field__icon { color: var(--pink); transform: scale(1.08); }

.field__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  border: 0; outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.field__input::placeholder { color: var(--text-mute); opacity: .72; }

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(22, 15, 32, 0.97) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out;
}

.field__eye {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-right: 5px;
  padding: 0; border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.field__eye:hover { color: var(--pink); background: rgba(255,255,255,.07); }
.field__eye svg { width: 19px; height: 19px; }
.field__eye .eye-off { display: none; }
.field__eye[aria-pressed="true"] .eye-open { display: none; }
.field__eye[aria-pressed="true"] .eye-off  { display: block; }

/* ==========================================================================
   8. 按钮
   ========================================================================== */
.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 50px;
  padding: 0 22px;
  border: 0; border-radius: var(--r-field);
  cursor: pointer;
  overflow: hidden;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em;
  color: #2a1526;
  background: linear-gradient(100deg, var(--pink-lt) 0%, var(--pink) 40%, var(--gold) 100%);
  box-shadow: 0 12px 30px -12px rgba(247, 168, 196, 0.7);
  transition: transform .16s var(--ease), box-shadow .24s var(--ease), filter .24s var(--ease);
}

.btn:hover:not(:disabled) {
  filter: brightness(1.07) saturate(1.06);
  box-shadow: 0 18px 42px -12px rgba(247, 168, 196, 0.88);
  transform: translateY(-2px);
}

.btn:active:not(:disabled) { transform: translateY(0) scale(.995); }

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

/* 扫光 */
.btn::after {
  content: "";
  position: absolute; top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  transition: left .68s var(--ease);
}
.btn:hover:not(:disabled)::after { left: 148%; }

.btn:disabled { cursor: progress; filter: saturate(.7) brightness(.94); }

.btn__spinner {
  display: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(42, 21, 38, 0.28);
  border-top-color: #2a1526;
  animation: spin .72s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }

/* 点击涟漪 */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  animation: rippleOut .6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(2.6); opacity: 0; }
}

/* ==========================================================================
   9. 提示 / 状态
   ========================================================================== */
.alert {
  margin: 0;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--danger);
  background: rgba(255, 138, 156, 0.10);
  border: 1px solid rgba(255, 138, 156, 0.28);
  animation: fadeIn .24s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.capslock {
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.05em;
  animation: fadeIn .24s var(--ease);
}

/* 抖动 */
.is-shaking { animation: shake .48s var(--ease); }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  14%     { transform: translateX(-9px) rotate(-.4deg); }
  30%     { transform: translateX(8px) rotate(.4deg); }
  46%     { transform: translateX(-6px); }
  62%     { transform: translateX(4px); }
  80%     { transform: translateX(-2px); }
}

/* ==========================================================================
   10. 登录成功光爆
   ========================================================================== */
.flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%,
    rgba(255,255,255,.95) 0%, rgba(247,168,196,.55) 22%, transparent 58%);
}

.flash.is-firing { animation: flashOut .72s ease-out forwards; }

@keyframes flashOut {
  0%   { opacity: 0; transform: scale(.5); }
  22%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.is-granted { animation: grantedOut .62s var(--ease-out) forwards; }

@keyframes grantedOut {
  to { opacity: 0; transform: translateY(-18px) scale(1.03); filter: blur(8px); }
}

/* ==========================================================================
   11. 启动台
   ========================================================================== */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px clamp(16px, 4vw, 52px) 34px;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 18px;
  margin-bottom: 30px;
  animation: dropIn .8s var(--ease-out) both;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}

.topbar__brand { display: flex; align-items: center; gap: 13px; min-width: 0; }

.topbar__halo {
  position: relative;
  width: 46px; height: 46px;
  flex: 0 0 auto;
}
.topbar__halo .halo { position: absolute; inset: -13px; width: auto; height: auto; }

.topbar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.topbar__sub {
  margin: 1px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.topbar__spacer { flex: 1 1 auto; }

.topbar__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(143,228,184,.9);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text-dim);
  font-size: 12.5px; letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(247,168,196,.5);
  background: rgba(247,168,196,.12);
  box-shadow: 0 0 20px -6px rgba(247,168,196,.6);
}
.btn-ghost svg { width: 15px; height: 15px; }

/* 分组 */
.group { margin-bottom: 30px; }

.group__head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 15px;
  animation: dropIn .8s var(--ease-out) both;
}

.group__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.group__line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), transparent);
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 15px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 19px 17px 17px;
  border-radius: var(--r-tile);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;

  background: var(--glass-2);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);

  transform-style: preserve-3d;
  transition: transform .32s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), background .3s var(--ease);

  animation: tileIn .72s var(--ease-out) both;
}

@keyframes tileIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* 悬停光晕 */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(247,168,196,.22), transparent 70%);
  transition: opacity .3s var(--ease);
}

.tile:hover::before { opacity: 1; }

.tile:hover {
  border-color: rgba(247,168,196,.42);
  background: rgba(48, 33, 64, 0.52);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.75),
              0 0 34px -12px rgba(247,168,196,.55);
}

/* 掠过光影 */
.tile::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.13), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.tile:hover::after { left: 150%; }

.tile__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(247,168,196,.20), rgba(169,139,220,.20));
  border: 1px solid rgba(255,255,255,.10);
  color: var(--pink-lt);
  transition: transform .32s var(--ease-back), box-shadow .3s var(--ease);
}

.tile:hover .tile__icon {
  transform: translateZ(22px) scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 26px -8px rgba(247,168,196,.75);
}

.tile__icon svg { width: 22px; height: 22px; }

.tile__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: transform .32s var(--ease-out);
}
.tile:hover .tile__name { transform: translateZ(14px); }

.tile__desc {
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mute);
  transition: transform .32s var(--ease-out);
}
.tile:hover .tile__desc { transform: translateZ(8px); color: var(--text-dim); }

/* 右上角箭头 */
.tile__go {
  position: absolute;
  top: 15px; right: 15px;
  width: 18px; height: 18px;
  color: var(--text-mute);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all .32s var(--ease);
}
.tile:hover .tile__go { opacity: 1; transform: none; color: var(--pink); }

/* 外部链接角标 */
.tile--ext .tile__go { opacity: .45; transform: none; }

/* 页脚 */
.footbar {
  margin-top: auto;
  padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 11.5px;
  color: var(--text-mute);
  border-top: 1px solid var(--line-soft);
}

.footbar__spacer { flex: 1 1 auto; }

/* ==========================================================================
   12. 无障碍 / 响应式
   ========================================================================== */
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  .tile { padding: 15px 14px 14px; }
  .tile__icon { width: 36px; height: 36px; border-radius: 11px; }
  .tile__icon svg { width: 19px; height: 19px; }
  .tile__name { font-size: 13.5px; }
  .tile__desc { font-size: 11px; }
  .topbar__sub { display: none; }
  .shell { padding: 16px 14px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bg__layer { transform: none; }
  .aurora, .motes { display: none; }
}

/* ==========================================================================
   13. 页面布局：登录页
   ========================================================================== */
body.page-login   { overflow: hidden; }
body.page-launcher{ overflow-y: auto; }

.stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 44px 20px;
}

/* 登录卡片 */
.card {
  position: relative;
  width: 100%;
  max-width: 408px;
  padding: 66px 32px 24px;
  border-radius: var(--r-card);
  animation: cardIn .92s var(--ease-out) both;
  animation-delay: .06s;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.968); }
  to   { opacity: 1; transform: none; }
}

/* 光环定位：悬浮在卡片上方，只压住卡片顶部的留白区 */
.halo--login {
  top: -214px;
  left: 50%;
  width: 262px;
  height: 262px;
  margin-left: -131px;
  filter:
    drop-shadow(0 0 10px rgba(255, 214, 232, 0.85))
    drop-shadow(0 0 30px rgba(247, 168, 196, 0.62))
    drop-shadow(0 0 64px rgba(169, 139, 220, 0.42));
  animation: haloIn 1.3s var(--ease-out) both;
}

/* 光环背后的柔光球 */
.halo--login::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 226, 240, 0.22) 0%,
    rgba(247, 168, 196, 0.13) 38%,
    transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

@keyframes haloIn {
  from { opacity: 0; transform: scale(.76) rotate(-26deg); }
  to   { opacity: 1; transform: none; }
}

/* 标题区 */
.brand { text-align: center; margin: 0 0 26px; }

.brand__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .10em;
  line-height: 1.24;
}

.brand__sub {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.78;
  color: var(--text-dim);
}

.form { display: flex; flex-direction: column; gap: 15px; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
}

.row--note { margin-top: -3px; }

.note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: .03em;
}
.note svg { width: 13px; height: 13px; flex: 0 0 auto; opacity: .8; }

/* 页脚状态 */
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: .04em;
}

.foot__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  flex: 0 0 auto;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.foot.is-online  .foot__dot { background: var(--ok);     box-shadow: 0 0 9px rgba(143,228,184,.9); }
.foot.is-offline .foot__dot { background: var(--danger); box-shadow: 0 0 9px rgba(255,138,156,.85); }

.credit {
  margin: 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-mute);
  opacity: .7;
  text-align: center;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
  color: var(--text);
  text-align: center;
}

/* 启动台背景压得更暗，保证卡片读得清 */
.bg__veil--launcher {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(247, 168, 196, 0.10) 0%, transparent 52%),
    radial-gradient(110% 90% at 50% 108%, rgba(13, 9, 18, 0.97) 0%, transparent 62%),
    linear-gradient(180deg,
      rgba(13, 9, 18, 0.74) 0%,
      rgba(20, 14, 28, 0.82) 45%,
      rgba(13, 9, 18, 0.94) 100%);
}

/* ==========================================================================
   14. 响应式（登录页 + 启动台）
   ========================================================================== */
@media (max-width: 480px) {
  .stage--login { padding: 30px 15px; gap: 16px; }
  .card { max-width: 100%; padding: 56px 20px 20px; border-radius: 22px; }
  .halo--login { top: -150px; width: 186px; height: 186px; margin-left: -93px; }
  .brand__title { font-size: 25px; }
  .brand__sub { font-size: 12.5px; }
  .field__input { font-size: 16px; }   /* 防 iOS 聚焦放大 */
  .note { font-size: 11px; }
}

@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 11px 14px; }
  .topbar__title { font-size: 16px; }
  .topbar__meta { font-size: 11px; }
  .btn-ghost { height: 32px; padding: 0 12px; font-size: 12px; }
}

@media (max-height: 660px) and (orientation: landscape) {
  .stage--login { justify-content: flex-start; padding-top: 26px; }
  .card { padding-top: 44px; }
  .halo--login { display: none; }
}
