/* =================================================
   GaGaya · style.css V3（稳定版）
   - 视频区更高更精致，预留后端接口位
   - 三卡片：GIP 1.5 : 右侧 1，任务/邀请横排，字号缩小
   - 全局字号 7 级规范
   - 修复 .page display 优先级问题
   ================================================= */

/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #333;
  max-width: 480px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* 关键修复：确保 .page 默认隐藏，active 才显示 */
.page { display: none !important; }
.page.active { display: block !important; }

/* ===== 底部导航独立任务页 ===== */
.nav-task-page {
  min-height: 100vh;
  padding-bottom: 80px;
  color: #f7f8ff;
  background: radial-gradient(circle at 84% 12%, #24214f 0, #151735 34%, #10132e 76%);
}
.nav-task-header {
  padding: 20px 18px 18px;
  color: #fff;
  background: linear-gradient(120deg, #6679df, #785ec9 56%, #8250ae);
}
.nav-task-header h2 {
  margin: 0 0 18px;
  font-size: 20px;
  text-align: center;
}
.nav-task-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.nav-task-stat {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.nav-task-stat:last-child { border-right: 0; }
.nav-task-stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nav-task-stat strong small { font-size: 10px; font-weight: 500; }
.nav-task-stat > span {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
}
.nav-task-body {
  padding: 14px;
}
.nav-task-card {
  margin-bottom: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #6578dc, #725cc3 52%, #8052ad);
  border: 1px solid rgba(180,179,255,0.2);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16,14,54,0.25);
}
.nav-task-preview-card {
  background: linear-gradient(145deg, #1d2048, #25204e);
  border-color: #38376b;
}
.nav-task-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}
.nav-task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.nav-task-card-head p,
.nav-task-hint,
.nav-task-preview-note {
  margin: 0;
  color: rgba(247,248,255,0.7);
  font-size: 11px;
  line-height: 1.5;
}
.nav-task-primary-btn {
  flex-shrink: 0;
  min-width: 68px;
  padding: 10px 12px;
  color: #292146;
  background: linear-gradient(135deg, #ffe05a, #f5bd32);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(71,49,5,0.2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-task-primary-btn:disabled {
  color: rgba(255,255,255,0.64);
  background: rgba(39,37,91,0.55);
  box-shadow: none;
  cursor: default;
}
.nav-task-sign-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
}
.nav-task-sign-day {
  padding: 8px 1px;
  text-align: center;
  background: rgba(29,27,80,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
}
.nav-task-sign-day b {
  display: block;
  margin-bottom: 3px;
  color: #ffd650;
  font-size: 11px;
  font-weight: 700;
}
.nav-task-sign-day span {
  color: rgba(255,255,255,0.62);
  font-size: 9px;
}
.nav-task-sign-day.active {
  background: rgba(255,214,80,0.18);
  border-color: rgba(255,214,80,0.75);
}
.nav-task-level-chip,
.nav-task-ad-meta span {
  padding: 5px 8px;
  color: rgba(255,255,255,0.84);
  background: rgba(34,30,87,0.38);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 10px;
}
.nav-task-level-chip { flex-shrink: 0; }
.nav-task-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.nav-task-ad-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(27,26,73,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}
.nav-task-ad-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: rgba(33,31,86,0.52);
  border-radius: 11px;
  font-size: 18px;
}
.nav-task-ad-info { min-width: 0; }
.nav-task-ad-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.nav-task-ad-info span {
  display: block;
  overflow: hidden;
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-task-ad-complete {
  display: none;
  padding: 14px;
  color: #9bf0bd;
  text-align: center;
  background: rgba(67,197,123,0.12);
  border: 1px solid rgba(94,225,151,0.2);
  border-radius: 14px;
  font-size: 13px;
}
.nav-task-preview-card > h3 { margin-bottom: 6px; }
.nav-task-preview-note { margin-bottom: 8px; color: #a7abd0; }
.nav-task-level-row {
  display: grid;
  grid-template-columns: 50px minmax(55px,1fr) 75px 48px;
  align-items: center;
  gap: 7px;
  padding: 11px 1px;
  border-bottom: 1px solid #373763;
  font-size: 11px;
}
.nav-task-level-row:last-child { border-bottom: 0; }
.nav-task-level-name { color: #ffd650; font-weight: 700; }
.nav-task-level-times { color: #b7bbd9; }
.nav-task-level-income { text-align: right; font-variant-numeric: tabular-nums; }
.nav-task-view-btn {
  padding: 7px 8px;
  color: #f2f3ff;
  background: linear-gradient(135deg, #5e6fd4, #7454b8);
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  cursor: pointer;
}
@media (max-width: 360px) {
  .nav-task-body { padding-right: 10px; padding-left: 10px; }
  .nav-task-card { padding: 13px; }
  .nav-task-level-row { grid-template-columns: 44px minmax(48px,1fr) 66px 44px; gap: 4px; }
  .nav-task-sign-day { padding: 7px 0; }
}

/* =================================================
   UI6 · 资金账本与 GIP 顶部概览（在 UI5 上增量添加）
   ================================================= */
.me-balance-values { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(105px,.85fr); flex: 1; align-items: center; gap: 12px; min-width: 0; }
.me-pending-balance { min-width: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.me-pending-balance strong { display: block; font-size: 16px; white-space: nowrap; }
.me-pending-balance small { display: block; margin-top: 4px; color: #dddfff; font-size: 8px; line-height: 1.35; }

.nav-task-pool-card { padding: 14px 16px !important; }
.nav-task-pool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-task-pool-head > div { display: grid; gap: 4px; }
.nav-task-pool-head span { color: #9098aa; font-size: 9px; }
.nav-task-pool-head strong { color: #222b42; font-size: 21px; font-weight: 700; }
.nav-task-pool-head strong b { font: inherit; }
.nav-task-pool-head em { padding: 6px 9px; border-radius: 9px; color: #5f4deb; background: #efedff; font-size: 9px; font-style: normal; }
.nav-task-pool-meta { display: flex; gap: 7px; margin-top: 11px; }
.nav-task-pool-meta span { flex: 1; padding: 7px 8px; border-radius: 9px; color: #7e8698; background: #f6f7fb; font-size: 9px; }
.nav-task-pool-meta b { color: #414a60; }
.nav-task-pool-cycle { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f4; font-size: 9px; }
.nav-task-pool-cycle span { color: #4f586d; }
.nav-task-pool-cycle b { color: #158b68; font-weight: 600; text-align: right; }

#gip-page .gip-overview-card { min-height: 0; padding: 17px 18px; }
#gip-page .gip-overview-top { display: flex; gap: 13px; }
#gip-page .gip-current-badge { flex: 0 0 50px; width: 50px; height: 50px; }
.gip-overview-info { min-width: 0; }
.gip-overview-kicker { display: block; margin-bottom: 4px; color: #dbd9ff; font-size: 9px; }
.gip-overview-name { color: #fff; font-size: 17px; font-weight: 750; }
.gip-overview-rights { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.gip-overview-rights div { min-width: 0; }
.gip-overview-rights span,.gip-overview-rights b { display: block; }
.gip-overview-rights span { color: #d8d6fa; font-size: 8px; }
.gip-overview-rights b { overflow: hidden; margin-top: 4px; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#gip-page .gip-overview-income,#gip-page .gip-overview-ads { margin: 0; font-size: 10px; }

.withdraw-fee-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 11px 0; padding: 10px 11px; border-radius: 10px; color: #7062df; background: #f1efff; font-size: 9px; }
.withdraw-fee-status b { color: #5947e9; font-variant-numeric: tabular-nums; }
.withdraw-cancel-btn { margin-left: 7px; padding: 4px 7px; border: 0; border-radius: 7px; color: #e15a68; background: #fff0f2; font-size: 8px; }
.dhi-wait { color: #d68a1c; }

@media (max-width: 360px) {
  .me-balance-panel { flex-wrap: wrap; }
  .me-balance-values { width: 100%; }
  .me-balance-actions { margin-left: auto; }
  .nav-task-pool-meta { flex-direction: column; }
}
.login-box {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
}
.login-box h1 { color: #667eea; font-size: 28px; margin-bottom: 6px; }
.login-sub { color: #999; font-size: 14px; margin-bottom: 30px; }
.login-box input {
  width: 100%; padding: 14px; margin-bottom: 14px;
  border: 1px solid #ddd; border-radius: 10px;
  font-size: 16px; outline: none;
}
.login-box input:focus { border-color: #667eea; }
.tip { margin-top: 20px; color: #bbb; font-size: 12px; }
.login-register-btn {
  width: 100%; padding: 13px; border: 1px solid #6b5ce7; border-radius: 10px;
  color: #6254df; background: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ========== 注册页 ========== */
.register-page { min-height: 100vh; padding-bottom: 28px; background: #f4f6fb; }
.register-header { height: 58px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 0 14px; color: #fff; background: linear-gradient(110deg,#667ae4,#7c4fb3); }
.register-header h2 { margin: 0; text-align: center; font-size: 19px; }
.register-back { border: 0; color: #fff; background: transparent; font-size: 35px; line-height: 1; cursor: pointer; }
.register-content { padding: 18px 14px; }
.register-card { padding: 20px; border: 1px solid #edf0f7; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(39,50,94,.08); }
.register-brand { display: flex; justify-content: center; height: 76px; overflow: hidden; }
.register-brand img { width: 104px; height: 104px; margin-top: -14px; object-fit: contain; }
.register-card h1 { margin: 4px 0 5px; color: #171d36; text-align: center; font-size: 22px; }
.register-subtitle { margin: 0 0 21px; color: #9299ab; text-align: center; font-size: 13px; }
.register-label { display: block; margin: 14px 2px 7px; color: #31384d; font-size: 13px; font-weight: 650; }
.register-label em { color: #ff5369; font-style: normal; font-size: 12px; }
.register-control { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #dfe3ec; border-radius: 12px; outline: none; color: #20263c; background: #fff; font-size: 15px; }
.register-control:focus { border-color: #725be4; box-shadow: 0 0 0 3px rgba(114,91,228,.10); }
.register-phone-row { display: grid; grid-template-columns: 92px 1fr; gap: 9px; }
.register-country { padding-left: 12px; appearance: auto; font-weight: 650; }
.register-field-hint { margin: 6px 2px 0; color: #969daf; font-size: 11px; }
.register-code-row { display: grid; grid-template-columns: 1fr 116px; gap: 9px; margin-top: 9px; }
.register-code-row button { border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#6877ec,#7751c2); font-size: 13px; font-weight: 700; cursor: pointer; }
.register-code-row button:disabled { color: #999faf; background: #eceef4; cursor: not-allowed; }
.register-required-note { margin: 7px 2px 0; padding-left: 16px; position: relative; color: #ff6677; font-size: 11px; }
.register-required-note::before { content: "!"; position: absolute; left: 1px; font-weight: 800; }
.register-submit { width: 100%; margin-top: 22px; padding: 14px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(120deg,#6179ed,#714fee 54%,#7e4db7); font-size: 16px; font-weight: 800; box-shadow: 0 8px 18px rgba(105,82,224,.22); cursor: pointer; }
.register-submit:disabled { box-shadow: none; background: #c8cbd5; cursor: not-allowed; }
.register-login-link { width: 100%; margin-top: 13px; border: 0; color: #675be1; background: transparent; font-size: 13px; cursor: pointer; }
@media (max-height: 760px) {
  .register-content { padding-top: 12px; }
  .register-card { padding-top: 14px; }
  .register-brand { height: 56px; }
  .register-brand img { width: 82px; height: 82px; }
}

/* ========== 按钮 ========== */
.btn {
  width: 100%; padding: 14px; border-radius: 10px;
  font-size: 16px; font-weight: bold; cursor: pointer;
  border: none; margin-bottom: 12px;
}
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-outline { background: transparent; color: #667eea; border: 1px solid #667eea; }
.btn-primary-full {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white; border: none; border-radius: 10px;
  font-size: 16px; font-weight: bold; cursor: pointer;
}

/* ========== 页面头部 ========== */
.page-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 24px 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.page-header h2 { color: white; font-size: 20px; }
.header-sub { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 4px; }

/* ========== 统计栏 ========== */
.stats-bar {
  margin: 15px 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 18px;
  padding: 18px 10px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.stats-bar .stat-item { text-align: center; flex: 1; }
.stats-bar .stat-num {
  display: block; font-size: 22px; font-weight: 800; color: #fff;
}
.stats-bar .stat-num.stat-green { color: #43e97b; }
.stats-bar .stat-num.stat-gold  { color: #ffd700; }
.stats-bar .stat-label {
  font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 3px;
}
.stat-divider { width: 1px; background: rgba(255,255,255,0.1); margin: 2px 0; }

/* ========== 四宫格功能入口 ========== */
.home-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
}
.home-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 2px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  cursor: pointer;
}
.home-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.home-icon-deposit  { background: linear-gradient(135deg, #f5576c, #f093fb); }
.home-icon-withdraw { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.home-icon-sign     { background: linear-gradient(135deg, #fa709a, #fee140); }
.home-icon-intro    { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.home-icon-label { font-size: 12px; color: #555; font-weight: 600; }

/* ========== 视频区 V3（更高更精致，预留后端接口） ========== */
.home-video-box { margin: 0 14px 14px; }

.video-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26,26,46,0.25);
  position: relative;
}
.video-cover {
  background: linear-gradient(155deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #1a1a2e 100%);
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 双层径向光晕 */
.video-cover::before {
  content: '';
  position: absolute; top: -40px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 65%);
  border-radius: 50%;
}
.video-cover::after {
  content: '';
  position: absolute; bottom: -30px; left: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(240,83,130,0.18) 0%, transparent 65%);
  border-radius: 50%;
}
.video-play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin-bottom: 16px;
  position: relative; z-index: 1;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.video-play-btn:active {
  transform: scale(0.93);
  background: rgba(255,255,255,0.2);
}
.video-title {
  font-size: 17px; font-weight: 700; color: #fff;
  margin-bottom: 5px;
  position: relative; z-index: 1;
}
.video-sub {
  font-size: 12px; color: rgba(255,255,255,0.5);
  position: relative; z-index: 1;
}
.video-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: #ffd700;
  font-size: 10px;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 600;
  position: relative; z-index: 1;
}
/* 真实 video 标签样式（后端填入 src 后显示） */
.video-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* ========== 核心三卡片 V3（比例 1.5 : 1） ========== */
.home-bottom-icons {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

/* GIP 主卡 */
.home-bottom-card {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.home-bottom-card:active { transform: scale(0.97); }

.home-bottom-card.card-gip {
  flex: 1.5;
  background: linear-gradient(155deg, #f7971e 0%, #ffd200 100%);
  color: #5a3500;
  padding: 20px 18px;
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 6px 20px rgba(247,151,30,0.3);
}
.home-bottom-card.card-gip::after {
  content: '🏆';
  position: absolute; top: 14px; right: 14px;
  font-size: 30px; opacity: 0.3;
}
.home-bottom-card.card-gip::before {
  content: '';
  position: absolute; bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
}

/* 右侧双卡容器 */
.home-bottom-right {
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}

/* 任务中心 + 邀请好友（横排，字号缩小） */
.home-bottom-card.card-task,
.home-bottom-card.card-invite {
  padding: 14px 14px;
  display: flex; align-items: center; gap: 10px;
  min-height: 55px;
}
.home-bottom-card.card-task::after,
.home-bottom-card.card-invite::after {
  content: '';
  position: absolute; top: -10px; right: -10px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.card-task { background: linear-gradient(135deg, #f7971e 0%, #f35525 100%); box-shadow: 0 4px 14px rgba(243,85,37,0.25); }
.card-invite { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); box-shadow: 0 4px 14px rgba(67,233,123,0.25); }

.card-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.card-gip    .card-icon-wrap { background: rgba(255,255,255,0.45); }
.card-task   .card-icon-wrap { background: rgba(255,255,255,0.22); }
.card-invite .card-icon-wrap { background: rgba(255,255,255,0.4);  }

.card-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.card-title { font-size: 14px; font-weight: 700; }
.card-gip    .card-title { color: #5a3500; font-size: 15px; }
.card-task   .card-title { color: #fff; }
.card-invite .card-title { color: #0a4d2e; }
.card-sub { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-gip    .card-sub { color: rgba(90,53,0,0.7); }
.card-task   .card-sub { color: rgba(255,255,255,0.8); }
.card-invite .card-sub { color: rgba(10,77,46,0.7); }

.card-arrow {
  font-size: 20px; font-weight: 700; flex-shrink: 0;
  transition: transform 0.2s;
}
.card-gip    .card-arrow { color: rgba(90,53,0,0.5); }
.card-task   .card-arrow { color: rgba(255,255,255,0.6); }
.card-invite .card-arrow { color: rgba(10,77,46,0.5); }
.home-bottom-card:active .card-arrow { transform: translateX(3px); }

/* ========== 全球品牌合作伙伴 ========== */
.home-partners {
  margin: 0 14px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  position: relative; overflow: hidden;
}
.home-partners::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 65%);
  border-radius: 50%;
}
.partners-head { position: relative; margin-bottom: 14px; }
.partners-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.partners-sub { font-size: 10px; color: rgba(255,255,255,0.45); }

.partners-track {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.partners-track::-webkit-scrollbar { display: none; }
.partner-card {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ========== 首页背景 ========== */
.home-page {
  padding-bottom: 70px;
  min-height: 100vh;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 25%, #f5f6f8 25%, #f5f6f8 100%);
}

/* ========== 头部品牌栏 ========== */
.home-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; color: white;
}
.home-logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.home-topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-icon { font-size: 18px; cursor: pointer; opacity: 0.9; }
.topbar-lang {
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  padding: 5px 10px; border-radius: 10px; cursor: pointer;
}

/* ========== 底部 Tab 栏 ========== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 999;
  max-width: 480px; margin: 0 auto;
}
.tabbar.hidden { display: none !important; }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 0; cursor: pointer; color: #999;
  transition: color 0.2s;
}
.tab-item.active { color: #667eea; }
.tab-icon { font-size: 22px; line-height: 1.2; }
.tab-text { font-size: 11px; font-weight: 500; }

/* ========== 弹窗 ========== */
.modal {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal.active { display: flex !important; }
.modal-box { background: white; border-radius: 16px; width: 90%; max-width: 380px; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid #eee;
}
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; }
.modal-body { padding: 20px; }
.balance-info { text-align: center; font-size: 16px; margin-bottom: 20px; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.amount-btn {
  padding: 14px; border: 1px solid #ddd; background: white;
  border-radius: 8px; cursor: pointer; font-size: 15px;
}
.amount-btn.selected { border-color: #667eea; background: #667eea; color: white; }
.btn-withdraw-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white; border: none; border-radius: 10px;
  font-size: 16px; font-weight: bold; cursor: pointer;
}

/* ========== Toast ========== */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8); color: white;
  padding: 14px 24px; border-radius: 10px;
  z-index: 2000; opacity: 0;
  transition: opacity 0.3s; pointer-events: none; font-size: 14px;
}
.toast.show { opacity: 1; }

/* ========== 子页面通用 ========== */
.subpage-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 15px 20px;
  display: flex; align-items: center; gap: 15px;
  position: sticky; top: 0; z-index: 10;
}
.subpage-back {
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; line-height: 1; padding: 0; width: 32px;
}
.subpage-header h3 { color: #fff; font-size: 18px; font-weight: 600; margin: 0; flex: 1; text-align: center; }
.subpage-body { padding: 20px 15px; padding-bottom: 80px; }

/* ========== 任务页 ========== */
.task-subtabs {
  display: flex; background: #fff; border-bottom: 1px solid #eee;
  position: sticky; top: 56px; z-index: 10;
}
.task-subtab {
  flex: 1; padding: 14px 0; border: none; background: none;
  font-size: 15px; color: #999; cursor: pointer; position: relative;
}
.task-subtab.active { color: #667eea; font-weight: 600; }
.task-subtab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 3px; background: #667eea; border-radius: 3px 3px 0 0;
}

/* 每日任务卡片 */
.daily-task-card {
  background: #fff; border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 12px;
}
.daily-task-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.daily-task-icon {
  font-size: 26px; width: 48px; height: 48px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.daily-task-info { flex: 1; min-width: 0; }
.daily-task-name { font-weight: 700; font-size: 15px; color: #333; margin-bottom: 3px; }
.daily-task-desc { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 6px; }
.daily-task-desc b { color: #f5576c; font-weight: 700; }
.daily-task-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-task-tag {
  display: inline-block; background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.daily-task-count { font-size: 11px; color: #999; }
.daily-task-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border: none; padding: 9px 18px;
  border-radius: 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}
.daily-task-btn:active { transform: scale(0.95); }
.daily-task-btn:disabled, .daily-task-btn.claimed { background: #e0e0e0; color: #aaa; cursor: not-allowed; }

/* 个人任务卡片 */
.personal-task-list { display: flex; flex-direction: column; gap: 12px; }
.personal-task-card {
  background: #fff; border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: opacity 0.2s;
}
.personal-task-card.pt-locked { opacity: 0.55; background: #f8f8f8; }
.personal-task-card.pt-claimed { background: linear-gradient(135deg, #f0fff4, #e8fff0); border: 1px solid #c8f7d4; }
.pt-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pt-level-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.pt-level-badge.badge-locked { background: #ccc; }
.pt-info { flex: 1; min-width: 0; }
.pt-name { font-weight: 700; font-size: 14px; color: #333; margin-bottom: 3px; }
.pt-reward { font-size: 13px; color: #666; }
.pt-reward b { color: #f5576c; font-size: 15px; font-weight: 800; }
.pt-lock-hint { font-size: 11px; color: #e8850c; margin-top: 3px; }
.pt-btn {
  border: none; padding: 9px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: transform 0.15s, opacity 0.2s;
}
.pt-btn:active:not(:disabled) { transform: scale(0.95); }
.pt-btn.ready { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; box-shadow: 0 2px 10px rgba(245,87,108,0.3); }
.pt-btn.claimed { background: #43e97b; color: #fff; cursor: default; }
.pt-btn.locked { background: #e8e8e8; color: #999; cursor: not-allowed; }

/* 任务说明 */
.task-note-card {
  background: #fff8f0; border: 1px solid #ffe0cc;
  border-radius: 12px; padding: 14px 16px; margin-top: 16px;
}
.task-note-item { font-size: 13px; color: #777; line-height: 2; padding-left: 4px; }

/* ========== 团队页 ========== */
.team-subtabs {
  display: flex; background: #fff; border-bottom: 1px solid #eee;
  position: sticky; top: 56px; z-index: 10;
}
.team-subtab {
  flex: 1; padding: 14px 0; border: none; background: none;
  font-size: 15px; color: #999; cursor: pointer; position: relative;
}
.team-subtab.active { color: #ff6b35; font-weight: 600; }
.team-subtab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 3px; background: #ff6b35; border-radius: 3px 3px 0 0;
}
.team-panel { padding: 15px; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0.6; } to { opacity: 1; } }

.team-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.team-card {
  border-radius: 14px; padding: 20px 12px; text-align: center;
  color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,0.25);
  min-height: 85px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff9a56);
}
.team-card:nth-child(3), .team-card:nth-child(4) {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 4px 16px rgba(102,126,234,0.25);
}
.team-card-num { display: block; font-size: 28px; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
.team-card-label { font-size: 12px; opacity: 0.92; }

.invite-box { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 20px; }
.invite-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #333; }
.invite-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: stretch; }
.invite-code {
  flex: 1; background: linear-gradient(135deg, #fff5f0, #fff0e6);
  border: 1px solid #ffe0d1; padding: 12px; border-radius: 10px;
  text-align: center; font-size: 20px; font-weight: 700;
  letter-spacing: 4px; color: #ff6b35;
  display: flex; align-items: center; justify-content: center;
}
.invite-link {
  flex: 1; background: #f7f7f7; border: 1px solid #eee;
  padding: 12px; border-radius: 10px; font-size: 12px;
  color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none;
}
.invite-copy {
  background: linear-gradient(135deg, #ff6b35, #ff9a56);
  color: #fff; border: none; padding: 12px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: transform 0.15s;
}
.invite-copy:active { transform: scale(0.96); }
.invite-desc { margin: 14px 0 0; font-size: 12px; color: #999; line-height: 1.6; }
.invite-desc b { color: #ff6b35; }

.members-list { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 12px; }
.member-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f2f2f2; }
.member-item:last-child { border-bottom: none; }
.member-rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-right: 12px; flex-shrink: 0; color: #fff;
}
.member-rank.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); box-shadow: 0 2px 8px rgba(255,170,0,0.4); }
.member-rank.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); box-shadow: 0 2px 8px rgba(160,160,160,0.4); }
.member-rank.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); box-shadow: 0 2px 8px rgba(160,82,45,0.4); }
.member-rank.rank-normal { background: #f0f0f0; color: #999; }
.member-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; margin-right: 12px; flex-shrink: 0;
}
.member-avatar.avatar-0 { background: linear-gradient(135deg, #ff6b35, #ff9a56); }
.member-avatar.avatar-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.member-avatar.avatar-2 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.member-avatar.avatar-3 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.member-avatar.avatar-4 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 15px; font-weight: 500; color: #333; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-date { font-size: 12px; color: #aaa; }
.member-coin { text-align: right; flex-shrink: 0; }
.member-coin-num { font-size: 17px; font-weight: 700; color: #ff6b35; margin-bottom: 2px; }
.member-coin-label { font-size: 11px; color: #bbb; }

/* ===== 新版团队核心页面 ===== */
.team-dashboard-page {
  min-height: 100vh;
  padding-bottom: 76px;
  color: #f7f8ff;
  background: radial-gradient(circle at 84% 12%, #24214f 0, #151735 34%, #10132e 76%);
}
.team-dashboard-header {
  color: #fff;
  background: linear-gradient(120deg, #6679df, #785ec9 56%, #8250ae);
}
.team-dashboard-header .subpage-back { color: #fff; }
.team-dashboard-body { padding: 14px; }
.team-overview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #1c2049, #151730 70%, #232050);
  border: 1px solid #373a70;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(6,8,31,0.28);
}
.team-overview-members > span,
.team-overview-members > small,
.team-overview-income > small {
  display: block;
  color: #aeb4d1;
  font-size: 11px;
}
.team-overview-members > strong,
.team-overview-income > strong {
  display: block;
  margin: 6px 0 4px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.team-overview-income { text-align: right; }
.team-overview-income > small b { color: #ffd650; font-weight: 600; }
.team-people-icon {
  margin-bottom: 2px;
  color: #8c7cf2;
  font-size: 24px;
  letter-spacing: -8px;
}
.team-dashboard-section {
  margin-bottom: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #1d2048, #25204e);
  border: 1px solid #38376b;
  border-radius: 18px;
}
.team-dashboard-section > h3 {
  margin: 0 0 13px;
  color: #f7f8ff;
  font-size: 15px;
  font-weight: 700;
}
.team-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 7px;
}
.team-level-tile {
  padding: 10px 2px;
  text-align: center;
  background: rgba(102,121,223,0.12);
  border: 1px solid rgba(160,166,244,0.14);
  border-radius: 12px;
}
.team-level-tile strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  font-weight: 700;
}
.team-level-tile span { color: #aeb3d0; font-size: 10px; }
.team-level-l1 strong { color: #ff9b54; }
.team-level-l2 strong { color: #7796ff; }
.team-level-l3 strong { color: #ad7cff; }
.team-level-total strong { color: #67dfa3; }
.team-income-row {
  display: grid;
  width: 100%;
  grid-template-columns: 64px minmax(0,1fr) minmax(0,1fr) 14px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 10px;
  color: #f7f8ff;
  text-align: left;
  background: rgba(31,34,75,0.78);
  border: 1px solid #343866;
  border-radius: 13px;
  cursor: pointer;
}
.team-income-row:last-child { margin-bottom: 0; }
.team-rate-badge {
  padding: 8px 4px;
  color: #fff;
  text-align: center;
  border-radius: 10px;
}
.team-rate-badge strong,
.team-rate-badge span { display: block; }
.team-rate-badge strong { margin-bottom: 2px; font-size: 14px; }
.team-rate-badge span { color: rgba(255,255,255,0.8); font-size: 11px; }
.team-rate-l1 { background: linear-gradient(135deg, #ff8b42, #ff6738); }
.team-rate-l2 { background: linear-gradient(135deg, #688cff, #4f68dd); }
.team-rate-l3 { background: linear-gradient(135deg, #9667f4, #7244d2); }
.team-income-metric span {
  display: block;
  margin-bottom: 3px;
  color: #9298b9;
  font-size: 10px;
}
.team-income-metric strong {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.team-income-row[data-level="l1"] .team-income-metric strong { color: #ff9b54; }
.team-income-row[data-level="l2"] .team-income-metric strong { color: #7796ff; }
.team-income-row[data-level="l3"] .team-income-metric strong { color: #ad7cff; }
.team-income-arrow { color: #7e84a8; font-size: 18px; text-align: center; }
.team-level-limit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  color: #b7bbd8;
  background: rgba(102,121,223,0.1);
  border-radius: 11px;
  font-size: 10px;
  line-height: 1.5;
}
.team-level-limit b { flex-shrink: 0; color: #ffd650; }
.team-invite-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: linear-gradient(135deg, #6578dc, #725cc3 52%, #8052ad);
  border: 1px solid rgba(180,179,255,0.2);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16,14,54,0.25);
}
.team-invite-banner h3 { margin: 0 0 5px; font-size: 15px; }
.team-invite-banner p { margin: 0 0 11px; color: rgba(255,255,255,0.7); font-size: 11px; }
.team-invite-banner button {
  padding: 9px 14px;
  color: #292146;
  background: linear-gradient(135deg, #ffe05a, #f5bd32);
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.team-invite-gift { font-size: 42px; }
.team-level-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8,10,27,0.84);
}
.team-level-modal.active { display: flex; }
.team-level-modal-box {
  width: min(100%,390px);
  max-height: 78vh;
  overflow-y: auto;
  padding: 20px;
  color: #f7f8ff;
  background: linear-gradient(145deg, #262652, #4d367b);
  border: 1px solid #5e5591;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.team-level-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.team-level-modal-head h3 { margin: 0; font-size: 16px; }
.team-level-modal-head button {
  padding: 6px 9px;
  color: #e9ebff;
  background: rgba(255,255,255,0.1);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.team-level-formula { margin: 0 0 13px; color: #c3c7e0; font-size: 11px; }
.team-level-member-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 80px 72px;
  align-items: center;
  gap: 7px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  font-size: 11px;
}
.team-level-member-item:last-child { border-bottom: 0; }
.team-level-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-level-member-name small { display: block; margin-top: 3px; color: #9da3c3; font-size: 9px; }
.team-level-member-earning { color: #aeb4d1; text-align: right; }
.team-level-member-commission { color: #ffd650; text-align: right; font-weight: 700; }
.team-extra-note {
  margin-top: 13px;
  padding: 10px;
  color: #98e5b6;
  background: rgba(67,197,123,0.1);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
}
@media (max-width: 360px) {
  .team-dashboard-body { padding-right: 10px; padding-left: 10px; }
  .team-dashboard-section { padding: 13px; }
  .team-income-row { grid-template-columns: 56px minmax(0,1fr) minmax(0,1fr) 12px; gap: 5px; padding: 8px; }
  .team-level-member-item { grid-template-columns: minmax(0,1fr) 68px 64px; }
}

/* ========== 我的页面 ========== */
.me-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 20px; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
}
.me-usercard { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.me-avatar-wrapper { flex-shrink: 0; }
.me-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; cursor: pointer;
}
.me-avatar-placeholder { font-size: 32px; color: rgba(255,255,255,0.8); }
#avatarPreview { width: 100%; height: 100%; object-fit: cover; display: none; }
#avatarPreview.show { display: block; }
.me-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 24px; height: 24px; background: #ff6b35; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 2px solid #fff;
}
.me-userinfo { flex: 1; min-width: 0; color: #fff; }
.me-nickname-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.me-nickname { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-edit-btn { font-size: 14px; opacity: 0.8; cursor: pointer; flex-shrink: 0; }
.me-uid-row, .me-invite-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.me-label { opacity: 0.7; flex-shrink: 0; }
.me-uid, .me-invitecode { font-family: monospace; letter-spacing: 1px; }
.me-copy-btn { font-size: 12px; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; cursor: pointer; flex-shrink: 0; }

.me-list { padding: 15px; padding-bottom: 80px; }
.me-group { background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.me-item { display: flex; align-items: center; padding: 15px 16px; border-bottom: 1px solid #f2f2f2; cursor: pointer; transition: background 0.15s; }
.me-item:last-child { border-bottom: none; }
.me-item:hover { background: #fafafa; }
.me-item-icon { font-size: 20px; width: 28px; flex-shrink: 0; }
.me-item-text { flex: 1; font-size: 15px; color: #333; padding-left: 12px; }
.me-item-status { font-size: 13px; color: #999; margin-right: 8px; }
.me-item-status.done { color: #43e97b; }
.me-item-arrow { font-size: 20px; color: #ccc; flex-shrink: 0; }
.me-logout .me-item-text { color: #f5576c; font-weight: 500; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px; border: 1px solid #e0e0e0;
  border-radius: 10px; font-size: 15px; outline: none; resize: vertical; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #667eea; }
.form-hint { font-size: 11px; color: #e8850c; margin-top: 4px; }

.verify-row { display: flex; gap: 12px; align-items: flex-end; }
.verify-input { flex: 1; }
.verify-btn {
  padding: 14px 16px; background: #e0e0e0; color: #999;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 500;
  cursor: not-allowed; white-space: nowrap; flex-shrink: 0;
}
.verify-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; cursor: pointer; }

.btn-outline-full {
  width: 100%; padding: 14px;
  background: transparent; color: #f5576c; border: 1px solid #f5576c;
  border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 15px;
}

/* ========== 身份认证 ========== */
.id-tips { background: #fff8f0; color: #ff6b35; padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.id-photo-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.id-photo-item label { font-size: 14px; color: #666; margin-bottom: 8px; display: block; font-weight: 500; }
.id-upload-box {
  border: 2px dashed #ddd; border-radius: 12px; padding: 30px;
  text-align: center; cursor: pointer; transition: border-color 0.2s;
}
.id-upload-box:hover { border-color: #667eea; }
.id-upload-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }
.id-upload-text { font-size: 13px; color: #999; }
.id-upload-box img { width: 100%; display: block; }
.id-upload-box.has-image { border-style: solid; border-color: #43e97b; padding: 0; overflow: hidden; }

/* ========== 邮箱绑定 ========== */
.email-tips { background: #e8f4fd; color: #667eea; padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.email-bound { text-align: center; padding: 30px 20px; }
.email-bound-icon { font-size: 48px; margin-bottom: 15px; }
.email-bound-text { font-size: 15px; color: #333; margin-bottom: 20px; }

/* ========== 语言设置 ========== */
.lang-item { display: flex; align-items: center; padding: 16px; background: #fff; border-bottom: 1px solid #f2f2f2; cursor: pointer; }
.lang-item:last-child { border-bottom: none; }
.lang-item:hover { background: #fafafa; }
.lang-item.active { background: #f5f0ff; }
.lang-flag { font-size: 24px; width: 40px; flex-shrink: 0; }
.lang-name { flex: 1; font-size: 15px; color: #333; }
.lang-check { color: #667eea; font-size: 18px; font-weight: bold; flex-shrink: 0; }

/* ========== FAQ ========== */
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-question { padding: 16px; font-size: 15px; font-weight: 500; color: #333; cursor: pointer; position: relative; padding-right: 40px; }
.faq-question::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 20px; color: #ccc; transition: transform 0.2s; }
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(-90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14px; color: #666; line-height: 1.6; background: #fafafa; }
.faq-item.open .faq-answer { max-height: 200px; padding: 14px 16px; }

/* ========== 关于我们 ========== */
.about-body { text-align: center; padding: 40px 20px; }
.about-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 15px; }
.about-logo-icon { font-size: 56px; }
.about-logo-text { font-size: 22px; font-weight: 700; color: #333; }
.about-version { font-size: 14px; color: #999; margin-bottom: 25px; }
.about-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 30px; padding: 0 10px; }
.about-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.about-link { font-size: 14px; color: #667eea; cursor: pointer; }
.about-copyright { font-size: 12px; color: #ccc; }

/* ========== 签到 ========== */
.sign-progress { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sign-day {
  min-width: 40px; padding: 4px 8px; height: 32px;
  border-radius: 10px; background: #f3f4f8; color: #aaa;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid transparent; transition: all .25s;
}
.sign-day.active {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white; border-color: rgba(255,255,255,0.4);
  box-shadow: 0 2px 8px rgba(245,87,108,0.35);
}

/* ========== 广告播放页 ========== */
.ad-player { height: 100vh; background: #1a1a2e; display: flex; flex-direction: column; }
.ad-header { display: flex; align-items: center; padding: 15px; gap: 10px; }
.ad-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.ad-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.ad-progress { height: 100%; background: #667eea; width: 0%; transition: width 0.3s; }
.ad-time { color: white; font-size: 14px; min-width: 40px; text-align: right; }
.ad-content { flex: 1; display: flex; align-items: center; justify-content: center; }
.task-ad-video { width: 100%; max-height: calc(100vh - 190px); background: #000; object-fit: contain; }
.ad-mock { text-align: center; color: white; }
.ad-icon { font-size: 80px; margin-bottom: 20px; }
.ad-title { font-size: 22px; margin-bottom: 10px; }
.ad-subtitle { color: rgba(255,255,255,0.6); font-size: 14px; }
.ad-footer { padding: 20px; }
.ad-reward { text-align: center; color: #FFD700; font-size: 18px; margin-bottom: 15px; }
.ad-btn { width: 100%; padding: 15px; background: #666; color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: not-allowed; }
.ad-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); cursor: pointer; }

/* ========== USDT 存款页 ========== */
.network-tabs { display: flex; gap: 10px; margin: 20px 0; }
.network-tabs button {
  flex: 1; height: 45px; border-radius: 10px;
  border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 15px;
}
.network-tabs button.active { background: #667eea; color: #fff; border-color: #667eea; }

.deposit-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #e8f0fe, #f0e6ff);
  border: 1px solid #d6e4ff; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.deposit-banner-icon { font-size: 28px; flex-shrink: 0; }
.deposit-banner-text { flex: 1; }
.deposit-banner-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; }
.deposit-banner-desc { font-size: 12px; color: #666; line-height: 1.5; }

.deposit-qr-card { background: #fff; border-radius: 16px; padding: 18px 20px; text-align: center; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.deposit-qr-label { font-size: 13px; color: #999; margin-bottom: 12px; }
.deposit-qr-box { width: 200px; height: 200px; margin: 0 auto 10px; border: 2px solid #f0f0f0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.deposit-qr-box canvas { display: block; }
.deposit-qr-tip { font-size: 12px; color: #aaa; }

.deposit-addr-card { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.deposit-addr-label { font-size: 13px; color: #999; margin-bottom: 10px; }
.deposit-addr-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.deposit-addr-value { flex: 1; padding: 12px 14px; background: #f7f8fa; border: 1px solid #e8e8e8; border-radius: 10px; font-size: 13px; color: #333; font-family: 'Courier New', monospace; word-break: break-all; }
.deposit-copy-btn { padding: 0 18px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: transform 0.15s; }
.deposit-copy-btn:active { transform: scale(0.95); }
.deposit-addr-warn { font-size: 12px; color: #e8850c; line-height: 1.5; }

.deposit-history-card, .withdraw-history-card, .invite-recent-card { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.deposit-history-title, .withdraw-history-title, .invite-recent-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 12px; }
.deposit-history-list, .withdraw-history-list, .invite-recent-list { display: flex; flex-direction: column; gap: 10px; }
.deposit-history-empty, .withdraw-history-empty, .invite-recent-empty { text-align: center; color: #bbb; font-size: 13px; padding: 10px 0; }
.deposit-history-item, .withdraw-history-item, .invite-recent-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f7f8fa; border-radius: 10px; font-size: 13px; }
.dhi-top, .whi-top, .iri-info { display: flex; flex-direction: column; gap: 2px; }
.dhi-bot, .whi-bot { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: #999; }
.dhi-net, .whi-net { font-weight: 600; color: #667eea; font-size: 12px; }
.dhi-amt { font-weight: 700; color: #1a1a2e; font-size: 14px; }
.dhi-ok, .whi-ok { color: #43e97b; font-weight: 600; }
.whi-amt { font-weight: 700; color: #e63946; font-size: 14px; }
.whi-wait { color: #e8850c; font-weight: 600; }

.deposit-notice, .withdraw-notice { background: #f7f8fa; border-radius: 12px; padding: 14px 16px; font-size: 12px; color: #888; line-height: 1.8; }

/* ========== USDT 取款页 ========== */
.withdraw-balance-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e 60%, #0f3460);
  border-radius: 16px; padding: 22px 20px; color: #fff; margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(26,26,46,0.35);
}
.withdraw-balance-label { font-size: 13px; opacity: 0.7; margin-bottom: 6px; }
.withdraw-balance-value { font-size: 36px; font-weight: 800; letter-spacing: 0.5px; }
.withdraw-balance-value small { font-size: 14px; opacity: 0.6; font-weight: 500; margin-left: 4px; }
.withdraw-balance-tip { font-size: 11px; opacity: 0.55; margin-top: 6px; }

.withdraw-estimate { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.we-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #555; padding: 4px 0; }
.we-row b { color: #1a1a2e; font-size: 15px; }

#withdrawSubmitBtn:disabled { opacity: 0.45; cursor: not-allowed; background: #999; }

/* ========== GIP 升级条件弹窗 ========== */
.gip-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  animation: gipFadeIn .25s ease;
}
@keyframes gipFadeIn { from{opacity:0} to{opacity:1} }
.gip-modal-box { width: 88%; max-width: 380px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.25); animation: gipPop .3s cubic-bezier(.18,.89,.32,1.28); }
@keyframes gipPop { from{transform:scale(.9)} to{transform:scale(1)} }
.gip-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.gip-modal-head h3 { font-size: 16px; margin: 0; }
.gip-modal-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gip-modal-body { padding: 18px; }
.gip-modal-income { font-size: 13px; color: #667eea; font-weight: 600; margin-bottom: 14px; text-align: center; }
.gip-prog-wrap { margin-bottom: 14px; }
.gip-prog-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.gip-prog-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 4px; transition: width .6s ease; }
.gip-prog-text { font-size: 11px; color: #999; text-align: right; }
.gip-cond-list { margin-bottom: 12px; }
.gip-cond { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8f9ff; border-radius: 10px; margin-bottom: 8px; font-size: 13px; color: #555; }
.gip-cond.ok { background: #e8f8ee; color: #1b7a3a; font-weight: 600; }
.gip-cond small { display: block; font-size: 11px; color: #aaa; margin-top: 2px; font-weight: 400; }
.gip-cond.ok small { color: #4caf50; }
.gip-cond-locked { background: #f5f5f5; border: 1px dashed #ddd; padding: 10px 12px; border-radius: 10px; font-size: 12px; color: #999; text-align: center; margin-bottom: 12px; }
.gip-modal-timer { position: relative; height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.gip-timer-bar { display: block; height: 100%; background: linear-gradient(90deg, #667eea, #f5576c); border-radius: 2px; transform-origin: left; animation: gipTimer linear forwards; }
@keyframes gipTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.gip-timer-text { display: block; text-align: center; font-size: 11px; color: #bbb; margin-top: 6px; }

/* ========== 邀请好友页 ========== */
.invite-page-body { padding: 20px 15px 100px; }

.invite-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a18cd1 100%);
  border-radius: 20px; padding: 32px 22px 24px;
  text-align: center; color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(102,126,234,0.4);
  position: relative; overflow: hidden;
}
.invite-hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); }
.invite-hero-icon { font-size: 52px; margin-bottom: 12px; }
.invite-hero-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }
.invite-hero-sub { font-size: 14px; opacity: 0.92; line-height: 1.8; }
.invite-hero-sub b { color: #FFD700; font-size: 15px; }
.invite-hero-highlight {
  display: inline-block; margin-top: 8px;
  background: rgba(255,215,0,0.18); border: 1px solid rgba(255,215,0,0.5);
  color: #FFD700; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.invite-hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 18px; background: rgba(0,0,0,0.18); border-radius: 14px; padding: 12px 8px; }
.ihs-item { flex: 1; text-align: center; }
.ihs-num { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.ihs-num.ihs-gold { color: #FFD700; }
.ihs-label { display: block; font-size: 11px; opacity: 0.7; margin-top: 2px; }
.ihs-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.25); }

.invite-code-card, .invite-link-card, .invite-qr-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.invite-code-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.invite-code-value { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; background: linear-gradient(135deg, #f5f0ff, #eef4ff); border: 2px dashed #b8c5ff; border-radius: 12px; font-size: 30px; font-weight: 800; color: #667eea; letter-spacing: 6px; font-family: 'Courier New', monospace; }
.invite-copy-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.15s; }
.invite-copy-btn:active { transform: scale(0.97); }
.invite-code-tip { font-size: 12px; color: #999; margin-bottom: 8px; }

.invite-link-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.invite-link-input { flex: 1; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 12px; color: #555; background: #f7f8fa; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-copy-btn-small { padding: 0 18px; background: linear-gradient(135deg, #43e97b, #38f9d7); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: transform 0.15s; }
.invite-copy-btn-small:active { transform: scale(0.95); }
.invite-link-tip { font-size: 12px; color: #999; margin-bottom: 8px; }

.invite-qr-box { width: 220px; height: 220px; margin: 0 auto 12px; border: 2px solid #eee; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.invite-qr-box canvas { display: block; }
.invite-save-qr { width: 100%; padding: 12px; background: linear-gradient(135deg, #43e97b, #38f9d7); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.15s; }
.invite-save-qr:active { transform: scale(0.97); }
.invite-qr-tip { font-size: 12px; color: #aaa; line-height: 1.6; }

.invite-rules-card { background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.invite-rules-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 12px; }
.invite-rule-item { font-size: 13px; color: #666; line-height: 2; padding-left: 4px; }
.invite-rule-item.warn { color: #e8850c; }

.invite-recent-card { margin-bottom: 14px; }
.invite-recent-empty { text-align: center; color: #bbb; font-size: 13px; padding: 10px 0; }
.invite-recent-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f7f8fa; border-radius: 10px; }
.iri-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.iri-avatar.a0 { background: linear-gradient(135deg,#ff6b35,#ff9a56); }
.iri-avatar.a1 { background: linear-gradient(135deg,#667eea,#764ba2); }
.iri-avatar.a2 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.iri-avatar.a3 { background: linear-gradient(135deg,#f093fb,#f5576c); }
.iri-avatar.a4 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.iri-name { font-size: 14px; font-weight: 500; color: #333; }
.iri-date { font-size: 11px; color: #999; }
.iri-reward { margin-left: auto; font-weight: 700; color: #ff6b35; font-size: 14px; }

/* =================================================
   GIP 等级页 V6 样式（横向胶囊卡片 + 紫蓝渐变）
   ================================================= */

/* 页面背景：紫蓝渐变，和主页统一 */
.gip-body {
  background: linear-gradient(180deg, #1a1a3e 0%, #0f0f2a 100%);
  min-height: calc(100vh - 56px);
  padding-bottom: 80px;
}

/* 标题栏紫蓝渐变 */
.gip-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== 顶部概览卡片 ===== */
.gip-overview { padding: 0 16px; margin-bottom: 16px; }
.gip-overview-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(102,126,234,0.35);
}
.gip-overview-top {
  display: flex; align-items: center; gap: 16px;
}
.gip-current-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.gip-overview-income {
  font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.gip-overview-ads {
  font-size: 13px; color: rgba(255,255,255,0.75);
}

/* ===== 横向滚动胶囊卡片 ===== */
.gip-scroll-wrap {
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 16px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.gip-scroll-wrap::-webkit-scrollbar { display: none; }
.gip-scroll { display: inline-flex; gap: 16px; padding: 4px 0; }

.gip-scroll-card {
  display: inline-flex; align-items: center; gap: 10px;
  width: 150px; height: 68px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #252545;
  border: 1px solid rgba(255,255,255,0.06);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.gip-scroll-card:active { transform: scale(0.96); }

/* 用户真实的当前等级 */
.gip-scroll-card.gip-card-current {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #d4a853;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4);
}
.gip-card-current .gip-card-level { color: #fff; font-weight: 800; }
.gip-card-current .gip-card-income { color: #ffd700; }

/* 当前正在查看的卡片，所有等级都可以选择 */
.gip-scroll-card.gip-card-selected {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.22), 0 6px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

/* 卡片内部布局 */
.gip-card-left { display: flex; flex-direction: column; gap: 2px; }
.gip-card-right { margin-left: auto; }
.gip-card-crown {
  font-size: 14px; margin-bottom: 2px;
}
.gip-card-level {
  font-size: 14px; font-weight: 700; color: #ddd;
}
.gip-card-income {
  font-size: 10px; color: #d4a853; font-weight: 600;
}
.gip-card-range {
  font-size: 9px; color: rgba(255,255,255,0.35);
}
/* ===== 详情大卡片 ===== */
.gip-detail-card { padding: 0 16px; }
.gip-detail-inner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 6px 28px rgba(102,126,234,0.3);
}

/* 标题行 */
.gip-detail-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 16px;
}
.gip-detail-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.gip-detail-label {
  font-size: 18px; font-weight: 700; color: #fff; flex: 1;
}
.gip-current-badge-small {
  background: rgba(255,255,255,0.2);
  color: #ffd700;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

/* 三列数据 */
.gip-data-row {
  display: flex; gap: 12px; margin-bottom: 18px;
}
.gip-data-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.gip-data-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 2px;
}
.gip-icon-gold { background: rgba(255,215,0,0.18); }
.gip-icon-green { background: rgba(67,233,123,0.18); }
.gip-icon-blue { background: rgba(79,172,254,0.18); }
.gip-data-label {
  font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 500;
}
.gip-data-val {
  font-size: 13px; font-weight: 700; color: #fff;
}
.gip-val-gold { color: #ffd700; }

/* 升级进度 */
.gip-progress-section { margin-bottom: 18px; }
.gip-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.gip-progress-label {
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.gip-progress-text {
  font-size: 12px; font-weight: 600; color: #fff;
}
.gip-progress-bar {
  height: 6px; background: rgba(255,255,255,0.2);
  border-radius: 3px; overflow: hidden; margin-bottom: 6px;
}
.gip-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
  transition: width 0.5s ease;
}
.gip-progress-hint {
  font-size: 10px; color: rgba(255,255,255,0.45); text-align: center;
}

/* 升级条件 */
.gip-cond-section { margin-bottom: 4px; }
.gip-detail-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}
.gip-cond-list { display: flex; flex-direction: column; gap: 8px; }
.gip-cond {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.gip-cond.ok {
  background: rgba(67,233,123,0.15);
  color: #43e97b; font-weight: 600;
}
.gip-cond small {
  display: block; font-size: 10px; margin-top: 2px;
  color: rgba(255,255,255,0.35); font-weight: 400;
}
.gip-cond.ok small { color: rgba(67,233,123,0.7); }

/* =================================================
   GaGaya UI4 · 轻量蓝紫视觉升级
   仅覆盖界面表现，不修改业务状态与交互逻辑
   ================================================= */
:root {
  --ui4-bg: #f5f7fb;
  --ui4-surface: #ffffff;
  --ui4-text: #182033;
  --ui4-muted: #8e96a8;
  --ui4-line: #e9ecf3;
  --ui4-purple: #5c4cf1;
  --ui4-purple-soft: #efedff;
  --ui4-navy: #111a37;
  --ui4-navy-2: #192d61;
  --ui4-green: #2ac891;
  --ui4-shadow: 0 10px 28px rgba(31, 39, 72, 0.08);
}

body {
  max-width: 430px;
  background: var(--ui4-bg);
  color: var(--ui4-text);
}

#home-page,
#nav-task-page,
#team-page,
#me-page,
#deposit-page,
#withdraw-page {
  min-height: 100vh;
  color: var(--ui4-text);
  background: var(--ui4-bg);
}

/* 首页 */
.home-page {
  padding-bottom: 88px;
  background: var(--ui4-bg);
}
.home-topbar {
  padding: 16px 18px 13px;
  color: var(--ui4-text);
  background: var(--ui4-bg);
}
.logo-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #796bf9, #4e3be1);
  border-radius: 10px;
  font-size: 0;
}
.logo-icon::before { content: 'G'; font-size: 15px; font-weight: 800; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--ui4-text); }
.home-topbar-right { gap: 8px; }
.topbar-icon { font-size: 17px; }
.topbar-lang {
  padding: 5px 9px;
  color: #6557df;
  background: var(--ui4-purple-soft);
  border: 1px solid #e4e0ff;
}
.stats-bar {
  display: block;
  position: relative;
  margin: 0 14px 13px;
  padding: 19px 20px 17px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(114, 96, 255, .46), transparent 32%),
    linear-gradient(145deg, var(--ui4-navy) 0%, #0d1835 58%, var(--ui4-navy-2) 100%);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(16, 25, 58, .2);
}
.home-balance-label { color: rgba(255,255,255,.62); font-size: 11px; }
.home-balance-value { margin-top: 5px; font-size: 31px; font-weight: 700; letter-spacing: -.4px; }
.home-balance-change { margin-top: 4px; color: #55e6ae; font-size: 11px; }
.home-income-chart { display: block; width: 100%; height: 70px; margin: 7px 0 3px; overflow: visible; }
.home-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.stats-bar .stat-item { min-width: 0; text-align: left; }
.stats-bar .stat-num,
.stats-bar .stat-num.stat-green,
.stats-bar .stat-num.stat-gold {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-bar .stat-label { display: block; margin-top: 3px; color: rgba(255,255,255,.52); font-size: 10px; }

.home-video-box { margin: 0 14px 13px; }
.video-card { border-radius: 20px; box-shadow: 0 12px 28px rgba(15,24,56,.16); }
.video-cover {
  min-height: 168px;
  padding: 35px 20px 25px;
  background:
    radial-gradient(circle at 84% 22%, rgba(98,111,255,.34), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(70,215,201,.13), transparent 28%),
    linear-gradient(145deg, var(--ui4-navy), var(--ui4-navy-2));
}
.video-play-btn {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-width: 1px;
  font-size: 0;
}
.video-play-btn::before { content: '▶'; margin-left: 3px; color: #fff; font-size: 17px; }
.video-title { font-size: 15px; font-weight: 600; }
.video-sub { color: rgba(255,255,255,.55); font-size: 11px; }
.video-tag { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }

.home-icons-row {
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 5px;
}
.home-icon-item {
  gap: 7px;
  padding: 10px 2px;
  background: transparent;
  border-radius: 14px;
  box-shadow: none;
}
.home-icon {
  width: 43px;
  height: 43px;
  color: var(--ui4-purple);
  background: var(--ui4-purple-soft);
  border: 1px solid #e8e5ff;
  border-radius: 14px;
  font-size: 0;
}
.home-icon::before { font-size: 18px; font-weight: 500; }
.home-icon-deposit::before { content: '▣'; }
.home-icon-withdraw::before { content: '⇩'; }
.home-icon-sign::before { content: '✓'; }
.home-icon-intro::before { content: '▤'; }
.home-icon-label { color: #555e70; font-size: 11px; font-weight: 500; }

.home-bottom-icons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  padding: 0 14px;
  margin: 8px 0 0;
}
.home-bottom-card {
  min-height: auto;
  border-radius: 18px;
  box-shadow: var(--ui4-shadow);
}
.home-bottom-card.card-gip {
  grid-column: 1;
  min-height: 82px;
  padding: 15px;
  color: var(--ui4-text);
  background: var(--ui4-surface);
  border: 1px solid var(--ui4-line);
}
.home-bottom-card.card-gip::before,
.home-bottom-card.card-gip::after,
.home-bottom-card.card-task::after,
.home-bottom-card.card-invite::after { display: none; }
.home-bottom-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.home-bottom-card.card-task,
.home-bottom-card.card-invite {
  min-height: 116px;
  padding: 14px;
  display: block;
  position: relative;
}
.card-task {
  color: #fff;
  background: linear-gradient(145deg, #7668fa, #5946ed);
  box-shadow: 0 10px 26px rgba(89,70,237,.22);
}
.card-invite {
  color: var(--ui4-text);
  background: var(--ui4-surface);
  border: 1px solid var(--ui4-line);
  box-shadow: var(--ui4-shadow);
}
.home-bottom-card .card-icon-wrap {
  width: 39px;
  height: 39px;
  margin: 0 0 10px;
  display: grid;
  place-items: center;
  color: var(--ui4-purple);
  background: var(--ui4-purple-soft);
  border-radius: 12px;
  font-size: 0;
}
.card-gip .card-icon-wrap { color: #fff; background: linear-gradient(145deg,#ffbd60,#ff8c3f); }
.card-gip .card-icon-wrap::before { content: '♕'; font-size: 19px; }
.card-task .card-icon-wrap { color: #fff; background: rgba(255,255,255,.16); }
.card-task .card-icon-wrap::before { content: '✓'; font-size: 18px; }
.card-invite .card-icon-wrap::before { content: '♧'; font-size: 19px; }
.home-bottom-card .card-title { color: inherit; font-size: 14px; font-weight: 600; }
.home-bottom-card .card-sub { margin-top: 4px; color: var(--ui4-muted); font-size: 10px; }
.card-task .card-sub { color: rgba(255,255,255,.7); }
.home-bottom-card .card-arrow { position: absolute; right: 14px; bottom: 13px; color: #a4a9b5; }
.card-task .card-arrow { color: rgba(255,255,255,.68); }
.card-gip .card-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }

.home-partners {
  margin: 15px 14px 0;
  padding: 15px;
  background: linear-gradient(145deg, var(--ui4-navy), var(--ui4-navy-2));
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,24,56,.14);
}
.home-partners::before { display: none; }
.partners-title { font-size: 13px; }
.partners-sub { color: rgba(255,255,255,.48); font-size: 10px; }
.partner-card { padding: 7px 10px; color: rgba(255,255,255,.72); font-weight: 500; }

/* 底部导航 */
.tabbar {
  height: 70px;
  max-width: 430px;
  padding: 4px 8px 8px;
  border-top: 1px solid var(--ui4-line);
  box-shadow: 0 -8px 24px rgba(26,32,58,.05);
}
.tab-item { gap: 3px; color: #a2a7b4; }
.tab-item.active { color: var(--ui4-purple); }
.tab-icon {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0;
}
.tab-item.active .tab-icon { background: var(--ui4-purple-soft); }
.tab-icon::before { font-size: 17px; font-weight: 500; }
.tab-item:nth-child(1) .tab-icon::before { content: '⌂'; }
.tab-item:nth-child(2) .tab-icon::before { content: '▤'; }
.tab-item:nth-child(3) .tab-icon::before { content: '♧'; }
.tab-item:nth-child(4) .tab-icon::before { content: '♙'; }

/* 导航任务页 */
.nav-task-page { padding-bottom: 88px; color: var(--ui4-text); background: var(--ui4-bg); }
.nav-task-header { padding: 18px 14px 14px; color: var(--ui4-text); background: var(--ui4-bg); }
.nav-task-header h2 { margin: 0 0 14px; color: var(--ui4-text); font-size: 18px; font-weight: 650; }
.nav-task-stats {
  padding: 16px 8px;
  color: #fff;
  background: linear-gradient(135deg,#786bf8,#5542ed);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(92,71,239,.2);
}
.nav-task-stat { border-right-color: rgba(255,255,255,.18); }
.nav-task-stat strong { font-size: 17px; font-weight: 650; }
.nav-task-body { padding: 0 14px 16px; }
.nav-task-card,
.nav-task-preview-card {
  margin-bottom: 12px;
  padding: 15px;
  color: var(--ui4-text);
  background: var(--ui4-surface);
  border: 1px solid var(--ui4-line);
  border-radius: 18px;
  box-shadow: var(--ui4-shadow);
}
.nav-task-card h3 { font-size: 14px; font-weight: 650; }
.task-section-title { display: flex; align-items: center; gap: 8px; }
.task-section-title::before {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--ui4-purple);
  background: var(--ui4-purple-soft);
  border-radius: 9px;
  font-size: 13px;
}
.task-sign-title::before { content: '✓'; }
.task-ad-title::before { content: '▶'; font-size: 10px; }
.nav-task-card-head p,
.nav-task-hint,
.nav-task-preview-note,
.nav-task-preview-card .nav-task-preview-note { color: var(--ui4-muted); }
.nav-task-primary-btn {
  min-width: 64px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(135deg,#7365f7,#5947ed);
  border-radius: 10px;
  box-shadow: none;
  font-weight: 600;
}
.nav-task-primary-btn:disabled { color: #a1a6b2; background: #eceef3; }
.nav-task-sign-day { background: #f3f4f8; border-color: transparent; }
.nav-task-sign-day b { color: var(--ui4-purple); }
.nav-task-sign-day span { color: var(--ui4-muted); }
.nav-task-sign-day.active { background: var(--ui4-purple); border-color: var(--ui4-purple); }
.nav-task-sign-day.active b,
.nav-task-sign-day.active span { color: #fff; }
.nav-task-level-chip,
.nav-task-ad-meta span { color: #6253dd; background: var(--ui4-purple-soft); border-color: #e3dfff; }
.nav-task-ad-row { background: #f7f8fc; border-color: var(--ui4-line); }
.nav-task-ad-icon { overflow: hidden; color: var(--ui4-purple); background: var(--ui4-purple-soft); font-size: 0; }
.nav-task-ad-icon::before { content: '▶'; font-size: 12px; }
.nav-task-ad-info strong { color: var(--ui4-text); }
.nav-task-ad-info span { color: var(--ui4-muted); }
.nav-task-ad-complete { color: #16835f; background: #eaf9f3; border-color: #c8efe1; }
.nav-task-level-row { color: var(--ui4-text); border-bottom-color: #eff1f5; }
.nav-task-level-name { color: var(--ui4-text); }
.nav-task-level-times { color: var(--ui4-muted); }
.nav-task-level-income { color: var(--ui4-purple); }
.nav-task-view-btn { color: #fff; background: var(--ui4-purple); border: 0; }

/* 团队页 */
.team-dashboard-page { padding-bottom: 88px; background: var(--ui4-bg); }
.team-dashboard-header { color: var(--ui4-text); background: var(--ui4-bg); }
.team-dashboard-header .subpage-back,
.team-dashboard-header h3 { color: var(--ui4-text); }
.team-dashboard-body { padding: 4px 14px 18px; }
.team-overview-card {
  color: #fff;
  background: linear-gradient(145deg,var(--ui4-navy),var(--ui4-navy-2));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15,25,58,.18);
}
.team-overview-members > span,
.team-overview-members > small,
.team-overview-income > small { color: rgba(255,255,255,.6); }
.team-overview-income > small b { color: #55e6ae; }
.team-people-icon { overflow: hidden; font-size: 0; }
.team-people-icon::before { content: '● ● ●'; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: 2px; }
.team-dashboard-section {
  padding: 15px;
  background: var(--ui4-surface);
  border: 1px solid var(--ui4-line);
  border-radius: 18px;
  box-shadow: var(--ui4-shadow);
}
.team-dashboard-section > h3 { color: var(--ui4-text); font-size: 14px; }
.team-level-tile { background: #f5f5ff; border-color: transparent; }
.team-level-tile span { color: var(--ui4-muted); }
.team-income-row { background: #f8f8fc; border-color: var(--ui4-line); }
.team-income-metric span { color: var(--ui4-muted); }
.team-level-limit { color: #6f7690; background: var(--ui4-purple-soft); border-color: #e3dfff; }
.team-level-limit b { color: var(--ui4-purple); }
.team-invite-banner {
  background: linear-gradient(135deg,#796cf8,#5b47ef);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(92,71,239,.18);
}
.team-invite-banner button { color: #5543e8; background: #fff; }
.team-invite-gift { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; color: #fff; background: rgba(255,255,255,.16); border-radius: 14px; font-size: 0; }
.team-invite-gift::before { content: '◇'; font-size: 26px; }

/* 我的 */
.me-header {
  padding: 22px 18px 24px;
  background:
    radial-gradient(circle at 82% 6%, rgba(255,255,255,.2), transparent 34%),
    linear-gradient(135deg,#796cf8,#5542ed);
  border-radius: 0 0 26px 26px;
}
.me-avatar { width: 58px; height: 58px; border-radius: 18px; border-width: 1px; }
.me-avatar-placeholder { font-size: 0; }
.me-avatar-placeholder::before { content: '♙'; color: rgba(255,255,255,.9); font-size: 27px; }
.me-nickname { font-size: 17px; }
.me-uid-row,
.me-invite-row { font-size: 11px; }
.me-balance-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  color: #fff;
  background: rgba(25,27,106,.32);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
}
.me-balance-panel span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.68); font-size: 10px; }
.me-balance-panel strong { font-size: 23px; font-weight: 650; }
.me-balance-panel strong b { font-weight: inherit; }
.me-balance-actions { display: flex; gap: 6px; }
.me-balance-actions button {
  padding: 7px 10px;
  color: #5442e9;
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.me-list { padding: 13px 14px 88px; }
.me-group { border: 1px solid var(--ui4-line); border-radius: 18px; box-shadow: var(--ui4-shadow); }
.me-item { padding: 14px 15px; border-bottom-color: #eff1f5; }
.me-item-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ui4-purple);
  background: var(--ui4-purple-soft);
  border-radius: 10px;
  font-size: 0;
}
.me-item-icon::before { font-size: 16px; }
.me-group:nth-child(1) .me-item:nth-child(1) .me-item-icon::before { content: '▤'; }
.me-group:nth-child(1) .me-item:nth-child(2) .me-item-icon::before { content: '✉'; }
.me-group:nth-child(1) .me-item:nth-child(3) .me-item-icon::before { content: '▥'; }
.me-group:nth-child(2) .me-item:nth-child(1) .me-item-icon::before { content: '♧'; }
.me-group:nth-child(2) .me-item:nth-child(2) .me-item-icon::before { content: '◎'; }
.me-group:nth-child(2) .me-item:nth-child(3) .me-item-icon::before { content: '?'; }
.me-group:nth-child(2) .me-item:nth-child(4) .me-item-icon::before { content: 'i'; }
.me-logout .me-item-icon::before { content: '↪'; }
.me-item-text { padding-left: 10px; color: var(--ui4-text); font-size: 13px; }
.me-item-status { color: var(--ui4-muted); font-size: 11px; }
.me-item-arrow { color: #b0b5c1; }

/* 存款 / 取款 */
#deposit-page .subpage-header,
#withdraw-page .subpage-header {
  color: var(--ui4-text);
  background: var(--ui4-bg);
  border-bottom: 1px solid var(--ui4-line);
}
#deposit-page .subpage-header h3,
#withdraw-page .subpage-header h3,
#deposit-page .subpage-back,
#withdraw-page .subpage-back { color: var(--ui4-text); }
#deposit-page .subpage-body,
#withdraw-page .subpage-body { padding: 16px 14px 90px; }
.deposit-banner {
  padding: 14px;
  background: linear-gradient(135deg,#eeecff,#f6f4ff);
  border: 1px solid #e3dfff;
  border-radius: 16px;
  box-shadow: none;
}
.deposit-banner-icon { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; color: var(--ui4-purple); background: #fff; border-radius: 12px; font-size: 0; }
.deposit-banner-icon::before { content: 'i'; font-size: 17px; font-weight: 700; }
.deposit-banner-title { color: var(--ui4-text); font-size: 13px; font-weight: 650; }
.deposit-banner-desc { color: var(--ui4-muted); font-size: 10px; }
.network-tabs { margin: 15px 0; gap: 9px; }
.network-tabs button { height: 42px; color: var(--ui4-text); border-color: var(--ui4-line); border-radius: 11px; }
.network-tabs button.active { color: #fff; background: var(--ui4-purple); border-color: var(--ui4-purple); }
.deposit-qr-card,
.deposit-addr-card,
.deposit-history-card,
.withdraw-history-card,
.withdraw-estimate {
  border: 1px solid var(--ui4-line);
  border-radius: 18px;
  box-shadow: var(--ui4-shadow);
}
.deposit-qr-box { width: 190px; height: 190px; border-color: var(--ui4-line); }
.deposit-copy-btn,
.btn-primary-full { background: linear-gradient(135deg,#7466f8,#5946ed); box-shadow: none; }
.deposit-addr-value { background: #f7f8fc; border-color: var(--ui4-line); }
.deposit-notice,
.withdraw-notice { color: #7f8798; background: #f0f2f7; border-radius: 14px; }
.withdraw-balance-card {
  padding: 20px;
  background:
    radial-gradient(circle at 86% 15%, rgba(114,96,255,.46), transparent 32%),
    linear-gradient(145deg,var(--ui4-navy),var(--ui4-navy-2));
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15,25,58,.18);
}
.withdraw-balance-value { font-size: 32px; }
.form-group label { color: #5e6678; font-size: 12px; }
.form-group input,
.form-group textarea,
.form-group select { background: #fbfcfe; border-color: var(--ui4-line); border-radius: 11px; }
.we-row { color: #6f7686; font-size: 12px; }
.we-row b { color: var(--ui4-text); }
#withdrawSubmitBtn:disabled { color: #a3a8b3; background: #e5e7ec; opacity: 1; }

@media (max-width: 360px) {
  .stats-bar { padding-right: 16px; padding-left: 16px; }
  .home-bottom-icons { padding-right: 10px; padding-left: 10px; }
  .home-bottom-right { gap: 8px; }
  .nav-task-body,
  .team-dashboard-body { padding-right: 10px; padding-left: 10px; }
  .me-balance-panel { align-items: flex-start; }
  .me-balance-actions { flex-direction: column; }
}

/* =================================================
   UI4.1 · 已确认页面统一优化
   ================================================= */
.home-topbar { position: relative; padding-right: 16px; }
.home-topbar-right { gap: 7px; }
.topbar-action {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  color: #6556ef; background: #f0eeff; cursor: pointer;
}
.topbar-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-action:active { transform: scale(.94); }
.topbar-lang { min-width: 24px; padding: 6px 7px; border-radius: 9px; color: #6556ef; background: #f0eeff; font-size: 10px; font-weight: 800; text-align: center; }
.notification-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border: 2px solid #111a3b; border-radius: 9px; color: #fff; background: #ff5b71;
  font-size: 9px; line-height: 12px; font-weight: 800;
}
.notification-badge[hidden] { display: none; }
.home-popover {
  position: absolute; z-index: 70; top: 52px; right: 14px; display: none; width: 250px;
  padding: 10px; border: 1px solid #e9ebf4; border-radius: 16px; color: #18213b;
  background: rgba(255,255,255,.98); box-shadow: 0 18px 44px rgba(16,24,54,.22);
}
.home-popover.open { display: block; animation: ui41Pop .18s ease-out; }
.language-popover { width: 210px; }
.home-popover-title { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 9px; font-size: 12px; font-weight: 800; }
.home-popover-title button { border: 0; color: #6758f4; background: none; font-size: 11px; cursor: pointer; }
.language-popover > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 11px;
  border: 0; border-radius: 10px; color: #3c455b; background: transparent; font-size: 13px; text-align: left;
}
.language-popover > button:hover { color: #5c4df0; background: #f1efff; }
.language-popover > button b { color: #9399aa; font-size: 10px; }
.notification-list { max-height: 310px; overflow-y: auto; }
.notification-empty { display: grid; gap: 4px; padding: 26px 12px; color: #a0a7b7; text-align: center; }
.notification-empty b { color: #5d6577; font-size: 13px; }
.notification-empty span { font-size: 11px; }
.notification-item {
  display: grid; grid-template-columns: 8px 1fr; gap: 8px; width: 100%; padding: 11px 8px;
  border: 0; border-top: 1px solid #f0f1f6; color: #313a51; background: transparent; text-align: left;
}
.notification-item .notification-dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #d5d8e1; }
.notification-item.unread .notification-dot { background: #6957f5; box-shadow: 0 0 0 4px #eeebff; }
.notification-item > span:last-child { display: grid; gap: 3px; }
.notification-item b { font-size: 12px; }
.notification-item em { overflow: hidden; color: #707789; font-size: 11px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.notification-item small { color: #b0b5c1; font-size: 9px; }
@keyframes ui41Pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.stats-bar { padding-top: 16px; padding-bottom: 14px; }
.home-income-chart { height: 48px; margin-top: -4px; margin-bottom: 4px; }
.home-balance-value { margin-bottom: 2px; }
.home-stat-grid { margin-top: 2px; }

/* GIP 等级 */
#gip-page { color: #172038; background: #f4f6fb; }
.gip-body { padding: 14px 14px 90px; }
.gip-overview { margin-bottom: 12px; }
.gip-overview-card {
  min-height: 112px; padding: 22px; border-radius: 22px;
  background: radial-gradient(circle at 88% 10%,rgba(255,255,255,.24),transparent 32%),linear-gradient(135deg,#6d62f3,#754bbd);
  box-shadow: 0 14px 30px rgba(87,65,199,.2);
}
.gip-overview-top { align-items: center; }
.gip-current-badge { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.45); border-radius: 18px; background: rgba(255,255,255,.1); }
.gip-overview-income { font-size: 18px; letter-spacing: -.3px; }
.gip-overview-ads { margin-top: 5px; color: #e5e4ff; font-size: 12px; }
.gip-scroll-wrap { margin: 0 -14px 14px; padding: 0 14px; }
.gip-scroll { gap: 10px; padding: 2px 0 8px; }
.gip-scroll-card {
  position: relative; flex: 0 0 130px; min-height: 82px; padding: 15px 13px; border: 1px solid #e5e7f0;
  border-radius: 17px; color: #566078; background: #fff; box-shadow: 0 5px 16px rgba(27,34,61,.05);
}
.gip-scroll-card.gip-card-selected { color: #fff; border-color: #6450f7; background: linear-gradient(145deg,#6656f8,#7245d9); box-shadow: 0 10px 22px rgba(91,69,225,.25); }
.gip-card-level { font-size: 14px; font-weight: 800; }
.gip-card-income { margin-top: 8px; color: inherit; font-size: 11px; }
.gip-card-range { color: inherit; opacity: .72; font-size: 10px; }
.gip-card-current-tag { position: absolute; top: 8px; right: 8px; padding: 3px 6px; border-radius: 7px; color: #5a45eb; background: #eeebff; font-size: 8px; font-weight: 800; }
.gip-card-selected .gip-card-current-tag { color: #fff; background: rgba(255,255,255,.18); }
.gip-detail-card { margin: 0; padding: 0; border: 1px solid #e6e8f0; border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(25,31,57,.07); }
.gip-detail-inner { padding: 20px; }
.gip-detail-header { padding-bottom: 16px; border-bottom: 1px solid #eef0f5; }
.gip-detail-badge { width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#ffbd69,#ff8755); box-shadow: none; }
.gip-detail-label { color: #172038; font-size: 18px; }
.gip-current-badge-small { margin-left: auto; padding: 6px 10px; color: #6654ef; background: #efedff; }
.gip-data-row { gap: 8px; padding: 18px 0 12px; }
.gip-data-col { min-width: 0; padding: 0 3px; }
.gip-data-icon { display: none; }
.gip-data-label { color: #9299aa; font-size: 10px; }
.gip-data-val { margin-top: 6px; color: #212a42; font-size: 12px; font-weight: 700; line-height: 1.35; }
.gip-progress-section { margin-top: 6px; padding: 14px; border-radius: 14px; background: #f7f7fc; }
.gip-progress-label { color: #2a334b; font-weight: 700; }
.gip-progress-bar { height: 7px; background: #e3e5ef; }
.gip-progress-fill { background: linear-gradient(90deg,#7869ff,#5846ec); }
.gip-progress-hint { color: #858c9c; font-size: 10px; line-height: 1.5; }
.gip-cond-section { padding-top: 18px; }
.gip-detail-title { color: #252e46; font-size: 13px; }
.gip-cond-list { display: grid; gap: 8px; }
.gip-cond { padding: 11px 12px; border: 1px solid #eceef4; border-radius: 11px; color: #626b80; background: #fafbfe; font-size: 11px; }
.gip-cond.ok { border-color: #d5f3e7; color: #158c68; background: #eafaf4; }

/* 我的 */
#me-page { background: #f4f6fa; }
.me-header { padding: 12px 16px 24px; border-radius: 0 0 28px 28px; background: radial-gradient(circle at 86% 7%,rgba(255,255,255,.22),transparent 32%),linear-gradient(145deg,#6c65ef,#6043ef 58%,#714bc6); }
.me-header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 38px; color: #fff; }
.me-header-bar strong { font-size: 18px; }
.me-header-bar button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(255,255,255,.1); font-size: 11px; }
.me-profile-row { display: flex; align-items: center; gap: 13px; padding: 9px 0 18px; }
.me-avatar-wrapper { flex: 0 0 auto; }
.me-avatar { width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: rgba(255,255,255,.12); }
.me-avatar-placeholder { color: #fff; font-size: 26px; font-weight: 800; }
.me-avatar-edit { right: -2px; bottom: -3px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #6655ed; border-radius: 50%; color: #654ff0; background: #fff; font-size: 15px; }
.me-userinfo { flex: 1; min-width: 0; color: #fff; }
.me-nickname-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.me-nickname { font-size: 19px; }
.me-gip-chip { padding: 4px 7px; border-radius: 7px; color: #fff4bd; background: rgba(24,20,91,.3); font-size: 9px; font-weight: 800; }
.me-account-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: rgba(255,255,255,.75); font-size: 10px; }
.me-account-meta b { color: #fff; font-weight: 700; letter-spacing: .4px; }
.me-copy-btn { padding: 3px 7px; border: 0; border-radius: 6px; color: #fff; background: rgba(255,255,255,.14); font-size: 9px; }
.me-balance-panel { margin: 0; padding: 16px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(26,24,123,.32); box-shadow: none; }
.me-balance-panel > div:first-child span { color: #dcdfff; font-size: 11px; }
.me-balance-panel strong { color: #fff; font-size: 25px; }
.me-balance-actions button { color: #5747e8; background: #fff; }
.me-list { padding: 14px 14px 90px; }

/* 首页任务中心 */
#task-page { background: #f4f6fa; }
#task-page .subpage-body { padding: 16px 14px 90px; }
.task-subtabs { height: 54px; border-bottom: 1px solid #eceef4; background: #fff; }
.task-subtab { color: #949bad; }
.task-subtab.active { color: #5e50ee; }
.daily-task-card,.personal-task-card { padding: 16px; border: 1px solid #eaecf3; border-radius: 17px; background: #fff; box-shadow: 0 7px 20px rgba(20,29,56,.06); }
.daily-task-left,.pt-left { min-width: 0; }
.daily-task-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: #eeecff; font-size: 20px; }
.daily-task-name,.pt-name { color: #232c43; font-size: 13px; font-weight: 800; }
.daily-task-desc,.pt-reward { margin-top: 4px; color: #8a91a2; font-size: 10px; }
.daily-task-desc b,.pt-reward b { color: #ff5d72; }
.daily-task-note,.pt-note { margin-top: 6px; color: #686f81; font-size: 10px; line-height: 1.45; }
.daily-task-tag { color: #5e4dec; background: #efedff; }
.daily-task-btn,.pt-btn { flex: 0 0 auto; padding: 8px 13px; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#7264f3,#5948e9); }
.pt-level-badge { flex: 0 0 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg,#6e6bf3,#7647bd); }
.task-note-card { border: 1px solid #e8eaf2; border-radius: 16px; background: #fff; }

/* 签到与关于 */
.sign-page-body { padding: 18px 16px 100px; text-align: center; }
.sign-hero { padding: 24px 18px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 84% 14%,rgba(255,255,255,.2),transparent 30%),linear-gradient(135deg,#6a66ef,#7148d0); text-align: left; box-shadow: 0 14px 30px rgba(90,69,216,.17); }
.sign-hero-kicker { font-size: 9px; font-weight: 800; letter-spacing: 1.4px; opacity: .7; }
.sign-title { margin-top: 9px; font-size: 21px; font-weight: 800; }
.sign-hero p { margin: 7px 0 0; color: #e8e6ff; font-size: 11px; }
.sign-progress { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-top: 18px; padding: 14px 10px; border: 1px solid #eaecf2; border-radius: 16px; background: #fff; }
.sign-day { width: auto; min-width: 0; padding: 9px 2px; border-radius: 10px; color: #9aa0ad; background: #f5f6f9; font-size: 9px; }
.sign-day.active { color: #fff; background: linear-gradient(145deg,#ff7eac,#ef5f9d); box-shadow: 0 5px 12px rgba(238,91,155,.25); }
.sign-submit { width: 100%; max-width: none; margin: 16px 0 0; border-radius: 13px; }
.sign-note { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff; text-align: left; }
.sign-note div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f5; }
.sign-note div:last-child { padding: 0; border: 0; }
.sign-note b { color: #333c51; font-size: 11px; }
.sign-note span { color: #9399a8; font-size: 10px; }
.about-body { padding: 16px 14px 100px; text-align: left; }
.about-hero-card { padding: 24px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 88% 12%,rgba(255,255,255,.18),transparent 30%),linear-gradient(145deg,#131d40,#263c72); box-shadow: 0 14px 30px rgba(16,27,60,.18); }
.about-logo { flex-direction: row; align-items: center; gap: 13px; margin: 0; }
.about-logo-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: #fff; background: linear-gradient(145deg,#7669ff,#5c47e8); font-size: 25px; font-weight: 900; }
.about-logo-text { color: #fff; font-size: 20px; }
.about-version { margin: 4px 0 0; color: #bfc6e3; font-size: 10px; }
.about-hero-card > p { margin: 17px 0 0; color: #c7cee6; font-size: 11px; }
.about-info-card { margin-top: 14px; padding: 5px 16px; border: 1px solid #e8eaf1; border-radius: 18px; background: #fff; }
.about-desc { margin: 0; padding: 15px 0; color: #70788a; font-size: 11px; line-height: 1.7; text-align: left; }
.about-desc strong { color: #252e43; font-size: 13px; }
.about-desc p { margin: 7px 0 0; }
.about-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; border: 0; border-top: 1px solid #eef0f4; color: #3a4357; background: none; font-size: 12px; }
.about-link b { color: #a5abba; font-size: 18px; }
.about-copyright { margin-top: 22px; text-align: center; }

/* 详情弹窗 */
.gip-modal-overlay,.team-level-modal { padding: 18px; background: rgba(13,19,45,.7); backdrop-filter: blur(5px); }
.gip-modal-box { width: 100%; max-width: 360px; padding-bottom: 15px; border-radius: 21px; overflow: hidden; animation: ui41Pop .22s ease-out; }
.gip-modal-head { padding: 17px 18px; background: #fff; color: #202941; }
.gip-modal-head h3 { font-size: 16px; }
.gip-modal-close { color: #70778b; background: #f1f2f6; }
.gip-modal-body { padding: 5px 18px 12px; }
.gip-modal-membership { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 15px; color: #fff; background: linear-gradient(135deg,#6c66ef,#7049cc); }
.gip-modal-membership > span { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; font-size: 11px; font-weight: 800; }
.gip-modal-membership div { display: grid; gap: 4px; }
.gip-modal-membership b { font-size: 14px; }
.gip-modal-membership small { color: #e5e3ff; font-size: 10px; }
.gip-modal-rights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.gip-modal-rights div { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #f6f7fb; }
.gip-modal-rights span { color: #969cab; font-size: 9px; }
.gip-modal-rights b { color: #2d364b; font-size: 10px; }
.gip-modal-section-title { margin: 15px 0 7px; color: #252d42; font-size: 11px; font-weight: 800; }
.gip-modal-confirm { display: block; width: calc(100% - 36px); margin: 0 18px; padding: 12px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#7062f3,#5947e9); font-weight: 700; }
.team-level-modal-box { width: 100%; max-width: 360px; padding: 0; border: 0; border-radius: 21px; color: #222b42; background: #fff; box-shadow: 0 20px 50px rgba(8,15,40,.3); overflow: hidden; }
.team-level-modal-head { padding: 18px; background: #fff; }
.team-level-modal-head button { color: #747b8d; background: #f0f1f5; }
.team-level-formula { margin: 0 18px; padding: 12px; border-radius: 12px; color: #5e50e9; background: #f0eeff; font-size: 10px; }
.team-level-member-list { padding: 5px 18px 0; }
.team-level-member-item { border-color: #eef0f4; }
.team-level-member-name,.team-level-member-earning { color: #626b7f; }
.team-level-member-name small { color: #a5aab5; }
.team-level-member-commission { color: #5e4deb; }
.team-extra-note { margin: 8px 18px 18px; border-radius: 11px; color: #158b68; background: #eaf9f3; }

@media (max-width: 360px) {
  .topbar-action { width: 29px; height: 29px; }
  .home-topbar-right { gap: 5px; }
  .gip-detail-inner { padding: 16px; }
  .gip-scroll-card { flex-basis: 120px; }
  .me-profile-row { gap: 10px; }
  .me-avatar { width: 60px; height: 60px; }
}

/* =================================================
   UI5 · 任务 / GIP / 团队列表 / 邀请好友确认稿
   ================================================= */
#task-page,#gip-page,#team-page,#invite-page { color: #172038; background: #f4f6fb !important; }

/* 首页任务中心 */
#task-page .subpage-header { position: sticky; top: 0; z-index: 12; }
#task-page .task-subtabs { position: sticky; top: 58px; z-index: 11; }
#task-page #panel-daily,#task-page #panel-personal { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 12px; }
#task-page #panel-personal[style*="display: none"],#task-page #panel-daily[style*="display: none"] { display: none !important; }
.task-center-hero { display: grid; grid-template-columns: repeat(3,1fr); padding: 18px 12px; border-radius: 18px; color: #fff; background: linear-gradient(125deg,#6577e9,#7a4bb8); box-shadow: 0 12px 25px rgba(88,70,204,.18); }
.task-center-hero > div { min-width: 0; padding: 0 6px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.task-center-hero > div:last-child { border: 0; }
.task-center-hero strong { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.task-center-hero strong b { font: inherit; }
.task-center-hero span { display: block; margin-top: 4px; color: #e7e7ff; font-size: 9px; }
.task-growth-hero { display: grid; gap: 5px; padding: 19px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 88% 10%,rgba(255,255,255,.2),transparent 30%),linear-gradient(135deg,#6676e9,#754bc0); box-shadow: 0 12px 25px rgba(88,70,204,.18); }
.task-growth-hero span { color: #dddfff; font-size: 9px; letter-spacing: .5px; }
.task-growth-hero strong { font-size: 20px; }
.task-growth-hero small { color: #e7e6ff; font-size: 10px; }
#task-page .daily-task-card,#task-page .personal-task-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 15px; border: 1px solid #e8eaf2; border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(23,31,58,.05); }
#task-page .daily-task-left,#task-page .pt-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
#task-page .daily-task-icon,#task-page .pt-level-badge { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; color: #6251ed; background: #efedff; font-size: 12px; font-weight: 800; }
#task-page .pt-level-badge { color: #fff; background: linear-gradient(145deg,#6d68f2,#7348bf); }
#task-page .daily-task-info,#task-page .pt-info { min-width: 0; }
#task-page .daily-task-name,#task-page .pt-name { color: #232c43; font-size: 13px; font-weight: 700; }
#task-page .daily-task-desc,#task-page .pt-reward { margin-top: 4px; color: #858d9f; font-size: 10px; }
#task-page .daily-task-desc b,#task-page .pt-reward b { color: #ff5b72; }
#task-page .daily-task-note,#task-page .pt-note { margin-top: 5px; color: #989eac; font-size: 9px; line-height: 1.4; }
#task-page .daily-task-meta { margin-top: 6px; }
#task-page .daily-task-tag { padding: 3px 7px; color: #5d4dec; background: #f0eeff; font-size: 8px; }
#task-page .daily-task-reward { color: #343c50; font-size: 10px; }
#task-page .daily-task-btn,#task-page .pt-btn { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; }
#task-page .task-note-card { position: static; display: grid; gap: 8px; margin: 0 14px 100px; padding: 15px; border: 1px solid #e7e9f1; border-radius: 16px; background: #fff; box-shadow: none; }
#task-page .task-note-item { padding: 0; color: #747c8d; font-size: 10px; line-height: 1.55; }

/* GIP 页面：改为确认稿的轻量卡片结构 */
#gip-page .gip-body { min-height: calc(100vh - 58px); padding: 14px 14px 100px; background: #f4f6fb !important; }
#gip-page .gip-overview-card { min-height: 104px; padding: 20px; border-radius: 20px; background: radial-gradient(circle at 88% 10%,rgba(255,255,255,.22),transparent 32%),linear-gradient(135deg,#6964ef,#794cbd); }
#gip-page .gip-current-badge { width: 54px; height: 54px; border-radius: 16px; }
#gip-page .gip-overview-income { font-size: 17px; }
#gip-page .gip-scroll-card { min-height: 78px; padding: 14px 12px; border-radius: 15px; }
#gip-page .gip-detail-card { border-color: #e5e8f0; background: #fff !important; }
#gip-page .gip-detail-inner { padding: 19px; background: #fff; }
#gip-page .gip-detail-header { border-bottom-color: #eceef4; }
#gip-page .gip-detail-label { color: #172038 !important; }
#gip-page .gip-data-row { border: 0; background: #fff; }
#gip-page .gip-data-label { color: #9299aa !important; }
#gip-page .gip-data-val { color: #222b42 !important; }
#gip-page .gip-progress-section { color: #273048; background: #f5f6fb !important; }
#gip-page .gip-progress-text { color: #4c5569; }
#gip-page .gip-cond-section { border: 0; background: #fff; }
#gip-page .gip-detail-title { color: #252e46 !important; }

/* 团队页双 Tab 与成员列表 */
.team-dashboard-tabs { position: sticky; top: 58px; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; padding: 0 14px; border-bottom: 1px solid #eceef4; background: #fff; }
.team-dashboard-tabs button { position: relative; padding: 14px 8px 12px; border: 0; color: #9299aa; background: transparent; font-size: 13px; }
.team-dashboard-tabs button.active { color: #6150ed; font-weight: 700; }
.team-dashboard-tabs button.active::after { content: ''; position: absolute; right: 28%; bottom: -1px; left: 28%; height: 3px; border-radius: 3px; background: #6655f0; }
#team-page .team-dashboard-body { padding-top: 14px; }
.team-list-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 19px; border-radius: 19px; color: #fff; background: radial-gradient(circle at 88% 10%,rgba(255,255,255,.2),transparent 32%),linear-gradient(135deg,#6675e9,#754bc1); box-shadow: 0 12px 25px rgba(88,70,204,.18); }
.team-list-overview > div:last-child { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); text-align: right; }
.team-list-overview span,.team-list-overview small { display: block; color: #e2e3ff; font-size: 9px; }
.team-list-overview strong { display: block; margin: 6px 0 4px; font-size: 18px; }
.team-list-overview strong b { font: inherit; }
.team-member-groups { display: grid; gap: 12px; margin-top: 12px; }
.team-member-group { overflow: hidden; border: 1px solid #e7e9f1; border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(23,31,58,.05); }
.team-member-group-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #5e4ceb; background: #f0eeff; }
.team-member-group-head strong { font-size: 13px; }
.team-member-group-head span { font-size: 9px; }
.team-member-row { display: grid; grid-template-columns: 1.35fr .75fr .65fr; align-items: center; gap: 8px; padding: 13px 14px; border-top: 1px solid #eef0f4; }
.team-member-list .team-member-row:first-child { border-top: 0; }
.team-member-identity,.team-member-earn,.team-member-gip { min-width: 0; }
.team-member-identity strong { display: block; overflow: hidden; color: #2d364c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-identity span,.team-member-earn span,.team-member-gip span { display: block; margin-top: 3px; color: #9ba1af; font-size: 8px; }
.team-member-earn strong { color: #18a879; font-size: 10px; white-space: nowrap; }
.team-member-gip strong { display: inline-block; margin-top: 3px; padding: 4px 6px; border-radius: 7px; color: #604eed; background: #efedff; font-size: 8px; white-space: nowrap; }

/* 邀请好友 */
#invite-page .invite-page-body { display: grid; gap: 12px; padding: 14px 14px 100px; }
#invite-page .invite-hero { margin: 0; padding: 22px 18px 18px; border-radius: 20px; background: radial-gradient(circle at 88% 8%,rgba(255,255,255,.2),transparent 30%),linear-gradient(135deg,#6575e9,#794cb9); box-shadow: 0 12px 26px rgba(88,70,204,.18); }
#invite-page .invite-hero-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 11px; border-radius: 19px; background: rgba(255,255,255,.14); font-size: 30px; }
#invite-page .invite-hero-title { font-size: 19px; }
#invite-page .invite-hero-sub { margin-top: 8px; color: #e7e7ff; font-size: 10px; line-height: 1.8; }
#invite-page .invite-hero-highlight { margin-top: 12px; padding: 7px 10px; border: 0; border-radius: 9px; color: #5b46cf; background: #fff1ba; font-size: 9px; }
#invite-page .invite-hero-stats { margin-top: 16px; padding: 13px 8px; border-radius: 14px; background: rgba(32,24,113,.28); }
#invite-page .invite-code-card,#invite-page .invite-link-card,#invite-page .invite-qr-card,#invite-page .invite-rules-card,#invite-page .invite-recent-card { margin: 0; padding: 15px; border: 1px solid #e8eaf2; border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(23,31,58,.05); }
#invite-page .invite-code-value { color: #6352e9; background: #f7f6ff; border-color: #bcb4ff; }
#invite-page .invite-copy-btn,#invite-page .invite-copy-btn-small { background: linear-gradient(135deg,#6d61ef,#6749d2); }
#invite-page .invite-rule-item { color: #646d80; font-size: 10px; line-height: 1.55; }

@media (max-width: 360px) {
  .task-center-hero { padding-right: 6px; padding-left: 6px; }
  #task-page .daily-task-card,#task-page .personal-task-card { padding: 13px 11px; }
  #task-page .daily-task-icon,#task-page .pt-level-badge { flex-basis: 40px; width: 40px; height: 40px; }
  .team-member-row { grid-template-columns: 1.25fr .72fr .65fr; padding-right: 10px; padding-left: 10px; }
}

/* UI6 最终优先级 */
#gip-page .gip-overview-card { min-height: 0; padding: 17px 18px; }
#gip-page .gip-current-badge { width: 50px; height: 50px; }
#gip-page .gip-overview-income,#gip-page .gip-overview-ads { margin: 0; font-size: 10px; }

/* UI7 · 用户品牌 Logo（仅替换指定三个入口） */
.brand-logo-crop { position: relative; overflow: hidden; padding: 0; }
.brand-logo-crop img {
  position: absolute;
  top: -26%;
  left: -53%;
  width: 205%;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.logo-icon.brand-logo-crop::before,
.home-icon-intro.brand-logo-crop::before { content: none; }
.logo-icon.brand-logo-crop,
.home-icon-intro.brand-logo-crop,
.about-logo-icon.brand-logo-crop { border: 0; background: transparent; box-shadow: none; }
.login-brand-full { display: flex; justify-content: center; margin: -6px auto 2px; }
.login-brand-full img { display: block; width: 148px; height: 148px; object-fit: contain; }
.login-sub { margin-top: -3px; }

/* UI7.2 · 首页彩色透明快捷图标 */
.home-icon-generated { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.home-icon-generated::before { content: none; }
.home-icon-generated img { display: block; width: 49px; height: 49px; max-width: none; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(68,52,157,.14)); }
/* ===== 2026-08 后端同步补充 ===== */
.home-stat-removed{display:none!important}
.home-stat-grid{grid-template-columns:1fr!important}
.home-stat-online{align-items:flex-start!important}
.me-nickname-editable{border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.managed-content{font-size:14px;line-height:1.85;color:#5f6b83;white-space:normal}
.managed-content h3{color:#121a31;margin:0 0 16px;font-size:20px}
.managed-content p{margin:0 0 14px}
.site-announcement{position:fixed;inset:0;z-index:5000;background:rgba(10,16,42,.66);display:none;align-items:center;justify-content:center;padding:4vh 18px}
.site-announcement.active{display:flex}
.site-announcement-box{width:min(410px,88vw);height:64vh;max-height:620px;background:#fff;border-radius:24px;box-shadow:0 24px 70px rgba(15,22,60,.35);display:flex;flex-direction:column;overflow:hidden}
.site-announcement-head{padding:24px 24px 18px;color:#fff;background:linear-gradient(135deg,#6577ec,#7646b5)}
.site-announcement-head small{opacity:.8;letter-spacing:1.4px;font-size:10px}.site-announcement-head h2{margin:6px 0 0;font-size:23px}
.site-announcement-body{padding:22px 24px;overflow-y:auto;flex:1;color:#536078;line-height:1.85}.site-announcement-body p{margin:0 0 15px}
.site-announcement-foot{padding:15px 22px 20px;border-top:1px solid #edf0f7;background:#fff}
.site-announcement-foot button{width:100%;border:0;border-radius:14px;padding:14px;color:#fff;font-weight:700;font-size:16px;background:linear-gradient(90deg,#6177ed,#7849b8)}

/* Token center */
.token-page-body{padding:22px 18px 100px}.token-hero{padding:28px 22px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#17254f,#6949d8);box-shadow:0 16px 35px rgba(44,55,120,.22)}.token-hero small{opacity:.75}.token-hero h2{margin:8px 0;font-size:27px}.token-content{margin-top:18px;padding:22px;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(36,50,95,.08);line-height:1.8}
