/* ==========================================================================
   style.css - 云盛招募 现代化UI设计系统
   设计理念：简洁、现代、专业、温暖
   主色调: 渐变蓝紫 #5B6EF5 → #8B5CF6
   补偿金红: #FF4757 | 背景: #F8F9FC
   ========================================================================== */

/* ========== 设计令牌 ========== */
:root {
  /* 主色 - 渐变蓝紫 */
  --primary: #5B6EF5;
  --primary-light: #7C8DF7;
  --primary-dark: #4456D9;
  --primary-gradient: linear-gradient(135deg, #5B6EF5 0%, #8B5CF6 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(91,110,245,0.08) 0%, rgba(139,92,246,0.08) 100%);
  --primary-bg: #EEF1FF;
  --primary-bg-hover: #E4E8FF;

  /* 功能色 */
  --danger: #FF4757;
  --danger-light: #FF6B7A;
  --danger-bg: #FFF0F1;
  --danger-gradient: linear-gradient(135deg, #FF4757 0%, #FF6B7A 100%);
  --success: #00C48C;
  --success-bg: #E6FAF2;
  --success-gradient: linear-gradient(135deg, #00C48C 0%, #00D4A0 100%);
  --warning: #FF9F43;
  --warning-bg: #FFF5E6;
  --warning-gradient: linear-gradient(135deg, #FF9F43 0%, #FFB866 100%);
  --info: #0EA5E9;
  --info-bg: #E0F2FE;

  /* 中性色 */
  --bg: #F8F9FC;
  --bg-secondary: #F1F3F9;
  --card-bg: #FFFFFF;
  --text-primary: #1A1D29;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-disabled: #C5C9D5;
  --border: #ECEEF5;
  --border-light: #F5F6FA;
  --divider: #F0F1F6;

  /* 阴影系统 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
  --shadow-primary: 0 8px 24px rgba(91,110,245,0.25);
  --shadow-danger: 0 8px 24px rgba(255,71,87,0.2);

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* 标签色 */
  --tag-blue: #5B6EF5;
  --tag-blue-bg: #EEF1FF;
  --tag-cyan: #06B6D4;
  --tag-cyan-bg: #E0F7FA;
  --tag-yellow: #FF9F43;
  --tag-yellow-bg: #FFF5E6;
  --tag-red: #FF4757;
  --tag-red-bg: #FFF0F1;
  --tag-green: #00C48C;
  --tag-green-bg: #E6FAF2;
  --tag-purple: #8B5CF6;
  --tag-purple-bg: #F3EEFF;
  --purple: #8B5CF6;
  --tag-orange: #F97316;
  --tag-orange-bg: #FFF0E6;

  /* 安全区 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: 64px;
  --navbar-height: 48px;
}

/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: #E8EAF0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* 全局SVG图标默认尺寸 - 防止图标显示异常 */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* 各上下文SVG精确尺寸 */
.search-icon svg { width: 16px; height: 16px; }
.entry-icon svg { width: 24px; height: 24px; }
.notice-label svg { width: 14px; height: 14px; }
.empty-icon svg { width: 48px; height: 48px; }
.card-info span svg,
.reg-info svg { width: 13px; height: 13px; }
.card-views svg { width: 12px; height: 12px; }
.info-label svg { width: 16px; height: 16px; }
.bottom-actions .icon svg { width: 20px; height: 20px; }
.follow-icon svg { width: 22px; height: 22px; }
.logo svg { width: 48px; height: 48px; }
.settings-icon svg { width: 20px; height: 20px; }
.upload-icon svg { width: 28px; height: 28px; }
.file-icon svg { width: 20px; height: 20px; }
.file-remove svg { width: 14px; height: 14px; }
.member-avatar svg { width: 24px; height: 24px; }
.status-icon svg { width: 48px; height: 48px; }
.setting-arrow svg { width: 16px; height: 16px; }
.nav-right svg { width: 20px; height: 20px; }
.toast-icon svg { width: 22px; height: 22px; }
.confirm-icon svg { width: 56px; height: 56px; }
.share-option svg { width: 24px; height: 24px; }

/* 隐藏滚动条 */
::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* ========== App 容器 ========== */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ========== 页面容器 ========== */
.page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
  animation: pageIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page.active { display: block; }

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

@keyframes slideUpIn {
  from { transform: translateX(-50%) translateY(100%); opacity: 0.5; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideDownOut {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to { transform: translateX(-50%) translateY(100%); opacity: 0.5; }
}

@keyframes scaleIn {
  from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes scaleOut {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
}

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

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

@keyframes toastIn {
  from { transform: translate(-50%, -40%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 页面内边距 (有tabbar的页面) */
.page-with-tabbar { padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 8px); }

/* ========== 顶部导航栏 ========== */
.navbar {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  padding: 0 8px 0 4px;
  background: #fff;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.navbar.navbar-primary {
  background: var(--primary-gradient);
  color: #fff;
  border-bottom: none;
}
.navbar .nav-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s;
}
.navbar .nav-back:active { background: rgba(0,0,0,0.06); }
.navbar.navbar-primary .nav-back:active { background: rgba(255,255,255,0.15); }
.navbar .nav-back svg { width: 20px; height: 20px; }
.navbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin: 0 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
.navbar .nav-right {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  cursor: pointer;
  gap: 4px;
  border-radius: 50%;
  transition: background 0.2s;
}
.navbar .nav-right:active { background: rgba(0,0,0,0.06); }

/* ========== 首页自定义标题栏 ========== */
.home-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  padding: var(--safe-top) 16px 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}
.home-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  box-shadow: 0 2px 14px rgba(17,24,39,0.08);
}
.home-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  position: relative;
  z-index: 1;
}
.home-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.home-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.22);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  transition: background 0.28s ease;
}
.home-header.scrolled .logo-icon { background: var(--primary-bg); }
.home-logo .logo-icon svg { width: 20px; height: 20px; }
.home-logo .logo-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.home-logo .logo-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-logo .logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}
.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}
.official-badge svg { width: 9px; height: 9px; }
.home-header.scrolled .official-badge {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: var(--primary-light);
}
.home-logo .logo-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}
.home-header.scrolled .logo-sub { color: var(--text-light); opacity: 1; }

.home-search {
  display: flex;
  align-items: center;
  padding: 0 16px 14px;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.home-search .search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
}
.home-search .search-box .search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  flex-shrink: 0;
}
.home-search .search-box input {
  flex: 1;
  font-size: 14px;
  background: transparent;
  color: var(--text-primary);
}
.home-search .search-box input::placeholder { color: var(--text-light); }
.home-search .search-btn {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(10px);
}
.home-search .search-btn:active { background: rgba(255,255,255,0.3); }

/* 首页分区卡片：各板块独立白卡 + 一致圆角 + 轻投影，形成清晰层次感 */
/* 搜索卡：作为顶层卡片，悬浮覆盖轮播底部 */
.home-search-float {
  position: relative;
  z-index: 20;
  margin: -20px 12px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 10px 6px;
}
.home-search-float .city-select {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 6px 10px 6px 6px;
  border-right: 1px solid var(--divider);
  cursor: pointer;
  max-width: 104px;
}
.home-search-float .city-select:active { background: var(--bg-secondary); border-radius: var(--radius-xs); }
.home-search-float .city-select .cs-icon { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.home-search-float .city-select .cs-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px;
  line-height: 1;
}
.home-search-float .city-select .cs-caret { width: 12px; height: 12px; color: var(--text-light); flex-shrink: 0; }
.home-search-float .search-box {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 9px 14px;
  transition: background 0.2s, box-shadow 0.2s;
}
.home-search-float .search-box:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--primary-light), 0 2px 10px rgba(91,110,245,0.15);
}
.home-search-float .search-box .search-icon { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }
.home-search-float .search-box input { flex: 1; min-width: 0; font-size: 14px; background: transparent; color: var(--text-primary); }
.home-search-float .search-box input::placeholder { color: var(--text-light); }
.home-search-float .search-btn {
  flex-shrink: 0; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--primary-gradient); padding: 8px 16px;
  border-radius: var(--radius-full); cursor: pointer;
  box-shadow: 0 3px 10px rgba(91,110,245,0.3);
  transition: transform 0.2s;
}
.home-search-float .search-btn:active { transform: scale(0.94); }

/* ========== TabBar ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--tabbar-height) + var(--safe-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  border-top: none;
  z-index: 200;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
  padding-bottom: var(--safe-bottom);
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.tabbar-item.active { color: var(--primary); }
.tabbar-item .tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tabbar-item .tab-icon svg { width: 22px; height: 22px; }
.tabbar-item.active .tab-icon { transform: translateY(-2px) scale(1.1); }
.tabbar-item .tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.tabbar-item:active .tab-icon { transform: scale(0.9); }
.tabbar-item .tab-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  margin-right: -18px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  font-weight: 600;
}

/* ========== 通用组件 ========== */

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  user-select: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:active { box-shadow: 0 4px 12px rgba(91,110,245,0.2); }
.btn-danger {
  background: var(--danger-gradient);
  color: #fff;
  box-shadow: var(--shadow-danger);
}
.btn-success {
  background: var(--success-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,196,140,0.2);
}
.btn-warning {
  background: var(--warning-gradient);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:disabled:active { transform: none; }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.tag-blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.tag-cyan { background: var(--tag-cyan-bg); color: var(--tag-cyan); }
.tag-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow); }
.tag-red { background: var(--tag-red-bg); color: var(--tag-red); }
.tag-green { background: var(--tag-green-bg); color: var(--tag-green); }
.tag-purple { background: var(--tag-purple-bg); color: var(--tag-purple); }
.tag-orange { background: var(--tag-orange-bg); color: var(--tag-orange); }
.tag-gray { background: var(--bg-secondary); color: var(--text-secondary); }

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-approved { background: var(--primary-bg); color: var(--primary); }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-enrolled { background: var(--success-bg); color: var(--success); }
.status-completed { background: var(--bg-secondary); color: var(--text-secondary); }
.status-paid { background: var(--success-bg); color: var(--success); }
.status-unpaid { background: var(--warning-bg); color: var(--warning); }

/* 输入框 */
.input-group { margin-bottom: 18px; }
.input-label {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.input-label .required { color: var(--danger); margin-left: 2px; }
.input-field {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-secondary);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.25s ease;
}
.input-field::placeholder { color: var(--text-light); }
.input-field:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91,110,245,0.1);
}
.input-field.error {
  border-color: var(--danger);
  background: var(--danger-bg);
}
textarea.input-field {
  height: auto;
  padding: 12px 16px;
  min-height: 90px;
  resize: none;
  line-height: 1.6;
}
.input-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}
.input-error.show { display: flex; }

.input-with-btn { display: flex; gap: 10px; }
.input-with-btn .input-field { flex: 1; }
.input-with-btn .btn { flex-shrink: 0; white-space: nowrap; }

/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26,29,41,0.92);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  max-width: 320px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.toast.show { animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.toast .toast-icon { display: flex; align-items: center; justify-content: center; }
.toast .toast-icon svg { width: 22px; height: 22px; }

/* ========== 遮罩层 ========== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.overlay.show { display: block; animation: overlayIn 0.25s ease forwards; }
.overlay.hide { animation: overlayOut 0.25s ease forwards; }

/* ========== 确认弹窗 ========== */
.confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 300px;
  background: #fff;
  border-radius: var(--radius-lg);
  z-index: 1000;
  display: none;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  opacity: 0;
}
.confirm-modal.show {
  display: block;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.confirm-modal.hide { animation: scaleOut 0.2s ease forwards; }
.confirm-modal .confirm-icon {
  text-align: center;
  padding: 28px 0 8px;
  font-size: 40px;
  display: flex;
  justify-content: center;
}
.confirm-modal .confirm-icon svg { width: 56px; height: 56px; }
.confirm-modal .confirm-icon-info svg { color: var(--primary); }
.confirm-modal .confirm-icon-success svg { color: var(--success); }
.confirm-modal .confirm-icon-warning svg { color: var(--warning); }
.confirm-modal .confirm-icon-danger svg { color: var(--danger); }
.confirm-modal .confirm-title {
  padding: 4px 24px 8px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}
.confirm-modal .confirm-content {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}
.confirm-modal .confirm-actions {
  display: flex;
  border-top: 1px solid var(--divider);
}
.confirm-modal .confirm-actions .btn {
  flex: 1;
  border-radius: 0;
  padding: 15px;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}
.confirm-modal .confirm-actions .btn-cancel {
  color: var(--text-secondary);
  border-right: 1px solid var(--divider);
}
.confirm-modal .confirm-actions .btn-cancel:active { background: var(--bg-secondary); }
.confirm-modal .confirm-actions .btn-confirm {
  color: var(--primary);
}
.confirm-modal .confirm-actions .btn-confirm:active { background: var(--primary-bg); }
.confirm-modal .confirm-actions .btn-confirm.danger { color: var(--danger); }

/* ========== 底部弹出面板 ========== */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1000;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  -webkit-overflow-scrolling: touch;
}
.bottom-sheet.show {
  display: block;
  animation: slideUpIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.bottom-sheet.hide { animation: slideDownOut 0.25s ease forwards; }
.bottom-sheet::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px auto 0;
}
.bottom-sheet .sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.bottom-sheet .sheet-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.bottom-sheet .sheet-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}
.bottom-sheet .sheet-close:active { background: var(--bg-secondary); transform: scale(0.9); }
.bottom-sheet .sheet-close svg { width: 18px; height: 18px; }
.bottom-sheet .sheet-body { padding: 8px 0 calc(20px + var(--safe-bottom)); }
.bottom-sheet .sheet-body.custom-sheet-body { padding: 0; }

.sheet-option {
  padding: 14px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.sheet-option:last-child { border-bottom: none; }
.sheet-option:active { background: var(--bg-secondary); }
.sheet-option .sheet-option-label { flex: 1; }
.sheet-option.selected { color: var(--primary); font-weight: 600; background: var(--primary-bg); }
.sheet-option .check-icon {
  color: var(--primary);
  display: none;
}
.sheet-option .check-icon svg { width: 20px; height: 20px; }
.sheet-option.selected .check-icon { display: block; }

/* 网格模式 */
.bottom-sheet.sheet-grid-mode .sheet-body.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  padding: 1px 0 calc(20px + var(--safe-bottom));
}
.bottom-sheet.sheet-grid-mode .sheet-body.sheet-grid .sheet-option {
  background: #fff;
  justify-content: center;
  text-align: center;
  padding: 16px 8px;
  font-size: 14px;
  border-bottom: none;
  border-radius: 0;
  flex-direction: column;
  gap: 4px;
}
.bottom-sheet.sheet-grid-mode .sheet-body.sheet-grid .sheet-option .check-icon {
  position: absolute;
  top: 4px;
  right: 4px;
}
.bottom-sheet.sheet-grid-mode .sheet-body.sheet-grid .sheet-option {
  position: relative;
}
.bottom-sheet.sheet-grid-mode .sheet-body.sheet-grid .sheet-option.selected {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ========== 两级级联弹窗（左大类 右小类） ========== */
.bottom-sheet.cascade-mode {
  max-height: 70vh;
}
.bottom-sheet.cascade-mode .cascade-body {
  display: flex;
  height: 50vh;
  max-height: 360px;
}
.bottom-sheet.cascade-mode .cascade-left {
  width: 38%;
  flex-shrink: 0;
  background: var(--bg-secondary);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bottom-sheet.cascade-mode .cascade-cat {
  padding: 14px 14px 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  position: relative;
  line-height: 1.3;
}
.bottom-sheet.cascade-mode .cascade-cat.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.bottom-sheet.cascade-mode .cascade-cat.active::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.bottom-sheet.cascade-mode .cascade-right {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(20px + var(--safe-bottom));
}
.bottom-sheet.cascade-mode .cascade-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--divider);
}
.bottom-sheet.cascade-mode .cascade-sub:active { background: var(--bg-secondary); }
.bottom-sheet.cascade-mode .cascade-sub.selected {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-bg);
}
.bottom-sheet.cascade-mode .cascade-sub .check-icon {
  width: 20px; height: 20px;
  display: none;
  color: var(--primary);
}
.bottom-sheet.cascade-mode .cascade-sub .check-icon svg { width: 20px; height: 20px; }
.bottom-sheet.cascade-mode .cascade-sub.selected .check-icon { display: block; }

/* 自定义面板 - 订阅添加 */
.sub-add-section { padding: 12px 20px; border-bottom: 1px solid var(--divider); }
.sub-add-section:last-of-type { border-bottom: none; }
.sub-add-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.sub-add-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== 空状态 ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-light);
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}
.empty-state .empty-text {
  font-size: 14px;
  font-weight: 500;
}
.empty-state .empty-desc {
  font-size: 13px;
  color: var(--text-disabled);
  margin-top: 6px;
}

/* ========== 列表项 ========== */
.list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.2s;
}
.list-item:active { background: var(--bg-secondary); }
.list-item:last-child { border-bottom: none; }
.list-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}
.list-item .item-icon svg { width: 20px; height: 20px; }
.list-item .item-content { flex: 1; min-width: 0; }
.list-item .item-title {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}
.list-item .item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.list-item .item-arrow {
  color: var(--text-disabled);
  flex-shrink: 0;
  margin-left: 8px;
}
.list-item .item-arrow svg { width: 16px; height: 16px; }
.list-item .item-badge {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: 8px;
  flex-shrink: 0;
  font-weight: 600;
}

/* ========== 首页 ========== */

/* 轮播图 */
.swiper {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  padding-top: var(--safe-top);
}
.swiper-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}
.swiper-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 40px;
  position: relative;
}
.swiper-slide .slide-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.swiper-slide .slide-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-slide .slide-subtitle {
  font-size: 13px;
  opacity: 0.9;
}
.swiper-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.swiper-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.swiper-dot.active {
  width: 20px;
  background: #fff;
}

/* 公告卡：独立白卡 */
.notice-bar {
  display: flex;
  align-items: center;
  background: #fff;
  margin: 10px 12px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 11px 14px;
  gap: 10px;
}
.notice-bar .notice-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--danger-bg);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}
.notice-bar .notice-scroll {
  flex: 1;
  overflow: hidden;
  height: 20px;
  position: relative;
}
.notice-bar .notice-content {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: scrollLeft 24s linear infinite;
}
.notice-bar .notice-scroll:hover .notice-content { animation-play-state: paused; }
.notice-bar .notice-content span {
  margin-right: 40px;
  font-size: 13px;
  color: var(--text-secondary);
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 快捷入口：独立白卡 */
.quick-entry {
  display: flex;
  background: #fff;
  margin: 10px 12px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px 4px;
  justify-content: space-around;
}
.quick-entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}
.quick-entry-item:active { transform: scale(0.92); }
.quick-entry-item.active .entry-icon { box-shadow: 0 4px 14px rgba(91,110,245,0.28); transform: translateY(-2px); }
.quick-entry-item.active .entry-label { color: var(--primary); font-weight: 700; }
.quick-entry-item .entry-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.quick-entry-item .entry-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 筛选模块：独立白卡 */
.filter-section {
  background: #fff;
  margin: 10px 12px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 8px 10px 10px;
}
/* 城市标签行 */
.filter-row.city-tags-row {
  display: flex;
  align-items: center;
  padding: 2px 10px 6px;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.filter-row.city-tags-row::-webkit-scrollbar { display: none; }

.city-tags { display: flex; gap: 7px; }
.city-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1.5px solid transparent;
}
.city-tag.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 3px 12px rgba(91,110,245,0.3);
  font-weight: 600;
  border-color: transparent;
}
.city-subscribe-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary);
  cursor: pointer;
  margin-left: 2px;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(91,110,245,0.2);
}
.city-subscribe-btn svg { width: 16px; height: 16px; }
.city-subscribe-btn:active { transform: scale(0.88); background: var(--primary-gradient); color: #fff; }
.city-tag:active { transform: scale(0.92); }

/* 筛选+排序行 */
.filter-row.filter-bar-row {
  display: flex;
  align-items: center;
  padding: 8px 10px 2px;
}
.filter-pills {
  display: flex;
  width: 100%;
  gap: 8px;
}
.filter-pills::-webkit-scrollbar { display: none; }

.dropdown-filter {
  display: flex;
  align-items: center;
  padding: 7px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  gap: 2px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  justify-content: center;
}
.dropdown-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.dropdown-filter svg { width: 11px; height: 11px; opacity: 0.5; transition: transform 0.2s; flex-shrink: 0; }
.dropdown-filter.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary-light);
  font-weight: 600;
}
.dropdown-filter.active svg { opacity: 1; transform: rotate(180deg); }
.dropdown-filter:active { transform: scale(0.95); }

.filter-row.filter-sort-row {
  display: flex;
  align-items: center;
  padding: 2px 10px 8px;
}
.filter-sort-row .sort-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 3px;
}
.filter-sort-row .sort-tab { flex: 1; text-align: center; }
.sort-tab {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.sort-tab.active {
  color: #fff;
  font-weight: 600;
  background: var(--primary-gradient);
  box-shadow: 0 2px 8px rgba(91,110,245,0.25);
}

/* 筛选结果条 */
.filter-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 2px;
  font-size: 12px;
  color: var(--text-secondary);
}
.filter-result-bar .result-count b { color: var(--primary); font-weight: 700; margin: 0 1px; }
.filter-result-bar .result-reset {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-result-bar .result-reset svg { width: 11px; height: 11px; }
.filter-result-bar .result-reset:active { transform: scale(0.94); background: var(--bg-secondary); }

/* 空状态操作按钮 */
.empty-state .empty-action {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.empty-state .empty-action:active { transform: scale(0.95); }

/* 兼容旧样式 */
.filter-row { display: flex; align-items: center; padding: 6px 12px; gap: 8px; overflow-x: auto; white-space: nowrap; }
.filter-row::-webkit-scrollbar { display: none; }
.dropdown-filters { display: flex; gap: 8px; }
.sort-tabs { display: flex; gap: 8px; }
.dropdown-filter .arrow { font-size: 10px; }

/* 项目列表 */
.project-list { padding: 8px 12px; }
.project-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border-light);
  position: relative;
}
.project-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-xs);
}
.project-card .card-head {
  display: none;
}
.project-card .card-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  line-height: 1.3;
  flex-shrink: 0;
}
.project-card .card-type-badge.health { background: var(--success-bg); color: var(--success); }
.project-card .card-type-badge.patient { background: var(--danger-bg); color: var(--danger); }
.project-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.project-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.project-card .card-condition {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.project-card .card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.project-card .card-info .ci-stay { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-weight: 500; }
.project-card .card-info .ci-hospital { display: flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--text-secondary); font-weight: 500; }
.project-card .card-info svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-light); }
.project-card .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}
.project-card .card-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 0.5px;
}
.project-card .card-amount .amount-unit {
  font-size: 12px;
  font-weight: 500;
}
.project-card .card-views {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 下拉刷新提示 */
.refresh-tip {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--text-light);
  display: none;
}
.refresh-tip.show { display: block; }

/* ========== 详情页 ========== */
.detail-section {
  background: #fff;
  margin-bottom: 8px;
  padding: 18px 16px;
}
.detail-section .section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.detail-section .section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.detail-header {
  background: #fff;
  padding: 18px 16px;
}
.detail-header .detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.detail-header .detail-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.detail-header .detail-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 0.5px;
}
.detail-header .detail-amount .amount-unit {
  font-size: 14px;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.info-item .info-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 3px;
}
.info-item .info-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.compensation-table { width: 100%; }
.compensation-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.compensation-row:last-child { border-bottom: none; }
.compensation-row .comp-label {
  width: 100px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.compensation-row .comp-value {
  color: var(--danger);
  font-weight: 700;
}

.condition-list {
  font-size: 14px;
  line-height: 2;
  color: var(--text-primary);
}
.condition-list .condition-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.condition-list .condition-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-gradient);
  flex-shrink: 0;
}

.text-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

/* 底部操作栏 */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  gap: 10px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}
.bottom-actions .action-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  gap: 2px;
}
.bottom-actions .action-icon-btn .icon {
  font-size: 20px;
  margin-bottom: 2px;
}
.bottom-actions .action-icon-btn svg { width: 22px; height: 22px; }
.bottom-actions .action-icon-btn.active { color: var(--danger); }
.bottom-actions .action-icon-btn:active { transform: scale(0.9); }
.bottom-actions .btn { flex: 1; }

/* 分享面板 */
.share-sheet .share-options {
  display: flex;
  padding: 28px 16px 20px;
  justify-content: space-around;
}
.share-sheet .share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.share-sheet .share-option:active { transform: scale(0.88); }
.share-sheet .share-option .share-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.share-sheet .share-option .share-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.share-sheet .share-cancel {
  padding: 16px;
  text-align: center;
  border-top: 8px solid var(--bg);
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.share-sheet .share-cancel:active { background: var(--bg-secondary); }

/* ========== 报名页 ========== */
.form-section {
  background: #fff;
  margin-bottom: 8px;
  padding: 18px 16px;
}
.form-section .section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section .section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.bmi-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--primary-gradient-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(91,110,245,0.1);
}
.bmi-display .bmi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.bmi-display .bmi-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.id-card-info {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13px;
  align-items: center;
}
.id-card-info .info-tag {
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: var(--success);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-secondary);
}
.upload-area:active {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.upload-area .upload-icon { font-size: 32px; color: var(--text-light); }
.upload-area .upload-text { font-size: 13px; color: var(--text-light); margin-top: 6px; }

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.uploaded-file .file-icon { font-size: 20px; }
.uploaded-file .file-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.uploaded-file .file-remove { color: var(--danger); cursor: pointer; font-size: 18px; }

.submit-bar { padding: 16px; }

/* ========== 订阅页 ========== */
.subscribe-card {
  background: #fff;
  margin: 8px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
}
.subscribe-card .card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.card-title-row .card-title { margin-bottom: 0; }
.card-count-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}
.nav-action-btn:active { background: var(--bg-secondary); transform: scale(0.9); }
.nav-action-btn svg { width: 22px; height: 22px; }
.subscribe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subscribe-tag {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1.5px solid transparent;
  font-weight: 500;
}
.subscribe-tag.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(91,110,245,0.25);
}
.subscribe-tag:active { transform: scale(0.94); }

/* 已订阅条件 chips（页面展示） */
.subscribe-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  cursor: pointer;
  transition: all 0.2s;
}
.sub-chip .chip-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(91,110,245,0.15);
  color: var(--primary);
}
.sub-chip .chip-del svg { width: 10px; height: 10px; }
.sub-empty { font-size: 13px; color: var(--text-light); padding: 4px 0; }

.follow-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.follow-card .follow-icon { font-size: 36px; }
.follow-card .follow-info { flex: 1; }
.follow-card .follow-info .follow-title {
  font-size: 15px;
  font-weight: 700;
}
.follow-card .follow-info .follow-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  background: #fff;
}
.login-header {
  text-align: center;
  padding: 56px 20px 36px;
  position: relative;
}
.login-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: var(--primary-gradient-soft);
  z-index: 0;
}
.login-header .logo {
  width: 72px;
  height: 72px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-primary);
  position: relative;
  z-index: 1;
}
.login-header .app-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}
.login-header .app-slogan {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--divider);
  margin: 0 24px;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-weight: 500;
}
.login-tab.active {
  color: var(--primary);
  font-weight: 700;
}
.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.login-form { padding: 28px 24px; }
.login-form .btn { margin-top: 8px; }

.wechat-login {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
}
.wechat-login .divider {
  display: flex;
  align-items: center;
  margin: 0 48px 20px;
  color: var(--text-light);
  font-size: 12px;
}
.wechat-login .divider::before,
.wechat-login .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.wechat-login .divider span { padding: 0 12px; }
.wechat-login .wechat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7,193,96,0.25);
}
.wechat-login .wechat-btn:active { transform: scale(0.92); }

/* ========== 个人中心 ========== */
.profile-header {
  background: var(--primary-gradient);
  padding: calc(var(--safe-top) + 20px) 18px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.profile-header::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}
.profile-user .user-info { flex: 1; min-width: 0; }
.profile-user .user-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.profile-user .user-phone {
  font-size: 13px;
  opacity: 0.9;
}
.profile-user .user-id {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 3px;
}
.profile-user .settings-icon {
  font-size: 22px;
  opacity: 0.8;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.profile-user .settings-icon:active { background: rgba(255,255,255,0.2); }

.profile-stats {
  display: flex;
  background: #fff;
  margin: -28px 14px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}
.profile-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--divider);
  cursor: default;
  transition: background 0.2s, transform 0.12s;
}
.profile-stats .profile-stat {
  cursor: pointer;
}
.profile-stat:active {
  background: var(--bg-secondary);
  transform: scale(0.97);
}
.profile-stat:last-child { border-right: none; }
.profile-stat .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.profile-stat .stat-value.income { color: var(--danger); }
.profile-stat .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.menu-group {
  background: #fff;
  margin: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.menu-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 16px 16px 8px;
  letter-spacing: 0.3px;
}

/* ========== 我的报名页 ========== */
.tab-header {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--divider);
  overflow-x: auto;
  position: sticky;
  top: var(--navbar-height);
  z-index: 50;
}
.tab-header::-webkit-scrollbar { display: none; }
.tab-header-item {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  transition: color 0.25s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tab-header-item.active {
  color: var(--primary);
  font-weight: 700;
}
/* tab 数量角标 */
.tab-count {
  font-size: 11px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.tab-count.is-zero {
  opacity: 0.45;
}
.tab-header-item.active .tab-count {
  background: var(--primary);
  color: #fff;
}
/* 跟随式滑动高亮指示器 */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-gradient);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

.registration-card {
  background: #fff;
  margin: 8px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border-light);
}
.registration-card:active { transform: scale(0.97); }
.registration-card .reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.registration-card .reg-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  margin-right: 8px;
}
.registration-card .reg-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.registration-card .reg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}
.registration-card .reg-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--danger);
}
/* 切换状态后列表卡片入场动画 */
#regListContainer .registration-card {
  animation: cardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 奖励页 ========== */
.reward-summary {
  display: flex;
  background: #fff;
  margin: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 0;
  border: 1px solid var(--border-light);
}
.reward-summary .summary-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--divider);
}
.reward-summary .summary-item:last-child { border-right: none; }
.reward-summary .summary-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.reward-summary .summary-value.red { color: var(--danger); }
.reward-summary .summary-value.green { color: var(--success); }
.reward-summary .summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.reward-card {
  background: #fff;
  margin: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  border: 1px solid var(--border-light);
}
.reward-card .reward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.reward-card .reward-type {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}
.reward-card .reward-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.reward-card .reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reward-card .reward-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--danger);
}
.reward-card .reward-time {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 钱包页 ========== */
.wallet-header {
  background: var(--primary-gradient);
  padding: calc(var(--safe-top) + 24px) 18px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wallet-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.wallet-balance {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.wallet-balance .balance-label {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}
.wallet-sub {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.wallet-sub .sub-item .sub-value {
  font-size: 17px;
  font-weight: 700;
}
.wallet-sub .sub-item .sub-label {
  font-size: 12px;
  opacity: 0.8;
}
.wallet-actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 8px;
}
.wallet-actions .btn { flex: 1; }

.income-card {
  background: #fff;
  margin: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  border: 1px solid var(--border-light);
}
.income-card .income-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.income-card .income-type {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.income-card .income-remark {
  font-size: 12px;
  color: var(--text-secondary);
}
.income-card .income-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.income-card .income-amount {
  font-size: 17px;
  font-weight: 800;
}
.income-card .income-amount.positive { color: var(--danger); }
.income-card .income-amount.negative { color: var(--success); }

/* ========== 代理页 ========== */
.agent-header {
  background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
  padding: calc(var(--safe-top) + 20px) 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.agent-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.agent-level-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.agent-level-card .level-info .level-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.agent-level-card .level-info .level-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}
.agent-code-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
  gap: 10px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.agent-code-box .code-label {
  font-size: 13px;
  opacity: 0.9;
}
.agent-code-box .code-value {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}
.agent-code-box .copy-btn {
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.agent-code-box .copy-btn:active { background: rgba(255,255,255,0.3); }

.agent-stats {
  display: flex;
  background: #fff;
  margin: -14px 14px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.agent-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.agent-setting-row:last-child { border-bottom: none; }
.agent-setting-row .setting-label { color: var(--text-secondary); }
.agent-setting-row .setting-value { font-weight: 600; }
.agent-setting-row .setting-value.highlight { color: var(--primary); }

/* 等级进度可视化 */
.level-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 8px 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.level-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}
.level-step .step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-light);
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.level-step .step-dot svg { width: 14px; height: 14px; }
.level-step.reached .step-dot {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(91,110,245,0.3);
}
.level-step.current .step-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--primary-bg), 0 3px 10px rgba(91,110,245,0.3);
}
.level-step .step-name { font-size: 12px; font-weight: 600; color: var(--text-light); }
.level-step.reached .step-name { color: var(--text); }
.level-step.current .step-name { color: var(--primary); }
.level-step .step-ratio { font-size: 10px; color: var(--text-light); }
.level-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  border-radius: 1px;
  max-width: 60px;
}
.level-line.reached { background: var(--primary); }

/* 邀请好友卡片 */
.agent-invite-section {
  background: linear-gradient(135deg, rgba(91,110,245,0.06), rgba(139,92,246,0.08));
  border: 1px solid rgba(91,110,245,0.15);
}
.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.invite-row .invite-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.invite-row .invite-desc { font-size: 12px; color: var(--text-secondary); }
.invite-row .btn svg { width: 14px; height: 14px; margin-right: 2px; }
.invite-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.invite-actions .btn { white-space: nowrap; }

/* 我的团队 3 级别概览 */
.team-level-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.team-level-card {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 10px 0;
  text-align: center;
  border: 1px solid var(--border-light);
}
.team-level-card .tl-count { font-size: 20px; font-weight: 800; color: var(--primary); }
.team-level-card .tl-name { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* 成员等级徽章（3级配色） */
.member-level-badge.lv-high { background: linear-gradient(135deg, #FF9F43, #FFB866); color: #fff; }
.member-level-badge.lv-mid { background: var(--primary-gradient); color: #fff; }
.member-level-badge.lv-normal { background: var(--primary-bg); color: var(--primary); }

/* 推广二维码页 */
.qr-page { padding: 16px 16px calc(20px + var(--safe-bottom)); }
.qr-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  text-align: center;
}
.qr-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 10px;
}
.qr-name { font-size: 17px; font-weight: 700; }
.qr-level { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.qr-code-box { margin: 18px auto; display: flex; justify-content: center; }
.qr-code-box svg { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.qr-tip { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.qr-link-box {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-secondary); border-radius: var(--radius-full);
  padding: 8px 14px; margin-bottom: 16px;
}
.qr-link-text { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.qr-copy { color: var(--primary); font-weight: 600; font-size: 13px; flex-shrink: 0; }
.qr-actions { display: flex; flex-direction: column; gap: 10px; }
.qr-rules {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 16px 20px; margin-top: 12px;
}
.qr-rules-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.qr-rule-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--text-secondary); border-bottom: 1px solid var(--divider); }
.qr-rule-row:last-child { border-bottom: none; }
.qr-rule-row b { color: var(--text-primary); }

/* 分段Tab切换 */
.segment-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 12px;
}
.segment-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.segment-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* 成员等级徽章 */
.member-level-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: 1px;
}
.member-avatar.avatar-doc {
  background: var(--primary-bg);
  color: var(--primary);
}
.member-desc.time { font-size: 11px; color: var(--text-light); }

.team-member-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}
.team-member-card:last-child { border-bottom: none; }
.team-member-card .member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}
.team-member-card .member-info { flex: 1; }
.team-member-card .member-name {
  font-size: 14px;
  font-weight: 600;
}
.team-member-card .member-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.team-member-card .member-commission {
  font-size: 15px;
  font-weight: 800;
  color: var(--danger);
}

/* ========== 商城页 ========== */
.mall-header {
  background: linear-gradient(135deg, #FF9F43 0%, #E67E22 100%);
  padding: calc(var(--safe-top) + 20px) 18px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mall-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.mall-points {
  font-size: 36px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.mall-points .points-label {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* 商城头部新布局 */
.mall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.mall-points-info { position: relative; z-index: 1; }
.mall-points-label { font-size: 12px; opacity: 0.85; margin-bottom: 2px; }
.mall-header-actions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.mall-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
}
.mall-action-btn svg { width: 20px; height: 20px; }
.mall-action-btn:active { transform: scale(0.93); background: rgba(255,255,255,0.28); }

.mall-section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 16px 0;
}

/* 商品卡片增强 */
.product-card .product-img { position: relative; }
.product-card .stock-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--danger);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.product-card .product-points .pts-unit {
  font-size: 11px;
  font-weight: 500;
  margin-left: 1px;
}
.product-card .exchange-btn {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-gradient);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(91,110,245,0.25);
}
.product-card .exchange-btn.disabled {
  background: var(--bg-secondary);
  color: var(--text-light);
  box-shadow: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border-light);
}
.product-card:active { transform: scale(0.96); }
.product-card .product-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: var(--bg-secondary);
}
.product-card .product-info { padding: 10px 12px; }
.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .product-points {
  font-size: 17px;
  font-weight: 800;
  color: var(--danger);
}
.product-card .product-stock {
  font-size: 11px;
  color: var(--text-light);
}

/* 商品详情 */
.product-detail-img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  background: var(--bg-secondary);
}
.product-detail-info {
  background: #fff;
  padding: 18px 16px;
}
.product-detail-info .detail-name {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.product-detail-info .detail-points {
  font-size: 28px;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 6px;
}
.product-detail-info .detail-stock {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 订单页 ========== */
.order-card {
  background: #fff;
  margin: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  border: 1px solid var(--border-light);
}
.order-card .order-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.order-card .order-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.order-card .order-info { flex: 1; }
.order-card .order-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.order-card .order-points {
  font-size: 17px;
  font-weight: 800;
  color: var(--danger);
}
.order-card .order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}
.order-card .order-time {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 签到页 ========== */
.signin-header {
  background: var(--primary-gradient);
  padding: calc(var(--safe-top) + 24px) 18px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.signin-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.signin-streak {
  font-size: 40px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.signin-streak .streak-label {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}
/* 签到里程碑 */
.streak-milestones {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 60px;
  transition: all 0.3s;
  opacity: 0.75;
}
.milestone.reached {
  background: rgba(255,255,255,0.28);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.milestone .milestone-gift svg { width: 20px; height: 20px; }
.milestone.reached .milestone-gift svg { color: #FFE082; }
.milestone .milestone-day { font-size: 11px; font-weight: 600; }
.milestone .milestone-reward { font-size: 10px; opacity: 0.85; }

.signin-tip {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.calendar {
  background: #fff;
  margin: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
}
.calendar-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-week {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 4px 0;
  font-weight: 600;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s;
}
.calendar-day.empty { visibility: hidden; }
.calendar-day.signed {
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(91,110,245,0.2);
}
.calendar-day.signed::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.calendar-day.today {
  border: 2px solid var(--primary);
  font-weight: 700;
  color: var(--primary);
}
.calendar-day:not(.signed):not(.empty):not(.today) {
  color: var(--text-secondary);
}

.signin-rules {
  background: #fff;
  margin: 0 14px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
}
.signin-rules .rule-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.signin-rules .rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.signin-rules .rule-item:last-child { border-bottom: none; }
.signin-rules .rule-reward {
  color: var(--danger);
  font-weight: 700;
}

.signin-btn-area { padding: 16px; }

/* ========== 消息页 ========== */
.message-card {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.2s;
}
.message-card:active { background: var(--bg-secondary); }
.message-card.unread { background: var(--primary-bg); }
.message-card .msg-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 12px;
  flex-shrink: 0;
}
.message-card .msg-icon.registration { background: var(--primary-bg); }
.message-card .msg-icon.system { background: var(--warning-bg); }
.message-card .msg-icon.reward { background: var(--danger-bg); }
.message-card .msg-content { flex: 1; min-width: 0; }
.message-card .msg-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.message-card .msg-title .unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.5s ease-in-out infinite;
}
.message-card .msg-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.message-card .msg-time {
  font-size: 11px;
  color: var(--text-light);
}
/* 消息分类筛选条 */
.msg-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 12px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 5;
}
.msg-cat {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.msg-cat.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255,113,67,0.3);
}
.msg-cat-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}
.msg-cat.active .msg-cat-badge {
  background: #fff;
  color: var(--primary);
}
/* 卡片顶部标题行（分类标签 + 未读点） */
.msg-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.msg-cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
}
.msg-cat-tag.registration { background: var(--primary-bg); color: var(--primary); }
.msg-cat-tag.reward { background: var(--danger-bg); color: var(--danger); }
.msg-cat-tag.system { background: var(--warning-bg); color: var(--warning); }
.msg-title-row .unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ========== 设置页 ========== */
.settings-avatar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  background: #fff;
  border-bottom: 8px solid var(--bg);
}
.settings-avatar-row .avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  background: #fff;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.settings-row:active { background: var(--bg-secondary); }
.settings-row:last-child { border-bottom: none; }
.settings-row .setting-label { color: var(--text-primary); font-weight: 500; }
.settings-row .setting-value {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-row .setting-arrow {
  color: var(--text-disabled);
  font-size: 16px;
}
.settings-row input {
  text-align: right;
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary);
  width: 160px;
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 16px;
}
.avatar-option {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.25s;
}
.avatar-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ========== 安全设置页 ========== */
.security-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--success-bg);
  margin: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* ========== 文章页 ========== */
.article-card {
  display: flex;
  gap: 12px;
  background: #fff;
  margin: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border-light);
}
.article-card:active { transform: scale(0.97); }
.article-card .article-cover {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
}
.article-card .article-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-card .article-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-summary {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-light);
}

/* 文章详情 */
.article-detail-header {
  background: #fff;
  padding: 18px 16px;
  border-bottom: 8px solid var(--bg);
}
.article-detail-header .ad-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.article-detail-header .ad-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}
.article-detail-body {
  background: #fff;
  padding: 18px 16px;
}
.article-detail-body .ad-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

/* ========== 招募方入驻页 ========== */
.merchant-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  background: #fff;
  margin: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.merchant-status .status-icon {
  font-size: 60px;
  margin-bottom: 16px;
}
.merchant-status .status-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}
.merchant-status .status-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* ========== 通用间距 ========== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.font-bold { font-weight: 800; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.section-gap { height: 8px; }

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* 加载动画 */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--primary-bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* 数字滚动动画 */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.count-up { animation: countUp 0.4s ease forwards; }

/* 省份-医院 两级选择器 */
.province-picker { display: flex; height: 320px; }
.province-picker .pp-col { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.province-picker .pp-provinces {
  width: 38%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--divider);
}
.province-picker .pp-hospitals { flex: 1; background: #fff; }
.province-picker .pp-item {
  padding: 14px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.province-picker .pp-provinces .pp-item.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.province-picker .pp-hospitals .pp-item.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-bg);
}
.province-picker .pp-item:active { background: var(--bg-secondary); }
.province-picker .pp-hospitals .pp-item.active:active { background: var(--primary-bg); }

/* ========== 通用：提示文字 ========== */
.settings-tip {
  padding: 12px 16px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== 实名认证页 ========== */
.realname-wrap { padding: 16px; }
.realname-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #FFF3EC, #FFE9DE);
  border-radius: 16px;
  margin-bottom: 16px;
}
.realname-banner .rb-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.realname-banner .rb-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.realname-banner .rb-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.5; }

.id-parse {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
}
.id-parse-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.id-parse-item span { font-size: 11px; color: var(--text-light); }
.id-parse-item b { font-size: 14px; color: var(--primary); font-weight: 700; }

.face-box {
  height: 150px;
  border-radius: 14px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.face-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-light); }
.face-placeholder .face-icon { font-size: 48px; opacity: 0.5; }
.face-placeholder .face-tip { font-size: 13px; }
.face-scan { flex-direction: column; align-items: center; gap: 12px; }
.face-scan-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--primary-bg);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
.face-scan-text { font-size: 13px; color: var(--primary); font-weight: 600; }
.face-done { flex-direction: column; align-items: center; gap: 8px; }
.face-done-icon { width: 64px; height: 64px; }
.face-done-icon svg { width: 64px; height: 64px; }
.face-done-text { font-size: 15px; font-weight: 700; color: var(--success); }

.realname-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 16px 0;
  line-height: 1.5;
}
.agree-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--divider);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.agree-check svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; }
.agree-check.checked { background: var(--primary); border-color: var(--primary); }
.agree-check.checked svg { opacity: 1; }

.realname-done-tip {
  text-align: center;
  font-size: 12px;
  color: var(--success);
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.realname-done-tip svg { width: 14px; height: 14px; }

.rn-result {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.rn-result-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.rn-result-icon { width: 56px; height: 56px; margin: 0 auto 12px; }
.rn-result-icon svg { width: 56px; height: 56px; }
.rn-result-title { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.rn-result-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.rn-result-info {
  text-align: left;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.rn-ri-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0;
}
.rn-ri-row span { color: var(--text-light); }
.rn-ri-row b { color: var(--text-primary); font-weight: 600; }

/* ========== 招募方管理后台 ========== */
.md-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
}
.md-status.pending { background: linear-gradient(135deg, #FF9F43, #FF7A45); }
.md-status.approved { background: linear-gradient(135deg, #00C48C, #00A878); }
.md-status-left { display: flex; align-items: center; gap: 12px; }
.md-status-icon { font-size: 28px; }
.md-status-title { font-size: 16px; font-weight: 700; }
.md-status-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.md-status-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.25);
}
.md-status-tag.approved { background: rgba(255,255,255,0.3); }

.md-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.md-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.md-stat-icon { font-size: 20px; margin-bottom: 6px; }
.md-stat-icon svg { width: 20px; height: 20px; color: var(--primary); }
.md-stat-value { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.md-stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.md-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}
.md-action {
  background: #fff;
  border-radius: 14px;
  padding: 14px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s;
}
.md-action:active { transform: scale(0.96); }
.md-action-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
}
.md-action-icon svg { width: 20px; height: 20px; }
.md-action.a-primary .md-action-icon { background: var(--primary); }
.md-action.a-blue .md-action-icon { background: #4C8DFF; }
.md-action.a-green .md-action-icon { background: #00C48C; }
.md-action.a-orange .md-action-icon { background: #FF9F43; }
.md-action-label { font-size: 12px; color: var(--text-primary); font-weight: 600; }

.md-section {
  background: #fff;
  margin: 0 12px 12px;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.md-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.md-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 10px;
  padding: 1px 8px;
}
.md-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.md-project:last-child { border-bottom: none; }
.md-project-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.md-project-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.md-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary);
}
.md-tag.outline { background: transparent; border: 1px solid var(--divider); color: var(--text-secondary); }
.md-project-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; }
.md-project-status.recruiting { background: var(--success-bg); color: var(--success); }
.md-project-status.full { background: var(--bg-secondary); color: var(--text-light); }

.md-applicant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.md-applicant:last-child { border-bottom: none; }
.md-applicant-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.md-applicant-main { flex: 1; min-width: 0; }
.md-applicant-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.md-applicant-city { font-size: 11px; color: var(--text-light); font-weight: 400; margin-left: 6px; }
.md-applicant-project { font-size: 12px; color: var(--text-secondary); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-applicant-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; }
.md-applicant-status.pending { background: var(--warning-bg); color: var(--warning); }
.md-applicant-status.passed { background: var(--success-bg); color: var(--success); }
.md-applicant-status.rejected { background: var(--danger-bg); color: var(--danger); }

.md-demo-tip {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  padding: 4px 16px 24px;
  line-height: 1.6;
}

.md-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}
.md-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.md-modal-panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 24px;
}
.md-modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.md-modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.md-modal-actions .btn { flex: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 分段筛选（状态/支付方式） ========== */
.seg-filter {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
}
.seg-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.seg-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
}
.pay-methods { background: transparent; padding: 4px 14px 0; }
.pay-item { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pay-color, #999); display: inline-block; }
.pay-item.active { background: #fff; border: 1.5px solid var(--pay-color, var(--primary)); color: var(--text-primary); }

/* ========== 详情弹窗通用 ========== */
.detail-block { padding: 4px 2px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-secondary); }
.detail-row b { color: var(--text-primary); font-weight: 600; }
.detail-row b.red { color: var(--danger); }
.detail-row b.highlight { color: var(--primary); }

/* ========== 代理中心（重构） ========== */
.agent-hero {
  margin: 0 14px;
  border-radius: var(--radius);
  background: var(--primary-gradient);
  color: #fff;
  padding: 18px 16px 14px;
  box-shadow: var(--shadow-md);
}
.agent-hero-top { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.agent-hero-info { flex: 1; }
.agent-level-tag {
  display: inline-block;
  font-size: 15px; font-weight: 800;
  padding: 2px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.22);
}
.agent-hero-sub { font-size: 12px; opacity: 0.9; margin-top: 6px; }
.agent-upgrade-btn {
  background: #fff; color: var(--primary);
  border: none; border-radius: 16px;
  padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.agent-max-tag { font-size: 12px; background: rgba(255,255,255,0.22); padding: 4px 10px; border-radius: 12px; }
.agent-balance-row {
  display: flex;
  margin-top: 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 0;
}
.ab-item { flex: 1; text-align: center; position: relative; }
.ab-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,0.25); }
.ab-value { font-size: 18px; font-weight: 800; }
.ab-value.income { color: #fff; }
.ab-label { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.agent-code-box {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 13px;
}
.code-label { opacity: 0.85; }
.code-value { font-weight: 700; letter-spacing: 1px; }
.copy-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.22);
  padding: 3px 12px; border-radius: 12px; font-size: 12px;
  cursor: pointer;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 14px 0;
}
.agent-nav-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s;
  border: 1px solid var(--border-light);
}
.agent-nav-card:active { transform: scale(0.96); }
.an-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.an-icon svg { width: 22px; height: 22px; }
.an-title { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.an-badge {
  position: absolute; top: 8px; right: 8px;
  min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; text-align: center;
}
.an-tag {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 6px; border-radius: 8px;
  background: var(--warning-bg); color: var(--warning);
  font-size: 10px; font-weight: 700;
}
.agent-upgrade-tip {
  font-size: 13px; color: var(--text-secondary);
  padding: 12px 16px 6px; line-height: 1.6;
}

/* ========== 升级代理页 ========== */
.upgrade-card {
  margin: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  text-align: center;
}
.uc-current { font-size: 14px; color: var(--text-secondary); }
.uc-current b { color: var(--text-primary); }
.uc-arrow { font-size: 13px; color: var(--text-secondary); margin: 8px 0; }
.uc-next { font-size: 22px; font-weight: 800; color: var(--primary); }
.uc-benefit { margin: 16px 0; text-align: left; }
.uc-benefit-item {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.uc-benefit-item span { color: var(--text-secondary); }
.uc-benefit-item b { color: var(--text-primary); }
.uc-benefit-item b.highlight { color: var(--primary); }
.uc-fee { font-size: 15px; color: var(--text-primary); margin-bottom: 16px; }
.uc-fee b.red { color: var(--danger); font-size: 20px; font-weight: 800; }
.upgrade-note {
  font-size: 12px; color: var(--text-secondary);
  padding: 12px 16px; line-height: 1.6; text-align: center;
}

/* ========== 我的团队 / 团队报名 / 佣金 ========== */
.tier-desc {
  font-size: 13px; color: var(--text-secondary);
  padding: 10px 16px 4px;
}
.team-reg-card {
  background: #fff; margin: 8px 12px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px;
  border: 1px solid var(--border-light);
}
.tr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tr-member { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tr-member svg { width: 16px; height: 16px; color: var(--text-secondary); }
.tr-project { font-size: 13px; color: var(--text-primary); margin-bottom: 8px; }
.tr-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.tr-time { color: var(--text-secondary); }
.tr-commission { color: var(--danger); font-weight: 700; }

.commission-summary {
  margin: 14px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; text-align: center;
}
.cs-value { font-size: 26px; font-weight: 800; }
.cs-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.commission-card {
  background: #fff; margin: 8px 12px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px;
  border: 1px solid var(--border-light);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cc-source { font-size: 14px; font-weight: 700; }
.cc-project { font-size: 13px; color: var(--text-primary); margin-bottom: 8px; }
.cc-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.cc-type { color: var(--text-secondary); }
.cc-amount { font-size: 16px; font-weight: 800; }
.cc-time { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }

/* ========== 账户设置（微信/支付宝） ========== */
.account-tip {
  font-size: 13px; color: var(--text-secondary);
  padding: 14px 16px 4px; line-height: 1.6;
}
.account-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; margin: 10px 14px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px;
  border: 1px solid var(--border-light);
}
.ac-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.ac-info { flex: 1; }
.ac-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ac-bound { font-size: 11px; color: var(--success); background: var(--success-bg); padding: 1px 6px; border-radius: 8px; }
.ac-unbound { font-size: 11px; color: var(--text-secondary); background: var(--bg-secondary); padding: 1px 6px; border-radius: 8px; }
.ac-account { font-size: 13px; color: var(--text-primary); margin-top: 3px; }
.ac-holder { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.ac-edit { color: var(--text-secondary); cursor: pointer; }
.ac-edit svg { width: 20px; height: 20px; }

/* ========== 每日签到（美化） ========== */
.signin-hero {
  margin: 14px;
  border-radius: var(--radius);
  background: var(--primary-gradient);
  color: #fff;
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
}
.signin-hero-top { display: flex; align-items: center; gap: 12px; }
.signin-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.signin-avatar svg { width: 24px; height: 24px; }
.signin-hero-info { flex: 1; }
.signin-streak { font-size: 30px; font-weight: 800; line-height: 1; }
.signin-streak .streak-label { font-size: 14px; font-weight: 500; }
.signin-tip { font-size: 12px; opacity: 0.9; margin-top: 6px; }
.signin-tip b { font-weight: 700; }
.signin-done-badge {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.22); padding: 4px 10px;
  border-radius: 14px; font-size: 12px; font-weight: 700;
}
.signin-done-badge svg { width: 14px; height: 14px; }
.signin-progress { margin-top: 16px; }
.signin-progress-bar {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); overflow: hidden;
}
.signin-progress-fill {
  height: 100%; border-radius: 4px; background: #fff;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.signin-progress-text { font-size: 11px; opacity: 0.9; margin-top: 6px; }
.signin-main-btn { margin-top: 16px; background: #fff; color: var(--primary); border: none; font-weight: 800; }
.signin-main-btn:disabled { background: rgba(255,255,255,0.5); color: #fff; }
.signin-records { margin: 14px 14px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; border: 1px solid var(--border-light); }
.rule-sub { font-size: 12px; color: var(--text-secondary); font-weight: 400; margin-left: 6px; }
.signin-record { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.signin-record:last-child { border-bottom: none; }
.sr-date { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.sr-type { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.sr-reward { font-size: 16px; font-weight: 800; color: var(--danger); }
.calendar-day .day-check { display: block; width: 14px; height: 14px; margin: 2px auto 0; }
.calendar-day .day-check svg { width: 14px; height: 14px; color: #fff; }

/* ===================== 加载更多 / 分页 ===================== */
.list-footer { padding: 16px 14px 24px; text-align: center; }
.load-more-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 140px; padding: 10px 18px; margin: 0 auto;
  font-size: 13px; color: var(--text-secondary);
  background: #fff; border: 1px dashed var(--border-strong, #d9dde6);
  border-radius: 22px; cursor: pointer;
  transition: all 0.2s ease;
}
.load-more-btn:active { transform: scale(0.97); background: var(--bg-secondary); color: var(--primary); }
.list-end { font-size: 12px; color: var(--text-hint, #b3b8c2); padding: 6px 0; }
.lm-spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--border-strong, #d9dde6);
  border-top-color: var(--primary);
  display: inline-block; animation: lmSpin 0.7s linear infinite;
}
@keyframes lmSpin { to { transform: rotate(360deg); } }

/* 商品网格内的加载更多占满整行 */
.product-grid > .list-footer { flex-basis: 100%; }

/* ===================== 卡片按压态 / 通用交互 ===================== */
.reward-card, .registration-card, .team-member-card, .commission-card,
.message-card, .team-reg-card, .order-card, .income-card, .product-card,
.project-card, .agent-nav-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.reward-card:active, .registration-card:active, .team-member-card:active,
.commission-card:active, .message-card:active, .team-reg-card:active,
.order-card:active, .income-card:active, .product-card:active, .project-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-sm);
}
.agent-nav-card:active { transform: scale(0.97); }

/* 列表入场动画（分页追加时也生效） */
.reward-card, .registration-card, .team-member-card, .commission-card,
.message-card, .team-reg-card, .order-card, .income-card, .product-card,
.project-card {
  animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 文本辅助色（部分页面引用） */
.text-hint { color: var(--text-hint, #b3b8c2); }
.text-secondary { color: var(--text-secondary); }
