/* ===== Merged from /assets/customer/auth.css (to retire auth.css) ===== */
/* iOS26 / VisionOS 字体与颜色系统 */
/* Apple Human Interface 标准色系 */

/* ========================================
   🚀 GPU 硬件加速全局优化
   ======================================== */
/* 启用全局硬件加速和平滑渲染 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 为所有动画和过渡元素启用GPU加速 */
.auth-card,
.auth-wrap,
.bg-vignette,
#bg-net,
.page-progress-bar,
#transitionMask,
.verify-slide,
.slide-track,
.slide-thumb,
.slide-text,
.btn,
button,
.form-control,
.captcha-modal,
.ios26-notification,
.sheet-handle {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: auto;
}

/* 全局字体优化 - SF Pro 字体族 */
body {
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(30, 41, 59, 0.9);
  /* GPU加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* iOS26 字体层级规范 */
.auth-card h1, .auth-card .h4 { 
  color: #1E293B; 
  font-weight: 700; 
  font-size: 22px;
  letter-spacing: -0.02em;
}

.auth-card .form-label { 
  color: rgba(30, 41, 59, 0.65); 
  font-weight: 500; 
  font-size: 14px;
  margin-top: 18px;
  margin-bottom: 6px;
  display: block;
}

.auth-card .form-check-label { 
  color: rgba(30, 41, 59, 0.75); 
  font-weight: 400; 
  font-size: 14px;
}

.auth-card .link-primary { 
  color: #2563EB !important; 
  font-weight: 500;
}

.auth-card .link-primary:hover { 
  color: #1D4ED8 !important; 
}

/* Text colors - iOS26 冷灰蓝色系 */
.auth-card, .auth-card * { color: inherit; }
.auth-card .card-body { color: rgba(30, 41, 59, 0.85); }

/* Inputs - 明亮扁平化输入框 */
/* iOS26 滑动解锁验证码发送系统 */
.verify-slide {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  margin-bottom: 16px;
}

/* 滑动轨道 */
.slide-track {
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* GPU加速优化 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: box-shadow, background;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* 防止触摸时出现高亮 */
  -webkit-tap-highlight-color: transparent;
}

.slide-track.sliding {
  background: rgba(100, 180, 255, 0.15);
  border-color: rgba(100, 180, 255, 0.4);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 0 2px rgba(100, 180, 255, 0.2),
    0 8px 25px rgba(100, 180, 255, 0.25);
  /* 滑动时的动画更快速 */
  transition: all 0.15s ease-out;
}

.slide-track.completed {
  background: linear-gradient(135deg, 
    rgba(100, 180, 255, 0.3) 0%, 
    rgba(120, 200, 255, 0.25) 100%);
  border-color: rgba(100, 180, 255, 0.6);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(100, 180, 255, 0.3),
    0 12px 40px rgba(100, 180, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* 滑动提示文字 */
.slide-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(30, 41, 59, 0.65);
  font-weight: 500;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.slide-text.sliding {
  color: rgba(100, 180, 255, 0.8);
  font-weight: 600;
}

.slide-text.completed {
  color: rgba(100, 180, 255, 1);
  font-weight: 600;
  transform: translate(-50%, -50%) scale(1.05);
}

/* 滑块按钮 */
.slide-thumb {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4c8dff 0%, #6eb6ff 100%);
  border-radius: 14px;
  box-shadow:
    0 4px 12px rgba(59, 130, 246, 0.35),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  /* GPU硬件加速优化 - 提升拖动性能 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  /* 禁用用户选择，防止拖动时文本被选中 */
  user-select: none;
  -webkit-user-select: none;
  /* 触摸优化 */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.slide-thumb:active {
  cursor: grabbing;
  box-shadow:
    0 8px 25px rgba(59, 130, 246, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transform: scale(1.05) translateZ(0);
}

.slide-thumb.sliding {
  background: linear-gradient(135deg, #5da0ff 0%, #80c4ff 100%);
  box-shadow:
    0 6px 20px rgba(59, 130, 246, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  /* 滑动时禁用过渡动画，保持跟手 */
  transition: none !important;
}

.slide-thumb.completed {
  background: linear-gradient(135deg, #4080ff 0%, #60b0ff 100%);
  box-shadow:
    0 8px 30px rgba(59, 130, 246, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.7);
  transform: scale(1.1) translateZ(0);
  transition: all 0.3s cubic-bezier(0.22, 0.8, 0.2, 1) !important;
}

/* 滑块内部光泽动画 */
.slide-shine {
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, 
    transparent 20%, 
    rgba(255, 255, 255, 0.6) 50%, 
    transparent 80%);
  animation: shineMove 2.5s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes shineMove {
  0% { transform: translateX(-120%) rotate(15deg); }
  100% { transform: translateX(120%) rotate(15deg); }
}

.slide-thumb.sliding .slide-shine {
  animation-duration: 1s;
}

.slide-thumb.completed .slide-shine {
  animation: shinePulse 0.8s ease-out;
}

@keyframes shinePulse {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* 验证码输入框区域 */
.code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-box.show {
  opacity: 1;
  transform: translateY(0);
}

.code-box .form-control {
  flex: 1;
  height: 46px;
}

.code-box .btn {
  height: 46px;
  padding: 0 16px;
  min-width: 110px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

/* 隐藏状态 */
.hidden {
  display: none !important;
}

/* 响应式优化 */
@media (max-width: 576px) {
  .slide-thumb {
    width: 44px;
    height: 44px;
  }
  
  .slide-track {
    height: 44px;
  }
  
  .slide-text {
    font-size: 13px;
  }
  
  /* ✅ 移动端保持与电脑端一致的水平排列 */
  .code-box {
    flex-direction: row; /* 保持水平排列 */
    gap: 8px; /* 稍微减小间距适应移动端 */
  }
  
  .code-box .form-control {
    flex: 1; /* 输入框占据剩余空间 */
    height: 42px; /* 稍微减小高度适应移动端 */
    font-size: 14px;
  }
  
  .code-box .btn {
    height: 42px; /* 与输入框同高 */
    padding: 0 12px; /* 稍微减小内边距 */
    min-width: 90px; /* 减小最小宽度但保持足够空间 */
    font-size: 13px; /* 稍微减小字体适应移动端 */
    white-space: nowrap; /* 确保文字不换行 */
  }
}

/* 📱 超小屏幕优化（小于400px，如小尺寸手机） */
@media (max-width: 400px) {
  .code-box {
    gap: 6px; /* 进一步减小间距 */
  }
  
  .code-box .btn {
    min-width: 80px; /* 进一步减小最小宽度 */
    padding: 0 10px;
    font-size: 12px;
  }
  
  .code-box .form-control {
    font-size: 13px;
  }
}
.input-group {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.input-group .form-control {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 16px;
}

.input-group .form-control:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.95);
}

.input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* iOS26 验证码按钮样式 - 垂直居中对齐 */
.input-group .btn-outline-light {
  height: 46px; /* 与输入框完全对齐 */
  padding: 0 16px;
  background: linear-gradient(135deg, #4c8dff 0%, #6eb6ff 100%);
  border: none !important;
  border-radius: 0 !important;
  color: white;
  font-weight: 600;
  font-size: 14px;
  min-width: 110px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.4),
    0 3px 10px rgba(59, 130, 246, 0.3);
}

.input-group .btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent);
  transition: left 0.5s ease;
}

.input-group .btn-outline-light:hover {
  background: linear-gradient(135deg, #5da0ff 0%, #80c4ff 100%);
  color: white;
  transform: none; /* 移除不必要的位移 */
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(59, 130, 246, 0.4);
}

.input-group .btn-outline-light:hover::before {
  left: 100%;
}

.input-group .btn-outline-light:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, #4080ff 0%, #5ea0ff 100%);
}

.input-group .btn-outline-light:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

/* iOS26 组合输入框间隔线 */
.input-group .form-control + .btn-outline-light {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.auth-card .form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.85);
  /* ✅ 玻璃质感边框和背景 */
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  /* ✅ 双层阴影：内高光 + 外柔影 */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 1.5px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(.22, .8, .2, 1);
  outline: none;
  /* GPU加速优化 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ✅ placeholder 半透明冷灰色 */
.auth-card .form-control::placeholder {
  color: rgba(60, 80, 120, 0.45);
  font-weight: 400;
}

/* ✅ 聚焦状态：蓝色发光边缘 */
.auth-card .form-control:focus {
  border-color: rgba(80, 160, 255, 0.8);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.4),      /* 内高光增强 */
    0 0 0 3px rgba(100, 180, 255, 0.35),            /* 蓝色柔光环 */
    0 4px 14px rgba(80, 160, 255, 0.25);            /* 外发光 */
  background: rgba(255, 255, 255, 0.3);             /* 背景略亮 */
  color: rgba(20, 40, 80, 0.95);                    /* 文字更清晰 */
}

/* ✅ 悬停状态：微光渐亮 */
.auth-card .form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 2.5px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ✅ 禁用状态：降低透明度 */
.auth-card .form-control:disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(30, 41, 59, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: not-allowed;
}

/* iOS26 表单提示文字 - Apple 标准 */
.form-text.text-muted, .text-muted {
  font-size: 13px;
  color: rgba(30, 41, 59, 0.55) !important;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.4;
}

/* Helper text */
.auth-card .form-text, .auth-card .text-muted { 
  color: rgba(30, 41, 59, 0.55) !important; 
  font-size: 13px;
  font-weight: 400;
}

/* 登录模式切换标签 - 传统样式（保留作为备用） */
.auth-card .login-mode-tabs {
  display: flex;
  gap: 8px;
  background: #f8f9fc;
  padding: 4px;
  border-radius: 8px;
  border: 2px solid #e3e6f0;
}
.auth-card .login-mode-tab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #5a5c69;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-card .login-mode-tab:hover {
  background: #eaecf4;
  color: #2c3e50;
}
.auth-card .login-mode-tab.active {
  background: #4e73df;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(78, 115, 223, 0.25);
}

/* iOS26 风格玻璃态登录模式切换 - 第一版（保留作为备用） */
.glass-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 4px 16px rgba(0,0,0,0.2),
    0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  /* 添加微噪声纹理和光感增强玻璃质感 */
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.2), transparent),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1), transparent),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.15), transparent),
    /* 微噪声纹理 */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    );
  background-blend-mode: overlay, normal, normal, overlay;
}

.glass-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0.0,0.2,1);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  /* 确保文字在深色背景下清晰可见 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glass-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.glass-btn.active {
  color: white;
  background: linear-gradient(135deg, 
    rgba(0,160,255,0.7), 
    rgba(100,200,255,0.5),
    rgba(0,180,255,0.6)
  );
  box-shadow: 
    0 0 20px rgba(0,180,255,0.6),
    0 0 40px rgba(0,180,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,100,200,0.3);
  backdrop-filter: blur(30px);
  animation: glowPulse 3s ease-in-out infinite;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ✨ 光带滑动动画 */
.glass-btn.active::before {
  content: "";
  position: absolute;
  top: 0; 
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, 
    transparent, 
    rgba(255,255,255,0.7), 
    transparent
  );
  filter: blur(8px);
  animation: slideLight 2.5s ease-in-out infinite;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.8;
}

/* 内部高光效果 */
.glass-btn.active::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.3), 
    rgba(255,255,255,0.1),
    transparent
  );
  border-radius: 9px 9px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* 动画定义 */
@keyframes slideLight {
  0% { 
    left: -80%; 
    opacity: 0; 
  }
  20% { 
    opacity: 0.8; 
  }
  80% { 
    opacity: 0.8; 
  }
  100% { 
    left: 120%; 
    opacity: 0; 
  }
}

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 
      0 0 15px rgba(0,200,255,0.5),
      0 0 30px rgba(0,200,255,0.2),
      inset 0 1px 0 rgba(255,255,255,0.4),
      inset 0 -1px 0 rgba(0,100,200,0.3);
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(0,200,255,0.8),
      0 0 50px rgba(0,200,255,0.4),
      inset 0 1px 0 rgba(255,255,255,0.5),
      inset 0 -1px 0 rgba(0,100,200,0.4);
  }
}

.glass-btn:active {
  transform: scale(0.97) translateY(0);
  transition: transform 0.1s ease;
}

/* 响应式优化 */
@media (max-width: 480px) {
  .glass-switch {
    padding: 4px;
  }
  
  .glass-btn {
    padding: 10px 0;
    font-size: 14px;
  }
}

/* 深色主题下的进一步优化 */
@media (prefers-color-scheme: dark) {
  .glass-switch {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  .glass-btn {
    color: rgba(255, 255, 255, 0.8);
  }
}

/* ========================================= */
/* iOS26 Glass Segmented Control - 升级版  */
/* ========================================= */

:root {
  /* iOS26 玻璃UI主题变量 */
  --seg-height: 46px;
  --seg-pad: 6px;
  --radius: 16px;
  --blue: #2388ff;
  --cyan: #6fe1ff;
  --ink: rgba(25, 28, 33, .78);
  /* iOS26 玻璃态字体颜色层次 - 优化对比度 */
  --fg: rgba(255,255,255,1);                    /* hover: 高亮白 */
  --fg-dim: #64748B;                            /* 默认: 冷灰色（更清晰的对比度） */
  --fg-active: #FFFFFF;                         /* 选中: 纯白（搭配内发光阴影） */
  --fg-disabled: rgba(100, 116, 139, 0.4);      /* 禁用: 灰色弱化 */
}

/* 容器：玻璃条 */
.seg-wrap {
  display: flex; 
  justify-content: center;
}

.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  height: var(--seg-height);
  padding: var(--seg-pad);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow:
    inset 0 0 0.6px rgba(255,255,255,.6),
    0 10px 30px rgba(0,0,0,.15);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  overflow: hidden;
  isolation: isolate; /* 让内部混合更自然 */
}

/* 药丸滑块（真正移动的元素） */
.seg-thumb {
  position: absolute; 
  inset: var(--seg-pad);
  width: calc(50% - var(--seg-pad));
  height: calc(100% - var(--seg-pad)*2);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.12)), /* 上亮下暗 */
    linear-gradient(135deg, rgba(65,155,255,.55), rgba(120,220,255,.25));  /* 蓝青柔光 */
  border: 1px solid rgba(255,255,255,.70);
  box-shadow:
    inset 0 1px 10px rgba(255,255,255,.35),
    inset 0 -10px 20px rgba(0,0,0,.06),
    0 6px 18px rgba(35,136,255,.20);
  /* 玻璃微粒噪声（纯 CSS，避免外链） */
  background-blend-mode: screen;
  overflow: hidden;
  transform: translateX(0);     /* 初始在左侧 */
  will-change: transform, filter;
  transition: transform .45s cubic-bezier(.22,.8,.2,1);
}

/* 扫光动画 */
.seg-thumb .sheen {
  position: absolute; 
  inset: -20% -60%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 35%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: sheen-move 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen-move {
  0% { 
    transform: translateX(-15%) rotate(8deg); 
    opacity: .55;
  }
  50% { 
    transform: translateX(15%) rotate(8deg); 
    opacity: .25;
  }
  100% { 
    transform: translateX(-15%) rotate(8deg); 
    opacity: .55;
  }
}

/* 两个按钮（只是文字点击区，视觉靠 thumb） */
.seg-item {
  position: relative;
  z-index: 2;
  height: calc(var(--seg-height) - var(--seg-pad)*2);
  border: 0; 
  background: transparent;
  color: var(--fg-dim);
  font-size: 14px; 
  font-weight: 500; /* 从600减轻到500，更符合Apple标准 */
  letter-spacing: -0.01em; /* 微调字符间距，更精致 */
  border-radius: calc(var(--radius) - 3px);
  cursor: pointer;
  user-select: none;
  transition: color .25s ease, transform .06s ease, text-shadow .25s ease;
  /* iOS26 玻璃文字质感 */
  text-shadow: 0 0.5px 1px rgba(255,255,255,0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.seg-item:hover { 
  color: var(--fg);
  text-shadow: 0 1px 8px rgba(100,200,255,0.6);
}

.seg-item:active { 
  transform: scale(.985); 
}

.seg-item.is-active { 
  color: var(--fg-active);
  text-shadow: 0 1px 6px rgba(70,180,255,0.55);
}

/* 可选：减少动画运动（无障碍优化） */
@media (prefers-reduced-motion: reduce) {
  .seg-thumb { 
    transition: none; 
  }
  .seg-thumb .sheen { 
    animation: none; 
  }
  
  /* ✅ 禁用所有按钮动画 */
  .auth-card .btn.primary:not(:hover):not(:active):not(:focus) {
    animation: none;
  }
  
  .auth-card .btn.primary::before,
  .auth-card .btn-outline-light::before {
    display: none;
  }
  
  /* ✅ 简化过渡动画 */
  .auth-card .btn.primary,
  .auth-card .btn-outline-light {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
}

/* 响应式优化 */
@media (max-width: 480px) {
  :root {
    --seg-height: 42px;
    --seg-pad: 5px;
  }
  
  .seg-item {
    font-size: 13px;
  }
}

/* 发送验证码按钮 */
.auth-card #send-code-btn {
  white-space: nowrap;
  min-width: 110px;
  background: #4e73df;
  color: #ffffff;
  border-color: #4e73df;
}
.auth-card #send-code-btn:hover {
  background: #2e59d9;
  border-color: #2e59d9;
}
.auth-card #send-code-btn:disabled {
  background: #d1d3e2;
  border-color: #d1d3e2;
  color: #858796;
  cursor: not-allowed;
}

/* 人机验证弹窗 */
.captcha-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  /* GPU加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity;
}

.captcha-modal.show {
  display: flex;
}

.captcha-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* GPU加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.captcha-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  animation: slideUp 0.3s ease;
  /* GPU加速 - 提升弹窗动画流畅度 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.captcha-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid #e3e6f0;
}

.captcha-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.captcha-modal-close {
  background: none;
  border: none;
  color: #5a5c69;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.captcha-modal-close:hover {
  background: #f8f9fc;
  color: #2c3e50;
}

.captcha-modal-body {
  padding: 24px;
}

.captcha-modal-desc {
  margin: 0 0 16px 0;
  color: #5a5c69;
  font-size: 14px;
  text-align: center;
}

.captcha-canvas-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 2px solid #e3e6f0;
}

#captcha-canvas {
  cursor: pointer;
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

#captcha-canvas:hover {
  transform: scale(1.02);
}

.captcha-refresh-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  border: 2px solid #e3e6f0;
  border-radius: 8px;
  color: #5a5c69;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-refresh-btn:hover {
  background: #4e73df;
  border-color: #4e73df;
  color: #ffffff;
  transform: rotate(180deg);
}

.captcha-refresh-btn:active {
  transform: rotate(180deg) scale(0.95);
}

.captcha-modal-body .captcha-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 600;
  border: 2px solid #e3e6f0;
  border-radius: 8px;
  background: #ffffff;
  color: #2c3e50;
}

.captcha-modal-body .captcha-input:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 .2rem rgba(78, 115, 223, 0.25);
  outline: none;
}

.captcha-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 2px solid #e3e6f0;
}

.captcha-modal-footer .btn {
  flex: 1;
  padding: 10px 20px;
  font-weight: 600;
}

.captcha-modal-footer .btn-secondary {
  background: #f8f9fc;
  color: #5a5c69;
  border: 2px solid #e3e6f0;
}

.captcha-modal-footer .btn-secondary:hover {
  background: #eaecf4;
  border-color: #d1d3e2;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端优化 */
@media (max-width: 480px) {
  .captcha-modal-content {
    width: 95%;
    margin: 0 16px;
  }
  
  .captcha-canvas-wrapper {
    padding: 12px;
  }
  
  #captcha-canvas {
    max-width: 100%;
    height: auto;
  }
}

/* Checkbox - 扁平化复选框 */
.auth-card .form-check-input {
  border: 2px solid #d1d3e2;
  border-radius: 4px;
}
.auth-card .form-check-input:checked {
  background-color: #4e73df;
  border-color: #4e73df;
}
.auth-card .form-check-input:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 .2rem rgba(78, 115, 223, 0.25);
}

/* 隐私政策和用户协议勾选 */
.auth-card .form-check {
  display: flex;
  align-items: center;
}
.auth-card .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}
.auth-card .form-check-label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  margin-left: 8px;
  padding-top: 0;
}
.auth-card .form-check-label .link-primary {
  color: #4e73df;
  text-decoration: none;
  font-weight: 500;
}
.auth-card .form-check-label .link-primary:hover {
  color: #2e59d9;
  text-decoration: underline;
}

/* Password strength indicator - 使用主色和辅色 */
.auth-card .pw-strength { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-top: 6px; }
.auth-card .pw-strength-title { display:none; }
.auth-card .pw-strength-label { display:none; }
.auth-card .pw-strength-bar { grid-column: 1 / -1; height: 6px; background: #e3e6f0; border-radius: 999px; overflow: hidden; position: relative; }
.auth-card .pw-strength-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #e74a3b, #f6c23e, #1cc88a, #4e73df); transition: width .25s ease; }
.auth-card .pw-strength[data-level="0"] .pw-strength-fill { width: 10%; background: #e74a3b; }
.auth-card .pw-strength[data-level="1"] .pw-strength-fill { width: 35%; background: #f6c23e; }
.auth-card .pw-strength[data-level="2"] .pw-strength-fill { width: 65%; background: #1cc88a; }
.auth-card .pw-strength[data-level="3"] .pw-strength-fill { width: 85%; background: #36b9cc; }
.auth-card .pw-strength[data-level="4"] .pw-strength-fill { width: 100%; background: #4e73df; }

/* iOS26 玻璃风格密码强度智能引导区 */
.auth-card .password-rules {
  margin-top: 8px;
  margin-bottom: 10px;
}

.auth-card .rules-title {
  font-size: 14px;
  color: rgba(30, 41, 59, 0.75);
  margin-bottom: 6px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.auth-card .rules-title.all-satisfied {
  color: rgba(76, 141, 255, 0.9);
  text-shadow: 0 0 8px rgba(80, 160, 255, 0.3);
}

/* 标签容器 */
.auth-card .rules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* 单个玻璃标签（默认状态） */
.auth-card .rule-item {
  font-size: 13px;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.7);
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 1.5px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* ✅ 满足条件的高亮状态 */
.auth-card .rule-item.active {
  color: #fff;
  background: linear-gradient(135deg, #4c8dff 0%, #6eb6ff 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 3px 8px rgba(59, 130, 246, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* ✅ 动画勾号 */
.auth-card .rule-item.active::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='5%2013%209%2017%2019%207'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: checkIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkIn {
  0% { 
    transform: translateY(-50%) scale(0) rotate(-180deg); 
    opacity: 0; 
  }
  70% { 
    transform: translateY(-50%) scale(1.2) rotate(0deg); 
    opacity: 1; 
  }
  100% { 
    transform: translateY(-50%) scale(1) rotate(0deg); 
    opacity: 1; 
  }
}

/* 悬停效果 */
.auth-card .rule-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.1);
}

/* 全部满足时的特殊状态 */
.auth-card .password-rules.all-satisfied .rules-title::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  color: inherit;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='5%2013%209%2017%2019%207'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: titleCheckIn 0.5s ease forwards;
}

@keyframes titleCheckIn {
  0% { 
    transform: scale(0); 
    opacity: 0; 
  }
  100% { 
    transform: scale(1); 
    opacity: 1; 
  }
}

/* 全部满足时隐藏 */
.auth-card .password-rules.all-satisfied {
  display: none;
}

/* 响应式优化 */
@media (max-width: 576px) {
  .auth-card .rules-list {
    gap: 4px;
  }
  
  .auth-card .rule-item {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* ===== 旧版样式保持兼容 ===== */
/* Password missing rules - 扁平化标签风格 */
.auth-card .pw-rules {
  margin-top: 4px;
  color: #5a5c69;
  display: flex;
  align-items: center;
  gap: 6px 8px;
  
  font-size: 12px;
  line-height: 1.4;
}
.auth-card .pw-rules-title { color: #2c3e50; margin-right: 2px; font-weight: 500; }
.auth-card .pw-rules-list {
  margin: 4px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;

  gap: 4px 8px;
}
.auth-card .pw-rules-list .rule {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f8f9fc;
  border: 1px solid #e3e6f0;
  color: #5a5c69;
  font-size: 11px;
}
.auth-card .pw-rules-list .rule.met {
  background: #d1e7dd;
  border-color: #1cc88a;
  color: #0f5132;
  text-decoration: line-through;
  opacity: 0.8;
}
/* 当全部满足时，隐藏整个缺少要素模块 */
.auth-card .pw-rules.all-met { display: none; }

/* Buttons - iOS26/VisionOS 轻盈玻璃风格 */
.auth-card .btn.primary { 
  width: 100%;
  height: 48px;                       /* ✅ 轻盈高度 */
  border: none;
  border-radius: 14px;                /* ✅ 柔和圆角 */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.95);
  /* ✅ 淡蓝冷色调渐变 */
  background: linear-gradient(135deg, #4c8dff 0%, #6eb6ff 100%);
  /* ✅ 分层阴影：内亮外柔 */
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.4),    /* 内发光 */
    0 3px 10px rgba(59, 130, 246, 0.3),             /* 近阴影 */
    0 6px 18px rgba(59, 130, 246, 0.15);            /* 远扩散 */
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.22, .8, .2, 1);
  position: relative;
  overflow: hidden;
  /* ✅ 去除过度厚重感 */
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* GPU硬件加速 - 提升按钮交互性能 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, box-shadow;
}

/* ✅ 轻盈流光动画 */
.auth-card .btn.primary::before {
  content: "";
  position: absolute;
  top: 0; 
  left: -60%;
  width: 50%; 
  height: 100%;
  background: linear-gradient(120deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0) 70%);
  transform: skewX(-20deg);
  animation: ios26-sheen 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ios26-sheen {
  0% { 
    left: -60%; 
    opacity: 0.35; 
  }
  50% { 
    left: 120%; 
    opacity: 0.15; 
  }
  100% { 
    left: -60%; 
    opacity: 0.35; 
  }
}

/* ✅ 悬停：增亮但保持轻盈 */
.auth-card .btn.primary:hover {
  background: linear-gradient(135deg, #5da0ff 0%, #80c4ff 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 6px 18px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ✅ 点击：轻微缩放反馈 */
.auth-card .btn.primary:active {
  transform: scale(0.975) translateY(0);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    0 3px 8px rgba(59, 130, 246, 0.2);
}

/* ✅ 聚焦：柔和焦点环 */
.auth-card .btn.primary:focus {
  outline: none;
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.4),
    0 3px 10px rgba(59, 130, 246, 0.3),
    0 6px 18px rgba(59, 130, 246, 0.15),
    0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* iOS26 轻盈脉冲动画 */
@keyframes ios26-gentle-pulse {
  0%, 100% {
    box-shadow: 
      inset 0 1px 1.5px rgba(255, 255, 255, 0.4),
      0 3px 10px rgba(59, 130, 246, 0.3),
      0 6px 18px rgba(59, 130, 246, 0.15);
  }
  50% {
    box-shadow: 
      inset 0 1px 2px rgba(255, 255, 255, 0.45),
      0 4px 12px rgba(59, 130, 246, 0.35),
      0 8px 22px rgba(59, 130, 246, 0.18);
  }
}

/* ✅ 只在非交互状态下轻柔脉冲 */
.auth-card .btn.primary:not(:hover):not(:active):not(:focus) {
  animation: ios26-gentle-pulse 4s ease-in-out infinite;
}

/* iOS26 发送验证码按钮 - 轻盈次要风格 */
.auth-card .btn-outline-light {
  height: 42px;                       /* ✅ 比主按钮稍小 */
  color: rgba(40, 80, 130, 0.85);
  background: rgba(255, 255, 255, 0.06);  /* ✅ 更轻的背景 */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;                /* ✅ 稍小圆角 */
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  /* ✅ 轻盈阴影层次 */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(.22, .8, .2, 1);
  text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* ✅ 次要按钮流光效果 */
.auth-card .btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, 
    rgba(255, 255, 255, 0.3), 
    rgba(255, 255, 255, 0) 70%
  );
  transform: skewX(-20deg);
  animation: ios26-sheen-light 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ios26-sheen-light {
  0% { 
    left: -60%; 
    opacity: 0.2; 
  }
  50% { 
    left: 120%; 
    opacity: 0.1; 
  }
  100% { 
    left: -60%; 
    opacity: 0.2; 
  }
}

/* ✅ 悬停：与主题色呼应 */
.auth-card .btn-outline-light:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(59, 130, 246, 0.08);  /* ✅ 蓝色调呼应 */
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(59, 130, 246, 0.12),
    0 6px 18px rgba(59, 130, 246, 0.08);
  transform: translateY(-0.5px);
  text-shadow: 0 1px 3px rgba(100, 200, 255, 0.4);
}

/* ✅ 点击：轻微反馈 */
.auth-card .btn-outline-light:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ✅ 聚焦：柔和蓝色焦点环 */
.auth-card .btn-outline-light:focus {
  outline: none;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Card - iOS26 轻盈玻璃卡片 */
.auth-card.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;                    /* ✅ 更柔和的圆角 */
  /* ✅ 轻盈阴影层次 */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.05),      /* 主阴影 */
    0 4px 16px rgba(0, 0, 0, 0.03),      /* 近阴影 */
    0 2px 8px rgba(0, 0, 0, 0.02);       /* 贴合阴影 */
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

/* Emphasize switch links: 去注册 / 去登录 - 使用主色 */
.auth-card .switch-auth { margin-top: 12px; color: #5a5c69; }
.auth-card .auth-cta-link {
  color: #4e73df;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.auth-card .auth-cta-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: currentColor;
  opacity: 0.9;
  transition: opacity .2s ease;
}
.auth-card .auth-cta-link:hover,
.auth-card .auth-cta-link:focus {
  color: #2e59d9;
}
.auth-card .auth-cta-link:hover::after,
.auth-card .auth-cta-link:focus::after { opacity: 1; }
.auth-card .auth-cta-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(78, 115, 223, 0.25);
  border-radius: 3px;
}

/* 账号帮助区域 - 找回账号和密码 */
.auth-card .account-help {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(90, 92, 105, 0.8);
}

.auth-card .account-help .link-primary {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.auth-card .account-help .link-primary:hover {
  text-decoration: underline;
  transform: translateY(-1px);
}

/* iOS26 移动端按钮优化 - 保持轻盈感 */
@media (max-width: 480px) {
  .auth-card .btn.primary {
    height: 46px;                     /* ✅ 移动端稍小但保持舒适 */
    font-size: 15px;
    border-radius: 13px;              /* ✅ 比例协调的圆角 */
  }
  
  .auth-card .btn-outline-light {
    height: 40px;                     /* ✅ 次要按钮更紧凑 */
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 11px;
  }
}

/* Tighten vertical paddings on mobile */
@media (max-width: 991.98px) {
  .auth-card .card-body {
    padding-top: 12px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }

  /* Compact vertical rhythm for common blocks */
  .auth-card h1,
  .auth-card .h4 { margin-bottom: 12px !important; }
  .auth-card .mb-3 { margin-bottom: 12px !important; }
  .auth-card .mb-2 { margin-bottom: 8px !important; }
  .auth-card .switch-auth { margin-top: 8px !important; }
  .auth-card .row.g-3 { --bs-gutter-y: 0.5rem; --bs-gutter-x: 0.5rem; }
}

/* Desktop compact adjustments */
@media (min-width: 992px) {
  .auth-card .card-body {
    /* slightly reduce vertical paddings on desktop too */
    padding-top: 14px !important;
    padding-bottom: 18px !important;
  }
  .auth-card h1,
  .auth-card .h4 { margin-bottom: 14px !important; }
  .auth-card .mb-3 { margin-bottom: 14px !important; }
  .auth-card .mb-2 { margin-bottom: 10px !important; }
  .auth-card .switch-auth { margin-top: 10px !important; }
  .auth-card .row.g-3 { --bs-gutter-y: 0.625rem; --bs-gutter-x: 0.625rem; }
}

/* Auth pages: make language switch button larger without affecting global header
   Note: .lang-dropdown is placed at body level on auth pages, so do not nest under .auth-wrap */
.lang-dropdown .lang-trigger {
  width: 44px;   /* meet iOS min target ~44px */
  height: 44px;
  border-radius: 12px;
}
.lang-dropdown .lang-trigger svg {
  width: 22px;
  height: 22px;
}
/* ===== End merged auth.css ===== */

/* 登录页专属样式：由 index.php 内联 <style> 提取 */
/* Flat Remix 明亮扁平化风格 */
body { 
  padding-top: 0 !important; 
  background: #f8f9fc !important; /* 纯色背景，渐变由 bg-vignette 提供 */
  overflow: hidden; /* 隐藏页面滚动条 */
}

/* 隐藏滚动条但保持滚动功能 */
body::-webkit-scrollbar,
.auth-card .card-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
body,
.auth-card .card-body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.auth-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 24px 12px; }
.auth-wrap > .container { display: block; }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { width: 56px; height: 56px; }
.auth-grid { width: 100%; display: flex; align-items: center; justify-content: center; }
.auth-visual { display: none; }
@media (min-width: 992px) {
  .auth-grid { display: grid; grid-template-columns: minmax(350px, 0.8fr) 450px; column-gap: clamp(40px, 8vw, 80px); align-items: center; max-width: 1200px; margin: 0 auto; }
  .auth-visual { display: block; height: 60vh; }
  .auth-card { margin: 0 auto; }
}
@media (max-width: 991.98px) {
  body { overflow: hidden; touch-action: manipulation; }
  main.auth-wrap { padding: 0; align-items: stretch; }
  .auth-grid { display: block; min-height: 100vh; }
  .auth-card { position: fixed; left: 0; right: 0; bottom: 0; height: 66.66vh; max-width: none; border-top-left-radius: 16px; border-top-right-radius: 16px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin: 0; z-index: 10; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border: 1px solid #e3e6f0; box-shadow: 0 -8px 24px rgba(58, 59, 69, 0.15); }
  .auth-card .card-body { height: 100%; overflow: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sheet-handle { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 4px; border-radius: 2px; background: #d1d3e2; z-index: 100; }
  .auth-logo { width: 60px; height: 60px; }
  .auth-cta-link { color: #4e73df; }
  
  /* 移动端分步登录样式 */
  .mobile-next-btn { display: block; }
  .mobile-only { display: flex; }
  
  /* 分步动画效果 */
  .login-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #step-2 { 
    display: none;
    opacity: 0;
    transform: translateX(20px);
  }
  #step-2.active { 
    display: block;
    opacity: 1;
    transform: translateX(0);
  }
  
  #step-1.hidden { 
    display: none;
    opacity: 0;
    transform: translateX(-20px);
  }
  
  /* 返回按钮样式 */
  .btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #4e73df;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-back:hover {
    color: #2e59d9;
    transform: translateX(-2px);
  }
  .btn-back svg {
    transition: transform 0.2s ease;
  }
  .btn-back:hover svg {
    transform: translateX(-2px);
  }
}

/* 桌面端隐藏分步相关元素 */
@media (min-width: 992px) {
  .mobile-next-btn { display: none !important; }
  .mobile-only { display: none !important; }
  #step-1, #step-2 { 
    display: block !important; 
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 更小屏幕的logo优化 */
@media (max-width: 480px) {
  .auth-logo { 
    width: 64px; 
    height: 64px; 
    margin-bottom: 8px;
  }
}

/* 明亮的渐变背景 - iOS 26 / macOS Glassmorphism 多层渐变设计 - 最底层 */
.bg-vignette { 
  position: fixed; 
  inset: 0; 
  z-index: 1; 
  pointer-events: none; 
  background: 
    radial-gradient(ellipse 800px 600px at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 800px at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 40%, #e0f2fe 60%, #f1f5f9 80%, #f8fafc 100%);
  background-attachment: fixed;
  /* GPU硬件加速 - 提升固定背景渲染性能 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Globe 动画画布 - 在背景渐变之上 */
#bg-net { 
  position: fixed; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 2; 
  pointer-events: none;
  /* Canvas GPU加速优化 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 内容层 - 在画布之上 */
.auth-wrap, .lang-dropdown { 
  position: relative; 
  z-index: 10;
  /* GPU加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* iOS26 通知系统样式 */
.ios26-notification {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 10000;
  min-width: 280px;
  max-width: 420px;
  padding: 16px 24px;
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* GPU硬件加速 - 提升通知动画流畅度 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  will-change: transform, opacity;
}

.ios26-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) translateZ(0);
}

.ios26-notification.success {
  background: rgba(30, 160, 80, 0.85);
  border-color: rgba(100, 200, 120, 0.3);
}

.ios26-notification.warning {
  background: rgba(255, 160, 30, 0.85);
  border-color: rgba(255, 200, 100, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.ios26-notification.error {
  background: rgba(220, 60, 60, 0.85);
  border-color: rgba(255, 120, 120, 0.3);
}

/* iOS26 协议行优化 - 自然融合版本 */
.form-check.agreement {
  margin-top: 12px;      /* 从输入框到协议行：紧凑自然 */
  margin-bottom: 16px;   /* 协议行到登录按钮：舒适间距 */
  padding: 0;
  display: flex;
  align-items: center;   /* 居中对齐，更整洁 */
  gap: 10px;
  
  /* 移除所有背景和阴影 - 自然融入主容器 */
  background: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.form-check.agreement .form-check-input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important; /* 完全居中对齐 */
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 5px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-check.agreement .form-check-input:checked {
  background: linear-gradient(135deg, 
    rgba(100, 180, 255, 0.9) 0%, 
    rgba(120, 200, 255, 0.8) 100%) !important;
  border-color: rgba(100, 180, 255, 0.8) !important;
  box-shadow: 
    0 3px 12px rgba(100, 180, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-check.agreement .form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.form-check.agreement .form-check-input:focus {
  outline: none !important;
  box-shadow: 
    0 0 0 2px rgba(100, 180, 255, 0.25),
    0 3px 12px rgba(100, 180, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-check.agreement .form-check-input:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: scale(1.05);
}

.form-check.agreement .form-check-input:checked:hover {
  background: linear-gradient(135deg, 
    rgba(100, 180, 255, 0.95) 0%, 
    rgba(120, 200, 255, 0.85) 100%) !important;
  border-color: rgba(100, 180, 255, 0.9) !important;
}

.form-check.agreement .form-check-label {
  color: rgba(30, 41, 59, 0.8) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.form-check.agreement .form-check-label a.link-primary {
  color: #2563EB !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-check.agreement .form-check-label a.link-primary:hover {
  color: #1D4ED8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* iOS26 切换认证链接样式 */
.switch-auth {
  color: rgba(30, 41, 59, 0.6);
  font-size: 14px;
}

.switch-auth .auth-cta-link {
  color: #2563EB !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.switch-auth .auth-cta-link:hover {
  color: #1D4ED8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-outline-light.counting {
  background: rgba(60, 80, 120, 0.15) !important;
  color: rgba(30, 41, 59, 0.4) !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.btn-outline-light.counting::before {
  display: none;
}

/* ================================================
   🍎 iOS26 动态提示系统基础样式 - Dynamic Tip System
   ================================================ */

/* 表单组 - 支持相对定位 */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

/* 🌟 动态Tip提示 - iOS26 Glass Style */
.tip {
  position: absolute;
  top: -32px;
  left: 0;
  font-size: 13px;
  font-weight: 500;
  font-family: -apple-system, "SF Pro Display", BlinkMacSystemFont, sans-serif;
  color: rgba(50, 80, 130, 0.9);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  max-width: 280px;
}

/* Tip显示状态 - 优雅出现 */
.tip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: tipGlowIn 0.6s ease;
}

/* 🌈 Apple风格发光动画 */
@keyframes tipGlowIn {
  0% { 
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 1px 4px rgba(0, 0, 0, 0.04),
      0 0 0 rgba(59, 130, 246, 0);
  }
  50% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.12),
      0 2px 8px rgba(0, 0, 0, 0.06),
      0 0 16px rgba(59, 130, 246, 0.25);
  }
  100% { 
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 1px 4px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

/* 🎯 响应式调整 */
@media (max-width: 576px) {
  .tip {
    font-size: 12px;
    top: -28px;
    padding: 5px 10px;
    max-width: 240px;
  }
  
  /* 移动端密码字段间距优化 */
  .form-group {
    margin-bottom: 12px; /* 减少移动端间距 */
  }
  
  /* 密码强度条在移动端的间距调整 */
  .pw-strength {
    margin-top: 6px;
    margin-bottom: 8px;
  }
}

/* ================================================
   🍎 页面加载进度条系统 - 多页面HTML结构专用
   ================================================ */

/* 🌟 基础进度条 - 稳健独立实现 */
.page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, 
    #4c8dff 0%, 
    #6eb6ff 50%, 
    #a1d1ff 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(100, 180, 255, 0.6);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease;
  opacity: 0;
  animation: glowFlow 2s linear infinite;
}

/* ✨ 发光流动动画 - Apple风格 */
@keyframes glowFlow {
  0% { 
    background-position: 200% 0;
    box-shadow: 0 0 12px rgba(100, 180, 255, 0.6);
  }
  50% { 
    background-position: 0% 0;
    box-shadow: 0 0 18px rgba(100, 180, 255, 0.8);
  }
  100% { 
    background-position: -200% 0;
    box-shadow: 0 0 12px rgba(100, 180, 255, 0.6);
  }
}

/* 📱 移动端优化 */
@media (max-width: 768px) {
  .page-progress-bar {
    height: 2px;
    box-shadow: 0 0 8px rgba(100, 180, 255, 0.5);
  }
}

/* 🌙 页面淡入效果 */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

/* ================================================
   🌟 离场过渡遮罩层 - 解决页面切换空白期
   ================================================ */

/* 全屏遮罩层 - iOS26风格模糊背景 */
#transitionMask {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001; /* 确保在进度条之上 */
  transition: opacity 0.4s ease;
  opacity: 0;
  /* GPU硬件加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}

/* 遮罩层显示状态 */
#transitionMask.show {
  display: flex;
  opacity: 1;
}

/* 🎯 流光加载条 - 居中显示 */
#transitionProgress {
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, 
    #4c8dff 0%, 
    #6eb6ff 25%, 
    #a1d1ff 50%, 
    #6eb6ff 75%, 
    #4c8dff 100%
  );
  background-size: 300% 100%;
  box-shadow: 
    0 0 16px rgba(100, 180, 255, 0.7),
    0 2px 8px rgba(59, 130, 246, 0.4);
  animation: transitionFlow 1.8s linear infinite;
}

/* ✨ 过渡流光动画 */
@keyframes transitionFlow {
  0% { 
    background-position: 300% 0;
    box-shadow: 
      0 0 16px rgba(100, 180, 255, 0.7),
      0 2px 8px rgba(59, 130, 246, 0.4);
  }
  50% { 
    background-position: 0% 0;
    box-shadow: 
      0 0 24px rgba(100, 180, 255, 0.9),
      0 3px 12px rgba(59, 130, 246, 0.6);
  }
  100% { 
    background-position: -300% 0;
    box-shadow: 
      0 0 16px rgba(100, 180, 255, 0.7),
      0 2px 8px rgba(59, 130, 246, 0.4);
  }
}

/* 📱 移动端遮罩优化 */
@media (max-width: 768px) {
  #transitionProgress {
    width: 160px;
    height: 3px;
  }
  
  #transitionMask {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
}

/* ================================================
   🍎 iOS26 Glass验证码弹窗系统 - 最新Glass UI风格
   ================================================ */

/* 🌟 弹窗背景遮罩 */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002; /* 确保在其他遮罩之上 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-modal-backdrop.show {
  display: flex;
  opacity: 1;
}

/* 🧊 主弹窗容器 - iOS26 Glass风格 */
.glass-modal {
  width: 340px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 18px;
  box-shadow: 
    0 10px 30px rgba(120, 150, 200, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #1E293B;
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-modal-backdrop.show .glass-modal {
  opacity: 1;
  transform: scale(1);
  animation: popIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ✨ Apple风格弹入动画 */
@keyframes popIn {
  0% { 
    transform: scale(0.88);
    opacity: 0;
    box-shadow: 0 5px 15px rgba(120, 150, 200, 0.05);
  }
  60% { 
    transform: scale(1.02);
    opacity: 0.9;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
    box-shadow: 
      0 10px 30px rgba(120, 150, 200, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* 🎯 标题栏 */
.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 4px;
}

.glass-close {
  background: transparent;
  border: none;
  font-size: 22px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.glass-close:hover {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* 📝 弹窗内容区 */
.glass-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-desc {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
  text-align: center;
  font-weight: 400;
}

/* 🎨 验证码容器 */
.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.02);
  gap: 12px;
}

.captcha-box canvas {
  border-radius: 8px;
  height: 60px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.refresh-btn {
  background: rgba(240, 245, 255, 0.6);
  border: 1px solid rgba(200, 210, 240, 0.5);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.refresh-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.refresh-btn:hover {
  background: rgba(230, 240, 255, 0.8);
  border-color: rgba(180, 200, 240, 0.7);
  color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.refresh-btn:hover svg {
  transform: rotate(180deg);
}

/* 📝 输入框 - iOS26风格 */
.glass-input {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 
    inset 0 1px 4px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(120, 150, 200, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1E293B;
  caret-color: #4C8DFF; /* Apple风格光标 */
  font-family: -apple-system, "SF Pro Display", sans-serif;
}

.glass-input:focus {
  box-shadow: 
    0 0 0 3px rgba(100, 160, 255, 0.25),
    inset 0 1px 4px rgba(255, 255, 255, 0.5),
    0 3px 12px rgba(120, 150, 200, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.glass-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* 🎛️ 底部按钮区 */
.glass-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.cancel-btn,
.confirm-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.65);
}

.cancel-btn:hover {
  background: rgba(245, 245, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.confirm-btn {
  background: linear-gradient(135deg, #4C8DFF 0%, #6EB6FF 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(100, 160, 255, 0.4);
}

.confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(100, 160, 255, 0.5);
  background: linear-gradient(135deg, #3B7FFF 0%, #5DA8FF 100%);
}

.confirm-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(100, 160, 255, 0.3);
}

/* 📱 移动端适配 */
@media (max-width: 576px) {
  .glass-modal {
    width: 90%;
    max-width: 320px;
    padding: 18px 20px;
    border-radius: 16px;
  }
  
  .captcha-box {
    padding: 8px 10px;
    gap: 8px;
  }
  
  .captcha-box canvas {
    height: 50px;
  }
  
  .refresh-btn {
    width: 32px;
    height: 32px;
  }
  
  .refresh-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .glass-input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .cancel-btn,
  .confirm-btn {
    height: 38px;
    font-size: 14px;
  }
}

/* ================================================
   🍎 iOS26 Glass智能右键菜单系统 v4.0
   ================================================ */

/* � iOS26 Glass智能右键菜单系统 v4.2 - 高度自适应修复版 */

/* 🎯 主右键菜单 - 关键修复：高度限制 + 自动滚动 */
.glass-menu {
  position: fixed;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* 🔧 添加自动滚动 */
  max-height: 320px; /* 🔧 防止菜单太高 */
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
}

.glass-menu.show {
  opacity: 1;
  transform: scale(1);
  animation: fadeIn 0.25s ease;
}

.glass-menu.hidden {
  display: none;
}

/* 🎯 菜单项v4.2风格 */
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 15px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 3px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-item:hover {
  background: rgba(255,255,255,0.35);
  transform: translateX(2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 12px rgba(0, 0, 0, 0.08);
}

.menu-item svg {
  color: rgba(0, 0, 0, 0.65);
  transition: all 0.25s ease;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.menu-item:hover svg {
  color: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

.menu-item span {
  flex: 1;
  white-space: nowrap;
}

/* � 语言设置模态框 v4.2 */
.smart-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.smart-modal.show {
  opacity: 1;
}

.smart-modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 20px 25px;
  width: 260px;
  animation: zoomIn 0.2s ease;
  color: rgba(0, 0, 0, 0.85);
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
}

.modal-content h3 { 
  margin-bottom: 12px; 
  font-size: 16px; 
  color: rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.modal-content select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(180,180,180,0.6);
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.85);
}

.modal-footer {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.modal-footer button {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg,#007BFF,#00D4FF);
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-footer button:hover { 
  opacity: 0.85; 
  transform: translateY(-1px);
}

/* 💬 选中文本浮动气泡 v4.2 */
.smart-bubble, .bubble {
  position: absolute;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  z-index: 9999;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideUp 0.15s ease;
}

/* 💡 自动注入模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal.hidden {
  display: none !important;
}

/* 📱 模态框按钮组样式 */
.modal-btns {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-top: 15px;
}

.modal-btns button {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg,#007BFF,#00D4FF);
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-btns button:hover { 
  opacity: 0.85; 
  transform: translateY(-1px);
}

/* 🔘 气泡按钮样式 */
.bubble button {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.bubble button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.smart-bubble.show {
  opacity: 1;
  transform: scale(1);
}

.smart-bubble.hidden {
  display: none;
}

.bubble-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bubble-btn:hover { 
  color: #007BFF; 
  background: rgba(255, 255, 255, 0.3);
}

.bubble-btn svg {
  width: 14px;
  height: 14px;
}

/* ✨ 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 🌟 Apple风格流光效果v4 */
.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.menu-item:hover::before {
  left: 120%;
}

/* 🌐 语言设置模态框 */
.smart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.smart-modal.show {
  opacity: 1;
}

.smart-modal.hidden {
  display: none;
}

.modal-content {
  width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  color: rgba(0, 0, 0, 0.85);
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
  animation: modalZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 📋 模态框动画 */
@keyframes modalZoomIn {
  0% { 
    transform: scale(0.85);
    opacity: 0;
  }
  60% { 
    transform: scale(1.02);
    opacity: 0.9;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

/* 🎯 模态框头部 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close:hover {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* 📝 模态框内容 */
.modal-body {
  padding: 20px 24px;
}

.modal-desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
}

.lang-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(200, 210, 240, 0.6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  color: rgba(0, 0, 0, 0.85);
  transition: all 0.25s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.lang-select:focus {
  outline: none;
  border-color: rgba(100, 160, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(100, 160, 255, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

/* 🎛️ 模态框底部按钮 */
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 20px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #4C8DFF 0%, #6EB6FF 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(100, 160, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(100, 160, 255, 0.5);
  background: linear-gradient(135deg, #3B7FFF 0%, #5DA8FF 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: rgba(245, 245, 255, 0.9);
  transform: translateY(-1px);
  color: rgba(0, 0, 0, 0.85);
}

/* 💬 浮动气泡系统 */
.smart-bubble {
  position: absolute;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  z-index: 9999;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, "SF Pro Display", sans-serif;
}

.smart-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.smart-bubble.hidden {
  display: none;
}

.bubble-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bubble-btn:hover {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.bubble-btn svg {
  transition: transform 0.2s ease;
}

.bubble-btn:hover svg {
  transform: scale(1.1);
}

/* 📱 移动端优化v4 */
@media (max-width: 576px) {
  .glass-menu {
    min-width: 220px;
    padding: 6px;
  }
  
  .menu-item {
    padding: 12px 14px;
    font-size: 14px;
    gap: 10px;
  }
  
  .menu-item svg {
    width: 14px;
    height: 14px;
  }
  
  .modal-content {
    width: 300px;
    margin: 20px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .smart-bubble {
    padding: 6px 8px;
    gap: 6px;
  }
  
  .bubble-btn {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .bubble-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* 🔄 增强Toast提示样式 */
.smart-toast {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 10003;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

/* 🎨 Toast状态颜色 */
.smart-toast.success {
  background: rgba(34, 197, 94, 0.9);
}

.smart-toast.warning {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
}

.smart-toast.error {
  background: rgba(239, 68, 68, 0.9);
}

.smart-toast.info {
  background: rgba(59, 130, 246, 0.9);
}

.smart-toast .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.smart-toast .toast-icon svg {
  width: 16px;
  height: 16px;
}

.smart-toast .toast-text {
  display: inline-flex;
  align-items: center;
}

/* 🎯 iOS 风格密码显示/隐藏按钮 */
.input-group-pwd {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group-pwd .form-control {
  padding-right: 44px; /* 为按钮留出空间 */
}

/* iOS 风格切换按钮 */
.toggle-visibility {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7),
              0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.toggle-visibility:hover {
  background: rgba(78, 115, 223, 0.15);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 2px 6px rgba(78, 115, 223, 0.2);
}

.toggle-visibility:active {
  transform: translateY(-50%) scale(0.95);
}

.icon-eye {
  width: 20px;
  height: 20px;
  stroke: #64748b;
  transition: stroke 0.3s ease;
  flex-shrink: 0;
}

.toggle-visibility.active .icon-eye {
  stroke: #4e73df;
}

/* 移动端适配 */
@media (max-width: 576px) {
  .toggle-visibility {
    padding: 6px;
  }
  
  .icon-eye {
    width: 18px;
    height: 18px;
  }
}
