/* ============================================================
   Merchant UI v3 - 全面重构 · AI优先体验 · 现代美学
   ============================================================ */

/* ===== 基础动画关键帧 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 124, 134,0.3); }
  50%      { box-shadow: 0 0 0 10px rgba(18, 124, 134,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ai-typing {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
@keyframes statusDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ===== 页面容器入场动画 ===== */
@keyframes containerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.container {
  animation: containerFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ===== Top Bar 顶部导航栏 - AI 风格重构 ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 0 -16px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--system-bg) 0%, var(--bg) 30%, rgba(255,255,255,0.85) 100%);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .top-bar {
    background: linear-gradient(180deg, var(--system-bg) 0%, var(--bg) 30%, rgba(15,15,26,0.85) 100%);
  }
}
.top-bar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 60%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-bar-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(18, 124, 134,0.3);
  animation: aiTagPulse 3s ease-in-out infinite;
}
@keyframes aiTagPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(18, 124, 134,0.3); }
  50% { box-shadow: 0 2px 14px rgba(18, 124, 134,0.5); }
}
.top-bar-ai-tag svg {
  width: 10px;
  height: 10px;
}
.top-bar-sparkle {
  display: flex;
  align-items: center;
  animation: sparkleRotate 4s linear infinite;
}
@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(-15deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}
.top-bar-sparkle svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(18, 124, 134,0.4));
}
.top-bar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-muted), rgba(18, 124, 134,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1.5px solid rgba(18, 124, 134,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
}
.top-bar-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.top-bar-badge:hover::before { opacity: 0.6; }
.top-bar-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(18, 124, 134,0.2);
}
.top-bar-badge:active { transform: scale(0.95); }
.top-bar-badge svg {
  width: 18px;
  height: 18px;
}

/* ===== Tab 内容区 ===== */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.tab-content.active {
  display: block;
  opacity: 1;
}
/* 注意：不使用 transform，避免创建新的包含块导致内部 position:fixed 弹窗定位异常 */
@keyframes tabEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 首页欢迎栏 ===== */
.dash-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
  animation: fadeInUp 0.5s ease-out;
}
.dash-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-welcome-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dash-header-store {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.dash-header-right { display: flex; align-items: center; }
.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  backdrop-filter: blur(8px);
}
.dash-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  animation: statusDot 2s ease-in-out infinite;
}

/* ===== 余额大卡片 ===== */
.balance-hero-card {
  position: relative;
  /* 青玉主卡 + 雅金边光：财位清晰但不土气 */
  background: linear-gradient(145deg, #146360 0%, #1B7C7A 52%, #2F9A96 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(20, 99, 96, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  animation: fadeInUp 0.6s ease-out 0.05s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.balance-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(20, 99, 96, 0.4);
}
.balance-hero-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.balance-hero-card::after {
  content: '';
  position: absolute;
  bottom: -36%; left: -8%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.22) 0%, transparent 62%);
  pointer-events: none;
}
.balance-hero-glow {
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, rgba(224, 201, 146, 0.55), rgba(47, 154, 150, 0.2), rgba(20, 99, 96, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}
.balance-hero-particles {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.balance-hero-particles .particle {
  position: absolute; width: 3px; height: 3px;
  border-radius: 50%; background: rgba(255,255,255,0.25);
  animation: particleFloat 6s ease-in-out infinite;
}
.balance-hero-particles .particle:nth-child(1) { top:20%; left:10%; animation-delay:0s; }
.balance-hero-particles .particle:nth-child(2) { top:60%; left:85%; animation-delay:0.8s; }
.balance-hero-particles .particle:nth-child(3) { top:35%; left:50%; animation-delay:1.6s; }
.balance-hero-particles .particle:nth-child(4) { top:75%; left:25%; animation-delay:2.4s; }
.balance-hero-particles .particle:nth-child(5) { top:15%; left:70%; animation-delay:3.2s; }
.balance-hero-particles .particle:nth-child(6) { top:50%; left:90%; animation-delay:4s; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50%      { transform: translateY(-18px) scale(1.3); opacity: 0.5; }
}
.balance-hero-content {
  position: relative; z-index: 1;
}
.balance-hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.72);
  margin-bottom: 8px; font-weight: 500;
}
.balance-hero-value {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.balance-hero-num {
  font-size: 52px; font-weight: 800; color: #fff; line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.balance-hero-unit {
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.65);
}
.balance-hero-hint {
  font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5;
}
.balance-hero-recharge {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.balance-hero-recharge:hover {
  background: rgba(255,255,255,0.22);
}
.balance-hero-recharge:active {
  transform: scale(0.95);
}
.balance-hero-recharge svg {
  width: 15px; height: 15px;
}

/* ===== KPI 数据区 ===== */
.dash-kpi-section {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.section-label-v2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px; padding: 0 4px;
}
.section-label-icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(18, 124, 134,0.1);
}
.section-label-icon svg {
  width: 16px; height: 16px;
}
.dash-kpi-row {
  display: flex; gap: 10px;
}
.dash-kpi-item {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-kpi-item:hover {
  border-color: rgba(18, 124, 134,0.18);
  box-shadow: 0 6px 20px rgba(18, 124, 134,0.08);
  transform: translateY(-2px);
}
.dash-kpi-item:active {
  transform: scale(0.97);
}
.dash-kpi-icon {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.dash-kpi-icon svg {
  width: 20px; height: 20px;
}
.dash-kpi-info {
  flex: 1; min-width: 0;
}
.dash-kpi-num {
  font-size: 24px; font-weight: 800;
  color: var(--text-primary);
  line-height: 1; letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(18, 124, 134,0.08);
  transition: all 0.3s ease;
}
.dash-kpi-label {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

/* ===== 主CTA按钮（一键AI引流） ===== */
.cta-main-btn {
  position: relative; width: 100%; padding: 0; border: none;
  border-radius: var(--radius-lg);
  background: var(--cta-gradient);
  cursor: pointer; overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--cta-shadow);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  animation: fadeInUp 0.6s ease-out 0.15s both, pulse-glow 3s ease-in-out 0.6s infinite;
}
.cta-main-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(176, 122, 56, 0.28);
}
.cta-main-glow {
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, rgba(228, 200, 120, 0.65), rgba(205, 176, 106, 0.3), rgba(176, 122, 56, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}
.cta-main-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.7s ease;
}
.cta-main-btn:hover::before {
  left: 100%;
}
.cta-main-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
}
.cta-main-icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--cta-on-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--cta-ink) 12%, transparent);
  color: var(--cta-ink);
}
.cta-main-text {
  flex: 1; text-align: left;
}
.cta-main-title {
  font-size: 17px; font-weight: 800; color: var(--cta-ink); margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.cta-main-sub {
  font-size: 12px; color: var(--cta-ink-soft); font-weight: 500;
}
.cta-main-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cta-on-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--cta-ink) 12%, transparent);
  color: var(--cta-ink);
  transition: all 0.3s ease;
}
.cta-main-btn:hover .cta-main-arrow {
  filter: brightness(0.96);
  transform: translateX(4px);
}

/* ===== 快捷操作网格 ===== */
.dash-quick-grid {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--card-bg), rgba(18, 124, 134, 0.015));
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.quick-grid-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 124, 134, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.quick-grid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 124, 134,0.1);
  border-color: rgba(18, 124, 134,0.22);
}
.quick-grid-btn:hover::before { opacity: 1; }
.quick-grid-btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(18, 124, 134,0.05);
}
.quick-grid-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.quick-grid-btn:hover .quick-grid-icon {
  transform: scale(1.08);
}
.quick-grid-icon svg {
  width: 20px; height: 20px;
}
.quick-grid-label {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}

/* ===== AI 洞察气泡 ===== */
.ai-insight-bubble {
  display: flex; gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.05), rgba(42, 156, 170, 0.02));
  border: 1px solid rgba(18, 124, 134,0.1);
  border-radius: var(--radius);
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}
.ai-insight-bubble::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}
.ai-insight-avatar {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(18, 124, 134,0.28);
}
.ai-insight-body {
  flex: 1; min-width: 0;
}
.ai-insight-title {
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 6px;
}
.ai-insight-text {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}

/* ===== 待办提醒卡片 ===== */
.dash-todo-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px; margin-bottom: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease-out;
}
.dash-todo-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
}
.dash-todo-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.dash-todo-item:hover {
  border-color: rgba(18, 124, 134,0.12);
  transform: translateX(3px);
}
.dash-todo-item:last-child { margin-bottom: 0; }
.dash-todo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--primary-muted);
}
.dash-todo-icon svg { width: 18px; height: 18px; }
.dash-todo-content { flex: 1; min-width: 0; }
.dash-todo-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 2px; line-height: 1.4;
}
.dash-todo-desc {
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}
.dash-todo-action {
  padding: 7px 14px;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.dash-todo-action:active { background: var(--primary-dark); transform: scale(0.96); }

/* ===== 完善度引导卡片 ===== */
.dash-guide-card {
  background: linear-gradient(135deg, rgba(18, 124, 134,0.06), rgba(42, 156, 170,0.06));
  border-radius: var(--radius);
  border: 1px solid rgba(18, 124, 134,0.15);
  padding: 16px; margin-bottom: 12px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease-out;
}
.dash-guide-content { display: flex; flex-direction: column; gap: 12px; }
.dash-guide-header { display: flex; align-items: center; justify-content: space-between; }
.dash-guide-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.dash-guide-percent { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1; }
.dash-guide-progress { width: 100%; height: 8px; background: var(--primary-muted); border-radius: 4px; overflow: hidden; }
.dash-guide-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-guide-hint { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.dash-guide-btn {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s ease;
}
.dash-guide-btn:active { background: var(--primary-dark); transform: scale(0.97); }

/* ===== GEO 英雄卡片 ===== */
.geo-hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(18, 124, 134,0.06) 0%, rgba(42, 156, 170, 0.03) 50%, rgba(18, 124, 134,0.04) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 124, 134,0.12);
  padding: 24px 20px; margin-bottom: 16px; overflow: hidden;
}
.geo-hero-card::before {
  content: ''; position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(18, 124, 134,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.geo-hero-card::after {
  content: ''; position: absolute;
  bottom: -30%; left: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(42, 156, 170,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.geo-hero-glow {
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.25), rgba(42, 156, 170, 0.1), rgba(18, 124, 134,0.08), rgba(42, 156, 170,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
}
.geo-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.geo-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(18, 124, 134,0.3);
}
.geo-hero-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.geo-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.geo-status-dot.online { background: #10B981; box-shadow: 0 0 8px #10B981; animation: statusDot 2s ease-in-out infinite; }
.geo-hero-main { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; position: relative; z-index: 1; }
.geo-score-wrap { flex-shrink: 0; }
.geo-score-ring-large { position: relative; width: 120px; height: 120px; }
.geo-score-ring-large svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.geo-score-ring-large .ring-bg { fill: none; stroke: rgba(18, 124, 134,0.08); stroke-width: 8; }
.geo-score-ring-large .ring-fill {
  fill: none; stroke: url(#geoGrad); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ring-value-large { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num-large { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.ring-label-large { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.geo-hero-stats { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.geo-hero-stat { text-align: left; }
.geo-hero-stat-num { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; letter-spacing: -0.5px; }
.geo-hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.geo-suggestion {
  font-size: 12px; color: var(--primary); margin-bottom: 12px; position: relative; z-index: 1;
  padding: 10px 12px; background: var(--primary-muted);
  border-radius: 10px; border-left: 3px solid var(--primary);
}
.geo-ugc-bar {
  background: rgba(18, 124, 134,0.04); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px;
  position: relative; z-index: 1;
  border: 1px solid rgba(18, 124, 134,0.06);
}
.geo-ugc-title { font-size: 11px; font-weight: 600; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.geo-ugc-sub { font-size: 10px; color: var(--text-muted); font-weight: 400; }
.geo-ugc-items { display: flex; justify-content: space-between; }
.geo-ugc-item { text-align: center; }
.geo-ugc-num { display: block; font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.geo-ugc-name { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.geo-engine-dots { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ===== Balance Card (概览页) ===== */
.balance-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); padding: 24px 20px;
  color: #fff; margin-bottom: 12px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(18, 124, 134,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.5s ease-out;
}
.balance-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(18, 124, 134,0.35); }
.balance-card::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card::after {
  content: ''; position: absolute;
  bottom: -30%; left: -10%; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.balance-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.balance-particles .particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); animation: particleFloat 6s ease-in-out infinite; }
.balance-particles .particle:nth-child(1) { top:20%; left:10%; animation-delay:0s; }
.balance-particles .particle:nth-child(2) { top:60%; left:80%; animation-delay:1s; }
.balance-particles .particle:nth-child(3) { top:40%; left:50%; animation-delay:2s; }
.balance-particles .particle:nth-child(4) { top:80%; left:30%; animation-delay:3s; }
.balance-particles .particle:nth-child(5) { top:10%; left:70%; animation-delay:4s; }
.balance-label { font-size: 13px; opacity: 0.82; margin-bottom: 4px; position: relative; z-index: 1; }
.balance-value { font-size: 32px; font-weight: 800; position: relative; z-index: 1; }
.balance-unit { font-size: 14px; font-weight: 400; opacity: 0.82; margin-left: 4px; }

/* ===== 低余额横幅 ===== */
.low-balance-banner {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; position: relative; overflow: hidden;
  animation: fadeInUp 0.4s ease-out, pulseWarning 2s ease-in-out infinite;
}
@keyframes pulseWarning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.low-balance-banner::before {
  content: ''; position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.04), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.low-balance-banner-close {
  position: absolute; top: 8px; right: 10px;
  width: 26px; height: 26px; border: none; background: none;
  color: var(--warning); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; -webkit-tap-highlight-color: transparent; z-index: 1;
  transition: background 0.2s;
}
.low-balance-banner-close:hover { background: rgba(245,158,11,0.1); }
.low-balance-banner-text { font-size: 14px; font-weight: 600; color: var(--warning); margin-bottom: 12px; line-height: 1.5; padding-right: 28px; }
.low-balance-banner-btns { display: flex; gap: 10px; }
.low-balance-banner-btns button { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: all 0.2s; }
.btn-contact-agent {
  background: var(--card-bg); border: 1px solid rgba(245,158,11,0.25); color: var(--warning);
}
.btn-contact-agent:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.btn-contact-agent:active { background: rgba(245,158,11,0.12); }
.btn-self-recharge { background: var(--warning); border: none; color: #fff; }
.btn-self-recharge:active { background: var(--accent); }

/* ===== 统计网格 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px;
  text-align: center; backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}
.stat-item:nth-child(1) { animation-delay: 0.05s; animation-fill-mode: both; }
.stat-item:nth-child(2) { animation-delay: 0.1s; animation-fill-mode: both; }
.stat-item:nth-child(3) { animation-delay: 0.15s; animation-fill-mode: both; }
.stat-item:hover { border-color: rgba(18, 124, 134,0.15); box-shadow: 0 4px 12px rgba(18, 124, 134,0.06); transform: translateY(-1px); }
.stat-value {
  font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(18, 124, 134,0.1);
}
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ===== 趋势图 ===== */
.trend-card { padding: 16px 16px 12px; position: relative; animation: fadeInUp 0.5s ease-out; }
.trend-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.trend-tabs { display: inline-flex; background: var(--primary-muted); border-radius: 8px; padding: 2px; }
.trend-tab {
  padding: 5px 12px; font-size: 12px; color: var(--text-secondary);
  cursor: pointer; border-radius: 6px; transition: all 0.25s;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.trend-tab.active {
  background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(18, 124, 134,0.3);
}
.trend-tab:hover:not(.active) { color: var(--primary); }
.trend-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.trend-summary-item { background: var(--primary-muted); border-radius: 10px; padding: 10px 12px; transition: all 0.2s; }
.trend-summary-item:hover { transform: scale(1.02); }
.trend-summary-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; }
.trend-summary-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.trend-chart { height: 160px; position: relative; width: 100%; }
.trend-chart svg { display: block; width: 100%; height: 100%; }
.trend-empty { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 13px; }

/* ===== 生成记录 ===== */
.record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--divider);
  position: relative; padding-left: 24px;
  transition: all 0.2s ease;
}
.record-item:last-child { border-bottom: none; }
.record-item:hover {
  background: var(--bg-secondary); margin: 0 -12px; padding: 12px 12px 12px 36px;
  border-radius: 8px;
}
.record-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0; position: absolute; left: 0; top: 16px;
  box-shadow: 0 0 6px rgba(18, 124, 134,0.3);
}
.record-item::before {
  content: ''; position: absolute; left: 3px; top: 28px; bottom: -12px;
  width: 1.5px; background: var(--divider);
}
.record-item:last-child::before { display: none; }
.record-info { flex: 1; min-width: 0; }
.record-summary {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.record-summary.expanded {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.record-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
/* 算力消耗标签：嵌在 record-meta 行内 */
.record-credits {
  display: inline-block; margin-left: 8px;
  padding: 1px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  background: rgba(18, 124, 134,0.1); color: var(--primary);
  vertical-align: middle;
}
.record-code {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--primary-muted); padding: 3px 10px;
  border-radius: 6px; font-family: 'SF Mono', monospace; flex-shrink: 0;
}

/* ===== 核销功能 ===== */
.verify-section { text-align: center; padding: 20px 0; }
.verify-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-muted), rgba(18, 124, 134,0.06));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--primary-muted);
  box-shadow: 0 4px 16px rgba(18, 124, 134,0.08);
}
.verify-icon svg { width: 32px; height: 32px; }
.verify-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.verify-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.verify-input-row { display: flex; gap: 10px; }
.verify-input-row .form-input {
  flex: 1; text-align: center; letter-spacing: 8px;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  font-family: 'SF Mono', monospace;
}
.verify-input-row button {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(18, 124, 134,0.25);
  position: relative; overflow: hidden;
}
.verify-input-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(18, 124, 134,0.35);
}
.verify-input-row button:active { background: var(--primary-dark); transform: scale(0.94); box-shadow: 0 2px 8px rgba(18, 124, 134,0.15); }
.verify-input-row button:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }
.verify-result { margin-top: 24px; display: none; }
.verify-result.visible { display: block; animation: fadeInUp 0.35s ease-out; }
.verify-result-card { border-radius: var(--radius); padding: 24px; text-align: center; }
.verify-result-card.success { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); }
.verify-result-card.fail { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); }
.verify-result-icon { font-size: 40px; margin-bottom: 8px; }
.verify-result-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.verify-result-card.success .verify-result-title { color: var(--success); }
.verify-result-card.fail .verify-result-title { color: var(--error); }
.verify-result-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.verify-content-box {
  background: var(--card-bg); border-radius: 8px; padding: 14px;
  text-align: left; font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow-y: auto;
}

/* ===== 核销历史 ===== */
.verify-history { margin-top: 16px; }
.verify-history-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.verify-history-list { border-top: 1px solid var(--divider); }
.verify-log-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--divider);
  transition: background 0.2s;
}
.verify-log-item:last-child { border-bottom: none; }
.verify-log-item:hover { background: var(--bg-secondary); margin: 0 -8px; padding: 12px 8px; border-radius: 8px; }
.verify-log-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.verify-log-icon.verified { background: rgba(16,185,129,0.08); }
.verify-log-icon.expired { background: rgba(239,68,68,0.08); }
.verify-log-info { flex: 1; min-width: 0; }
.verify-log-code { font-size: 14px; font-weight: 600; font-family: 'SF Mono', monospace; }
.verify-log-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.verify-log-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.verify-log-status.verified { background: rgba(16,185,129,0.08); color: var(--success); }
.verify-log-status.expired { background: rgba(239,68,68,0.08); color: var(--error); }
.verify-history-more {
  width: 100%; padding: 10px; background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  margin-top: 10px; -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.verify-history-more:hover { border-color: var(--primary); color: var(--primary); }
.verify-history-more:disabled { opacity: 0.5; }

/* ===== 分享渠道滚动栏 ===== */
.channel-scroll-bar {
  display: flex; gap: 10px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0 8px;
}
.channel-scroll-bar::-webkit-scrollbar { display: none; }
.channel-tab {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card-bg); cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none; -webkit-tap-highlight-color: transparent;
  position: relative; min-width: 80px;
}
.channel-tab:active { transform: scale(0.92); }
.channel-tab.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-muted), rgba(42, 156, 170, 0.06));
  box-shadow: 0 0 0 3px rgba(18, 124, 134,0.1), 0 4px 12px rgba(18, 124, 134,0.08);
}
.channel-tab:hover:not(.selected) { border-color: rgba(18, 124, 134,0.35); box-shadow: 0 2px 8px rgba(18, 124, 134,0.04); }
.channel-tab-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.channel-tab-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.channel-tab-default { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; display: none; z-index: 2; }
.channel-tab.is-default .channel-tab-default { display: block; }
.channel-tab-check { position: absolute; bottom: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; display: none; align-items: center; justify-content: center; }
.channel-tab.selected .channel-tab-check { display: flex; }

/* ===== 默认渠道栏 ===== */
.default-channel-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--primary-muted);
  border-radius: 10px; margin-top: 12px;
  transition: all 0.3s ease;
}
.default-channel-label { font-size: 13px; color: var(--text-secondary); }
.default-channel-name {
  font-size: 14px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1;
}
.default-channel-name svg {
  width: 18px; height: 18px; flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.set-default-btn {
  padding: 6px 14px; background: var(--primary); color: #fff;
  border: none; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.set-default-btn:active { transform: scale(0.95); }
.set-default-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 自定义确认弹窗（替代浏览器 confirm，避免显示域名） ===== */
.confirm-sheet {
  padding: 28px 20px 20px;
  max-width: 320px;
  margin: auto;
  border-radius: 16px;
}
.confirm-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.confirm-message {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: break-word;
  white-space: pre-wrap;
}
.confirm-btns {
  width: 100%;
  margin-top: 0;
}

/* ===== WiFi 区域 ===== */
.wifi-compact { display: flex; flex-direction: column; gap: 12px; }
.wifi-switch-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.wifi-switch-label { font-size: 15px; font-weight: 600; }
.wifi-switch-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.wifi-fields { display: flex; flex-direction: column; gap: 12px; }
.wifi-pwd-wrap { position: relative; }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center;
  width: 32px; height: 32px; justify-content: center;
  border-radius: 8px; -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.pwd-toggle:hover { background: var(--bg-secondary); color: var(--text-primary); }
.pwd-toggle.active { color: var(--primary); }
.pwd-toggle svg { width: 16px; height: 16px; }

/* 通用密码显示/隐藏切换按钮（弹窗内密码框） */
.pwd-toggle-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  -webkit-tap-highlight-color: transparent; transition: all 0.2s;
  z-index: 3;
}
.pwd-toggle-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.pwd-toggle-btn.active { color: var(--primary); }
.pwd-toggle-btn svg { width: 16px; height: 16px; }
.pwd-input-wrap { position: relative; }

/* ===== 平台链接卡片 ===== */
.platform-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.platform-card:hover { border-color: rgba(18, 124, 134,0.15); box-shadow: 0 4px 14px rgba(18, 124, 134,0.06); }
.platform-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.platform-card-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(18, 124, 134, 0.03), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.platform-card-header:hover::before { opacity: 1; }
.platform-card-header:active { background: var(--primary-muted); transform: scale(0.996); }
.platform-card-header-left { display: flex; align-items: center; gap: 10px; }
.platform-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.platform-card-title { font-size: 15px; font-weight: 600; }
.platform-card-status { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.platform-card-status.configured { background: rgba(16,185,129,0.08); color: var(--success); }
.platform-card-status.unconfigured { background: rgba(156,163,175,0.1); color: var(--text-muted); }
.platform-card-arrow { font-size: 16px; color: var(--text-muted); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0; margin-left: 8px; }
.platform-card.expanded .platform-card-arrow { transform: rotate(90deg); }
.platform-card-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.platform-card.expanded .platform-card-body { max-height: 600px; overflow: visible; }
.platform-card-body-inner { padding: 8px 16px 16px; }

/* ===== 平台引导 ===== */
.guide-toggle-btn {
  width: 100%; padding: 10px; background: var(--primary-muted);
  border: none; border-radius: 8px; color: var(--primary);
  font-size: 13px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; margin-top: 8px;
  transition: all 0.2s;
}
.guide-toggle-btn:active { background: var(--primary); color: #fff; }
.platform-guide { margin-top: 10px; background: var(--primary-muted); border-radius: 10px; padding: 14px; animation: fadeInUp 0.25s ease-out; }
.guide-steps { display: flex; flex-direction: column; gap: 10px; }
.guide-step { display: flex; align-items: flex-start; gap: 10px; }
.guide-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.guide-step-text { font-size: 13px; color: var(--text-primary); line-height: 1.6; flex: 1; }
.guide-step-text code { background: rgba(18, 124, 134,0.12); color: var(--primary); padding: 1px 6px; border-radius: 4px; font-size: 12px; font-family: 'SF Mono', monospace; }

/* ===== 素材管理 ===== */
.media-cost-info { margin: 12px 0; }
.cost-card { background: var(--primary-muted); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cost-item { display: flex; justify-content: space-between; align-items: center; }
.cost-label { font-size: 14px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
.cost-label svg { width: 14px; height: 14px; }
.cost-value { font-size: 14px; font-weight: 700; color: var(--primary); }
.cost-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.media-category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.media-cat-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 500; border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.25s; background: var(--card-bg);
  display: inline-flex; align-items: center; gap: 4px;
}
.media-cat-tab.active { border-color: var(--primary); background: var(--primary-muted); color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(18, 124, 134,0.12); }
.media-cat-tab svg { width: 14px; height: 14px; }
.media-upload-zone {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: all 0.3s; background: var(--bg);
  position: relative; overflow: hidden;
}
.media-upload-zone:hover { border-color: var(--primary); background: var(--primary-muted); }
.media-upload-zone span:first-child { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; }
.media-upload-zone span:first-child svg { width: 18px; height: 18px; }
.upload-hint { font-size: 12px !important; font-weight: 400 !important; color: var(--text-muted); margin-top: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.media-grid-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); transition: all 0.2s; }
.media-grid-item:hover { border-color: var(--primary); transform: scale(1.02); }
.media-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.media-grid-item .media-cat-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,0.5); color: #fff; font-weight: 500; }
.media-grid-item .media-delete {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(239,68,68,0.85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; border: none;
  transition: all 0.2s;
  opacity: 0;
}
.media-grid-item:hover .media-delete { opacity: 1; }
.media-grid-item .media-delete:hover { background: #EF4444; transform: scale(1.1); }

/* ===== 渠道专属素材 ===== */
.channel-media-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
  overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; padding-bottom: 2px;
}
.channel-media-tabs::-webkit-scrollbar { display: none; }
.channel-media-tab {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px; border-radius: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s; min-width: 72px;
}
.channel-media-tab.active { background: var(--primary-muted); border-color: var(--primary); box-shadow: 0 2px 8px rgba(18, 124, 134,0.1); }
.channel-media-tab:hover:not(.active) { border-color: rgba(18, 124, 134,0.25); }
.channel-media-tab-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.channel-media-tab.active .channel-media-tab-name { color: var(--primary); }
.channel-media-tab-count { font-size: 10px; color: var(--text-muted); }
.channel-media-tab.active .channel-media-tab-count { color: var(--primary); opacity: 0.7; }
.channel-media-hint {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 10px 12px; background: var(--bg-secondary);
  border-radius: 10px; margin-bottom: 12px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}
.channel-hint-icon { flex-shrink: 0; display: flex; align-items: center; padding-top: 1px; color: var(--primary); }
.channel-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.channel-media-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--card-bg); transition: all 0.2s; }
.channel-media-item:hover { border-color: var(--primary); }
.channel-media-item img { width: 100%; height: 100%; object-fit: cover; }
.channel-media-order { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.channel-media-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(239,68,68,0.85); color: #fff; border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.channel-media-item:hover .channel-media-remove { opacity: 1; }
.channel-media-item.placeholder { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border); background: transparent; cursor: pointer; transition: all 0.2s; }
.channel-media-item.placeholder:hover { border-color: var(--primary); background: var(--primary-muted); }
.channel-media-item.placeholder svg { opacity: 0.25; transition: opacity 0.2s; }
.channel-media-item.placeholder:hover svg { opacity: 0.5; }

/* AI风格从通用素材添加按钮 */
.channel-media-add { margin-top: 14px; }
.ai-add-channel-btn {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.06) 0%, rgba(42, 156, 170, 0.04) 50%, rgba(201, 149, 108, 0.03) 100%), var(--card-bg);
  color: var(--text-primary); cursor: pointer;
  -webkit-tap-highlight-color: transparent; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ai-add-channel-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.45), rgba(42, 156, 170, 0.25), rgba(201, 149, 108, 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: opacity 0.3s; opacity: 0.6;
}
.ai-add-channel-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(18, 124, 134,0.16); }
.ai-add-channel-btn:hover::before { opacity: 1; }
.ai-add-channel-btn:active { transform: scale(0.97); }
.ai-add-channel-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary-gradient);
  color: #fff; box-shadow: 0 4px 12px rgba(27, 124, 122, 0.28);
  position: relative;
}
.ai-add-channel-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.25), rgba(42, 156, 170, 0.15));
  filter: blur(8px); z-index: -1; opacity: 0.5;
}
.ai-add-channel-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.ai-add-channel-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.ai-add-channel-sub { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.ai-add-channel-arrow {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-muted); color: var(--primary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ai-add-channel-btn:hover .ai-add-channel-arrow {
  transform: translateX(3px); background: var(--primary); color: #fff;
}

/* ===== 从通用素材添加弹窗 - 图片网格 ===== */
.add-to-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 0;
}
.add-to-channel-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.add-to-channel-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(18, 124, 134,0.15);
}
.add-to-channel-item:active {
  transform: scale(0.96);
}
.add-to-channel-item.adding {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 124, 134,0.2);
  transform: scale(0.95);
}
.add-to-channel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.add-to-channel-item:hover img {
  transform: scale(1.08);
}
.add-to-channel-cat {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.add-to-channel-item:hover .add-to-channel-cat {
  background: var(--primary);
  transform: translateY(-2px);
}
.add-to-channel-item .add-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.add-to-channel-item.adding .add-check {
  opacity: 1;
  transform: scale(1);
}

/* ===== 员工推广排行 ===== */
.promo-ranking-hint {
  font-size: 12px; color: var(--text-muted);
  padding: 4px 0 12px; line-height: 1.5;
}
.promo-ranking-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}
.promo-ranking-item:last-child { border-bottom: none; }
.promo-ranking-item:hover {
  background: var(--bg-secondary);
  border-radius: 8px; padding-left: 8px; padding-right: 8px;
}
.promo-ranking-rank {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  background: var(--bg-secondary); color: var(--text-secondary);
}
.promo-ranking-rank.top1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff; box-shadow: 0 2px 8px rgba(255,165,0,0.3);
  font-size: 18px;
}
.promo-ranking-rank.top2 {
  background: linear-gradient(135deg, #E8E8E8, #B0B0B0);
  color: #fff; box-shadow: 0 2px 8px rgba(176,176,176,0.3);
  font-size: 18px;
}
.promo-ranking-rank.top3 {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff; box-shadow: 0 2px 8px rgba(160,82,45,0.3);
  font-size: 18px;
}
.promo-ranking-info { flex: 1; min-width: 0; }
.promo-ranking-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-ranking-desc {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.promo-ranking-value {
  flex-shrink: 0;
  font-size: 18px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
/* 已达成奖励标签 */
.promo-rewards {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.promo-reward-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.12));
  color: #B45309;
  border: 1px solid rgba(245,158,11,0.3);
  line-height: 1.4;
}
.promo-reward-tag.is-settled {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.1));
  color: #15803D;
  border-color: rgba(34,197,94,0.3);
}
/* 奖励发放状态徽章（仅历史月份显示） */
.promo-reward-status {
  font-size: 10px; font-weight: 500;
  padding: 1px 6px; border-radius: 8px;
  margin-left: 2px;
}
.promo-reward-status.settled {
  background: rgba(34,197,94,0.15); color: #15803D;
}
.promo-reward-status.pending {
  background: rgba(239,68,68,0.12); color: #B91C1C;
}
/* 月份选择器 */
.promo-month-picker {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0;
}
.promo-month-btn {
  width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.promo-month-btn:active { background: var(--primary-muted); }
.promo-month-label {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  min-width: 130px; text-align: center;
}
.promo-back-current {
  margin-left: 8px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--primary-muted); color: var(--primary);
  border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ===== GEO 统计卡片 ===== */
.btn-refresh-geo {
  margin-left: auto; width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: var(--primary-muted); color: var(--primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-refresh-geo:hover { background: var(--primary); color: #fff; transform: rotate(180deg); }
.btn-refresh-geo svg { width: 14px; height: 14px; transition: transform 0.4s ease; }
.geo-stats-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 16px; padding: 14px;
  background: linear-gradient(135deg, rgba(18, 124, 134,0.03), rgba(42, 156, 170,0.01));
  border-radius: 12px; border: 1px solid rgba(18, 124, 134,0.06);
}
.geo-stats-item { text-align: center; }
.geo-stats-value { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; letter-spacing: -0.5px; }
.geo-stats-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.geo-engine-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.geo-engine-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 12px;
  transition: all 0.3s ease;
}
.geo-engine-item:hover { border-color: rgba(18, 124, 134,0.15); box-shadow: 0 2px 8px rgba(18, 124, 134,0.04); transform: translateY(-1px); }
.geo-recent-queries { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider); }
.geo-recent-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.geo-recent-title::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.geo-query-list { display: flex; flex-direction: column; gap: 10px; }
.geo-query-item { padding: 12px; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border); transition: all 0.2s; }
.geo-query-item:hover { border-color: rgba(18, 124, 134,0.12); background: var(--card-bg); }

/* ===== GEO 内容发布 ===== */
.geo-publish-form { margin-bottom: 16px; }
.geo-publish-form .form-group { margin-bottom: 16px; }
.geo-publish-form .form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.geo-publish-form .form-select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-bg); color: var(--text-primary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.geo-publish-form .form-select:hover { border-color: var(--primary); }
.geo-publish-form .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 124, 134,0.1); }
.geo-publish-form .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-bg); color: var(--text-primary);
  font-size: 14px; font-weight: 400; resize: vertical;
  min-height: 80px; max-height: 200px;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit; line-height: 1.5;
}
.geo-publish-form .form-textarea:hover { border-color: var(--primary); }
.geo-publish-form .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 124, 134,0.1); }
.platform-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.platform-checkbox {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-secondary);
  cursor: pointer; transition: all 0.25s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.platform-checkbox:hover { border-color: var(--primary); background: var(--primary-muted); }
.platform-checkbox:active { transform: scale(0.95); }
.platform-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); margin: 0; }
.platform-checkbox input[type="checkbox"]:checked + .platform-name { color: var(--primary); font-weight: 600; }
.platform-checkbox:has(input[type="checkbox"]:checked) { border-color: var(--primary); background: var(--primary-muted); }
.platform-name { font-size: 13px; font-weight: 500; color: var(--text-primary); transition: all 0.2s; }
.geo-publish-form .btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: var(--cta-gradient);
  color: var(--cta-ink); font-size: 15px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s ease; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--cta-shadow);
}
.geo-publish-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(176, 122, 56, 0.42); }
.geo-publish-form .btn-primary:active { transform: translateY(0); }
.geo-publish-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== 发布历史 ===== */
.geo-publish-history { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider); }
.publish-history-list { display: flex; flex-direction: column; gap: 10px; }
.publish-history-item { padding: 12px 14px; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border); transition: all 0.25s; }
.publish-history-item:hover { border-color: rgba(18, 124, 134,0.12); background: var(--card-bg); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(18, 124, 134,0.04); }
.publish-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.publish-platform { font-size: 13px; font-weight: 700; color: var(--primary); padding: 2px 8px; background: var(--primary-muted); border-radius: 6px; }
.publish-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.publish-history-content { font-size: 13px; color: var(--text-primary); line-height: 1.5; margin: 8px 0; word-break: break-word; }
.publish-history-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.publish-history-error { font-size: 11px; color: var(--error); margin-top: 6px; padding: 6px 8px; background: rgba(239,68,68,0.06); border-radius: 6px; border-left: 2px solid var(--error); }

/* ===== 充值/消费记录 ===== */
.ledger-filter-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ledger-filter-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--card-bg);
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ledger-filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(18, 124, 134,0.25); }
.ledger-filter-btn:hover:not(.active) { border-color: rgba(18, 124, 134, 0.4); color: var(--primary); background: linear-gradient(135deg, var(--card-bg), rgba(18, 124, 134, 0.03)); }
.ledger-filter-btn:active { transform: scale(0.94); }
.ledger-list { border-top: 1px solid var(--divider); }
.ledger-item { padding: 14px 0; border-bottom: 1px solid var(--divider); transition: background 0.2s; }
.ledger-item:hover { background: var(--bg-secondary); margin: 0 -8px; padding: 14px 8px; border-radius: 8px; }
.ledger-item:last-child { border-bottom: none; }
.ledger-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ledger-direction { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.ledger-direction.in { background: rgba(16,185,129,0.08); color: var(--success); }
.ledger-direction.out { background: rgba(239,68,68,0.08); color: var(--error); }
.ledger-credits { font-size: 18px; font-weight: 700; }
.ledger-credits.in { color: var(--success); }
.ledger-credits.out { color: var(--error); }
.ledger-item-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.ledger-source { padding: 2px 8px; border-radius: 4px; background: var(--primary-muted); color: var(--primary); font-size: 11px; font-weight: 500; }
.ledger-balance { font-size: 12px; color: var(--text-muted); }
.ledger-remark { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.ledger-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.ledger-page-btn { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-secondary); font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: all 0.2s; }
.ledger-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.ledger-page-btn:disabled { opacity: 0.4; cursor: default; }
.ledger-page-info { font-size: 13px; color: var(--text-muted); }

/* ===== 查看更多按钮 ===== */
.load-more-btn {
  width: 100%; padding: 12px; margin-top: 8px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--muted); }
.load-more-btn:active { transform: scale(0.97); }
.load-more-btn:disabled { opacity: 0.5; cursor: default; }

/* ===== 员工排名 ===== */
.ranking-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--divider);
  transition: all 0.2s;
}
.ranking-item:hover { background: var(--bg-secondary); border-radius: 8px; padding: 12px 8px; margin: 0 -8px; }
.ranking-item:last-child { border-bottom: none; }
.ranking-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ranking-rank.top1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.ranking-rank.top2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
.ranking-rank.top3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.ranking-rank.normal { background: var(--primary-muted); color: var(--primary); }
.ranking-info { flex: 1; min-width: 0; }
.ranking-name { font-size: 14px; font-weight: 600; }
.ranking-stats { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ranking-value { font-size: 15px; font-weight: 700; color: var(--primary); }

/* ===== 子Tab导航 ===== */
.sub-tab-bar {
  display: flex; gap: 4px; margin-bottom: 16px;
  padding: 4px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(18, 124, 134, 0.03));
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.sub-tab-item {
  flex: 1; text-align: center; padding: 10px 8px;
  border-radius: 14px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none; background: transparent; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.sub-tab-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--card-bg), rgba(18, 124, 134, 0.04));
  border-radius: 14px;
  opacity: 0; transform: scale(0.85);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(18, 124, 134,0.06);
}
.sub-tab-item:active { transform: scale(0.94); }
.sub-tab-item.active { color: var(--primary); font-weight: 600; }
.sub-tab-item.active::before { opacity: 1; transform: scale(1); box-shadow: 0 2px 12px rgba(18, 124, 134,0.1); }
.sub-tab-item svg { position: relative; z-index: 1; width: 14px; height: 14px; }
.sub-tab-item span { position: relative; z-index: 1; }

/* ===== 表单增强 ===== */
.form-input, .form-select, .form-textarea {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted), 0 2px 20px rgba(18, 124, 134,0.08);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-input:focus::placeholder { opacity: 0.4; }
.field-error { border-color: var(--error) !important; transition: border-color 0.2s; }
.field-error-msg { color: var(--error); font-size: 12px; margin-top: 4px; animation: fadeInUp 0.2s ease; }
.char-count { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--text-muted); pointer-events: none; }
.char-count.warning { color: var(--warning); }
.char-count.error { color: var(--error); }

/* ===== 保存按钮 ===== */
.save-btn {
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(18, 124, 134, 0.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
  border-radius: 14px;
  letter-spacing: 0.3px;
  gap: 8px;
}
.save-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.5; transition: opacity 0.3s;
}
.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(18, 124, 134, 0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.save-btn:hover::before { opacity: 0.8; }
.save-btn::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.save-btn:active::after { width: 300px; height: 300px; }
.save-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(18, 124, 134, 0.15);
}
.save-btn.saving { pointer-events: none; opacity: 0.7; }
.save-btn.saved { background: var(--success) !important; }
.save-btn.saved::before { background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05)); }
.save-bar { margin-top: 16px; }

/* ===== Toast & 模态框 ===== */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 24px; border-radius: 12px;
  background: var(--card-bg-solid);
  color: var(--text-primary); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; }
/* ===== 通用弹窗（统一、美观、不依赖透明背景） ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
  padding: 16px;
}
.modal-overlay.visible { display: flex; opacity: 1; }
.modal-sheet, .modal-content {
  position: relative;
  background: var(--card-bg-solid);
  border-radius: 20px;
  width: 100%; max-width: 380px; padding: 28px 20px 24px;
  max-height: 80vh; overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.95); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.modal-overlay.visible .modal-sheet,
.modal-overlay.visible .modal-content {
  transform: none; opacity: 1;
}
.modal-title {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 24px; text-align: center; padding: 0 28px;
}
.modal-body {
  max-height: 55vh; overflow-y: auto;
  margin: 0 -4px; padding: 0 4px;
}
.modal-close {
  position: absolute; top: 20px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.modal-close:active { transform: scale(0.92); }
.modal-close svg { width: 18px; height: 18px; }

.modal-btns { display: flex; gap: 12px; margin-top: 24px; }
.modal-btns button,
.modal-btns .btn-cancel,
.modal-btns .btn-confirm {
  flex: 1; padding: 13px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: all 0.2s ease;
  border: none;
}
.btn-cancel { background: var(--bg-secondary); color: var(--text-secondary); }
.btn-cancel:hover { background: var(--border); }
.btn-cancel:active { transform: scale(0.96); }
.btn-confirm { background: var(--cta-gradient); color: var(--cta-ink); box-shadow: var(--cta-shadow); font-weight: 700; }
.btn-confirm:hover { box-shadow: 0 8px 24px rgba(176, 122, 56, 0.42); }
.btn-confirm:active { transform: scale(0.96); }
.btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* 弹窗内开关（用于菜品/服务“主推”标记） */
.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; margin-bottom: 16px;
}
.switch-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.switch {
  width: 50px; height: 28px; border-radius: 14px;
  background: var(--border); position: relative; cursor: pointer;
  transition: background 0.25s ease; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.switch::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}
.switch.on { background: var(--primary); }
.switch.on::before { transform: translateX(22px); }

/* 深色模式下增强关闭状态开关的可见性 */
@media (prefers-color-scheme: dark) {
  .switch {
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  }
  .switch::before {
    background: #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  }
}

/* 记录展开按钮 */
.record-expand-btn {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--primary); font-weight: 500;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.record-expand-btn:hover { text-decoration: underline; }

/* 设置页按钮组 */
.settings-actions { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.settings-actions .btn-primary { width: 100%; justify-content: center; }
.btn-logout {
  width: 100%; padding: 10px;
  border: 1px solid var(--error); color: var(--error);
  background: transparent; border-radius: 12px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.btn-logout:hover { background: rgba(239, 68, 68, 0.06); }
.btn-logout:active { transform: scale(0.97); background: rgba(239, 68, 68, 0.1); }

/* ===== 代理商联系弹窗 ===== */
.agent-contact-sheet { max-width: 360px; padding-top: 32px; }
.agent-contact-body { padding: 8px 0 16px; text-align: center; }
.agent-contact-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 28px rgba(18, 124, 134,0.28);
}
.agent-contact-avatar svg { width: 32px; height: 32px; }
.agent-contact-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.agent-contact-role { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.agent-contact-divider { height: 1px; background: var(--border); margin: 18px 0; }
.agent-contact-info { margin-bottom: 14px; }
.agent-contact-info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.agent-contact-info-value {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.5px; font-family: 'SF Mono', monospace;
  background: var(--bg); padding: 10px 18px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); min-width: 180px; justify-content: center;
}
.agent-contact-copy {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease; background: var(--card-bg);
}
.agent-contact-copy:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(18, 124, 134,0.12); }
.agent-contact-copy:active { transform: scale(0.97); }
.agent-contact-copy svg { opacity: 0.6; transition: opacity 0.2s ease; }
.agent-contact-copy:hover svg { opacity: 1; }
.agent-contact-tip { font-size: 12px; color: var(--text-secondary); margin-top: 12px; padding: 0 8px; line-height: 1.5; }

/* ===== 充值/消费记录统计摘要 ===== */
.ledger-summary { display: flex; gap: 10px; margin-bottom: 14px; }
.ledger-summary-item {
  flex: 1; text-align: center; padding: 12px 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(8px);
}
.ledger-summary-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.ledger-summary-value { font-size: 20px; font-weight: 800; }
.ledger-summary-value.in { color: var(--success); }
.ledger-summary-value.out { color: var(--error); }
.ledger-summary-value.total { color: var(--primary); }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 32px 24px; color: var(--text-muted); }
.empty-state-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border-radius: 14px;
  border: 1px solid var(--border);
}
.empty-state-icon svg { width: 24px; height: 24px; opacity: 0.35; }

/* ===== Tip Bar ===== */
.tip-bar {
  position: relative; overflow: hidden;
  padding: 12px 16px; background: rgba(245,158,11,0.05);
  border-radius: var(--radius-sm); margin-bottom: 16px;
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid rgba(245,158,11,0.12);
}
.tip-bar::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--warning); border-radius: 2px 0 0 2px; }
.tip-bar-icon { display: inline-flex; align-items: center; flex-shrink: 0; margin-top: 1px; }
.tip-bar-icon svg { filter: drop-shadow(0 0 4px rgba(245,158,11,0.25)); }

/* ===== 底部Tab栏 =====
   注：底部Tab核心样式已迁移至 nav.css，此处仅保留
   merchant 页面专属的 Tab 细节覆盖 ===== */

/* ===== 返回首页按钮 ===== */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 4px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 12px;
}
.back-to-home:hover {
  background: var(--primary-muted);
}
.back-to-home:active {
  transform: scale(0.96);
  background: var(--primary-muted);
}
.back-to-home svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ===== 全局按钮通用样式 ===== */
.btn-primary {
  padding: 12px 20px; background: var(--cta-gradient);
  color: var(--cta-ink); border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--cta-shadow);
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(176, 122, 56, 0.42); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
  padding: 10px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all 0.25s; backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-secondary:active { transform: scale(0.97); }

/* ===== 添加按钮 ===== */
.add-btn, .dish-add-btn {
  position: relative; overflow: hidden;
  width: 100%; padding: 12px;
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.add-btn:hover, .dish-add-btn:hover { border-color: rgba(18, 124, 134, 0.45); color: var(--primary); background: linear-gradient(135deg, var(--primary-muted), rgba(42, 156, 170, 0.03)); }
.add-btn:active, .dish-add-btn:active { transform: scale(0.96); border-style: solid; }

/* ===== 上传进度 ===== */
.upload-progress { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 12px; }
.upload-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(18, 124, 134,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.upload-progress-text { font-size: 13px; color: var(--text-secondary); }

/* ===== 成功闪烁 ===== */
.success-flash { animation: successFlash 0.8s ease; }
@keyframes successFlash {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ===== AI打字光标 ===== */
.ai-typing-cursor {
  display: inline-block; width: 2px; height: 14px;
  background: var(--primary); margin-left: 2px;
  vertical-align: text-bottom;
  animation: ai-typing 0.8s step-end infinite;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== 选中颜色 ===== */
::selection { background: rgba(18, 124, 134,0.18); color: var(--text-primary); }

/* ===== Toast 优化 ===== */
.toast {
  position: fixed; top: 60px !important; left: 50% !important;
  right: auto !important; bottom: auto !important;
  transform: translate(-50%, -16px) scale(0.95) !important;
  width: auto !important; height: auto !important;
  background: rgba(31, 35, 41, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  z-index: 10000 !important;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 85vw !important;
  text-align: center !important;
  letter-spacing: 0.2px !important;
  white-space: normal !important;
}
.toast.visible, .toast.show { opacity: 1 !important; transform: translate(-50%, 0) scale(1) !important; }
@media (prefers-color-scheme: dark) {
  .toast {
    background: rgba(15, 15, 26, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 380px) {
  .balance-hero-num { font-size: 40px; }
  .dash-kpi-item { padding: 12px 10px; gap: 8px; }
  .dash-kpi-icon { width: 34px; height: 34px; }
  .dash-kpi-num { font-size: 18px; }
  .cta-main-content { padding: 16px 18px; gap: 12px; }
  .cta-main-icon { width: 40px; height: 40px; }
  .cta-main-title { font-size: 15px; }
}
@media (min-width: 768px) {
  .quick-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .dash-kpi-row { gap: 14px; }
}
