/* ===== 全局 Reset ===== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  /* 底部导航实际高度（中间凸起的赚钱按钮把它撑到 90px），
     页面留白全部引用这个变量，改导航样式只需改这里 */
  --nav-h: 90px;
}
/* 全局隐藏滚动条但保留滚动（移动端 App 风格） */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f4f5f9;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  /* 导航高度 + 凸起按钮上探的14px + iPhone 底部小黑条安全区 */
  padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

/* ===== 顶部状态栏 ===== */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff;
}
.greeting { font-size: 15px; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 14px; }
.notice-btn { position: relative; font-size: 18px; cursor: pointer; }
.notice-btn .dot {
  position: absolute; top: 0; right: -3px;
  width: 7px; height: 7px; background: #ffe082; border-radius: 50%;
}
.badge-count {
  position: absolute; top: -8px; right: -10px;
  min-width: 16px; height: 16px;
  background: #ff3b6b; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  border-radius: 8px; padding: 0 4px;
}

/* ===== 余额卡片 ===== */
.balance-card {
  margin: 0; padding: 20px 16px 24px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; position: relative; overflow: hidden;
}
.balance-bg {
  position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.balance-label { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.new-user-badge {
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  animation: badgePulse 1.5s ease-in-out infinite alternate;
}
@keyframes badgePulse {
  from { transform: scale(1); box-shadow: 0 0 4px rgba(255,107,53,0.5); }
  to   { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,107,53,0.9); }
}
.balance-amount {
  font-size: 40px; font-weight: 700; letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.balance-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.btn-withdraw {
  background: #fff; color: #ff3b6b;
  border: none; padding: 10px 28px;
  border-radius: 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; width: fit-content;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.btn-withdraw:active { transform: scale(0.96); }
.balance-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; opacity: 0.9; }
.balance-sub b { color: #ffe082; }

/* ===== 快捷入口 ===== */
.quick-menu {
  display: flex; justify-content: space-around;
  background: #fff; padding: 16px 8px 12px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.quick-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  transition: transform 0.15s;
}
.quick-icon:active { transform: scale(0.9); }
.quick-icon.orange { background: linear-gradient(135deg, #ff9a44, #ff6b35); }
.quick-icon.pink   { background: linear-gradient(135deg, #ff6eb4, #e040fb); }
.quick-icon.purple { background: linear-gradient(135deg, #7c4dff, #448aff); }
.quick-icon.green  { background: linear-gradient(135deg, #00e676, #1de9b6); }
.quick-item span { font-size: 12px; color: #444; font-weight: 500; }

/* ===== 跑马灯 ===== */
.marquee-bar {
  background: #fff8f0; padding: 8px 14px;
  margin: 10px 12px; border-radius: 8px;
  font-size: 13px; color: #555;
  display: flex; align-items: center; overflow: hidden;
  border-left: 3px solid #ff6b35;
}
.marquee-content {
  overflow: hidden; white-space: nowrap; flex: 1;
}
.marquee-content span {
  display: inline-block;
  animation: marqueeScroll 18s linear infinite;
  padding-left: 100%;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== Section Title ===== */
.section-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 6px;
  font-size: 16px; font-weight: 700; color: #222;
}
.more-link { font-size: 13px; color: #ff6b35; cursor: pointer; }

/* ===== 任务卡片 ===== */
.task-list { padding: 0 12px; }
.task-list.full { padding: 0 12px; overflow-y: auto; }
.task-card {
  background: #fff; border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.task-card:active { transform: scale(0.98); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.task-icon-wrap {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, #ffe0b2, #ffcc80);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  overflow: hidden;
}
/* ===== 维格表附件图标（图片）：容器内铺满，行内 1em ===== */
.icon-img { width: 1em; height: 1em; object-fit: cover; border-radius: 4px; vertical-align: -0.12em; display: inline-block; }
.task-icon-wrap .icon-img, .ad-thumb .icon-img { width: 100%; height: 100%; border-radius: inherit; }
.task-info { flex: 1; }
.task-name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.task-desc { font-size: 12px; color: #888; margin-bottom: 6px; }
.task-meta { display: flex; align-items: center; gap: 8px; }
.task-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 10px;
  background: #fff3e0; color: #ff6b35; font-weight: 600;
}
.task-tag.blue { background: #e3f2fd; color: #1976d2; }
.task-tag.green { background: #e8f5e9; color: #388e3c; }
.task-tag.purple { background: #f3e5f5; color: #7b1fa2; }
.task-time { font-size: 11px; color: #aaa; }
.task-earn {
  text-align: right; flex-shrink: 0;
}
.earn-num { font-size: 18px; font-weight: 800; color: #ff3b6b; }
.earn-unit { font-size: 11px; color: #aaa; display: block; }
.task-btn {
  margin-top: 4px; background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 5px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}

/* ===== 底部导航（悬浮圆角条：左右留 10px 边距，内部 1:3:1） ===== */
.bottom-nav {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 20px); max-width: 460px;
  background: #fff;
  display: flex; align-items: center;
  padding: 8px 6px;
  border-radius: 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 500;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: #aaa; cursor: pointer;
  flex: 1;   /* 左右两块各占 1 份 */
  transition: color 0.2s;
}
.earn-center { flex: 3; display: flex; justify-content: center; }
.nav-item i { font-size: 20px; }
.nav-item.active { color: #ff3b6b; }
/* 中间赚钱按钮：大号红色胶囊（约屏宽60%），点击热区=按钮本体 */
.earn-btn {
  flex-shrink: 0;
  width: min(60vw, 268px); height: 52px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: #fff; font-size: 19px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,59,107,0.4);
  transition: transform 0.15s;
}
.earn-btn:active { transform: scale(0.96); }
.earn-btn i { font-size: 18px; }

/* ===== 页面覆盖层 ===== */
.page-overlay {
  position: fixed; top: 0;
  /* 底部让出导航实际高度 + iPhone 小黑条安全区；
     24px 内边距保证列表最后一项能完整滚出来，不被凸起的赚钱按钮挡住 */
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: 24px;
  left: 50%; transform: translateX(-50%) translateX(100vw);
  width: 100%; max-width: 480px;
  background: #f4f5f9; z-index: 400;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  /* 隐藏滚动条但保留滚动（Chrome/Safari + Firefox + 老IE） */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-overlay::-webkit-scrollbar { display: none; width: 0; }
.page-overlay.open {
  transform: translateX(-50%) translateX(0);
}
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: #fff;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 10;
}
.page-header i { font-size: 18px; color: #555; cursor: pointer; }

/* ===== 任务分类Tab ===== */
.task-tabs {
  /* 吸顶：跟在 page-header（约52px高）下方，滑动列表时标题栏+分类栏固定不动 */
  position: sticky; top: 52px; z-index: 9;
  display: flex; gap: 0; padding: 12px 12px 0;
  overflow-x: auto; background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.task-tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 8px 16px;
  font-size: 14px; color: #888; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab.active { color: #ff3b6b; border-bottom-color: #ff3b6b; font-weight: 600; }

/* ===== 看广告 ===== */
.ad-earn-banner {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; padding: 20px 16px; text-align: center;
}
.ad-tip { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ad-sub { font-size: 13px; opacity: 0.85; }
.ad-list { padding: 12px; }
.ad-card {
  background: #fff; border-radius: 14px; padding: 14px;
  margin-bottom: 10px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer;
  transition: transform 0.15s;
}
.ad-card:active { transform: scale(0.98); }
.ad-thumb {
  width: 70px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.ad-info { flex: 1; }
.ad-name { font-size: 14px; font-weight: 600; color: #222; }
.ad-desc { font-size: 12px; color: #aaa; margin: 4px 0; }
.ad-earn-row { display: flex; align-items: center; gap: 8px; }
.ad-earn-num { color: #ff3b6b; font-weight: 700; font-size: 15px; }
.ad-dur { font-size: 11px; color: #bbb; }
.watch-btn {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 8px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
}


/* ===== 提现 ===== */
/* 钱包概览卡片 */
.wallet-overview {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; padding: 20px 16px;
}
.wallet-balance-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.wallet-balance-row span { font-size: 14px; opacity: 0.85; }
.wallet-balance-row b { font-size: 36px; font-weight: 800; }
.wallet-balance-row small { font-size: 14px; }
.wallet-stats-row {
  display: flex; background: rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.wallet-stats-row > div {
  flex: 1; text-align: center;
}
.wallet-stats-row small {
  font-size: 11px; opacity: 0.75; display: block; margin-bottom: 2px;
}
.wallet-stats-row b { font-size: 15px; font-weight: 600; }
.wd-remain-info {
  font-size: 12px; opacity: 0.85; text-align: center;
  padding: 6px 12px; background: rgba(255,255,255,0.1); border-radius: 20px;
  display: inline-block; width: 100%; box-sizing: border-box;
}
.wd-remain-info i { margin-right: 4px; }
.wd-remain-info b { color: #ffe082; }

.withdraw-ways {
  display: flex; gap: 10px; padding: 14px 12px;
  background: #fff; margin-bottom: 2px;
}
.ww-item {
  flex: 1; text-align: center; padding: 10px 0;
  border-radius: 10px; border: 2px solid #eee;
  font-size: 14px; color: #555; cursor: pointer;
  transition: all 0.2s;
}
.ww-item.active { border-color: #ff3b6b; color: #ff3b6b; background: #fff0f4; font-weight: 600; }
.withdraw-amounts {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 12px;
  background: #fff; margin-bottom: 2px;
}
.wa-item {
  flex: 0 0 calc(25% - 8px); text-align: center; padding: 10px 0;
  border-radius: 10px; border: 2px solid #eee;
  font-size: 15px; color: #444; cursor: pointer;
  transition: all 0.2s;
}
.wa-item.active { border-color: #ff3b6b; color: #ff3b6b; background: #fff0f4; font-weight: 700; }
.wa-item.disabled {
  opacity: 0.35; cursor: not-allowed;
  background: #f5f5f5; color: #bbb; border-color: #eee;
}
.wa-item.custom { flex: 0 0 100%; }
.wa-item.custom input {
  width: 100%; border: none; outline: none;
  font-size: 15px; text-align: center; color: #333;
}
.withdraw-account { padding: 0 12px 14px; background: #fff; margin-bottom: 2px; }
.withdraw-account input {
  width: 100%; border: 2px solid #eee; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.withdraw-account input:focus { border-color: #ff3b6b; }
.btn-withdraw-confirm {
  width: calc(100% - 24px); margin: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 16px;
  border-radius: 12px; font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,59,107,0.35);
}
.withdraw-tips { padding: 0 16px; }
.withdraw-tips p { font-size: 13px; color: #aaa; margin-bottom: 4px; }

/* 审核中状态 */
.withdraw-result {
  text-align: center;
  padding: 30px 20px;
}
.wd-result-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: wdSpin 1.5s ease-in-out infinite;
}
@keyframes wdSpin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}
.wd-result-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff8c00;
  margin-bottom: 6px;
}
.wd-result-amount {
  font-size: 32px;
  font-weight: 800;
  color: #ff3b6b;
  margin-bottom: 18px;
}
.wd-result-info {
  background: #fff8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.wd-result-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd-result-info .fa-check-circle { color: #52c41a; }
.wd-result-info .fa-clock-o { color: #ff8c00; }
.wd-detail-row {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  padding-left: 2px;
}
.wd-result-time {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 16px;
}
.btn-withdraw-confirm.outline {
  background: transparent !important;
  color: #ff3b6b !important;
  border: 2px solid #ff3b6b !important;
}

/* ===== 我的页面 ===== */
.mine-guest-tip {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  padding: 30px 16px 20px;
  display: flex; align-items: center; gap: 14px; color: #fff;
}
.mine-login-btn {
  margin-left: auto; background: rgba(255,255,255,0.95);
  border: none; color: #ff3b6b; padding: 10px 16px;
  border-radius: 20px; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.mine-login-btn:active { opacity: 0.85; }
.mine-header {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  padding: 30px 16px 20px; color: #fff;
}
.mine-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mine-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.mine-level { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.lv-badge {
  background: rgba(255,255,255,0.25); padding: 2px 8px;
  border-radius: 10px; font-size: 12px; font-weight: 600;
}
.mine-edit-btn {
  margin-left: auto; background: rgba(255,255,255,0.2);
  border: none; color: #fff; padding: 6px 12px;
  border-radius: 8px; cursor: pointer;
}
.mine-stats { display: flex; justify-content: space-around; }
.mine-stat { text-align: center; }
.mine-stat b { font-size: 22px; font-weight: 800; display: block; }
.mine-stat span { font-size: 12px; opacity: 0.8; }
.mine-menu { background: #fff; margin: 12px; border-radius: 14px; overflow: hidden; }
.mine-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-bottom: 1px solid #f5f5f5;
  cursor: pointer; font-size: 15px; color: #333;
}
.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-item i:first-child { font-size: 20px; width: 24px; text-align: center; }
.mine-menu-item span { flex: 1; }
.orange { color: #ff6b35; }
.purple { color: #7c4dff; }
.green  { color: #00c853; }
.pink   { color: #e91e63; }
.grey   { color: #ccc; font-size: 14px !important; }
.grey2  { color: #aaa; }
.mine-logout {
  text-align: center; padding: 16px; color: #ff4757;
  font-size: 15px; cursor: pointer; font-weight: 500;
  margin: 12px; border-radius: 14px; background: #fff;
}
.mine-logout:active { background: #fff5f5; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.task-modal {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  text-align: center; width: 280px;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-icon { font-size: 54px; margin-bottom: 12px; }
.modal-title { font-size: 20px; font-weight: 800; color: #222; margin-bottom: 8px; }
.modal-earn { font-size: 22px; font-weight: 700; color: #ff3b6b; margin-bottom: 8px; }
.modal-balance { font-size: 14px; color: #888; margin-bottom: 20px; }
.modal-btn {
  width: 100%; background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 14px;
  border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer;
}

/* ===== 广告倒计时进度条 ===== */
.ad-progress-wrap {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 999;
  background: rgba(0,0,0,0.85); color: #fff;
  display: none; flex-direction: column; align-items: center;
  justify-content: center; height: 100vh;
}
.ad-progress-title { font-size: 18px; margin-bottom: 20px; }
.ad-progress-bar-bg {
  width: 80%; height: 8px; background: #444; border-radius: 4px; margin-bottom: 12px;
}
.ad-progress-bar { height: 100%; background: #ff6b35; border-radius: 4px; width: 0%; transition: width 0.1s linear; }
.ad-progress-num { font-size: 32px; font-weight: 800; color: #ff6b35; }

/* ===== 登录提示条 ===== */
.login-bar {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.login-bar button {
  background: #fff; color: #ff6b35; border: none;
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ===== 登录模态框 ===== */
.login-modal {
  background: #fff; border-radius: 20px; padding: 0;
  width: 320px; overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.login-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 12px; font-size: 20px; font-weight: 800; color: #222;
}
.login-header i { color: #ccc; cursor: pointer; font-size: 18px; }
.login-tabs {
  display: flex; border-bottom: 2px solid #f5f5f5;
}
.login-tabs span {
  flex: 1; text-align: center; padding: 12px 0;
  font-size: 15px; color: #888; cursor: pointer; position: relative;
}
.login-tabs span.active { color: #ff6b35; font-weight: 700; }
.login-tabs span.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: #ff6b35; border-radius: 2px;
}
.login-form { padding: 24px; }
.login-form input {
  width: 100%; border: 2px solid #f0f0f0; border-radius: 12px;
  padding: 14px; font-size: 15px; margin-bottom: 14px;
  transition: border-color 0.2s;
}
.login-form input:focus { border-color: #ff6b35; outline: none; }
.pwd-wrap { position: relative; margin-bottom: 14px; }
.pwd-wrap input { width: 100%; padding-right: 44px; margin-bottom: 0; }
.pwd-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #ccc; cursor: pointer; font-size: 18px; }
.pwd-toggle:hover { color: #ff6b35; }
.login-btn {
  width: 100%; background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 15px; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px;
}

/* ===== 通知模态框 ===== */
.notify-modal {
  background: #fff; border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; max-height: 70vh;
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}
.notify-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; font-size: 18px; font-weight: 800; color: #222;
  border-bottom: 1px solid #f0f0f0;
}
.notify-header i { color: #ccc; cursor: pointer; }
.notify-list { padding: 0 24px 24px; max-height: 50vh; overflow-y: auto; }
.notify-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid #f8f8f8;
  cursor: pointer; position: relative;
}
.notify-item.unread { background: #fff8f0; margin: 0 -24px; padding: 16px 24px; }
.notify-icon { font-size: 32px; flex-shrink: 0; }
.notify-title { font-size: 14px; color: #333; margin-bottom: 4px; font-weight: 600; }
.notify-desc { font-size: 12px; color: #888; margin-bottom: 4px; line-height: 1.5; }
.notify-time { font-size: 12px; color: #aaa; }
.notify-dot {
  position: absolute; top: 18px; right: 0;
  width: 8px; height: 8px; background: #ff3b6b; border-radius: 50%;
}

/* ===== 排行榜页面 ===== */
.rank-tabs {
  display: flex; gap: 0; padding: 12px 16px 0;
  border-bottom: 2px solid #f0f0f0;
}
.rank-tabs span {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 14px; color: #888; cursor: pointer; position: relative;
}
.rank-tabs span.active { color: #ff6b35; font-weight: 700; }
.rank-tabs span.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: #ff6b35; border-radius: 2px;
}
.rank-list { padding: 16px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f8f8f8;
}
.rank-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: #ccc;
}
.rank-num.top1 { background: linear-gradient(135deg, #ffd700, #ffaa00); }
.rank-num.top2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-num.top3 { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.rank-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; }
.rank-info { flex: 1; }
.rank-name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.rank-desc { font-size: 12px; color: #888; }
.rank-amount { font-size: 18px; font-weight: 800; color: #ff3b6b; }

/* ===== 收益记录页面 ===== */
.earnings-tabs {
  display: flex; gap: 0; padding: 12px 16px 0;
  border-bottom: 2px solid #f0f0f0;
}
.earnings-tabs span {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 13px; color: #888; cursor: pointer; position: relative;
}
.earnings-tabs span.active { color: #ff6b35; font-weight: 700; }
.earnings-tabs span.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: #ff6b35; border-radius: 2px;
}
.earnings-list { padding: 16px; }
.earning-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f8f8f8;
}
.earning-icon { font-size: 32px; }
.earning-info { flex: 1; }
.earning-name { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.earning-time { font-size: 12px; color: #aaa; }
.earning-amount { font-size: 18px; font-weight: 800; color: #ff3b6b; }

/* ===== 任务详情页面 ===== */
#page-task-detail {
  background: #f4f5f9;
  overflow-y: auto;
  padding-bottom: 24px;
}
/* 任务详情页全屏：覆盖全局 overlay 的 bottom: 56px */
#page-task-detail.open {
  bottom: 0;
}
.task-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; font-size: 16px; font-weight: 700;
  position: sticky; top: 0; z-index: 10;
}
.task-detail-back { font-size: 18px; cursor: pointer; }
.task-detail-banner {
  height: 180px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.task-detail-icon-wrap {
  font-size: 72px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.task-detail-earn-badge {
  position: absolute; top: 12px; right: 16px;
  background: rgba(255,255,255,0.95);
  color: #ff3b6b; font-size: 20px; font-weight: 900;
  padding: 6px 14px; border-radius: 20px;
  box-shadow: 0 2px 12px rgba(255,59,107,0.3);
}
.task-detail-body { padding: 16px; }
.task-detail-title-row { margin-bottom: 10px; }
.task-detail-title { font-size: 20px; font-weight: 800; color: #222; line-height: 1.3; }
.task-detail-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.tdm-tag {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}
.tdm-item { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.task-detail-section {
  background: #fff; border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.task-detail-section-title {
  font-size: 14px; font-weight: 700; color: #222;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.task-detail-desc { font-size: 14px; color: #555; line-height: 1.7; }
.task-detail-submit-tip { font-size: 13px; color: #888; line-height: 1.6; }
/* ===== 新步骤卡片 ===== */
.task-steps-wrapper {
  padding: 0 8px;
}
.step-card {
  display: flex; gap: 12px;
  padding: 16px 8px;
  position: relative;
}
.step-card-left {
  display: flex; flex-direction: column; align-items: center;
  min-width: 36px;
}
.step-badge {
  width: 32px; height: 32px; min-width: 32px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; font-size: 14px; font-weight: 900;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.step-line {
  width: 2px; flex: 1; min-height: 30px;
  background: linear-gradient(to bottom, #ff6b35, #ffd6cc);
  margin-top: 4px;
}
.step-card-right {
  flex: 1; padding-bottom: 4px;
}
.step-card-title {
  font-size: 15px; font-weight: 700; color: #222;
  margin-bottom: 4px;
}
.step-card-desc {
  font-size: 13px; color: #777; line-height: 1.5;
  margin-bottom: 8px;
}
/* 示例图片 */
.step-card-sample {
  margin-bottom: 10px;
}
.sample-label {
  font-size: 11px; color: #ff6b35; margin-bottom: 4px; font-weight: 600;
}
.sample-img {
  width: 100%; max-width: 300px;
  border-radius: 8px; border: 1px solid #eee;
  cursor: pointer; object-fit: cover;
  max-height: 180px;
  transition: transform 0.25s;
}
.sample-img.zoomed {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw; max-height: 80vh;
  z-index: 9999; border: 3px solid #fff;
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
  border-radius: 12px;
}
/* 上传区域 */
.step-upload-zone {
  width: 100%; min-height: 90px;
  border: 2px dashed #ffc4b3;
  border-radius: 12px;
  background: #fff8f6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.step-upload-zone:hover {
  border-color: #ff6b35; background: #fff2ef;
}
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0;
}
.upload-icon {
  font-size: 28px; margin-bottom: 4px;
}
.upload-text {
  font-size: 13px; color: #ff6b35; font-weight: 600;
}
.upload-preview-img {
  width: 100%; max-height: 200px;
  object-fit: contain; border-radius: 8px;
}
.upload-actions {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 6px;
}
.upload-btn-reupload, .upload-btn-delete {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  border: none; cursor: pointer; font-weight: 600;
}
.upload-btn-reupload {
  background: rgba(255,107,53,0.15); color: #ff6b35;
}
.upload-btn-delete {
  background: rgba(255,71,87,0.15); color: #ff4757;
}
/* 保留旧步骤样式（兼容） */
.task-step-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f8f8f8;
}
.task-step-item:last-child { border-bottom: none; }
.step-num {
  width: 26px; height: 26px; min-width: 26px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step-text { font-size: 14px; color: #333; line-height: 1.5; padding-top: 3px; }
/* 我的提交 */
.my-sub-card { padding: 4px 0; }
.my-sub-status { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.my-sub-time { font-size: 12px; color: #aaa; }
.my-sub-remark { font-size: 12px; color: #ff8c00; margin-top: 6px; }
/* 底部操作栏 —— 任务详情页专用，底部导航栏已隐藏 */
.task-detail-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 16px 0;
  background: transparent;
  z-index: 501;
  display: none;
}
/* 任务详情页打开时显示底部按钮 */
#page-task-detail.open ~ #taskDetailFooter { display: block; }
.task-detail-btn {
  width: 100%; height: 50px;
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; font-size: 16px; font-weight: 700;
  border: none; border-radius: 25px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,59,107,0.35);
  transition: opacity 0.2s;
}
.task-detail-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

/* ===== 任务提交弹窗 ===== */
.task-submit-modal {
  background: #fff; border-radius: 20px; width: 340px;
  overflow: hidden; animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.tsm-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  font-size: 16px; font-weight: 700; color: #222;
}
.tsm-header i { font-size: 18px; color: #aaa; cursor: pointer; }
.tsm-body { padding: 16px 20px; }
.tsm-tip { font-size: 13px; color: #888; margin-bottom: 14px; line-height: 1.5; }
.tsm-label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.tsm-input {
  width: 100%; border: 1.5px solid #eee; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.tsm-input:focus { border-color: #ff6b35; }
.tsm-textarea {
  width: 100%; border: 1.5px solid #eee; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
  resize: none; font-family: inherit;
  transition: border-color 0.2s;
}
.tsm-textarea:focus { border-color: #ff6b35; }
.tsm-footer {
  padding: 12px 20px 16px; display: flex; gap: 10px;
  border-top: 1px solid #f0f0f0;
}
.tsm-btn {
  flex: 1; height: 44px; border-radius: 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; border: none;
}
.tsm-btn.primary {
  background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff;
}
.tsm-btn.outline {
  background: #f5f5f5; color: #666; border: 1.5px solid #e0e0e0;
}
.tsm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 图片上传区域 */
.tsm-upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed #d0d0d0; border-radius: 14px;
  padding: 24px 16px; cursor: pointer; transition: all 0.2s;
  background: #fafafa; color: #999;
}
.tsm-upload-area:hover {
  border-color: #ff6b35; background: #fff8f5; color: #ff6b35;
}
.tsm-upload-area i { font-size: 32px; margin-bottom: 8px; opacity: 0.6; }
.tsm-upload-area:hover i { opacity: 1; }
.tsm-upload-area span { font-size: 14px; font-weight: 500; }

/* ===== 我的任务页面 ===== */
.my-task-tabs {
  display: flex; padding: 12px 16px 0;
  border-bottom: 2px solid #f0f0f0;
  background: #fff;
}
.my-task-tabs span {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 13px; color: #888; cursor: pointer; position: relative;
}
.my-task-tabs span.active { color: #ff6b35; font-weight: 700; }
.my-task-tabs span.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; background: #ff6b35; border-radius: 2px;
}
.my-task-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mti-icon { font-size: 36px; }
.mti-info { flex: 1; }
.mti-name { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 4px; }
.mti-time { font-size: 12px; color: #aaa; }
.mti-remark { font-size: 11px; color: #ff8c00; margin-top: 3px; }
.mti-right { text-align: right; }
.mti-earn { font-size: 16px; font-weight: 800; color: #ff3b6b; }
.mti-status { font-size: 12px; margin-top: 4px; }

/* ======== 一级任务卡片（无价格版本） ======== */
.task-action {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.earn-range {
  font-size: 13px; font-weight: 700; color: #ff6b35;
}
.task-sub-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 8px;
  background: #fff3e0; color: #ff6b35; font-weight: 600;
  white-space: nowrap;
}

/* ======== 子任务列表页（二级） ======== */
.subtask-list-wrapper {
  padding: 16px;
  background: #f5f5f5;
  min-height: calc(100vh - 50px);
}
.subtask-list-intro {
  font-size: 14px; color: #666; margin-bottom: 12px;
  padding: 0 4px;
}
.subtask-header-title {
  display: flex; align-items: center; gap: 8px;
}
.subtask-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s;
}
.subtask-card:active { transform: scale(0.98); }
.subtask-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.subtask-info { flex: 1; min-width: 0; }
.subtask-name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.subtask-desc { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subtask-btn {
  flex-shrink: 0; background: linear-gradient(135deg, #ff6b35, #ff3b6b);
  color: #fff; border: none; padding: 8px 18px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
