/* ═══════════════════════════════════════════════════
   算力星云 — 全局样式
   设计语言：深空黑 + 科技蓝 + 渐变点缀
═══════════════════════════════════════════════════ */
:root {
  --primary: #4facfe;
  --primary-dark: #007aff;
  --accent: #f5af19;
  --bg: #0a0e27;
  --bg-card: #131b3a;
  --bg-card2: #1a2550;
  --text: #e8eaf6;
  --text-dim: #7b82a8;
  --border: rgba(79, 172, 254, 0.15);
  --success: #00e676;
  --danger: #ff5252;
  --nav-bg: rgba(10, 14, 39, 0.95);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 页面切换 ─────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }
.tab-content { display: none; padding-bottom: calc(70px + var(--safe-bottom)); min-height: 100vh; }
.tab-content.active { display: block; }

/* ── 登录页 ───────────────────────────────────────── */
.auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1035 50%, #0d1b3e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  position: relative; overflow: hidden;
}
.auth-bg::before {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(79,172,254,0.15), transparent 70%);
  top: -50px; right: -50px; border-radius: 50%;
}
.auth-bg::after {
  content: ''; position: absolute; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,175,25,0.1), transparent 70%);
  bottom: 80px; left: -30px; border-radius: 50%;
}
.auth-logo { text-align: center; margin-bottom: 40px; }
.logo-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 40px rgba(79,172,254,0.4);
  animation: pulse-ring 2s ease-in-out infinite;
  overflow: hidden;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 20px rgba(79,172,254,0.3); }
  50% { box-shadow: 0 0 50px rgba(79,172,254,0.6); }
}
.auth-logo h1 { font-size: 28px; font-weight: 700; letter-spacing: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo p { color: var(--text-dim); font-size: 12px; margin-top: 4px; letter-spacing: 1px; }

.auth-box {
  width: 100%; max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px;
  backdrop-filter: blur(20px);
}
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; padding: 8px; border: none; background: transparent; color: var(--text-dim); font-size: 14px; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.auth-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 600; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 11px; color: var(--text-dim); }
.auth-footer a { color: var(--primary); text-decoration: none; }

/* ── 输入框 ───────────────────────────────────────── */
.input-group {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color 0.3s;
}
.input-group:focus-within { border-color: var(--primary); }
.input-group i { color: var(--text-dim); font-size: 16px; min-width: 20px; text-align: center; }
.input-group input, .input-group select {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; -webkit-appearance: none;
}
.input-group select option { background: var(--bg-card); color: var(--text); }
.input-group input::placeholder { color: var(--text-dim); }

/* ── 按钮 ─────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 10px; padding: 14px;
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  letter-spacing: 1px; transition: opacity 0.3s; margin-top: 8px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.btn-sm-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 8px; padding: 8px 16px;
  color: #fff; font-size: 13px; cursor: pointer; font-weight: 600;
}

.btn-withdraw-top {
  width: 100%; padding: 14px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #f7a100);
  border: none; color: #1a0a00; font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: 1px; margin-top: 12px;
}

.btn-logout { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--danger); background: transparent; color: var(--danger); font-size: 15px; cursor: pointer; }
.btn-copy { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font-size: 12px; cursor: pointer; }
.btn-stop-compute { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--danger); background: transparent; color: var(--danger); font-size: 15px; cursor: pointer; margin-top: 20px; }

/* ── 首页 ─────────────────────────────────────────── */
.home-header {
  padding: 20px 16px 14px;
}
.home-today-hero {
  background: linear-gradient(135deg, #1a3a6e, #0d2240);
  border-radius: 16px;
  padding: 20px 20px 16px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(245,175,25,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.home-today-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 6px; letter-spacing: 1px; }
.home-today-value {
  font-size: 42px; font-weight: 900;
  background: linear-gradient(90deg, #ffd966, #ffb347);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 6px;
}
.home-today-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
.home-floating-note { color: rgba(255,255,255,0.35); font-size: 12px; }
  background: linear-gradient(135deg, #1a1035, #0d1b3e);
  padding: 20px 16px 24px;
  border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
}
.user-greeting { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.user-greeting h2 { font-size: 18px; font-weight: 700; }
.level-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), #f7a100);
  color: #1a0a00; font-size: 11px; font-weight: 700; margin-top: 2px;
}
.notification-icon { margin-left: auto; font-size: 22px; color: var(--text-dim); cursor: pointer; }

.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--bg-card2); border-radius: 14px; padding: 16px 12px;
  border: 1px solid var(--border); text-align: center;
}
.stat-card.accent { background: linear-gradient(135deg, rgba(245,175,25,0.15), rgba(247,161,0,0.1)); border-color: rgba(245,175,25,0.3); }
.stat-value { font-size: 22px; font-weight: 800; background: linear-gradient(90deg, var(--primary), #a8edff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.accent .stat-value { background: linear-gradient(90deg, var(--accent), #ffd966); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ── 内容区块 ─────────────────────────────────────── */
.section { padding: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.more-link { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 400; }

/* ── 任务列表 ─────────────────────────────────────── */
.task-list, .task-list-full { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  transition: border-color 0.3s; cursor: pointer;
}
.task-item:hover { border-color: var(--primary); }
.task-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.task-name { font-size: 14px; font-weight: 600; }
.task-type-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: rgba(79,172,254,0.15); color: var(--primary);
}
.task-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.task-progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.task-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.5s; }
.task-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.task-reward { color: var(--accent); font-weight: 700; font-size: 15px; }
.btn-claim { padding: 5px 14px; border-radius: 20px; border: none; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 12px; cursor: pointer; }

/* ── 快速操作 ─────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s;
}
.quick-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.quick-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(79,172,254,0.1)); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); }
.quick-btn span { font-size: 11px; color: var(--text-dim); }

/* ── 页面头部 ─────────────────────────────────────── */
.page-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 16px 12px; }
.page-header h1 { font-size: 20px; font-weight: 700; }

/* ── 任务筛选 ─────────────────────────────────────── */
.task-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12px; cursor: pointer; transition: all 0.3s; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── 收益页 ───────────────────────────────────────── */
.earnings-summary { padding: 16px; }
.earning-big-card {
  background: linear-gradient(135deg, #1a3a6e, #0d2240);
  border-radius: 16px; padding: 24px; text-align: center;
  border: 1px solid rgba(79,172,254,0.2);
}
.earning-big-label { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.earning-big-value { font-size: 32px; font-weight: 800; color: var(--accent); }
.earning-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.earning-stat { background: var(--bg-card); border-radius: 12px; padding: 14px 8px; text-align: center; border: 1px solid var(--border); }
.earning-stat-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.earning-stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.earning-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: 8px;
}
.earning-list-info .earning-list-title { font-size: 13px; font-weight: 600; }
.earning-list-info .earning-list-date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.earning-list-amount { font-size: 16px; font-weight: 700; color: var(--success); }

/* ── 设备页 ───────────────────────────────────────── */
.device-info-card { margin: 0 16px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.device-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.device-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.device-stat i { font-size: 18px; color: var(--primary); }
.device-stat span { font-size: 18px; font-weight: 700; color: var(--text); }
.device-stat label { font-size: 11px; color: var(--text-dim); }
.device-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.device-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.device-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.device-name-text { font-size: 14px; font-weight: 600; }
.device-status-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; }
.device-status-badge.online { background: rgba(0,230,118,0.15); color: var(--success); }
.device-status-badge.offline { background: rgba(255,82,82,0.15); color: var(--danger); }
.device-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.device-card-actions { display: flex; gap: 8px; }
.btn-device-action { flex: 1; padding: 7px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12px; cursor: pointer; }
.btn-device-action.danger { border-color: rgba(255,82,82,0.3); color: var(--danger); }

/* ── 团队页 ───────────────────────────────────────── */
.team-banner {
  margin: 0 16px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.team-avatar-ring { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(79,172,254,0.1)); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--primary); }
.team-info { flex: 1; }
.team-title { font-size: 13px; color: var(--text-dim); }
.team-count { font-size: 22px; font-weight: 800; color: var(--text); }
.team-invite-box { background: rgba(79,172,254,0.08); border-radius: 12px; padding: 12px; min-width: 160px; text-align: center; }
.team-invite-label { font-size: 11px; color: var(--text-dim); }
.team-code { font-size: 20px; font-weight: 800; letter-spacing: 3px; color: var(--primary); margin: 4px 0; font-family: monospace; }
.team-list { padding: 0 16px; }
.team-member-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; }
.team-member-info { display: flex; align-items: center; gap: 10px; }
.team-member-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.team-member-name { font-size: 14px; font-weight: 600; }
.team-member-meta { font-size: 11px; color: var(--text-dim); }
.team-member-earned { font-size: 14px; font-weight: 700; color: var(--success); }

/* ── 我的页 ───────────────────────────────────────── */
.profile-header { padding: 20px 16px; }
.profile-avatar-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.profile-info h2 { font-size: 20px; font-weight: 700; }
.profile-meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.level-tag { background: linear-gradient(135deg, var(--accent), #f7a100); color: #1a0a00; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.profile-menu-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.profile-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; cursor: pointer; transition: background 0.2s;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: rgba(79,172,254,0.05); }
.profile-menu-item i:first-child { color: var(--primary); width: 20px; text-align: center; }
.profile-menu-item span:not(.badge-new) { flex: 1; }
.profile-menu-item .fa-chevron-right { color: var(--text-dim); font-size: 12px; }
.badge-new { background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
.profile-actions { margin-top: 16px; }

/* ── 底部导航 ─────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  backdrop-filter: blur(20px); z-index: 100;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px; cursor: pointer; color: var(--text-dim); transition: color 0.3s; font-size: 10px; }
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { filter: drop-shadow(0 0 6px rgba(79,172,254,0.5)); }

/* ── 模态框 ───────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7); align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal.active { display: flex; }
.modal-content {
  width: 100%; max-width: 480px;
  background: var(--bg-card); border-radius: 20px 20px 0 0;
  padding: 20px; margin-bottom: var(--safe-bottom);
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close { font-size: 22px; color: var(--text-dim); cursor: pointer; }

/* ── 算力计算弹窗 ─────────────────────────────────── */
.compute-display { text-align: center; }
.compute-circle { width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(var(--primary) 0deg, rgba(79,172,254,0.1) 0deg); margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; animation: rotate-ring 3s linear infinite; }
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.compute-inner { width: 130px; height: 130px; border-radius: 50%; background: var(--bg-card2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.compute-hashrate { font-size: 28px; font-weight: 800; color: var(--primary); }
.compute-unit { font-size: 12px; color: var(--text-dim); }
.compute-stats { background: var(--bg-card2); border-radius: 12px; padding: 14px; margin-top: 10px; }
.compute-stat-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.compute-stat-row:last-child { border-bottom: none; }
.compute-stat-row span:last-child { color: var(--text); font-weight: 600; }

/* ── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(20,30,60,0.95); border: 1px solid var(--border);
  color: var(--text); padding: 10px 24px; border-radius: 24px;
  font-size: 13px; z-index: 300; opacity: 0; transition: all 0.3s;
  pointer-events: none; backdrop-filter: blur(10px); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ── 通用 ─────────────────────────────────────────── */
.loading-row { text-align: center; padding: 20px; color: var(--text-dim); font-size: 13px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; margin-bottom: 4px; }
.empty-state small { font-size: 12px; }
.withdraw-balance { text-align: center; font-size: 14px; color: var(--text-dim); padding: 10px; background: rgba(245,175,25,0.1); border-radius: 10px; margin-bottom: 16px; }
.withdraw-balance span { color: var(--accent); font-weight: 700; font-size: 18px; }

/* 功能说明帮助按钮 */
.btn-help-icon {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(79,172,254,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
}
.btn-help-icon:hover { background: rgba(79,172,254,0.2); }

/* 账号编号显示 */
.account-number {
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(118,75,162,0.2));
  padding: 4px 12px; border-radius: 6px;
  font-size: 14px; color: var(--primary);
  letter-spacing: 1px;
}

/* 广告标签 */
.badge-new {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-size: 10px; padding: 2px 6px;
  border-radius: 4px; margin-left: 8px;
}

/* 二维码弹窗 */
#modal-qrcode .modal-content {
  text-align: center;
  padding: 24px;
}
#invite-qrcode {
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

/* 帮助项样式 */
.help-item {
  transition: background 0.2s;
}
.help-item:active {
  background: rgba(79,172,254,0.05);
}

/* 实名认证状态 */
#realname-status-box,
#advertiser-status-box {
  margin-bottom: 16px;
}

/* 按钮hover效果 */
.btn-sm-primary:hover {
  background: linear-gradient(135deg, #5bc0ff, #0088ff);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   首页 2.0 重制版 — 新增样式
   ═══════════════════════════════════════════════════ */

/* 顶部栏 */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
}
.home-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}
.home-username {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.home-user-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.home-level-badge {
  background: linear-gradient(135deg,#f093fb,#f5576c);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 50px;
  font-weight: 600;
}
.home-id-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.home-top-actions {
  display: flex;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
}
.home-notify-btn, .home-qr-btn {
  cursor: pointer;
  transition: color 0.2s;
}
.home-notify-btn:hover, .home-qr-btn:hover { color: #fff; }

/* 算力银行超级卡片 */
.bank-super-card {
  position: relative;
  margin: 12px 16px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.bank-super-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(79,172,254,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.bank-super-content { position: relative; padding: 18px; }
.bank-super-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.bank-super-label {
  font-size: 13px;
  color: rgba(79,172,254,0.9);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bank-super-rate {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.bank-super-main {
  margin-bottom: 14px;
}
.bank-super-power {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.bank-super-power small {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.bank-super-today {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.interest-green { color: #4ade80 !important; font-weight: 600; }
.bank-super-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 0;
  margin-bottom: 12px;
}
.bank-stat-item {
  flex: 1;
  text-align: center;
}
.bank-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
}
.bsi-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3px;
}
.bsi-val {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.bank-super-quick { display: flex; justify-content: flex-end; }
.bank-quick-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #0a1628;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bank-quick-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* 核心收益数据 */
.earnings-hero {
  text-align: center;
  padding: 20px 16px 8px;
}
.earnings-hero-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.earnings-hero-value {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.earnings-plus {
  font-size: 22px;
  color: #4ade80;
  font-weight: 600;
}
.earnings-unit {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-left: 2px;
}
.earnings-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.divider-dot { opacity: 0.4; }

/* 一键算力区 */
.compute-hero {
  margin: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}
.compute-hero-idle {
  display: flex;
  align-items: center;
  gap: 14px;
}
.compute-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.compute-idle-text { flex: 1; }
.compute-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.compute-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.btn-compute-start {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(74,222,128,0.35);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-compute-start:hover { box-shadow: 0 6px 24px rgba(74,222,128,0.45); transform: translateY(-1px); }

/* 活跃状态 */
.compute-hero-active { position: relative; }
.compute-active-info { display: flex; align-items: center; gap: 12px; }
.compute-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
.compute-live-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.compute-live-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.compute-pulse-ring {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: ringPulse 1.5s infinite;
}
@keyframes ringPulse {
  0% { transform: translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateY(-50%) scale(3); opacity: 0; }
}
.compute-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin: 14px 0 6px;
  overflow: hidden;
}
.cpb-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}
.compute-progress-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.btn-compute-stop {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-compute-stop:hover { background: rgba(255,100,100,0.2); color: #f87171; border-color: rgba(255,100,100,0.3); }

/* 随机惊喜触发条 */
.surprise-trigger-bar {
  margin: 8px 16px;
  animation: surpriseSlide 0.3s ease;
}
@keyframes surpriseSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.surprise-hint {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn-claim-surprise {
  margin-left: auto;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  border: none;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 快速入口网格 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 16px;
}
.quick-grid-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-grid-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.qgi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  margin: 0 auto 8px;
}
.qgi-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* 限时活动 Banner */
.event-banner {
  margin: 8px 16px;
}
.event-banner-inner {
  background: linear-gradient(135deg, rgba(251,146,60,0.15), rgba(249,115,22,0.1));
  border: 1px solid rgba(251,146,60,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-icon-wrap {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,#fb923c,#f97316);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.event-title { font-size: 13px; font-weight: 600; color: #fb923c; }
.event-desc { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.event-countdown {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #fb923c;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════
   算力银行 Tab 样式
   ═══════════════════════════════════════════════════ */
#tab-bank {
  padding-bottom: 100px;
}
#tab-store {
  padding-bottom: 100px;
}

/* 银行资产卡片 */
.bank-hero-card {
  position: relative;
  margin: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  border: 1px solid rgba(102,126,234,0.2);
  padding: 20px;
}
.bank-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(102,126,234,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.bank-hero-card > * { position: relative; }
.bank-label {
  font-size: 12px;
  color: rgba(102,126,234,0.8);
  margin-bottom: 6px;
}
.bank-balance {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.bank-balance small {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.bank-today-interest {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.interest-num { color: #4ade80; font-weight: 600; }
.bank-sub-stats {
  display: flex;
  gap: 0;
  margin-top: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 0;
}
.bank-sub-item {
  flex: 1;
  text-align: center;
}
.sub-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.sub-val {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* 银行 section title */
.bank-section-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 16px 16px 8px;
}

/* 利率方案卡片 */
.bank-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
.bank-plan-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.bank-plan-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.plan-card-hot {
  border-color: rgba(251,146,60,0.4);
  background: rgba(251,146,60,0.08);
}
.plan-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 8px;
  font-weight: 600;
}
.plan-tag-floating { background: rgba(102,126,234,0.2); color: #a78bfa; }
.plan-tag-30 { background: rgba(72,199,142,0.2); color: #48c78e; }
.plan-tag-90 { background: rgba(59,130,246,0.2); color: #60a5fa; }
.plan-tag-365 { background: rgba(251,146,60,0.2); color: #fb923c; }
.plan-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.plan-rate { font-size: 16px; font-weight: 700; color: #fff; }
.rate-num { color: #4ade80; }
.plan-multiplier { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.plan-desc { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* 存入/取出操作卡片 */
.bank-actions { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.bank-action-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}
.action-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.action-desc { font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 12px; }
.action-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 8px;
}
.action-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
}
.action-input::placeholder { color: rgba(255,255,255,0.3); }
.input-suffix { font-size: 13px; color: rgba(255,255,255,0.4); }
.action-balance { font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn-bank-action {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-bank-action:hover { background: rgba(255,255,255,0.15); }
.btn-deposit-hot { background: rgba(251,146,60,0.15) !important; border-color: rgba(251,146,60,0.3) !important; color: #fb923c !important; }
.btn-withdraw-all {
  width: 100%;
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.2);
  color: #4ade80;
}

/* 定期存款列表 */
.bank-deposits { padding: 0 16px; }
.bank-deposit-empty {
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.bank-deposit-empty i { font-size: 28px; display: block; margin-bottom: 8px; opacity: 0.4; }
.bank-empty-tip { font-size: 11px !important; opacity: 0.5; }

.deposit-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.deposit-card-active { border-color: rgba(74,222,128,0.3); }
.deposit-card-mature { border-color: rgba(251,146,60,0.3); }
.deposit-info { flex: 1; }
.deposit-plan { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.deposit-amount { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.deposit-deadline { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.deposit-deadline.mature { color: #fb923c; font-weight: 600; }
.deposit-card-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}
.tag-locked { background: rgba(102,126,234,0.2); color: #a78bfa; }
.tag-mature { background: rgba(251,146,60,0.2); color: #fb923c; }
.tag-released { background: rgba(74,222,128,0.2); color: #4ade80; }
.btn-release {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* 收益历史 */
.bank-history { padding: 0 16px; }
.bank-empty-history { text-align: center; padding: 16px; color: rgba(255,255,255,0.25); font-size: 12px; }
.history-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.history-item:last-child { border-bottom: none; }
.history-date { font-size: 11px; color: rgba(255,255,255,0.35); width: 60px; }
.history-interest { font-size: 13px; font-weight: 600; color: #4ade80; flex: 1; }
.history-note { font-size: 11px; color: rgba(255,255,255,0.3); }

/* 复利开关 */
.bank-compound-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}
.compound-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 3px; }
.compound-desc { font-size: 11px; color: rgba(255,255,255,0.35); }
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}
.slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .slider { background: linear-gradient(135deg, #4ade80, #22c55e); }
input:checked + .slider::before { transform: translateX(20px); }

/* 银行说明 */
.bank-explainer {
  margin: 8px 16px 16px;
  background: rgba(102,126,234,0.08);
  border: 1px solid rgba(102,126,234,0.15);
  border-radius: 14px;
  padding: 14px 16px;
}
.explainer-title { font-size: 12px; font-weight: 600; color: rgba(102,126,234,0.9); margin-bottom: 8px; }
.explainer-item { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.8; }
.explainer-item strong { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════
   算力超市 Tab 样式
   ═══════════════════════════════════════════════════ */
.store-products {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.store-product-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.product-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
}
.product-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.product-desc { font-size: 10px; color: rgba(255,255,255,0.3); line-height: 1.5; margin-bottom: 10px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 15px; font-weight: 700; color: #fbbf24; }
.product-power { font-size: 11px; color: #4ade80; }
.btn-buy {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.store-empty { text-align: center; padding: 40px; color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════════════
   惊喜弹窗样式
   ═══════════════════════════════════════════════════ */
#modal-surprise {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  animation: modalFade 0.3s ease;
}
#modal-surprise.active { display: flex !important; }
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.surprise-modal {
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 24px;
  padding: 32px 24px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  animation: surpriseBounce 0.5s ease;
}
@keyframes surpriseBounce {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.surprise-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: surpriseIconBounce 1s ease infinite;
}
@keyframes surpriseIconBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.surprise-title {
  font-size: 20px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
}
.surprise-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.surprise-reward {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}
.surprise-reward-icon { font-size: 32px; margin-bottom: 8px; }
.surprise-reward-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.surprise-reward-desc { font-size: 12px; color: rgba(255,255,255,0.5); }
.btn-claim-reward {
  width: 100%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-claim-reward:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(251,191,36,0.3); }

/* ═══════════════════════════════════════════════════
   余额悬浮球（右下角）
   ═══════════════════════════════════════════════════ */
.floating-ball {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  box-shadow: 0 4px 16px rgba(79,172,254,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  animation: ballFloat 3s ease-in-out infinite;
}
.floating-ball:hover { transform: scale(1.1); }
@keyframes ballFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.floating-ball-label {
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Tab模态页（从底部滑入） */
.tab-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 500;
  background: #0f0f23;
  overflow-y: auto;
  padding-top: env(safe-area-inset-top);
  animation: slideUpModal 0.3s ease;
}
@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   三端响应式布局
   - 手机（默认）：底部Tab导航
   - 桌面（≥1024px）：左侧边栏 + 横屏大屏布局
   - 车载/平板（横屏≥768px）：大按钮 + 驾驶友好
═══════════════════════════════════════════════════════════ */

/* ── 桌面端：隐藏底部导航，显示侧边栏 ── */
@media (min-width: 1024px) {
  .bottom-nav { display: none !important; }

  .page-main {
    display: flex !important;
    flex-direction: row;
    min-height: 100vh;
    padding-bottom: 0 !important;
  }

  .sidebar-nav {
    display: flex !important;
    flex-direction: column;
    width: 220px;
    min-width: 220px;
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
  }

  .sidebar-logo {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
  }

  .sidebar-item:hover {
    background: rgba(79, 172, 254, 0.08);
    color: var(--text);
  }

  .sidebar-item.active {
    background: rgba(79, 172, 254, 0.12);
    color: var(--primary);
    border-left-color: var(--primary);
  }

  .sidebar-item i { font-size: 18px; width: 20px; text-align: center; }

  .sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .tab-content {
    margin-left: 220px !important;
    padding: 32px !important;
    padding-bottom: 32px !important;
    min-height: 100vh;
    max-width: 1200px;
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .stat-card { padding: 24px !important; }
  .stat-card .stat-num { font-size: 32px !important; }

  .tab-content > div,
  .tab-content > section,
  .tab-content > .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
  }

  .team-member-item, .task-item, .device-card, .earning-row {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  input, select, textarea {
    font-size: 15px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
  }

  .btn-primary {
    padding: 14px 32px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px !important;
  }

  .floating-start-btn {
    bottom: 32px !important;
    right: 32px !important;
    width: 64px !important;
    height: 64px !important;
    font-size: 24px !important;
  }
}

/* ── 车载/平板横屏模式（宽≥768px + 横屏） ── */
@media (min-width: 768px) and (orientation: landscape) {
  .bottom-nav {
    flex-direction: row !important;
    justify-content: center !important;
    height: 70px !important;
    padding-bottom: 0 !important;
  }

  .nav-item {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 12px;
  }

  .nav-item i { font-size: 24px !important; }

  .tab-content { padding: 20px 40px 80px !important; }

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .stat-card { padding: 20px !important; }
  .stat-card .stat-num { font-size: 28px !important; }
  h1, h2, h3 { font-size: larger !important; }

  .floating-start-btn {
    width: 80px !important;
    height: 80px !important;
    font-size: 28px !important;
    bottom: 90px !important;
    right: 40px !important;
  }
}

/* ── 桌面端登录页居中 ── */
@media (min-width: 1024px) {
  #page-auth {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
  }
}}


/* ���� ������ ������������������������������������������������������������������������������������������������������������������������������ */
.hidden { display: none !important; }

/* 成就页面样式 */
.ach-summary-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.ach-pts-value { color: var(--accent); font-weight: 700; font-size: 16px; }
.ach-divider { opacity: 0.3; margin: 0 4px; }
.ach-done-value { color: var(--primary); font-weight: 600; }

.ach-progress-bar-wrap { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 0 16px 12px; overflow: hidden; }
.ach-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; transition: width 0.5s ease; }

.ach-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.ach-loading { text-align: center; padding: 40px; color: var(--text-dim); }

.ach-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: all 0.3s; }
.ach-card:hover { border-color: var(--primary); transform: translateX(4px); }
.ach-card.ach-done { background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(34,197,94,0.05)); border-color: rgba(74,222,128,0.3); }
.ach-card.ach-locked { opacity: 0.5; }
.ach-card.ach-locked .ach-card-icon { filter: grayscale(1); }
.ach-card-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(79,172,254,0.15), rgba(118,75,162,0.15)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ach-card.ach-done .ach-card-icon { background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(34,197,94,0.15)); }
.ach-card-body { flex: 1; }
.ach-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.ach-card-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.ach-card-pts { font-size: 11px; color: var(--accent); margin-top: 4px; font-weight: 500; }
.ach-card-status { font-size: 20px; }
.ach-check { color: var(--success); }
.ach-lock { color: var(--text-dim); opacity: 0.4; }

/* 通知中心页面 */
.notif-header { padding: 20px 16px 12px; }
.notif-header h1 { font-size: 20px; font-weight: 700; }
.notif-filter { display: flex; gap: 8px; margin-top: 12px; }
.notif-filter-btn { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.notif-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.notif-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.notif-item { display: flex; gap: 12px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: all 0.2s; }
.notif-item:hover { border-color: var(--primary); }
.notif-item.unread { border-left: 3px solid var(--primary); background: rgba(79,172,254,0.03); }
.notif-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, rgba(79,172,254,0.15), rgba(118,75,162,0.1)); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.notif-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-dim); opacity: 0.6; margin-top: 6px; }
.notif-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.notif-empty i { font-size: 48px; opacity: 0.3; margin-bottom: 12px; }

/* 账户页增强 */
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 16px; }
.profile-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.profile-stat-value { font-size: 24px; font-weight: 800; color: var(--primary); }
.profile-stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.profile-stat-card.accent .profile-stat-value { color: var(--accent); }

.profile-vip-card { margin: 0 16px 16px; background: linear-gradient(135deg, #1a1a2e, #16213e); border: 1px solid rgba(251,146,60,0.3); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.profile-vip-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.profile-vip-info { flex: 1; }
.profile-vip-title { font-size: 14px; font-weight: 600; color: #fb923c; }
.profile-vip-desc { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.profile-vip-btn { padding: 8px 16px; border-radius: 20px; border: none; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }

.profile-account-info { margin: 0 16px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.profile-account-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-account-row:last-child { border-bottom: none; }
.profile-account-label { font-size: 13px; color: var(--text-dim); }
.profile-account-value { font-size: 13px; color: var(--text); font-weight: 500; }
.profile-account-value.code { font-family: monospace; letter-spacing: 2px; color: var(--primary); }
