/* ============================================================
 * SaaS 认证/个人中心/套餐 页面样式
 * v1.0.0
 * ============================================================ */

/* ── 登录页 ── */
.saas-login-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #252836 50%, #1a1d2e 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.saas-login-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #8b8fa3;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
}

.saas-login-close:hover {
  background: #3a3e4d;
  border-color: #8b5cf6;
  color: #e4e7ed;
}

.saas-login-card {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.saas-login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.saas-login-logo .logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(99,102,241,.3);
}

.saas-login-logo h1 {
  font-size: 32px;
  color: #e4e7ed;
  margin: 0 0 8px;
  font-weight: 700;
}

.saas-login-logo p {
  font-size: 15px;
  color: #8b8fa3;
  margin: 0;
}

.saas-login-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 注册页：压缩输入框之间的间距 */
.login-view#registerView .saas-login-form {
  gap: 12px;
}
.login-view#registerView .saas-input-group label {
  margin-bottom: 4px;
}

.saas-input-group {
  position: relative;
}

.saas-input-group label {
  display: block;
  font-size: 12px;
  color: #8b8fa3;
  margin-bottom: 6px;
}

.saas-input-group input {
  width: 100%;
  height: 52px;
  background: rgba(26,29,46,.8);
  border: 1px solid #3a3e4d;
  border-radius: 12px;
  color: #e4e7ed;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.saas-input-group input:focus {
  border-color: #6366f1;
}

.saas-input-group input::placeholder {
  color: #5a5e6d;
}

.saas-code-row {
  display: flex;
  gap: 10px;
}

.saas-code-row input {
  flex: 1;
}

.saas-captcha-img {
  width: 100px;
  height: 52px;
  cursor: pointer;
  border: 1px solid #2c3242;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e2433;
}
.saas-captcha-img svg { width: 100%; height: 100%; }

.saas-send-code-btn {
  height: 52px;
  min-width: 130px;
  background: #3a3e4d;
  border: 1px solid #4a4e5d;
  border-radius: 12px;
  color: #c7cad4;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  padding: 0 18px;
}

.saas-send-code-btn:hover:not(:disabled) {
  background: #4a4e5d;
  color: #e4e7ed;
}

.saas-send-code-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.saas-login-btn {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.saas-login-btn:hover {
  opacity: .9;
}

.saas-login-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.saas-login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #5a5e6d;
}

.saas-login-error {
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  margin-top: -4px;
}

/* ── 个人中心弹窗（全屏模式） ── */
.saas-user-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #252836 50%, #1a1d2e 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
}

.saas-user-modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow-y: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px 24px;
  box-sizing: border-box;
}

.saas-user-modal-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3e4d;
}

.saas-user-modal-header h2 {
  font-size: 22px;
  font-weight: 500;
  color: #e4e7ed;
  margin: 0;
  text-align: center;
}

.saas-user-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #8b8fa3;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
}

.saas-user-modal-close:hover {
  background: #3a3e4d;
  border-color: #8b5cf6;
  color: #e4e7ed;
}

.saas-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.saas-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.saas-user-details h3 {
  font-size: 16px;
  color: #e4e7ed;
  margin: 0 0 4px;
}

.saas-user-details p {
  font-size: 13px;
  color: #8b8fa3;
  margin: 0;
}

.saas-subscription-card {
  background: #1a1d2e;
  border: 1px solid #3a3e4d;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.saas-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.saas-sub-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #8b5cf6;
}

.saas-sub-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #1d9e75;
  color: #fff;
}

.saas-sub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.saas-sub-stat {
  text-align: center;
}

.saas-sub-stat-value {
  font-size: 22px;
  font-weight: 600;
  color: #e4e7ed;
}

.saas-sub-stat-label {
  font-size: 11px;
  color: #8b8fa3;
  margin-top: 2px;
}

.saas-sub-progress {
  margin-top: 14px;
  height: 6px;
  background: #3a3e4d;
  border-radius: 3px;
  overflow: hidden;
}

.saas-sub-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  transition: width .3s;
}

.saas-user-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.saas-action-btn {
  height: 42px;
  background: #3a3e4d;
  border: 1px solid #4a4e5d;
  border-radius: 10px;
  color: #c7cad4;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}

.saas-action-btn:hover {
  background: #4a4e5d;
  color: #e4e7ed;
}

.saas-action-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
}

.saas-action-btn--primary:hover {
  opacity: .9;
}

.saas-action-btn--danger {
  color: #ef4444;
}

/* ── 通用全屏弹窗关闭按钮（统一右上角） ── */
.saas-modal-close,
.saas-login-close,
.saas-user-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #8b8fa3;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
}
.saas-modal-close:hover,
.saas-login-close:hover,
.saas-user-modal-close:hover {
  background: #3a3e4d;
  border-color: #8b5cf6;
  color: #e4e7ed;
}

/* ── 套餐选择页（全屏） ── */
.saas-plans-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #252836 50%, #1a1d2e 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99997;
  padding: 60px 24px 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.saas-plans-content {
  width: 100%;
  max-width: 1100px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.saas-plans-header {
  text-align: center;
  margin-bottom: 30px;
}

.saas-plans-header h2 {
  font-size: 24px;
  color: #e4e7ed;
  margin: 0 0 8px;
}

.saas-plans-header p {
  font-size: 14px;
  color: #8b8fa3;
  margin: 0;
}

.saas-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .saas-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.saas-plan-card {
  background: #1a1d2e;
  border: 2px solid #3a3e4d;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  position: relative;
}

.saas-plan-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}

.saas-plan-card--current {
  border-color: #1d9e75;
}

.saas-plan-card--recommended {
  border-color: #8b5cf6;
}

.saas-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.saas-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #e4e7ed;
  margin-bottom: 8px;
}

.saas-plan-price {
  font-size: 32px;
  font-weight: 700;
  color: #e4e7ed;
  margin-bottom: 4px;
}

.saas-plan-price .unit {
  font-size: 14px;
  font-weight: 400;
  color: #8b8fa3;
}

.saas-plan-quota {
  font-size: 13px;
  color: #8b8fa3;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3e4d;
}

.saas-plan-features {
  text-align: left;
  margin-bottom: 20px;
}

.saas-plan-features li {
  font-size: 12px;
  color: #c7cad4;
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.saas-plan-features li::before {
  content: "✓";
  color: #1d9e75;
  font-weight: 700;
  flex-shrink: 0;
}

.saas-plan-features li.disabled {
  color: #5a5e6d;
}

.saas-plan-features li.disabled::before {
  content: "✗";
  color: #5a5e6d;
}

.saas-plan-btn {
  width: 100%;
  height: 38px;
  border: 1px solid #4a4e5d;
  background: transparent;
  border-radius: 8px;
  color: #c7cad4;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.saas-plan-btn:hover {
  background: #3a3e4d;
  color: #e4e7ed;
}

.saas-plan-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
}

.saas-plan-btn--current {
  background: transparent;
  border-color: #1d9e75;
  color: #1d9e75;
  cursor: default;
}
/* ── 月付/年付切换按钮 ── */
.saas-plan-cycle-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.saas-cycle-btn {
  padding: 6px 20px;
  border: 1px solid #3a3e4d;
  background: transparent;
  border-radius: 20px;
  color: #8b8fa3;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.saas-cycle-btn:hover { border-color: #6366f1; color: #c7cad4; }
.saas-cycle-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

/* ── 套餐订阅面板内的“选择套餐”卡片（浅色，适配个人中心浅色面板） ── */
.uc-plan-cycle {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
}
.uc-cycle-btn {
  padding: 6px 18px;
  border: 1px solid #ddd;
  background: transparent;
  border-radius: 20px;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.uc-cycle-btn:hover { border-color: #6366f1; color: #4b5563; }
.uc-cycle-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}
/* ── 套餐订阅面板：深色主题套餐选择区（与弹窗样式一致） ── */
.uc-sub-plans-area {
  background: #1e2130;
  border-radius: 12px;
  padding: 24px 20px;
  margin-top: 4px;
}
.uc-sub-plans-title {
  color: #e5e7eb;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px 0;
}
.uc-sub-plans-area .saas-plans-grid {
  margin-bottom: 0;
}
.uc-sub-plans-area .saas-plan-card {
  background: #1a1d2e;
  border-color: #3a3e4d;
  min-height: 0;
}
.uc-sub-plans-area .uc-plan-cycle {
  justify-content: center;
}
.uc-sub-plans-area .uc-cycle-btn {
  border-color: #3a3e4d;
  color: #9ca3af;
  background: transparent;
}
.uc-sub-plans-area .uc-cycle-btn:hover {
  border-color: #6366f1;
  color: #e5e7eb;
}
@media (max-width: 768px) {
  .uc-sub-plans-area .saas-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ── 支付二维码弹窗（全屏） ── */
.saas-pay-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #252836 50%, #1a1d2e 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99996;
  padding: 60px 24px 24px;
  box-sizing: border-box;
}

.saas-pay-content {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.saas-pay-amount {
  font-size: 36px;
  font-weight: 700;
  color: #e4e7ed;
  margin-bottom: 4px;
}

.saas-pay-desc {
  font-size: 13px;
  color: #8b8fa3;
  margin-bottom: 20px;
}

.saas-pay-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.saas-pay-qrcode img {
  width: 100%;
  height: 100%;
}

.saas-pay-status {
  font-size: 14px;
  color: #8b8fa3;
  margin-bottom: 16px;
}

.saas-pay-status.paying {
  color: #8b5cf6;
}

.saas-pay-status.success {
  color: #1d9e75;
}

.saas-pay-timer {
  font-size: 12px;
  color: #5a5e6d;
  margin-bottom: 16px;
}

.saas-pay-cancel {
  display: none;
}

/* ── 升级提示弹窗（全屏） ── */
.saas-upgrade-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #252836 50%, #1a1d2e 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99995;
  padding: 60px 24px 24px;
  box-sizing: border-box;
}

.saas-upgrade-content {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.saas-upgrade-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.saas-upgrade-title {
  font-size: 18px;
  font-weight: 600;
  color: #e4e7ed;
  margin-bottom: 8px;
}

.saas-upgrade-quota-info {
  font-size: 13px;
  color: #8b8fa3;
  margin-bottom: 24px;
}

.saas-upgrade-actions {
  display: flex;
  gap: 12px;
}

.saas-upgrade-actions button {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.saas-upgrade-actions .btn-secondary {
  background: transparent;
  border: 1px solid #4a4e5d;
  color: #8b8fa3;
}

.saas-upgrade-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
}

/* ── 顶部用户信息栏（集成在登录按钮中） ── */
.saas-entry-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.saas-entry-name {
  font-size: 12px;
  color: #c7cad4;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-entry-plan {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #8b5cf6;
  color: #fff;
  white-space: nowrap;
}

/* 兼容旧样式名 */
.saas-user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 32px;
  background: #252836;
  border: 1px solid #3a3e4d;
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
}

.saas-user-bar:hover {
  background: #2d3142;
}

.saas-user-bar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.saas-user-bar-name {
  font-size: 12px;
  color: #c7cad4;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-user-bar-plan {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #8b5cf6;
  color: #fff;
}
/* ============================================================
 * 个人中心 v2.0 — 左右分栏布局
 * 左侧导航菜单 + 右侧主内容区域
 * 响应式：移动端底部导航
 * ============================================================ */

/* ── 全屏容器 ── */
.saas-user-modal {
  position: fixed;
  inset: 0;
  background: #0f1117;
  display: none;
  z-index: 99998;
  overflow: hidden;
}
.saas-user-modal.show { display: flex; }

.saas-user-modal-close {
  position: fixed;
  top: 16px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.05);
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #8b8fa3;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all .2s;
}
.saas-user-modal-close:hover {
  background: rgba(139,92,246,.15);
  border-color: #8b5cf6;
  color: #e4e7ed;
}

/* ── 左右分栏布局 ── */
.uc-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ── 左侧侧边栏 ── */
.uc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #161922;
  border-right: 1px solid #2a2d38;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  height: 100%;
  overflow-y: auto;
}

/* 用户资料卡 */
.uc-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid #2a2d38;
  margin-bottom: 12px;
}
.uc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.uc-profile-info { min-width: 0; }
.uc-nickname {
  font-size: 15px; font-weight: 500; color: #e4e7ed;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uc-phone {
  font-size: 12px; color: #8b8fa3; margin-top: 2px;
}

/* 导航菜单 */
.uc-nav { flex: 1; padding: 0 12px; }
.uc-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
}
.uc-nav-item:hover { background: rgba(99,102,241,.08); color: #e4e7ed; }
.uc-nav-item.active {
  background: rgba(99,102,241,.15);
  color: #6366f1;
  font-weight: 500;
}
.uc-nav-item i { width: 18px; text-align: center; font-size: 15px; }

/* 退出按钮 */
.uc-logout {
  margin: 12px 20px 0;
  padding: 10px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.uc-logout:hover {
  background: rgba(239,68,68,.1);
  border-color: #ef4444;
  color: #ef4444;
}

/* ── 右侧主内容 ── */
.uc-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  height: 100%;
}

/* 面板切换 */
.uc-panel { display: none; animation: ucFadeIn .2s ease; }
.uc-panel.active { display: block; }
@keyframes ucFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.uc-panel-title {
  font-size: 22px; font-weight: 600; color: #e4e7ed;
  margin: 0 0 24px;
}

/* 统计卡片网格 */
.uc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.uc-stat-card {
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 12px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.uc-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.uc-stat-body { min-width: 0; }
.uc-stat-value { font-size: 22px; font-weight: 600; color: #e4e7ed; }
.uc-stat-label { font-size: 12px; color: #8b8fa3; margin-top: 2px; }

/* 区块 */
.uc-section { margin-bottom: 28px; }
.uc-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.uc-section-head h3 {
  font-size: 15px; font-weight: 600; color: #e4e7ed; margin: 0;
}
.uc-link-btn {
  background: none; border: none;
  color: #6366f1; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.uc-link-btn:hover { color: #8b5cf6; }

/* 套餐卡片 */
.uc-plan-card {
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 12px;
  padding: 18px;
}
.uc-plan-name { font-size: 16px; font-weight: 600; color: #e4e7ed; margin-bottom: 12px; }
.uc-plan-progress {
  height: 8px;
  background: #2a2d38;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.uc-plan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(99,102,241,.5);
  transition: width .4s ease;
}
.uc-plan-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #8b8fa3;
}

/* 加量包用量列表 */
.uc-packs-list { display: flex; flex-direction: column; gap: 14px; }
.uc-pack-row { }
.uc-pack-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.uc-pack-name { font-size: 13px; font-weight: 600; color: #e4e7ed; }
.uc-pack-meta { font-size: 12px; color: #8b8fa3; }
.uc-pack-row .uc-plan-progress { margin-bottom: 0; }
.uc-packs-empty { margin-top: 2px; }
.uc-packs-empty .uc-btn-primary {
  width: 100%;
  justify-content: center;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border: none;
}

/* 套餐信息卡（订阅页） */
.uc-plan-info-card {
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.uc-plan-info-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.uc-plan-info-name { font-size: 18px; font-weight: 600; color: #e4e7ed; }
.uc-plan-info-status {
  font-size: 12px; color: #10b981;
  background: rgba(16,185,129,.12);
  padding: 3px 10px; border-radius: 4px;
}
.uc-plan-info-stats {
  display: flex; gap: 24px;
  font-size: 14px; color: #c7cad4;
}

/* 快捷操作 */
.uc-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.uc-quick-btn {
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 10px;
  padding: 16px;
  color: #c7cad4;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.uc-quick-btn:hover { border-color: #6366f1; color: #6366f1; }
.uc-quick-btn i { font-size: 20px; }

/* 按钮 */
.uc-btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .2s;
}
.uc-btn-primary:hover { opacity: .9; }
.uc-btn-sm {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 6px;
  color: #94a3b8; font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.uc-btn-sm:hover { border-color: #6366f1; color: #6366f1; }

/* 表单 */
.uc-form { max-width: 400px; }
.uc-form-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.uc-form-row label {
  width: 80px; color: #8b8fa3; font-size: 13px; flex-shrink: 0;
}
.uc-input {
  flex: 1; height: 38px;
  background: #1a1d2e; border: 1px solid #2a2d38;
  border-radius: 8px; color: #e4e7ed; font-size: 14px;
  padding: 0 12px; outline: none;
}
.uc-input:focus { border-color: #6366f1; }
.uc-input:disabled { opacity: .5; }
.uc-form-actions { margin-top: 24px; }

.uc-avatar-picker { display: flex; align-items: center; gap: 12px; }
.uc-avatar-preview {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 600;
}

/* ── 我的页面（我的 tab） ── */
.mypage-header-card {
  background: linear-gradient(145deg, #2d3150, #23263b);
  border: 1px solid #3a3e55;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.mypage-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mypage-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 3px solid rgba(129,140,248,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.mypage-avatar--clickable { cursor: pointer; position: relative; transition: transform .2s; }
.mypage-avatar--clickable:hover { transform: scale(1.05); }
.mypage-avatar-edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #6366f1; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; border: 2px solid #23263b;
}
.mypage-edit-title { font-size: 17px; font-weight: 700; color: #e4e7ed; }
.mypage-edit-body {
  background: linear-gradient(145deg, #2d3150, #23263b);
  border: 1px solid #3a3e55; border-radius: 16px;
  padding: 24px 28px;
}
.mypage-edit-body .uc-form-row label { width: 80px; }
.uc-avatar-swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 4px 0; }
.uc-avatar-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent; transition: .15s;
}
.uc-avatar-swatch:hover { transform: scale(1.1); }
.uc-avatar-swatch.selected {
  border-color: #fff; transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(129,140,248,.6);
}
.mypage-user-info { min-width: 0; }
.mypage-username {
  font-size: 22px; font-weight: 700; color: #e4e7ed;
  letter-spacing: .5px;
}
.mypage-works-count {
  font-size: 13px; color: #9ca3af; margin-top: 4px;
}
.mypage-header-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.mypage-action-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #c4c8d8;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.mypage-action-btn:hover {
  background: rgba(255,255,255,.1); border-color: #555a75; color: #e4e7ed;
}
.mypage-action-btn--danger:hover {
  background: rgba(239,68,68,.12); border-color: #ef4444; color: #fca5a5;
}
.mypage-close-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.05);
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.mypage-close-btn:hover {
  background: rgba(239,68,68,.12); border-color: #ef4444; color: #fca5a5;
}

/* 统计卡片 */
.mypage-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.mypage-stat-card {
  background: #1e2130;
  border: 1px solid #2a2d38;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s;
}
.mypage-stat-card:hover { border-color: #3a3e55; }
.mypage-stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.mypage-stat-body { min-width: 0; }
.mypage-stat-value {
  font-size: 26px; font-weight: 700; color: #e4e7ed;
  line-height: 1.2;
}
.mypage-stat-label {
  font-size: 13px; color: #8b8fa3; margin-top: 3px;
}

/* 我的作品区 */
.mypage-works-section { }
.mypage-works-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mypage-works-title {
  font-size: 17px; font-weight: 600; color: #e4e7ed;
}
.mypage-sort-select {
  padding: 6px 12px;
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 8px;
  color: #c4c8d8;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.mypage-sort-select:focus { border-color: #6366f1; }
.mypage-works-list {
  min-height: 120px;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .mypage-header-card {
    flex-direction: column; align-items: stretch;
    padding: 20px;
  }
  .mypage-header-actions { justify-content: flex-end; }
  .mypage-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mypage-stat-value { font-size: 22px; }
  .mypage-works-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 安全设置列表 */
.uc-security-list, .uc-notify-list {
  display: flex; flex-direction: column; gap: 12px;
}
.uc-security-item, .uc-notify-item {
  background: #1a1d2e;
  border: 1px solid #2a2d38;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.uc-security-info, .uc-notify-info { flex: 1; }
.uc-security-name, .uc-notify-name {
  font-size: 14px; font-weight: 500; color: #e4e7ed;
}
.uc-security-desc, .uc-notify-desc {
  font-size: 12px; color: #8b8fa3; margin-top: 2px;
}

/* 开关 */
.uc-switch {
  position: relative; display: inline-block;
  width: 40px; height: 22px;
}
.uc-switch input { opacity: 0; width: 0; height: 0; }
.uc-switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #3a3e4d; border-radius: 22px;
  transition: .2s;
}
.uc-switch-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: #fff; border-radius: 50%;
  transition: .2s;
}
.uc-switch input:checked + .uc-switch-slider { background: #6366f1; }
.uc-switch input:checked + .uc-switch-slider::before { transform: translateX(18px); }

/* 空状态 */
.uc-empty {
  text-align: center; padding: 60px 20px; color: #6b7280;
}
.uc-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.uc-empty p { font-size: 14px; }

.uc-muted { color: #8b8fa3; font-size: 13px; margin-bottom: 16px; }

/* ── 分享推广 ── */
.uc-share-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.uc-share-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  flex-shrink: 0;
}

.uc-share-title {
  font-size: 15px; font-weight: 600; color: #e4e7ed; margin-bottom: 4px;
}

.uc-share-desc {
  font-size: 12px; color: #8b8fa3; line-height: 1.5;
}

.uc-share-link-wrap {
  margin-bottom: 12px;
}

.uc-share-label {
  display: block;
  font-size: 12px; color: #8b8fa3; margin-bottom: 8px;
}

.uc-share-link-row {
  display: flex; gap: 10px;
}

.uc-share-input {
  flex: 1;
  height: 44px;
  background: rgba(26,29,46,.8);
  border: 1px solid #3a3e4d;
  border-radius: 10px;
  color: #c7cad4;
  font-size: 13px;
  padding: 0 14px;
  outline: none;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.uc-share-input:focus { border-color: #6366f1; }

.uc-share-tip {
  font-size: 12px; color: #10b981; min-height: 18px; margin-top: 8px;
}

/* 订单列表 */
.uc-orders-list { display: flex; flex-direction: column; gap: 10px; }

/* 作品网格 */
.uc-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* ── 移动端底部导航（默认隐藏） ── */
.uc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #161922;
  border-top: 1px solid #2a2d38;
  padding: 8px 0;
  z-index: 10;
}
.uc-bottom-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
}
.uc-bottom-item.active { color: #6366f1; }
.uc-bottom-item i { font-size: 18px; }

/* ── 响应式：平板 ── */
@media (max-width: 900px) {
  .uc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .uc-sidebar { width: 200px; }
  .uc-main { padding: 24px 20px; }
}

/* ── 响应式：手机 ── */
@media (max-width: 640px) {
  .uc-layout { flex-direction: column; }
  .uc-sidebar { display: none; }
  .uc-main {
    padding: 60px 16px 80px;
    padding-bottom: 80px;
  }
  .uc-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .uc-quick-actions { grid-template-columns: 1fr; }
  .uc-panel-title { font-size: 18px; }
  /* 显示底部导航 */
  .uc-bottom-nav {
    display: flex;
  }
}

/* ============================================================
 * 支付弹窗美化 v2.0
 * ============================================================ */

.saas-pay-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 99999;
}
.saas-pay-content {
  position: relative;
  width: 460px; max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}

/* 支付弹窗关闭按钮 — 定位在弹窗右上角 */
.saas-pay-modal .saas-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 10;
}
.saas-pay-modal .saas-modal-close:hover {
  background: #fff;
  color: #07c160;
  transform: scale(1.1);
}
  background: linear-gradient(135deg, #07c160, #06ad56);
  padding: 24px 28px;
}
.pay-brand {
  display: flex; align-items: center; gap: 14px;
}
.pay-brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.pay-brand-name { font-size: 18px; font-weight: 600; color: #fff; }
.pay-brand-desc { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 2px; }

/* 金额区 */
.pay-amount-section {
  text-align: center;
  padding: 28px 28px 20px;
}
.pay-amount-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.pay-amount-value {
  font-size: 40px; font-weight: 700; color: #07c160;
  line-height: 1.1;
}
.pay-amount-desc { font-size: 14px; color: #666; margin-top: 8px; }

/* 二维码区 */
.pay-qr-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 28px 20px;
}
.pay-qr-wrapper {
  position: relative;
  width: 220px; height: 220px;
  padding: 10px;
}
/* 四角装饰 */
.pay-qr-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 3px solid #07c160;
}
.pay-qr-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.pay-qr-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.pay-qr-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.pay-qr-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.saas-pay-qrcode {
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.saas-pay-qrcode img {
  width: 200px; height: 200px;
  border-radius: 4px;
}

.pay-qr-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #ccc; font-size: 13px;
}
.pay-qr-loading i { font-size: 24px; }

.pay-qr-logo {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px;
  background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #07c160;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  border: 2px solid #f0f0f0;
}

.pay-qr-tip {
  margin-top: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #666;
  background: #f7f7f7;
  padding: 8px 16px; border-radius: 20px;
}
.pay-qr-tip i { color: #07c160; font-size: 14px; }
.pay-qr-tip strong { color: #07c160; }

/* 步骤提示 */
.pay-steps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 0 16px;
}
.pay-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pay-step-num {
  width: 24px; height: 24px;
  background: #07c160; color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.pay-step-text { font-size: 11px; color: #666; }
.pay-step-arrow { color: #ddd; font-size: 10px; }

/* 状态指示 */
.saas-pay-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 28px 12px;
  font-size: 14px;
}
.saas-pay-status.paying { color: #999; }
.saas-pay-status.paying .pay-status-icon i { color: #07c160; }
.saas-pay-status.success { color: #07c160; }
.saas-pay-status.success .pay-status-icon i { color: #07c160; }

/* 倒计时 */
.saas-pay-timer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 28px 24px;
  font-size: 12px; color: #999;
}
.saas-pay-timer i { color: #ccc; }
.saas-pay-timer strong { color: #ff6b00; }

/* ── 登录方式切换Tab ── */
.saas-login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #3a3e4d;
}
.saas-login-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b8fa3;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.saas-login-tab:hover { color: #e4e7ed; }
.saas-login-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

/* ── 登录视图切换（v1.1.0 新增） ── */
/* 视图容器：每个视图独立，切换时互斥显示 */
.login-view {
  width: 100%;
  max-width: 420px;
  padding: 0 24px;
  box-sizing: border-box;
  animation: viewFadeIn .25s ease;
}

/* 密码牢记提示 */
.login-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.5;
}

.login-notice i {
  font-size: 13px;
  flex-shrink: 0;
}

.login-notice span {
  flex: 1;
}

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

/* 视图头部（返回按钮 + 标题） */
.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.view-back-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #3a3e4d;
  border-radius: 8px;
  color: #8b8fa3;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}

.view-back-btn:hover {
  background: #3a3e4d;
  border-color: #6366f1;
  color: #e4e7ed;
}

.view-title {
  font-size: 20px;
  font-weight: 600;
  color: #e4e7ed;
  margin: 0;
}

/* 底部返回链接 */
.view-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #8b8fa3;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}

.view-back-link:hover {
  color: #6366f1;
}

/* 登录视图中的辅助链接行（忘记密码 · 开发者登录） */
.login-aux-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.login-aux-link {
  color: #8b5cf6;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}

.login-aux-link:hover {
  color: #a78bfa;
}

.login-aux-link-muted {
  color: #5a5e6d;
}

.login-aux-link-muted:hover {
  color: #8b8fa3;
}

.login-aux-divider {
  color: #3a3e4d;
  font-size: 12px;
}

/* 手机号不可用提示 */
.phone-unavailable-tip {
  margin-top: 10px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

/* ── 忘记密码步骤说明 ── */
.forgot-steps {
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forgot-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forgot-step-num {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forgot-step-text {
  color: #c7cad4;
  font-size: 13px;
  line-height: 1.5;
}

/* 开发者登录按钮使用深色风格 */
.dev-login-btn {
  background: #3a3e4d !important;
  box-shadow: none !important;
}

.dev-login-btn:hover {
  background: #4a4e5d !important;
}

/* ── 忘记密码联系客服卡片 ── */
.forgot-contact-card {
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 4px;
}

.forgot-contact-title {
  font-size: 15px;
  font-weight: 600;
  color: #e4e7ed;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.forgot-contact-title i {
  color: #6366f1;
}

.forgot-contact-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.forgot-contact-item:last-of-type {
  border-bottom: none;
}

.forgot-contact-label {
  width: 48px;
  color: #8b8fa3;
  font-size: 13px;
  flex-shrink: 0;
}

.forgot-contact-value {
  color: #e4e7ed;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  letter-spacing: .3px;
}

.forgot-contact-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #8b8fa3;
  font-size: 12px;
  line-height: 1.6;
}

/* ── 购买加量包弹窗（v1.2.2 重设计） ── */
.saas-recharge-box {
  background: #fff;
  border-radius: 14px;
  width: min(680px, 94vw);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
}
.saas-recharge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
/* 标题字体改为黑色 */
.saas-recharge-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}
.saas-recharge-close {
  cursor: pointer;
  font-size: 24px;
  color: #999;
  line-height: 1;
}
.saas-recharge-close:hover { color: #333; }

/* 加量包列表：一个包一个卡片，一个卡片占用一行 */
.saas-pack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.saas-pack-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  background: #fff;
  transition: .15s;
}
.saas-pack-card:hover {
  border-color: #534AB7;
  box-shadow: 0 4px 14px rgba(83,74,183,.12);
}
.saas-pack-info { flex: 1; min-width: 0; }
.saas-pack-credits {
  font-size: 18px;
  font-weight: 700;
  color: #534AB7;
  line-height: 1.3;
}
.saas-pack-bonus {
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
}
.saas-pack-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.saas-pack-price {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}
.saas-pack-buy {
  padding: 8px 18px;
  border-radius: 8px;
  background: #534AB7;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.saas-pack-empty {
  color: #999;
  padding: 20px;
  text-align: center;
}

/* 自定义充值卡片（单独占一个卡片，与加量包同款样式） */
.saas-custom-card {
  flex-wrap: wrap;
  cursor: default;
}
/* 标题“自定义充值”独占一行 */
.saas-custom-head {
  flex-basis: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}
/* 第二行：可得积分 + ¥输入框 + 充值按钮 */
.saas-custom-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-basis: 100%;
  flex-wrap: wrap;
}
/* 可得 X 积分：蓝图色，与加量包积分字体一致；flex:1 把右侧 ¥输入框+充值 推到右边 */
.saas-custom-credits {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #534AB7;
  white-space: nowrap;
}
/* 金额（¥输入框）位于右侧，与加量包卡片的 ¥价格 对称 */
.saas-custom-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.saas-custom-amount .saas-pack-price {
  margin: 0;
}
.saas-custom-unit {
  font-size: 14px;
  color: #1f2937;
  white-space: nowrap;
}
.saas-recharge-input-inline {
  width: 170px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.saas-recharge-input-inline:focus {
  outline: none;
  border-color: #534AB7;
}
.saas-recharge-hint {
  font-size: 13px;
  color: #9ca3af;
  min-height: 18px;
}
.saas-custom-card .saas-recharge-hint {
  flex-basis: 100%;
  margin: 6px 0 0;
}
