/* ===== 加载动画 ===== */
.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 登录页 - 优化后：无需滑动，一屏展示 ===== */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 200;
  animation: authFadeIn 0.4s ease-out;
}
@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  animation: authLogoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes authLogoPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.auth-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 4px;
  animation: authSlideUp 0.4s ease-out 0.15s both;
}
.auth-subtitle {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 24px;
  animation: authSlideUp 0.4s ease-out 0.2s both;
}
@keyframes authSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.auth-form {
  width: 100%; max-width: 320px;
  animation: authSlideUp 0.4s ease-out 0.25s both;
}
.auth-input-wrap {
  position: relative;
  margin-bottom: 10px;
}
.auth-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}
.auth-input-wrap:focus-within .input-icon {
  color: var(--primary);
}
.auth-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--card-bg-solid);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-appearance: none;
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
  transform: translateY(-1px);
}
.auth-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0;
}
.auth-btn {
  width: 100%;
  height: 48px;
  padding: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  display: block;
  text-align: center;
  line-height: 48px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}
.auth-btn:active {
  background: var(--primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.auth-btn:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--primary-dark);
  opacity: 1;
}
/* 登录loading态：按钮文字改为 spinner+文字 */
.auth-btn.is-loading {
  pointer-events: none;
}
.auth-btn.is-loading span {
  display: inline-block;
  vertical-align: middle;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
.auth-error {
  font-size: 13px; color: var(--error);
  margin-top: 10px; text-align: center;
  min-height: 20px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
/* 按钮内 loading spinner */
.auth-btn .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.auth-btn.is-loading .btn-spinner {
  display: inline-block;
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.auth-link {
  text-align:center;
  margin-top:16px;
  font-size:13px;
  color:var(--text-secondary);
  cursor:pointer;
  user-select:none;
}
.auth-back {
  position:absolute;
  top:20px;
  left:20px;
  font-size:15px;
  color:var(--primary);
  cursor:pointer;
  user-select:none;
  padding:8px 12px;
}
.sms-btn {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  background:var(--primary-muted);
  color:var(--primary);
  border:none;
  padding:6px 12px;
  border-radius:6px;
  font-size:12px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition:all 0.2s;
}
.sms-btn:disabled {
  opacity:0.5;
  cursor:not-allowed;
}
.sms-btn:not(:disabled):hover {
  background:var(--primary);
  color:#fff;
}

/* ===== 顶部栏 ===== */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
}
.top-bar-title {
  font-size: 20px; font-weight: 700;
}
.top-bar-badge {
  font-size: 12px;
  background: var(--primary-muted);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card-bg-solid);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-primary);
}
.card-title-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--primary-muted);
  color: var(--primary);
}

/* ===== 算力卡片 - 动态渐变背景 ===== */
.balance-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary-dark));
  background-size: 200% 200%;
  border-radius: var(--radius);
  padding: 24px 20px;
  color: #fff;
  margin-bottom: 12px;
  animation: gradientFlow 8s ease infinite;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: shimmer 12s linear infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.balance-label {
  font-size: 13px; opacity: 0.85;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.balance-value {
  font-size: 36px; font-weight: 800;
  position: relative;
  z-index: 1;
}
.balance-unit {
  font-size: 14px; font-weight: 400; opacity: 0.85;
  margin-left: 4px;
  position: relative;
  z-index: 1;
}
.balance-meta {
  display: flex; gap: 16px; margin-top: 14px;
  position: relative;
  z-index: 1;
}
.balance-meta-item {
  font-size: 13px; opacity: 0.85;
}
.balance-meta-item span {
  font-weight: 700;
}

/* ===== 统计网格 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-item {
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-item:active {
  transform: scale(0.98);
}
.stat-value {
  font-size: 26px; font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--text-muted);
}

/* ===== 数据行 ===== */
.data-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.data-row:last-child { border-bottom: none; }
.data-row-label {
  font-size: 14px; color: var(--text-secondary);
}
.data-row-value {
  font-size: 15px; font-weight: 600;
}

/* ===== 快捷操作 ===== */
.quick-actions {
  display: flex; gap: 10px;
  margin-bottom: 16px;
}
.quick-action-btn {
  flex: 1;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.quick-action-btn:active {
  background: var(--primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.quick-action-btn:disabled { opacity: 0.6; }

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}
.form-label .required {
  color: var(--error);
  margin-left: 2px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--card-bg-solid);
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.form-hint {
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 大数字输入 ===== */
.big-number-input {
  font-size: 32px !important;
  font-weight: 700;
  text-align: center;
  padding: 16px !important;
  letter-spacing: 2px;
}

/* ===== 滑块 ===== */
.slider-container {
  margin: 12px 0;
}
.slider-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--divider);
  position: relative;
  cursor: pointer;
}
.slider-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.1s;
}
.slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}
.slider-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}
.slider-mark {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.slider-mark:hover, .slider-mark.active {
  color: var(--primary);
  background: var(--primary-muted);
}

/* ===== 快捷数值标签 ===== */
.quick-amount-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.quick-amount-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.quick-amount-tag:hover, .quick-amount-tag.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}

/* ===== 确认按钮 ===== */
.confirm-btn {
  width: 100%;
  padding: 0;
  height: 48px;
  line-height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  display: block;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  margin-top: 8px;
}
.confirm-btn svg,
.confirm-btn > * {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.confirm-btn:active {
  background: var(--primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.confirm-btn:disabled { opacity: 0.6; }
.confirm-btn .loading-spinner {
  width: 18px; height: 18px;
  border-width: 2px;
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
}

/* ===== 划拨记录 - 时间线样式 ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--primary-light));
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-item:first-child .timeline-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.timeline-info { flex: 1; min-width: 0; }
.timeline-summary {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timeline-meta {
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.timeline-time {
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-remark {
  background: var(--primary-muted);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.timeline-amount {
  font-size: 16px; font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== 门店列表 ===== */
.store-search-box {
  position: relative;
  margin-bottom: 12px;
}
.store-search-box .form-input {
  padding-left: 40px;
  font-size: 14px;
}
.store-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.store-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--divider);
  color: var(--text-muted);
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.store-search-clear.visible { display: flex; }
.store-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.store-item:active {
  transform: scale(0.98);
  border-color: var(--primary);
}
.store-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.store-item-info { flex: 1; min-width: 0; }
.store-item-name {
  font-size: 15px; font-weight: 600;
  margin-bottom: 2px;
}
.store-item-desc {
  font-size: 13px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-item-balance {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--primary-muted);
  padding: 4px 10px;
  border-radius: 10px;
}

/* ===== 门店展开详情 ===== */
.store-expand-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.store-expand-label { color: var(--text-muted); }
.store-expand-value { font-weight: 600; }

/* ===== 门店分页 ===== */
.store-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.store-pagination-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.store-pagination-btns {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.store-page-btn {
  flex: 1;
  max-width: 140px;
  height: 38px;
  padding: 0 14px;
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.store-page-btn svg {
  display: inline-block;
  vertical-align: middle;
}
.store-page-btn:not(:disabled):active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(1px);
}
.store-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--text-muted);
}

/* ===== 个人信息卡片 ===== */
.profile-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 28px 20px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.profile-name {
  font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.profile-phone {
  font-size: 14px; opacity: 0.85;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.profile-stats {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.profile-stat-item {
  font-size: 13px; opacity: 0.85;
}
.profile-stat-item span {
  display: block;
  font-size: 20px; font-weight: 700;
  opacity: 1;
  margin-top: 4px;
}
.profile-wechat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.profile-wechat svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  opacity: 0.8;
}
.profile-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  z-index: 2;
}
.profile-edit-btn:hover {
  background: rgba(255,255,255,0.25);
}
.profile-edit-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ===== 退出按钮 ===== */
.logout-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  color: var(--error);
  cursor: pointer;
  margin-top: 16px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.logout-btn:active {
  background: rgba(239, 68, 68, 0.1);
  transform: translateY(1px);
}

/* ===== 底部Tab ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg-solid);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 0 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
  color: var(--text-muted);
  position: relative;
}
.tab-item.active { color: var(--primary); }
.tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-item.active .tab-icon {
  transform: translateY(-2px) scale(1.1);
}
.tab-label {
  font-size: 11px; font-weight: 500;
  transition: all 0.2s;
}
.tab-item.active .tab-label {
  font-weight: 600;
}
.tab-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-item.active .tab-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* ===== Tab内容 ===== */
.tab-content { display: none; opacity: 0; transform: translateY(16px); }
.tab-content.active {
  display: block;
  animation: fadeInUp 0.35s ease-out forwards;
}

/* ===== 门店展开详情 ===== */
.store-expand {
  padding: 10px 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.25s ease-out, padding 0.3s ease-out;
}
.store-expand.visible {
  max-height: 200px;
  opacity: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ===== 加载更多 ===== */
.load-more-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.load-more-btn:active {
  background: var(--primary-muted);
  color: var(--primary);
  border-color: var(--primary);
}
.load-more-btn:disabled { opacity: 0.6; }

/* ===== 提示条 ===== */
.tip-bar {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px;
  background: var(--primary-muted);
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.tip-bar-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }

/* ===== 门店码输入行 ===== */
.code-input-row {
  display: flex; gap: 8px;
}
.code-input-row .form-input {
  flex: 1;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 16px;
}
.code-scan-btn {
  padding: 12px 16px;
  background: var(--primary-muted);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; gap: 4px;
  transition: all 0.2s;
}
.code-scan-btn:active {
  background: var(--primary);
  color: #fff;
  transform: scale(0.96);
}

/* ===== 确认弹窗 - 全面优化 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-sheet {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--card-bg-solid);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 36px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.visible .modal-sheet {
  transform: translateY(0);
}
.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}
.modal-sheet-header::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: absolute;
  top: -14px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.5px;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.5;
}
.modal-body {
  padding: 4px 0;
}
.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-btns button {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}
.btn-cancel:active {
  background: var(--border);
  transform: translateY(1px);
}
.btn-confirm {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-confirm:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.btn-confirm:disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

/* 弹窗关闭按钮 */
.modal-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  padding: 0;
}
.modal-sheet-close:active {
  background: var(--border);
  transform: scale(0.9);
}

/* 弹窗内表单优化 */
.modal-sheet .form-group {
  margin-bottom: 16px;
}
.modal-sheet .form-group:last-child {
  margin-bottom: 0;
}
.modal-sheet .form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}
.modal-sheet .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: var(--card-bg-solid);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.modal-sheet .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.modal-sheet .form-input::placeholder {
  color: var(--text-muted);
}

/* 弹窗内验证码行 */
.modal-sheet .sms-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.modal-sheet .sms-code-row .form-input {
  flex: 1;
}
.modal-sheet .sms-code-row .btn-confirm {
  flex: 0 0 auto;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 12px;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  box-shadow: none;
  background: var(--primary-muted);
  color: var(--primary);
  white-space: nowrap;
  box-sizing: border-box;
}
.modal-sheet .sms-code-row .btn-confirm:active {
  background: rgba(99, 102, 241, 0.18);
}
.modal-sheet .sms-code-row .btn-confirm:disabled {
  opacity: 0.5;
  color: var(--text-muted);
}

/* 弹窗内错误提示 */
.modal-sheet .modal-error {
  font-size: 13px;
  color: var(--error);
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  animation: authShake 0.3s ease-out;
}

/* 弹窗内信息提示条 */
.modal-sheet .modal-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-muted);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===== 统一按钮风格 ===== */
.btn-primary {
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:active {
  background: var(--primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.btn-primary:disabled { opacity: 0.6; }

.btn-secondary {
  padding: 12px 20px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.btn-secondary:active {
  background: var(--primary-muted);
  transform: translateY(1px);
}

/* ===== 充值弹窗 ===== */
.recharge-preview {
  background: var(--primary-muted);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.recharge-preview-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 5px 0;
}
.recharge-preview-label { color: var(--text-secondary); }
.recharge-preview-value { font-weight: 700; color: var(--primary); }
.recharge-tip {
  font-size: 12px; color: var(--warning);
  margin-top: 8px; line-height: 1.5;
}

/* ===== 日期筛选 ===== */
.date-filter {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.date-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.date-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.date-filter-btn:active { opacity: 0.7; }

/* ===== 趋势柱状图 ===== */
.chart-card {
  background: var(--card-bg-solid);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
}
.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 8px;
}
.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 32px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  min-height: 2px;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chart-bar-value {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
}
.chart-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}
.chart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 30px 0;
}

/* ===== 页面切换过渡 ===== */
.page-transition {
  animation: fadeInUp 0.35s ease-out;
}

/* ===== 计数动画初始状态 ===== */
.count-animate {
  display: inline-block;
}

/* ===== 门店列表搜索结果提示 ===== */
.search-result-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 4px;
}

/* ===== 新手引导 ===== */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.onboarding-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.onboarding-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.onboarding-overlay.visible .onboarding-card {
  transform: scale(1) translateY(0);
}
.onboarding-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.onboarding-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--divider);
  transition: all 0.3s;
}
.onboarding-step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}
.onboarding-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}
.onboarding-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.onboarding-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.onboarding-highlight {
  background: var(--primary-muted);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 12px 0;
  display: inline-block;
}
.onboarding-btns {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.onboarding-btns button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.onboarding-skip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.onboarding-skip:active {
  background: var(--primary-muted);
  color: var(--primary);
}
.onboarding-next {
  background: var(--primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.onboarding-next:active {
  background: var(--primary-dark);
  transform: translateY(1px);
}
.onboarding-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  margin-top: 8px;
}
.onboarding-action-btn:active {
  background: var(--primary-dark);
  transform: translateY(1px);
}

/* ===== 申请成为代理页 - AI风格双卡片 ===== */
.agent-apply-header {
  text-align: center;
  margin-bottom: 20px;
  animation: authSlideUp 0.5s ease-out 0.1s both;
}
.agent-apply-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  animation: authLogoPop 0.5s var(--ease-out) 0.05s both;
}
.agent-apply-title {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.agent-apply-subtitle {
  font-size: 13px; color: var(--text-muted);
}

.agent-apply-body {
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column;
  gap: 14px;
  animation: authSlideUp 0.5s ease-out 0.2s both;
}

/* 申请卡片基础 */
.apply-card {
  background: var(--card-bg-solid);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.apply-card:active {
  transform: scale(0.98);
}

/* 主推卡片 */
.apply-card-primary {
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1), var(--shadow-glow);
}
.apply-card-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}
.apply-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.apply-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  z-index: 1;
}
.apply-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
}
.apply-card-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.apply-card-desc {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 16px;
}

/* 二维码展示 */
.qr-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.qr-ring {
  width: 172px; height: 172px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #EC4899);
  padding: 3px;
  position: relative;
  animation: qrPulse 3s ease-in-out infinite;
}
@keyframes qrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}
.qr-ring-inner {
  width: 100%; height: 100%;
  border-radius: 17px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-ring-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.qr-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 6px;
}
.qr-scan-hint {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12px; color: var(--text-secondary);
}
.qr-scan-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: scanBlink 1.5s ease-in-out infinite;
}
@keyframes scanBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 微信号栏 */
.wechat-id-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-muted);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.wechat-id-label {
  font-size: 12px; color: var(--text-muted);
}
.wechat-id-value {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.wechat-id-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.wechat-id-copy:active {
  transform: scale(0.92);
  background: var(--primary-dark);
}

/* 流程步骤 */
.apply-flow-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-text {
  font-size: 10px; color: var(--text-muted);
}
.flow-arrow {
  width: 16px; height: 1px;
  background: linear-gradient(90deg, var(--divider), var(--primary-light), var(--divider));
  position: relative;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  width: 0; height: 0;
  border-left: 4px solid var(--primary-light);
  border-top: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
}

/* 分割线 */
.apply-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.apply-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
}
.apply-divider-text {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap;
}

/* 备选卡片 */
.apply-card-secondary {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s var(--ease-out);
}
.apply-card-secondary:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-sm);
}
.apply-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.apply-card-icon-small {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.apply-card-header-text {
  flex: 1;
}
.apply-card-header-title {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
}
.apply-card-header-desc {
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px;
}
.apply-card-chevron {
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.apply-card-chevron.expanded {
  transform: rotate(180deg);
}

/* 自助申请表单 */
.self-apply-form {
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
}
.self-apply-form-inner {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* 申请页覆盖：让auth-page支持滚动 */
#registerPage.auth-page {
  justify-content: flex-start;
  padding-top: 56px;
  padding-bottom: 32px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== 门店可搜索选择器 (Combobox) ===== */
.store-select-wrapper {
  position: relative;
}
.store-combobox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg-solid);
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text;
}
.store-combobox.open,
.store-combobox:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}
.store-combobox-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}
.store-combobox-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  min-height: 48px;
}
.store-combobox-input::placeholder {
  color: var(--text-muted);
}
.store-combobox-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  cursor: pointer;
}
.store-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card-bg-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  z-index: 250;
  overflow: hidden;
  max-height: 320px;
  animation: dropdownOpen 0.2s ease-out;
}
@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.store-options-list {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.store-option-item {
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.store-option-item:last-child { border-bottom: none; }
.store-option-item:active { background: var(--primary-muted); }
.store-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.store-option-code {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.store-option-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 算力流水 ===== */
.ledger-summary {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-tertiary, rgba(99,102,241,0.04));
  border-radius: 12px;
  margin-bottom: 12px;
  gap: 12px;
}
.ledger-summary-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ledger-summary-icon {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99,102,241,0.08);
}
.ledger-summary-divider {
  width: 1px;
  height: 28px;
  background: var(--divider);
  flex-shrink: 0;
}
.ledger-summary-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}
.ledger-summary-value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}
.ledger-list {
  display: flex;
  flex-direction: column;
}
.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ledger-item:last-child { border-bottom: none; }
.ledger-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ledger-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.ledger-item-info {
  flex: 1;
  min-width: 0;
}
.ledger-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.ledger-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-item-right {
  text-align: right;
  flex-shrink: 0;
}
.ledger-item-amount {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.ledger-item-balance {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== 新UI：确认详情网格 ===== */
.confirm-detail-grid {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
}
.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.confirm-detail-row:last-child { border-bottom: none; }
.confirm-detail-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.confirm-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.confirm-detail-value.primary {
  color: var(--primary);
  font-size: 16px;
}
.confirm-detail-row.highlight {
  background: var(--primary-muted);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 4px -4px;
  border-bottom: none;
}

/* ===== 新UI：充值弹窗延伸 ===== */
.recharge-modal-sheet {
  max-height: 85vh;
  overflow-y: auto;
}

/* ===== 新UI：官方联系方式卡片 ===== */
.official-contact-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 4px;
}
.official-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.official-card-title::before {
  content: '📞';
}
.official-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.official-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .official-contact-item {
    background: rgba(255,255,255,0.04);
  }
}
.official-contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.official-contact-info {
  flex: 1;
  min-width: 0;
}
.official-contact-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.official-contact-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.official-contact-copy {
  padding: 5px 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.official-contact-copy:active { transform: scale(0.95); }
.official-no-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px;
}

/* ===== 新UI：充值记录项 ===== */
.recharge-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.recharge-history-item:last-child { border-bottom: none; }
.recharge-history-left { display: flex; flex-direction: column; gap: 2px; }
.recharge-history-credits { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.recharge-history-date { font-size: 12px; color: var(--text-muted); }
.recharge-history-status { font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* ===== 新UI：趋势汇总行 ===== */
.trend-summary-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.trend-summary-item {
  flex: 1;
  text-align: center;
  background: var(--primary-muted);
  border-radius: 10px;
  padding: 10px 6px;
}
.trend-summary-label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.trend-summary-value { display: block; font-size: 16px; font-weight: 800; color: var(--primary); }

/* ===== 新UI：快捷操作按钮 ===== */
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.quick-action-btn {
  flex: 1;
  padding: 0;
  height: 48px;
  line-height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.quick-action-btn svg,
.quick-action-btn > * {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.quick-action-btn svg {
  margin-right: 6px;
}
.quick-action-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.quick-action-btn.primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.quick-action-btn.secondary {
  background: var(--card-bg-solid);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.quick-action-btn.secondary:active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(1px);
}

/* ===== 新UI：「我的」页：个人资料卡v2 ===== */
.profile-card-v2 {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-card-v2::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.profile-v2-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.profile-v2-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.profile-v2-info {
  flex: 1;
  min-width: 0;
}
.profile-v2-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}
.profile-v2-phone {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
  font-weight: 500;
}
.profile-v2-wechat {
  font-size: 12px;
  opacity: 0.85;
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.profile-v2-referral {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px 12px;
  position: relative;
  z-index: 1;
}
.profile-v2-referral-label {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
  flex-shrink: 0;
}
.profile-v2-referral-code {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  flex: 1;
  min-width: 0;
  text-align: center;
}
.profile-v2-referral-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.profile-v2-referral-copy,
.profile-v2-referral-link {
  padding: 4px 10px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.profile-v2-referral-link {
  background: rgba(255,255,255,0.08);
}
.profile-v2-referral-copy:active,
.profile-v2-referral-link:active {
  background: rgba(255,255,255,0.35);
  transform: scale(0.95);
}
.profile-v2-stats {
  display: flex;
  gap: 0;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
.profile-v2-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
}
.profile-v2-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.12);
}
.profile-v2-stat-val {
  font-size: 20px;
  font-weight: 800;
  opacity: 0.98;
}
.profile-v2-stat-label {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 500;
}
.profile-v2-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  z-index: 2;
}
.profile-v2-edit:active { background: rgba(255,255,255,0.25); }

/* ===== 新UI：动作按钮（充值入口） ===== */
.action-btn-recharge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg-solid);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
.action-btn-recharge:active {
  transform: scale(0.98);
  border-color: var(--primary);
}
.action-btn-recharge {
  border-color: rgba(99,102,241,0.2);
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
}
.action-btn-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.action-btn-content {
  flex: 1;
  min-width: 0;
}
.action-btn-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.action-btn-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.action-btn-arrow {
  font-size: 22px;
  color: var(--text-muted);
  font-weight: 300;
  flex-shrink: 0;
}

/* ===== 新UI：设置列表项 ===== */
.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: var(--primary-muted); border-radius: 8px; padding-left: 8px; }
.settings-item-icon { font-size: 18px; flex-shrink: 0; }
.settings-item-text { flex: 1; font-size: 15px; color: var(--text-primary); font-weight: 500; }
.settings-item-arrow { font-size: 20px; color: var(--text-muted); font-weight: 300; }

/* ===== 新UI：快捷操作列表 ===== */
.action-list {
  display: flex;
  flex-direction: column;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--divider);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.action-item:last-child { border-bottom: none; }
.action-item:active { background: var(--primary-muted); border-radius: 10px; padding-left: 8px; }
.action-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.action-item-icon.primary {
  background: var(--primary-muted);
}
.action-item-text {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.action-item-arrow {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
  flex-shrink: 0;
}
.action-item.danger:active { background: rgba(239, 68, 68, 0.08); }
.action-item.danger .action-item-text { color: var(--error); }

/* ===== 新UI：充值弹窗预览总金额高亮 ===== */
.recharge-preview-row.total {
  border-top: 1px solid var(--divider);
  padding-top: 10px;
  margin-top: 6px;
}
.recharge-preview-row.total .recharge-preview-value {
  font-size: 20px;
  color: var(--primary);
}

/* ===== 新UI：新手引导优化 ===== */
.onboarding-sheet {
  padding: 28px 24px 24px;
}
.onboarding-action-btn {
  display: inline-block;
  text-align: center;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transition: all 0.2s;
  margin-top: 16px;
}
.onboarding-action-btn:active { transform: scale(0.97); }

/* ===== container底部留白（给底部tab栏） - 已迁移到 base.css ===== */

/* ===== 修正：修复 flow-arrow 类的重复 class 属性 ===== */
.flow-arrow {
  width: 16px; height: 1px;
  background: linear-gradient(90deg, var(--divider), var(--primary-light), var(--divider));
  position: relative;
  flex-shrink: 0;
  align-self: center;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  width: 0; height: 0;
  border-left: 4px solid var(--primary-light);
  border-top: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
}

/* ================================================================
   AI 科技特效系统 v2.0
   ================================================================ */

/* ===== AI 粒子背景 Canvas ===== */
#ai-particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ===== 登录页网格背景 ===== */
.ai-auth-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; z-index: 0;
  animation: gridMove 25s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ===== AI 光晕 Logo ===== */
.ai-logo-container {
  position: relative;
  width: 84px; height: 84px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.ai-logo-orbit {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(99,102,241,0.2);
  animation: orbitSpin 8s linear infinite;
}
.ai-logo-orbit::before {
  content: '';
  position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 8px var(--primary-light);
  transform: translateX(-50%);
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ai-logo-core {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow:
    0 0 30px rgba(99,102,241,0.35),
    0 0 60px rgba(99,102,241,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: logoPulse 3s ease-in-out infinite;
  position: relative; z-index: 1;
}
.ai-logo-core::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 24px;
  background: var(--primary-gradient);
  opacity: 0.35;
  filter: blur(12px);
  z-index: -1;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes logoGlow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.18); }
}

/* ===== 霓虹按钮 ===== */
.ai-neon-btn {
  position: relative;
  overflow: hidden;
  background: var(--primary-gradient) !important;
  border: none !important;
  box-shadow:
    0 4px 20px rgba(99,102,241,0.4),
    0 0 0 0 rgba(99,102,241,0);
  transition: all 0.3s ease;
}
.ai-neon-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
}
.ai-neon-btn:hover::before {
  animation: shimmerSlide 0.8s ease forwards;
}
@keyframes shimmerSlide {
  to { transform: translateX(100%); }
}
.ai-neon-btn:active {
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  transform: translateY(1px) scale(0.98);
}
.ai-neon-btn.is-loading {
  box-shadow: 0 2px 10px rgba(99,102,241,0.2);
  transform: none;
}
.ai-neon-btn.is-loading::before {
  display: none;
}

/* ===== 扫描线特效 ===== */
.ai-scan-overlay {
  position: relative; overflow: hidden;
}
.ai-scan-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--success), var(--primary-light), transparent);
  box-shadow: 0 0 8px var(--primary-light);
  animation: scanLineMove 2.5s ease-in-out infinite;
  opacity: 0.7;
  z-index: 2;
}
@keyframes scanLineMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ===== 3D 悬浮卡片 ===== */
.ai-float-card {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  will-change: transform;
}
.ai-float-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 48px rgba(99,102,241,0.12);
}
.ai-float-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* ===== 涟漪点击效果 ===== */
.ai-ripple {
  position: relative; overflow: hidden;
}
.ai-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(99,102,241,0.25);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* ===== 渐变文字 ===== */
.ai-gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== AI 标题发光 ===== */
.ai-title-glow {
  text-shadow: 0 0 20px rgba(99,102,241,0.2), 0 0 40px rgba(99,102,241,0.1);
}

/* ===== 输入框 AI 聚焦 ===== */
.ai-input-glow {
  transition: all 0.3s ease;
}
.ai-input-glow:focus {
  border-color: var(--primary) !important;
  box-shadow:
    0 0 0 3px var(--primary-muted),
    0 0 20px rgba(99,102,241,0.12) !important;
  transform: translateY(-2px);
}

/* ===== 数字跳动动画 ===== */
.ai-count-bounce {
  display: inline-block;
  animation: countBounce 0.5s var(--ease-out);
}
@keyframes countBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ===== 状态闪烁点 ===== */
.ai-status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: statusBlink 2s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* ===== Toast 全息升级 ===== */
.ai-toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: linear-gradient(135deg, rgba(25,25,45,0.95), rgba(15,15,35,0.98));
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    0 0 30px rgba(99,102,241,0.08);
}
.ai-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== 卡片全息光晕 ===== */
.ai-hologram-card {
  position: relative;
  overflow: hidden;
}
.ai-hologram-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(99,102,241,0.03) 60deg,
    transparent 120deg,
    rgba(139,92,246,0.02) 180deg,
    transparent 240deg,
    rgba(99,102,241,0.03) 300deg,
    transparent 360deg
  );
  animation: hologramSpin 12s linear infinite;
  pointer-events: none;
}
@keyframes hologramSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 底部发光条 ===== */
.ai-glow-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent);
  opacity: 0.4;
  z-index: 51;
  animation: glowBarPulse 4s ease-in-out infinite;
}
@keyframes glowBarPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

/* ===== 浮动装饰粒子 ===== */
.ai-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.ai-particle.p1 {
  width: 4px; height: 4px;
  background: var(--primary-light);
  animation: particleFloat1 8s ease-in-out infinite;
}
.ai-particle.p2 {
  width: 6px; height: 6px;
  background: var(--primary);
  animation: particleFloat2 10s ease-in-out infinite;
}
.ai-particle.p3 {
  width: 3px; height: 3px;
  background: var(--primary-dark);
  animation: particleFloat3 12s ease-in-out infinite;
}
@keyframes particleFloat1 {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { opacity: 0.5; transform: scale(1); }
  90% { opacity: 0.5; transform: translate(-20px, -60px) scale(1); }
  100% { transform: translate(-30px, -80px) scale(0); opacity: 0; }
}
@keyframes particleFloat2 {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { opacity: 0.4; transform: scale(1); }
  90% { opacity: 0.4; transform: translate(30px, -50px) scale(1); }
  100% { transform: translate(40px, -70px) scale(0); opacity: 0; }
}
@keyframes particleFloat3 {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { opacity: 0.3; transform: scale(1); }
  90% { opacity: 0.3; transform: translate(-15px, -40px) scale(1); }
  100% { transform: translate(-20px, -55px) scale(0); opacity: 0; }
}

/* ===== 霓虹边框卡片 ===== */
.ai-neon-card {
  position: relative;
  background: var(--card-bg-solid);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-neon-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--primary-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ai-neon-card:hover::before {
  opacity: 0.6;
}

/* ===== Tab 液体指示器增强 ===== */
.tab-item .tab-indicator {
  width: 32px; height: 3px;
  border-radius: 3px;
  background: var(--primary-gradient);
  box-shadow: 0 0 8px rgba(99,102,241,0.4);
}

/* ===== 申请页二维码增强 ===== */
.ai-qr-container {
  position: relative;
  padding: 4px;
  border-radius: 22px;
  background: var(--primary-gradient);
  box-shadow: 0 0 30px rgba(99,102,241,0.2);
  animation: qrPulse 3s ease-in-out infinite;
}
@keyframes qrPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.3); }
}
.ai-qr-inner {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

/* ===== 快捷操作按钮增强 ===== */
.quick-action-btn.primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35), 0 0 0 0 rgba(99,102,241,0);
  transition: all 0.3s ease;
}
.quick-action-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.45), 0 0 20px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.quick-action-btn.secondary {
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.quick-action-btn.secondary:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  transform: translateY(-2px);
}

/* ===== 数据统计卡片悬浮 ===== */
.stat-item {
  transition: all 0.3s var(--ease-out);
}
.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
}

/* ===== 模态框增强 ===== */
.modal-sheet {
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15), 0 0 60px rgba(99,102,241,0.05);
}

/* ===== 算力卡片增强 ===== */
.balance-card {
  box-shadow:
    0 8px 32px rgba(99,102,241,0.25),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* ===== 个人资料卡增强 ===== */
.profile-card-v2 {
  box-shadow:
    0 8px 32px rgba(99,102,241,0.25),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* ===== 充值预览增强 ===== */
.recharge-preview {
  background: linear-gradient(135deg, var(--primary-muted), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.1);
}

/* ===== 空状态增强 ===== */
.empty-state {
  animation: emptyFadeIn 0.6s ease-out;
}
@keyframes emptyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 趋势图柱状增强 ===== */
.chart-bar {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  box-shadow: 0 -2px 8px rgba(99,102,241,0.2);
  transition: height 0.8s var(--ease-out), box-shadow 0.3s;
}
.chart-bar:hover {
  box-shadow: 0 -2px 16px rgba(99,102,241,0.35);
}

/* ===== 时间线增强 ===== */
.timeline::before {
  background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--primary-dark), var(--primary-light));
  box-shadow: 0 0 6px rgba(99,102,241,0.2);
}
.timeline-dot {
  box-shadow: 0 0 0 3px var(--bg), 0 0 8px rgba(99,102,241,0.3);
}

/* ===== 日期筛选按钮增强 ===== */
.date-filter-btn {
  transition: all 0.3s ease;
}
.date-filter-btn.active {
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* ===== 滑块增强 ===== */
.slider-thumb {
  box-shadow: 0 2px 12px rgba(99,102,241,0.35), 0 0 0 3px rgba(99,102,241,0.1);
}
.slider-thumb:active {
  box-shadow: 0 4px 20px rgba(99,102,241,0.45), 0 0 0 5px rgba(99,102,241,0.15);
}

/* ===== 下拉选择器增强 ===== */
.store-dropdown {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(99,102,241,0.05);
}

/* ===== 门店列表项增强 ===== */
.store-item {
  transition: all 0.3s var(--ease-out);
}
.store-item:hover {
  transform: translateX(4px);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}

/* ===== 新手引导增强 ===== */
.onboarding-card {
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 40px rgba(99,102,241,0.08);
}
.onboarding-icon {
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

/* ===== 认证输入框增强 ===== */
.auth-input {
  transition: all 0.3s ease;
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted), 0 0 16px rgba(99,102,241,0.1);
  transform: translateY(-1px);
}

/* ===== 确认弹窗高亮 ===== */
.confirm-detail-row.highlight {
  background: linear-gradient(135deg, var(--primary-muted), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.1);
}

/* ===== 设置项增强 ===== */
.settings-item {
  transition: all 0.25s ease;
}
.settings-item:active {
  background: var(--primary-muted);
  border-radius: 10px;
  padding-left: 12px;
  transform: scale(0.99);
}

/* ===== 退出按钮增强 ===== */
.logout-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.logout-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.logout-btn:hover::before {
  transform: translateX(100%);
}
.logout-btn:active {
  background: rgba(239,68,68,0.08);
  transform: translateY(1px);
}

/* ===== 申请页头部增强 ===== */
.agent-apply-header {
  position: relative;
}
.agent-apply-logo {
  box-shadow: 0 8px 32px rgba(99,102,241,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
  animation: logoPulse 3s ease-in-out infinite;
}

/* ===== 充值金额标签增强 ===== */
.quick-amount-tag {
  transition: all 0.3s ease;
}
.quick-amount-tag:hover, .quick-amount-tag.active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}

/* ===== 响应式：隐藏粒子在低性能设备 ===== */
@media (prefers-reduced-motion: reduce) {
  #ai-particles-canvas,
  .ai-auth-grid,
  .ai-logo-orbit,
  .ai-scan-overlay::after,
  .ai-hologram-card::before,
  .ai-particle,
  .ai-glow-bar {
    animation: none !important;
    display: none !important;
  }
  .ai-logo-core,
  .ai-logo-core::after {
    animation: none !important;
  }
}

/* ===== 暗色模式额外增强 ===== */
@media (prefers-color-scheme: dark) {
  .ai-toast {
    background: linear-gradient(135deg, rgba(30,30,50,0.98), rgba(15,15,35,0.99));
    border-color: rgba(99,102,241,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.12);
  }
  .ai-auth-grid {
    background-image:
      linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  }
  .balance-card {
    box-shadow: 0 8px 32px rgba(99,102,241,0.3), 0 0 0 1px rgba(255,255,255,0.05) inset;
  }
}

/* ===== 页面加载渐入 ===== */
.page-enter {
  animation: pageEnter 0.5s var(--ease-out) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 卡片交错进入动画 ===== */
.stagger-in > * {
  opacity: 0;
  animation: staggerFadeIn 0.5s var(--ease-out) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   Agent 全局 UI 优化 v20260702
   ================================================================ */

/* 1. 修复底部 Tab 遮挡内容 */
#mainApp .container {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* 2. 全局卡片风格统一：更柔和的阴影与清晰的边框 */
.card,
.chart-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 3. 输入框统一增强 */
.form-input,
.form-textarea,
.auth-input,
.modal-sheet .form-input {
  border-width: 1.5px;
  border-color: rgba(0, 0, 0, 0.08);
}
.form-input:focus,
.form-textarea:focus,
.auth-input:focus,
.modal-sheet .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-muted);
}

/* 4. 门店下拉选择器层级与可读性强化 */
.store-dropdown {
  z-index: 250;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.store-option-item {
  border-bottom-color: rgba(0,0,0,0.04);
}
.store-option-item:active {
  background: var(--primary-muted);
}

/* 5. Tab 栏视觉增强 */
.tab-bar {
  box-shadow: 0 -2px 16px rgba(0,0,0,0.05);
}

/* 6. 快捷操作按钮阴影统一 */
.quick-action-btn.primary {
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.quick-action-btn.secondary {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 7. 时间线可读性优化 */
.timeline::before {
  width: 3px;
  left: 6.5px;
}
.timeline-dot {
  left: -21.5px;
}

/* 8. 统计项悬浮效果 */
.stat-item:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.15);
}

/* 9. 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 10. 成功弹窗内容背景 */
.success-modal__content {
  border: 1px solid var(--border);
}

/* 11. 暗色模式全局优化 */
@media (prefers-color-scheme: dark) {
  .card,
  .chart-card {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .form-input,
  .form-textarea,
  .auth-input,
  .modal-sheet .form-input,
  .store-combobox {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--card-bg-solid);
  }
  .store-dropdown {
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .store-option-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
  .tab-bar {
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .stat-item:hover {
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.25);
  }
  .quick-action-btn.secondary {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .modal-sheet {
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
  }
  .timeline::before {
    box-shadow: 0 0 6px rgba(99,102,241,0.15);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--divider);
  }
}

/* ===== 成功弹窗样式 ===== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.success-modal.visible {
  opacity: 1;
  visibility: visible;
}
.success-modal__content {
  background: var(--card-bg-solid);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  max-width: 280px;
  width: 90%;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.success-modal.visible .success-modal__content {
  transform: scale(1);
}
.success-modal__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: successIconPulse 0.6s var(--ease-out);
}
@keyframes successIconPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.success-modal__icon svg {
  animation: successCheckDraw 0.5s ease-out 0.3s both;
}
@keyframes successCheckDraw {
  from { stroke-dasharray: 100; stroke-dashoffset: 100; }
  to { stroke-dasharray: 100; stroke-dashoffset: 0; }
}
.success-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.success-modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ================================================================
   工作台重构 v20260703
   ================================================================ */

/* 顶部个人信息条 */
.agent-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg-solid);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.agent-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.agent-header-info {
  flex: 1;
  min-width: 0;
}
.agent-header-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.agent-header-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.agent-header-tag {
  padding: 4px 12px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 累计数据 3列 grid */
.data-grid {
  display: flex;
  gap: 0;
  padding: 8px 0;
}
.data-grid-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
}
.data-grid-item:not(:last-child) {
  border-right: 1px solid var(--divider);
}
.data-grid-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.data-grid-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 推广码增强 */
.referral-card {
  text-align: center;
  padding-bottom: 20px;
}
.referral-code-big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--primary);
  margin: 12px 0 8px;
  font-family: 'Courier New', monospace;
}
.referral-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 8px;
}
.referral-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.referral-actions button {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 10px;
}

/* 算力流水筛选 - pill 样式 */
.ledger-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ledger-filter-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.ledger-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.ledger-filter-btn:active {
  opacity: 0.8;
}
