/* ================================================================
   马上潤 App - 全新设计系统 v2.0
   Design Token + Glass Morphism + 深浅色模式
   ================================================================ */

/* ===== 1. CSS 变量（Design Token） ===== */
:root {
  /* 主色系 */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3B82F6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* 功能色 */
  --color-success-50: #ecfdf5;
  --color-success-500: #10B981;
  --color-success-600: #059669;
  
  --color-danger-50: #fef2f2;
  --color-danger-500: #EF4444;
  --color-danger-600: #dc2626;
  
  --color-warning-50: #fffbeb;
  --color-warning-500: #F59E0B;
  --color-warning-600: #d97706;

  /* VIP 色 */
  --color-vip-50: #fdf2f8;
  --color-vip-500: #F43F5E;
  --color-vip-600: #e11d48;

  /* 中性色 */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* 背景色 */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.18);

  /* 文字色 */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);
  --shadow-primary: 0 4px 14px rgba(59, 130, 246, 0.35);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.06);

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* 字号 */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */

  /* 动画 */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* 安全区域 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 2. 基础重置与全局样式 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 数字等宽字体 */
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* 隐藏滚动条但保持滚动功能 */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== 3. App Shell 布局 ===== */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
}

.page {
  display: none;
  min-height: 100vh;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.page.active {
  display: block;
}

.page-content {
  padding: var(--space-lg) var(--space-lg) calc(80px + var(--safe-bottom));
}

/* ===== 4. 动画定义 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 5. 玻璃态效果 ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===== 6. 头部导航 ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  padding-top: calc(var(--space-md) + var(--safe-top));
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-md);
  padding-top: var(--safe-top);
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 7. 卡片组件 ===== */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card:active {
  transform: scale(0.99);
}

/* 总览卡片（渐变玻璃态） */
.overview-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3B82F6 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
}

.overview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.overview-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.overview-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.overview-badge {
  font-size: var(--text-xs);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.overview-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.overview-progress {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}

.progress-text {
  display: block;
  text-align: right;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

/* 项目详情卡片 */
.detail-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3B82F6 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.25);
}

.detail-card-inner {
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* 积分卡片 */
.points-card {
  background: linear-gradient(135deg, #3B82F6 0%, #6366f1 50%, #8b5cf6 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.3);
}

.points-card-inner {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

.points-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* ===== VIP 会员页面全新设计 ===== */

/* VIP 顶部导航 */
.nav-vip {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: none;
}

.nav-vip-simple {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 48px;
  padding-top: var(--safe-top);
}

.nav-vip-simple .nav-btn {
  margin-left: -2px;
}

.nav-btn-light {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn-light:active {
  background: rgba(255, 255, 255, 0.15);
}

/* VIP 顶部卡片（紧凑版） */
.vip-hero {
  position: relative;
  margin: 0 calc(var(--space-md) * -1);
  padding: 0 var(--space-md) 16px;
  padding-top: calc(var(--safe-top) + 48px);
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
}

.vip-hero-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.vip-hero-content {
  position: relative;
  z-index: 1;
}

/* 紧凑横向布局 */
.vip-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vip-hero-left {
  flex: 1;
}

.vip-hero-title-sm {
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: 0.3px;
}

.vip-hero-status-sm {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 3px 0 0 0;
}

.vip-hero-right {
  text-align: right;
}

.vip-points-compact {
  display: flex;
  align-items: baseline;
  gap: 3px;
  justify-content: flex-end;
}

.vip-points-num-sm {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.vip-points-unit-sm {
  font-size: 0.75rem;
  color: #fcd34d;
  font-weight: 500;
}

.vip-points-label-sm {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 3px 0 0 0;
}

.vip-hero-expiry-sm {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 区块标题 */
.vip-section-header {
  margin-top: 16px;
  margin-bottom: 10px;
}

.vip-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.vip-section-desc {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin: 4px 0 0 0;
}

/* ===== VIP 套餐卡片（紧凑横向版）===== */

.vip-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-plan-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  border: 1.5px solid var(--color-gray-100);
  transition: all 0.2s ease;
  overflow: hidden;
}

.vip-plan-card:active {
  transform: scale(0.98);
}

.vip-plan-card.plan-recommended {
  border-color: #fbbf24;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.12);
}

.vip-plan-card.plan-permanent {
  border: 1.5px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) border-box;
  box-shadow: 0 3px 16px rgba(251, 191, 36, 0.15);
}

.vip-plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 10px;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  border-bottom-right-radius: var(--radius-md);
  letter-spacing: 0.5px;
}

.vip-plan-badge.badge-trial {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.vip-plan-badge.badge-recommended {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.vip-plan-badge.badge-best {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* 横向一行布局 */
.vip-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vip-plan-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.vip-plan-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vip-plan-dot.dot-trial {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vip-plan-dot.dot-monthly {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.vip-plan-dot.dot-permanent {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.vip-plan-text {
  flex: 1;
  min-width: 0;
}

.vip-plan-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0;
  line-height: 1.3;
}

.vip-plan-sub {
  font-size: 0.7rem;
  color: var(--color-gray-400);
  margin: 2px 0 0 0;
}

.vip-plan-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vip-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.vip-plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vip-plan-price.price-trial {
  color: #2563eb;
}

.vip-plan-price.price-monthly {
  color: #d97706;
}

.vip-plan-price.price-permanent {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vip-plan-unit {
  font-size: 0.6875rem;
  color: var(--color-gray-400);
  font-weight: 500;
}

/* 小按钮 */
.vip-plan-btn-sm {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vip-plan-btn-sm:active {
  transform: scale(0.95);
}

.vip-plan-btn-sm.btn-trial {
  background: #eff6ff;
  color: #2563eb;
}

.vip-plan-btn-sm.btn-trial:active {
  background: #dbeafe;
}

.vip-plan-btn-sm.btn-monthly {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.vip-plan-btn-sm.btn-permanent {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}
}

/* 权益卡片网格 */
.vip-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vip-benefit-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  border: 1px solid var(--color-gray-100);
}

.vip-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.benefit-primary {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.benefit-amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.benefit-emerald {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.benefit-rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
  color: #e11d48;
}

.vip-benefit-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0 0 4px 0;
}

.vip-benefit-desc {
  font-size: 0.7rem;
  color: var(--color-gray-500);
  margin: 0;
  line-height: 1.5;
}

/* 底部说明 */
.vip-footer-note {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  text-align: center;
}

.vip-footer-note p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin: 0;
}

/* 旧VIP卡片兼容（保留以防其他地方用）*/
.vip-card {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.3);
}

.vip-card-inner {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* 个人中心卡片 */
.profile-card {
  background: linear-gradient(135deg, #3B82F6 0%, #6366f1 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
  position: relative;
}

.profile-card-inner {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

/* 顶部行：头像 + 用户信息 + 设置 */
.profile-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-avatar:active {
  transform: scale(0.95);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 8px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.1875rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
}

.profile-vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.profile-setting-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.profile-setting-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

/* 数据统计区 */
.profile-stats {
  margin-top: 18px;
}

.profile-stat-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-stat-main:active {
  background: rgba(255, 255, 255, 0.18);
}

.profile-stat-main-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.profile-stat-main-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.profile-stat-row {
  display: flex;
  align-items: center;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 4px 0;
}

.profile-stat-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-stat-item:active {
  opacity: 0.7;
}

.profile-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-stat-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.profile-code-num {
  font-size: 0.9375rem;
  letter-spacing: 1px;
}

.profile-stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0 0 0;
}

/* 填写邀请码/兑换码卡片（融入蓝色个人卡，提交成功后隐藏） */
.profile-bind-card {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
}

.profile-bind-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

/* 已绑定上级提示 */
.profile-bind-done {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #d1fae5;
}

.profile-bind-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.profile-bind-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
}

.profile-bind-form input::placeholder {
  color: #9ca3af;
}

.profile-bind-form button {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-primary-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.profile-bind-form button:active {
  transform: scale(0.96);
}

/* 菜单列表分隔线加深 */
.profile-menu .menu-item {
  border-color: var(--color-gray-100);
}

/* 菜单角标 */
.menu-badge {
  padding: 2px 8px;
  background: #fef3c7;
  color: #d97706;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  margin-right: 4px;
}

/* 邀请卡片 */
.invite-card {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  color: white;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

/* ===== 8. 表单组件 ===== */
.form-container {
  padding: 0 var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--duration-fast) ease;
}

.form-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: white;
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

/* ===== 9. 按钮组件 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary-500);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-primary-sm:active {
  transform: scale(0.96);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: white;
  color: var(--color-primary-600);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid var(--color-primary-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-300);
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-secondary-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.btn-secondary-icon:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
}

.btn-secondary-icon:active {
  transform: scale(0.97);
  background: var(--color-gray-100);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: var(--color-danger-500);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-danger-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.btn-danger-outline:hover {
  background: var(--color-danger-50);
  border-color: var(--color-danger-300);
}

.btn-danger-outline:active {
  transform: scale(0.98);
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-gradient:active {
  transform: scale(0.98);
}

/* ===== 10. 搜索框 ===== */
.search-box {
  position: relative;
  margin-bottom: var(--space-md);
}

/* ===== 11. 筛选标签栏 ===== */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.filter-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}

.filter-btn.active {
  background: var(--color-primary-500);
  color: white;
  border-color: var(--color-primary-500);
  box-shadow: var(--shadow-primary);
}

.filter-btn:active {
  transform: scale(0.96);
}

/* ===== 12. 项目列表 ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card:active {
  transform: scale(0.99);
}

/* ===== 前三名领奖台 ===== */
.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  align-items: end;
  margin-bottom: var(--space-lg);
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md) var(--space-sm) var(--space-md);
  cursor: pointer;
  min-width: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.podium-card:hover {
  transform: translateY(-2px);
}

.podium-card.rank-1 {
  padding-top: var(--space-lg);
  min-height: 176px;
  background: var(--color-primary-50);
  border: 1.5px solid var(--color-primary-500);
  box-shadow: var(--shadow-primary);
}

.podium-card.rank-2 {
  min-height: 140px;
  background: #f8fafc;
}

.podium-card.rank-3 {
  min-height: 120px;
}

.podium-badge {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.rank-1 .podium-badge {
  background: var(--color-primary-500);
  color: var(--text-inverse);
}

.rank-2 .podium-badge {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.rank-3 .podium-badge {
  color: var(--color-primary-600);
  border: 1px solid var(--color-primary-200);
}

.podium-name {
  width: 100%;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: var(--space-sm);
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podium-card.rank-1 .podium-name {
  font-size: var(--text-base);
}

.podium-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: var(--space-xs);
}

/* ===== 13. 账本列表 ===== */
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-lg) 0 var(--space-md);
}

/* ===== 14. 功能入口按钮 ===== */
.feature-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  box-shadow: var(--shadow-card);
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-btn:active {
  transform: scale(0.96);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 15. 菜单项 ===== */
.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.menu-item:hover {
  background: var(--color-gray-50);
}

.menu-item:active {
  background: var(--color-gray-100);
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

/* ===== 16. 底部导航栏 ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(12px + var(--safe-bottom));
  z-index: 40;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  color: var(--color-gray-400);
}

.tab-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.tab-item.active {
  color: var(--color-primary-500);
}

.tab-item.active .tab-label {
  font-weight: 600;
}

.tab-label {
  font-size: 11px;
  font-weight: 500;
}

/* Tab 指示器 */
.tab-item.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 20px;
  height: 3px;
  background: var(--color-primary-500);
  border-radius: 2px;
}

/* ===== 17. 弹窗/模态框 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp var(--duration-slow) var(--ease-out);
  overflow-y: auto;
}

.modal-datepicker {
  border-radius: var(--radius-2xl);
  max-height: 85vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--color-gray-100);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.modal-close:hover {
  background: var(--color-gray-200);
}

.modal-body {
  padding: 20px 24px 28px;
}

/* ===== 18. 日期选择器 ===== */
.datepicker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.datepicker-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.datepicker-arrow:hover {
  background: var(--color-gray-100);
}

.datepicker-month {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 24px 0;
  text-align: center;
}

.datepicker-weekdays span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gray-400);
  padding: 8px 0;
}

.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 24px;
  gap: 4px;
}

.datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
}

.datepicker-day:hover {
  background: var(--color-gray-100);
}

.datepicker-day.today {
  color: var(--color-primary-500);
  font-weight: 600;
}

.datepicker-day.selected {
  background: var(--color-primary-500);
  color: white;
  font-weight: 600;
}

.datepicker-day.weekend {
  color: var(--color-danger-500);
}

.datepicker-day.empty {
  cursor: default;
}

.datepicker-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

/* ===== 19. 空状态 ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state p:first-of-type {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.empty-state button,
.empty-state a {
  color: var(--color-primary-500);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
}

/* ===== 20. 免责声明 ===== */
.disclaimer {
  background: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-top: var(--space-lg);
}

.disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ===== 21. 骨架屏 ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-100) 25%,
    var(--color-gray-200) 50%,
    var(--color-gray-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.skeleton-line {
  height: 16px;
  border-radius: var(--radius-sm);
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 90%; }

/* ===== 22. Toast 提示 ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-left: 3px solid var(--color-success-500); }
.toast.error { border-left: 3px solid var(--color-danger-500); }
.toast.info { border-left: 3px solid var(--color-primary-500); }

/* ===== 23. 确认对话框 ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.dialog-overlay.show {
  opacity: 1;
}

.dialog-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 300px;
  padding: 24px 20px 16px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out);
}

.dialog-overlay.show .dialog-card {
  transform: scale(1);
}

.dialog-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.dialog-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}

.dialog-actions {
  display: flex;
  margin-top: 20px;
  border-top: 1px solid var(--color-gray-100);
  padding-top: 16px;
}

.dialog-btn {
  flex: 1;
  padding: 12px;
  font-size: var(--text-base);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  font-family: inherit;
  background: transparent;
  color: var(--color-primary-600);
}

.dialog-btn:active {
  background: var(--color-gray-100);
}

.dialog-btn.cancel {
  color: var(--text-secondary);
}

.dialog-btn.confirm {
  font-weight: 600;
}

.dialog-btn.danger {
  color: var(--color-danger-600);
}

.dialog-btn + .dialog-btn {
  border-left: 1px solid var(--color-gray-100);
}

/* ===== 24. 状态标签 ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
}

.status-badge.active {
  background: var(--color-success-50);
  color: var(--color-success-600);
}

.status-badge.new {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}

.status-badge.ended {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
}

/* ===== 25. 流水记录项 ===== */
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-gray-50);
  transition: background var(--duration-fast) ease;
}

.record-item:last-child {
  border-bottom: none;
}

.record-item:hover {
  background: var(--color-gray-50);
}

.record-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-info {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}

.record-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.record-desc {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  margin-top: 2px;
}

.record-action {
  flex-shrink: 0;
  margin-left: 12px;
}

/* ===== 26. VIP 计划卡片 ===== */
.vip-plan {
  position: relative;
}

/* ===== 27. 后台管理样式 ===== */
.app-shell.admin-page {
  max-width: none;
  border-left: none;
  border-right: none;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-gray-50);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
}

.admin-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-align: left;
}

.admin-nav-item:hover {
  background: var(--color-gray-100);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}

.admin-nav-divider {
  height: 1px;
  background: var(--color-gray-100);
  margin: 8px 12px;
}

.admin-main {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.admin-main-inner {
  max-width: 1100px;
  padding: 28px 32px;
  margin: 0 auto;
}

.admin-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ================================================================
   街头涂鸦潮牌风格 - 登录页
   ================================================================ */

.street-login-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.street-login-inner-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 860px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.15);
}

/* 桌面端居中 + 手机比例 */
@media (min-width: 500px) {
  .street-login-inner-frame {
    border-radius: 32px;
    height: 90vh;
    max-height: 820px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* 背景层 */
.street-login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.street-login-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: streetBgZoom 20s ease-in-out infinite alternate;
}

@keyframes streetBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.street-login-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* 顶部品牌区 */
.street-login-brand {
  position: relative;
  z-index: 2;
  padding-top: 10vh;
  text-align: center;
  animation: streetFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes streetFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.street-login-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.street-login-logo-text {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 
    0 0 40px rgba(168, 85, 247, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.street-login-logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7, #f97316, #a855f7, transparent);
  border-radius: 2px;
}

.street-login-logo-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(168, 85, 247, 0.9);
  text-transform: uppercase;
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* 底部玻璃态卡片 */
.street-login-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 20px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  animation: streetFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes streetFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.street-login-card-inner {
  background: rgba(20, 20, 35, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: 
    0 -10px 60px rgba(168, 85, 247, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.street-login-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(249, 115, 22, 0.5), transparent);
}

.street-login-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
  letter-spacing: 0.5px;
}

.street-login-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 18px 0;
}

/* 表单 */
.street-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.street-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.street-input-group:focus-within {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
}

.street-input-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 14px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.street-input-group:focus-within .street-input-icon {
  color: #a855f7;
}

.street-input {
  flex: 1;
  padding: 12px 14px 12px 8px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

.street-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* 协议勾选 */
.street-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
}

.street-checkbox {
  display: none;
}

.street-checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-top: 1px;
  position: relative;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

.street-checkbox:checked + .street-checkbox-custom {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.street-checkbox:checked + .street-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.street-agree-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.street-agree-text a {
  color: #a855f7;
  text-decoration: none;
}

/* 登录按钮 */
.street-btn-login {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #7c3aed 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 4px 20px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.street-btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.street-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(168, 85, 247, 0.5),
    0 0 60px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.street-btn-login:hover::before {
  left: 100%;
}

.street-btn-login:active {
  transform: translateY(0) scale(0.98);
}

/* 底部链接 */
.street-login-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.street-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.street-link:hover {
  color: #a855f7;
}

.street-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* 登录页面 body 适配 */
body:has(.street-login-page) {
  background: #0a0a0a;
  overflow: hidden;
}

/* admin-login 标记 - 让 showDynamicPage 正确识别非后台页 */
.street-login-page {
  /* 不含 admin-login 类，保持普通页面模式 */
}

.admin-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* KPI 卡片 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  font-weight: 500;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  tabular-nums: true;
}

/* 后台面板 */
.panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.panel-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* 后台表格 */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gray-500);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-gray-100);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-gray-50);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--color-gray-50);
}

/* 后台表单 */
.admin-form {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  max-width: 580px;
}

.admin-form-field {
  margin-bottom: 16px;
}

.admin-form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) ease;
}

.admin-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.admin-input {
  resize: vertical;
  min-height: 80px;
}

/* 后台按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary-admin {
  background: var(--color-primary-500);
  color: white;
}

.btn-primary-admin:hover { background: var(--color-primary-600); }

.btn-secondary {
  background: var(--color-gray-100);
  color: var(--text-secondary);
}

.btn-secondary:hover { background: var(--color-gray-200); }

.btn-danger-admin {
  background: var(--color-danger-500);
  color: white;
}

.btn-danger-admin:hover { background: var(--color-danger-600); }

.btn-link {
  background: none;
  color: var(--color-primary-500);
  padding: 0;
  height: auto;
}

.btn-link:hover { color: var(--color-primary-700); text-decoration: underline; }

/* ===== 28. 响应式适配 ===== */
@media (max-width: 380px) {
  :root {
    --space-lg: 20px;
    --space-xl: 28px;
  }
  
  .overview-amount {
    font-size: 2rem;
  }
  
  .overview-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-divider {
    display: none;
  }
}

@media (min-width: 768px) {
  .app-shell {
    border-left: 1px solid var(--color-gray-200);
    border-right: 1px solid var(--color-gray-200);
  }
}

/* ===== 29. 打印样式 ===== */
@media print {
  .tabbar,
  .nav-header,
  .modal-overlay {
    display: none !important;
  }
  
  .page-content {
    padding-bottom: var(--space-lg);
  }
}