/* 拼任务 H5 样式 */
:root {
  --orange: #FF5C1A; --orange-light: #FF8A50; --orange-pale: #FFF0EA; --orange-deep: #E5400F;
  --dark: #1A1208; --dark2: #2D2010; --gray: #8A7E74; --gray-light: #F5F0EB; --white: #FFFDF9;
  --green: #2ECC71; --blue: #3498DB; --purple: #9B59B6; --gold: #F39C12; --red: #E74C3C;

  /* ==== 统一字阶（全站唯一来源，改这里即可整体缩放）====
     2xs 角标徽章 | xs 次要说明 | sm 三级正文 | base 正文
     md 小标题/强调 | lg 区块标题 | xl 页面标题/大数 | 2xl 重点数字 | 3xl 金额主数字 */
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system,BlinkMacSystemFont,'PingFang SC','HarmonyOS Sans SC','MiSans','Source Han Sans SC','Noto Sans CJK SC','Hiragino Sans GB','Microsoft YaHei UI','Microsoft YaHei','微软雅黑','WenQuanYi Micro Hei','Helvetica Neue',Arial,sans-serif; background: var(--gray-light); color: var(--dark); max-width: 480px; margin: 0 auto; min-height: 100vh; font-size: var(--fs-base); line-height: 1.5; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; outline: none; }
.hidden { display: none !important; }

/* 顶部栏 */
.topbar { position: sticky; top: 0; z-index: 100; background: linear-gradient(180deg, var(--dark), var(--dark2)); color: white; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.topbar .back { font-size: var(--fs-xl); color: rgba(255,255,255,0.8); background: none; border: none; padding: 0 4px; }
.topbar .title { font-size: var(--fs-lg); font-weight: 800; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar .right { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }

/* 页面容器 */
.page { display: none; min-height: 100vh; padding-bottom: 76px; }
.page.active { display: block; }

/* 底部导航 */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: white; border-top: 1px solid var(--gray-light); display: flex; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 200; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--gray); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.nav-item .nav-icon { font-size: 21px; line-height: 1; position: relative; display: inline-block; }
.nav-badge { position: absolute; top: -1px; right: -9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid white; display: block; }
.nav-item.active { color: var(--orange); }
.nav-center { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: pointer; margin-top: -18px; }
.nav-center .nav-center-btn { width: 48px; height: 48px; background: linear-gradient(135deg, var(--orange), var(--orange-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; box-shadow: 0 5px 16px rgba(255,92,26,0.35); }
.nav-center .nav-label { color: var(--orange); font-weight: 700; margin-top: 2px; font-size: var(--fs-xs); }
.nav-center > span { font-size: var(--fs-xs); font-weight: 700; margin-top: 2px; }

/* 首页 */
.home-header { background: #fff; padding: 16px 16px 18px; position: relative; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.home-header::before { content:''; position:absolute; top:-60px; right:-40px; width:180px; height:180px; background:var(--orange); border-radius:50%; opacity:.1; }
.header-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; z-index: 1; }
.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--orange), var(--orange-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 3px 10px rgba(255,92,26,.3); }
.logo-text { color: #2b2b2b; font-size: var(--fs-lg); font-weight: 900; }
.logo-text span { color: var(--orange); }
.header-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--orange), var(--orange-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; border: 2px solid rgba(255,255,255,.25); cursor: pointer; position: relative; z-index: 1; }
.header-greeting { color: #999; font-size: 12px; margin-bottom: 4px; position: relative; z-index: 1; letter-spacing: .2px; }
.header-title { color: #2b2b2b; font-size: 22px; font-weight: 900; line-height: 1.3; position: relative; z-index: 1; }
.header-title span { color: var(--orange); }
.search-bar { margin-top: 14px; background: #f4f5f7; border-radius: 22px; display: flex; align-items: center; padding: 11px 16px; gap: 8px; position: relative; z-index: 1; }
.search-bar input { background: none; border: none; color: rgba(255,255,255,.85); font-size: var(--fs-base); flex: 1; }
.search-bar input::placeholder { color: rgba(255,255,255,.4); }

.banner { margin: 10px 16px 0; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border-radius: 16px; padding: 13px 14px; color: white; position: relative; overflow: hidden; box-shadow: 0 6px 20px rgba(255,92,26,.3); }
.banner::before { content:''; position:absolute; top:-25px; right:-25px; width:100px; height:100px; background:rgba(255,255,255,.1); border-radius:50%; }
.banner-title { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.banner-desc { font-size: var(--fs-sm); opacity: .85; }
.banner-stats { display: flex; gap: 16px; margin-top: 7px; position: relative; z-index: 1; }
.banner-stat { text-align: center; }
.banner-stat-num { font-size: var(--fs-xl); font-weight: 900; }
.banner-stat-label { font-size: var(--fs-xs); opacity: .75; }

/* 分类 */
.cat-wrap { background: white; margin: 10px 16px 0; border-radius: 16px; padding: 10px 10px 8px; }
.tab-switch { display: flex; background: var(--gray-light); border-radius: 12px; padding: 3px; margin-bottom: 9px; }
.tab-btn { flex: 1; padding: 7px; border-radius: 10px; font-size: var(--fs-base); font-weight: 700; color: var(--gray); text-align: center; cursor: pointer; }
.tab-btn.active { background: white; color: var(--dark); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tab-btn.biz.active { color: var(--orange); }
.cat-section { display: none; }
.cat-section.active { display: block; }
.cat-section-title { font-size: var(--fs-sm); font-weight: 800; color: var(--gray); margin: 8px 0 6px; display: flex; align-items: center; gap: 5px; }
.cat-section-title::before { content:''; display:inline-block; width:3px; height:12px; background:var(--orange); border-radius:2px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 6px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.cat-icon { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 7.5vw, 38px); font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Segoe UI Symbol','Android Emoji',sans-serif; }
.cat-icon.orange { background: var(--orange-pale); } .cat-icon.green { background: #E8F8F0; } .cat-icon.blue { background: #EAF4FD; }
.cat-icon.purple { background: #F4EEF9; } .cat-icon.gold { background: #FEF9E7; } .cat-icon.pink { background: #FDEEF4; }
.cat-icon.teal { background: #E8F8F5; } .cat-icon.red { background: #FDEDEC; }
.cat-label { font-size: clamp(12px, 3.1vw, 14px); color: var(--dark); font-weight: 600; text-align: center; line-height: 1.1; }

/* 任务卡片 */
.group-tasks { padding: 13px 16px 16px; }
.section-title { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }
.section-title .more { font-size: var(--fs-sm); color: var(--orange); font-weight: 600; cursor: pointer; }
.group-card { background: white; border-radius: 18px; padding: 13px; margin-bottom: 10px; border: 2px solid var(--gray-light); cursor: pointer; position: relative; }
.group-card:active { transform: scale(.98); border-color: var(--orange); }
.group-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); border-radius: 18px 18px 0 0; }
.group-card.full::before { background: linear-gradient(90deg, var(--green), #58D68D); }
.group-card.waiting::before { background: linear-gradient(90deg, var(--gold), #F5B041); }
.group-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.group-title { font-size: var(--fs-md); font-weight: 800; flex: 1; margin-right: 8px; line-height: 1.4; }
.group-price { font-size: var(--fs-xl); font-weight: 900; color: var(--orange); white-space: nowrap; }
.group-price small { font-size: var(--fs-xs); font-weight: 500; }
.group-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { background: var(--gray-light); color: var(--gray); font-size: var(--fs-xs); padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.tag.hot { background: #FFF0EA; color: var(--orange); }
.tag.group-mode { background: linear-gradient(135deg, var(--orange-pale), #FFE0CC); color: var(--orange); }
.tag.auto-select { background: #EAF4FD; color: var(--blue); }
.group-progress { background: var(--gray-light); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 600; }
.progress-count { color: var(--orange); font-weight: 800; }
.progress-bar { height: 6px; background: #D5CCC4; border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-light)); border-radius: 3px; }
.progress-fill.full { background: linear-gradient(90deg, var(--green), #58D68D); }
.progress-hint { font-size: var(--fs-xs); color: var(--gray); }
.group-footer { display: flex; justify-content: space-between; align-items: center; }
.publisher-info { display: flex; align-items: center; gap: 6px; }
.publisher-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-light)); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); color: white; font-weight: 700; }
.publisher-name { font-size: var(--fs-xs); color: var(--gray); font-weight: 500; }
.group-reward { font-size: var(--fs-sm); color: var(--green); font-weight: 600; }

/* 详情页 */
.detail-header { background: linear-gradient(180deg, var(--dark), var(--dark2)); padding: 12px 16px 20px; color: white; }
.detail-title { font-size: var(--fs-xl); font-weight: 900; line-height: 1.3; margin: 8px 0 8px; }
.detail-price { font-size: 26px; font-weight: 900; color: var(--orange); }
.detail-price-unit { font-size: var(--fs-sm); color: rgba(255,255,255,.5); }
.detail-body { padding: 14px 16px; }
.group-status-card { background: linear-gradient(135deg, var(--orange), var(--orange-light)); border-radius: 16px; padding: 16px; margin-bottom: 12px; color: white; position: relative; overflow: hidden; }
.group-status-card::before { content:''; position:absolute; top:-30px; right:-30px; width:110px; height:110px; background:rgba(255,255,255,.1); border-radius:50%; }
.status-label { font-size: var(--fs-sm); opacity: .9; margin-bottom: 3px; }
.status-main { font-size: 19px; font-weight: 900; margin-bottom: 10px; }
.status-progress { display: flex; align-items: center; gap: 10px; }
.status-num { font-size: var(--fs-2xl); font-weight: 900; }
.status-desc { font-size: var(--fs-xs); opacity: .9; line-height: 1.5; }
.info-card { background: white; border-radius: 14px; padding: 13px; margin-bottom: 10px; border: 1px solid var(--gray-light); }
.info-card-title { font-size: var(--fs-md); font-weight: 800; margin-bottom: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--gray-light); font-size: var(--fs-sm); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gray); }
.info-value { font-weight: 600; }
.info-value.highlight { color: var(--orange); }
.info-value.green { color: var(--green); }
.publisher-card { background: white; border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 2px solid var(--orange-pale); }
.publisher-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.publisher-large-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-light)); display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; font-weight: 700; flex-shrink: 0; }
.publisher-card-name { font-size: var(--fs-md); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.publisher-card-stats { display: flex; gap: 10px; margin-top: 4px; font-size: var(--fs-xs); color: var(--gray); }
.publisher-quality { display: flex; gap: 6px; }
.quality-tag { font-size: var(--fs-xs); padding: 3px 8px; border-radius: 6px; background: var(--orange-pale); color: var(--orange); font-weight: 600; }
.participant-item { display: flex; align-items: center; gap: 10px; padding: 9px; background: var(--gray-light); border-radius: 12px; margin-bottom: 8px; }
.participant-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #5DADE2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: white; font-weight: 700; flex-shrink: 0; position: relative; }
.winner-badge { position: absolute; bottom: -3px; right: -3px; background: var(--orange); color: white; font-size: var(--fs-2xs); padding: 2px 5px; border-radius: 8px; font-weight: 700; }
.participant-info { flex: 1; }
.participant-name { font-size: var(--fs-base); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.participant-stats { font-size: var(--fs-xs); color: var(--gray); margin-top: 1px; }
.participant-rating { color: var(--gold); font-weight: 600; font-size: var(--fs-xs); }

/* 按钮 */
.btn-primary { width: 100%; padding: 13px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; font-size: var(--fs-md); font-weight: 800; box-shadow: 0 3px 14px rgba(255,92,26,.3); }
.btn-secondary { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--orange); background: none; color: var(--orange); font-size: var(--fs-base); font-weight: 700; }
.btn-green { background: linear-gradient(135deg, var(--green), #58D68D); box-shadow: 0 3px 14px rgba(46,204,113,.3); }
.apply-bar { position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: white; border-top: 1px solid var(--gray-light); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; z-index: 150; }
.apply-bar .btn-primary { flex: 2; } .apply-bar .btn-secondary { flex: 1; }

/* 表单 */
.form-group { margin-bottom: 12px; }
.form-label { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.form-label .required { color: var(--orange); }
.form-input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--gray-light); font-size: var(--fs-base); background: white; }
.form-input:focus { border-color: var(--orange); }
textarea.form-input { resize: none; height: 70px; line-height: 1.6; }
.mode-selector { display: flex; gap: 10px; }
.mode-option { flex: 1; padding: 12px; border-radius: 12px; border: 2px solid var(--gray-light); text-align: center; cursor: pointer; }
.mode-option.selected { border-color: var(--orange); background: var(--orange-pale); }
.mode-option .mode-emoji { font-size: 24px; display: block; margin-bottom: 4px; line-height: 1.2; }
.mode-option .mode-name { font-size: var(--fs-base); font-weight: 700; }
.mode-option .mode-desc { font-size: var(--fs-xs); color: var(--gray); margin-top: 3px; }
.task-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.task-type-item { padding: 10px 4px; border-radius: 12px; border: 2px solid var(--gray-light); text-align: center; cursor: pointer; }
.task-type-item.selected { border-color: var(--orange); background: var(--orange-pale); }
.task-type-item .type-icon { font-size: 22px; display: block; margin-bottom: 3px; line-height: 1.2; }
.task-type-item .type-name { font-size: var(--fs-xs); font-weight: 700; }
.group-setting { background: linear-gradient(135deg, var(--orange-pale), #FFE0CC); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.group-setting-title { font-size: var(--fs-md); font-weight: 800; margin-bottom: 10px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: var(--fs-base); }
.setting-value { display: flex; align-items: center; gap: 6px; }
.number-btn { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--orange); background: white; color: var(--orange); font-size: 17px; font-weight: 700; }
.number-display { font-size: 16px; font-weight: 800; min-width: 32px; text-align: center; }
.total-calc { background: white; border-radius: 14px; padding: 14px; margin-bottom: 14px; border: 2px solid var(--gray-light); }
.total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: var(--fs-sm); color: var(--gray); }
.total-row.final { border-top: 1px dashed var(--gray-light); margin-top: 8px; padding-top: 10px; font-size: 16px; font-weight: 800; color: var(--dark); }
.total-value { font-weight: 700; color: var(--orange); }
.payment-note { background: #FFF9E6; border-radius: 10px; padding: 10px; font-size: var(--fs-xs); color: var(--gold); margin-bottom: 14px; line-height: 1.6; }

/* 抽选 */
.draw-pool { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; }
.draw-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #5DADE2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; font-weight: 700; cursor: pointer; border: 3px solid transparent; position: relative; }
.draw-avatar.selected { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }
.draw-instruction { background: var(--orange-pale); border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 14px; }
.draw-instruction-text { font-size: var(--fs-base); color: var(--orange); font-weight: 600; }

/* 结果页 */
.result-header { background: linear-gradient(180deg, var(--orange), var(--orange-deep)); padding: 12px 16px 24px; text-align: center; color: white; position: relative; }
.result-header.gray { background: linear-gradient(180deg, #4A4A4A, #2D2D2D); }
.result-icon { font-size: 40px; margin: 10px 0 6px; line-height: 1.1; }
.result-title { font-size: var(--fs-xl); font-weight: 900; margin-bottom: 4px; }
.result-sub { font-size: var(--fs-sm); opacity: .85; }
.result-body { padding: 14px 16px; }
.reward-info-card { background: linear-gradient(135deg, #E8F8F0, #D5F5E3); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reward-info-card.gold { background: linear-gradient(135deg, #FEF9E7, #FCF3CF); }
.reward-info-icon { width: 42px; height: 42px; background: var(--green); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.reward-info-icon.gold { background: var(--gold); }
.reward-info-title { font-size: var(--fs-sm); color: var(--gray); }
.reward-info-amount { font-size: 22px; font-weight: 900; color: var(--green); }
.reward-info-amount.gold { color: var(--gold); }

/* 执行步骤 */
.task-steps { padding: 16px; }
.task-step { display: flex; gap: 12px; margin-bottom: 18px; position: relative; }
.task-step::before { content:''; position:absolute; left: 19px; top: 38px; bottom: -18px; width: 2px; background: var(--gray-light); }
.task-step:last-child::before { display: none; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; position: relative; z-index: 1; }
.step-icon.done { background: var(--green); }
.step-icon.current { background: var(--orange); }
.step-title { font-size: var(--fs-md); font-weight: 700; margin-bottom: 2px; }
.step-desc { font-size: var(--fs-xs); color: var(--gray); }
.task-action-bar { position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: white; border-top: 1px solid var(--gray-light); padding: 10px 16px; display: flex; gap: 10px; z-index: 150; }

/* 个人中心 */
.profile-header { background: linear-gradient(180deg, var(--dark), var(--dark2)); padding: 14px 16px 18px; color: white; }
.profile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-light)); display: flex; align-items: center; justify-content: center; font-size: 26px; border: 3px solid rgba(255,255,255,.2); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 800; }
.profile-id { color: rgba(255,255,255,.5); font-size: var(--fs-xs); margin-top: 3px; }
.profile-badge { background: linear-gradient(135deg, var(--gold), #E67E22); color: white; padding: 5px 11px; border-radius: 20px; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; white-space: nowrap; }
.stats-row { display: flex; gap: 8px; }
.stat-item { flex: 1; text-align: center; padding: 10px 4px; background: rgba(255,255,255,.1); border-radius: 12px; }
.stat-num { display: block; font-size: 18px; font-weight: 900; color: white; line-height: 1.3; }
.stat-num.orange { color: var(--orange); }
.stat-label { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.6); margin-top: 3px; }
.profile-body { padding: 14px 16px; }
.menu-section { margin-bottom: 12px; }
.menu-title { font-size: var(--fs-sm); font-weight: 700; color: var(--gray); margin-bottom: 8px; }
.menu-list { background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-light); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--gray-light); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.menu-item-text { flex: 1; min-width: 0; }
.menu-item-name { font-size: var(--fs-base); font-weight: 700; }
.menu-item-sub { font-size: var(--fs-xs); color: var(--gray); margin-top: 2px; }
.menu-item-right { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--orange); font-weight: 700; }
.menu-arrow { color: var(--gray); font-size: 17px; }

/* 我的拼团 */
.my-group-card { background: white; border-radius: 14px; padding: 13px; margin-bottom: 10px; border: 1px solid var(--gray-light); }
.my-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.my-group-title { font-size: var(--fs-md); font-weight: 700; flex: 1; margin-right: 8px; }
.my-group-status { font-size: var(--fs-xs); padding: 3px 8px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.my-group-status.drawn { background: var(--orange-pale); color: var(--orange); }
.my-group-status.waiting { background: #FEF9E7; color: var(--gold); }
.my-group-status.done { background: #E8F8F0; color: var(--green); }
.my-group-status.gray { background: var(--gray-light); color: var(--gray); }
.my-group-info { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--gray); margin-bottom: 8px; }
.my-group-actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--gray-light); }
.my-group-actions button { flex: 1; padding: 9px; border-radius: 10px; border: none; font-size: var(--fs-sm); font-weight: 700; }
.btn-act { background: var(--orange); color: white; }
.btn-act-green { background: var(--green); color: white; }
.btn-act-ghost { background: var(--gray-light); color: var(--gray); }
.btn-act-pale { background: var(--orange-pale); color: var(--orange); }

/* 评价 */
.rate-card { background: white; border-radius: 14px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--gray-light); text-align: center; }
.rate-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-light)); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; font-weight: 700; margin: 0 auto 8px; }
.rate-name { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.rate-type { font-size: var(--fs-xs); color: var(--gray); margin-bottom: 10px; }
.rate-stars { display: flex; justify-content: center; gap: 6px; font-size: 24px; }
.rate-star { cursor: pointer; filter: grayscale(1); opacity: .4; }
.rate-star.active { filter: none; opacity: 1; }
.rate-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.rate-tag { padding: 6px 12px; border-radius: 20px; font-size: var(--fs-sm); background: var(--gray-light); color: var(--gray); cursor: pointer; }
.rate-tag.selected { background: var(--orange-pale); color: var(--orange); }
.rate-textarea { width: 100%; padding: 11px; border-radius: 12px; border: 2px solid var(--gray-light); font-size: var(--fs-base); resize: none; height: 70px; }
.rate-submit { width: 100%; padding: 13px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; font-size: var(--fs-md); font-weight: 800; }

/* 会员等级 */
.vip-header { background: linear-gradient(180deg, var(--dark), var(--dark2)); padding: 14px 16px 20px; color: white; }
.vip-current { display: flex; align-items: center; gap: 12px; }
.vip-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #FF6B00); display: flex; align-items: center; justify-content: center; font-size: 26px; border: 3px solid rgba(255,255,255,.3); }
.vip-name { font-size: var(--fs-lg); font-weight: 800; }
.vip-level { color: var(--gold); font-size: var(--fs-base); font-weight: 700; margin-top: 2px; }
.vip-level-card { display: flex; align-items: center; gap: 12px; padding: 13px; background: white; border-radius: 14px; margin-bottom: 10px; border: 2px solid var(--gray-light); }
.vip-level-card.current { border-color: var(--gold); box-shadow: 0 4px 15px rgba(255,215,0,.2); }
.vip-level-card.locked { opacity: .55; }
.vip-level-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.vip-level-name { font-size: var(--fs-md); font-weight: 800; }
.vip-level-req { font-size: var(--fs-xs); color: var(--gray); margin-top: 2px; }
.vip-level-benefit { font-size: var(--fs-xs); color: var(--green); margin-top: 3px; }

/* 通用 */
.card { background: white; border-radius: 14px; padding: 13px; margin-bottom: 10px; border: 1px solid var(--gray-light); }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--gray); font-size: var(--fs-sm); }
.money { color: var(--orange); font-weight: 800; }
.green { color: var(--green); }
.empty { text-align: center; padding: 40px 20px; color: var(--gray); font-size: var(--fs-base); }
.loading { text-align: center; padding: 30px; color: var(--gray); font-size: var(--fs-base); }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; font-size: var(--fs-2xs); font-weight: 700; }
.badge.lv1 { background: linear-gradient(135deg,#E8E8E8,#D0D0D0); color:#666; }
.badge.lv2 { background: linear-gradient(135deg,#4CAF50,#2E7D32); color:white; }
.badge.lv3 { background: linear-gradient(135deg,#2196F3,#0D47A1); color:white; }
.badge.lv4 { background: linear-gradient(135deg,#9C27B0,#4A148C); color:white; }
.badge.lv5 { background: linear-gradient(135deg,#FF9800,#E65100); color:white; }
.badge.vip { background: linear-gradient(135deg,#FFD700,#FFA500); color:white; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--gray-light); }
.list-item:last-child { border-bottom: none; }

/* 弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.show { display: flex; }
.modal-content { background: white; border-radius: 18px; width: 90%; max-width: 360px; padding: 18px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-title { font-size: var(--fs-lg); font-weight: 800; }
.modal-close { font-size: var(--fs-xl); color: var(--gray); cursor: pointer; }

/* 中选喜报弹窗 */
.win-modal-body { text-align: center; }
.win-modal-emoji { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.win-modal-hint { font-size: var(--fs-sm); color: var(--gray); line-height: 1.6; margin: 8px 0 12px; }
.win-modal-task { background: var(--orange-pale); border-radius: 12px; padding: 10px 12px; text-align: left; margin-bottom: 14px; }
.win-modal-task-title { font-size: var(--fs-md); font-weight: 800; color: var(--dark); margin-bottom: 4px; word-break: break-all; }
.win-modal-task-meta { font-size: var(--fs-sm); color: var(--orange); font-weight: 700; }
.win-modal-actions { display: flex; flex-direction: column; gap: 8px; }

/* 密码确认弹窗 */
.pwd-tip { font-size: var(--fs-sm); color: var(--gray); line-height: 1.6; margin-bottom: 12px; }
.pwd-actions { display: flex; gap: 10px; margin-top: 14px; }
.pwd-actions button { flex: 1; padding: 11px; border-radius: 12px; border: none; font-size: var(--fs-md); font-weight: 800; }

/* 我的拼团卡片可点击 */
.my-group-card { cursor: pointer; }
.my-group-card:active { transform: scale(.99); }

/* 详情页中选提示条 */
.detail-winner-tip { background: linear-gradient(135deg,#FFF4E5,#FFE7CC); border: 1px solid #FFD8AE; color: #B7560B; border-radius: 12px; padding: 10px 12px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.6; margin: 0 0 10px; }

/* Toast */
#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.8); color: white; padding: 12px 20px; border-radius: 10px; font-size: var(--fs-base); z-index: 2000; display: none; max-width: 80%; text-align: center; }

/* 登录页 */
.auth-wrap { min-height: 100vh; background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 55%, #3D2A08 100%); display: flex; flex-direction: column; justify-content: center; padding: 40px 28px; }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo .logo-icon { width: 64px; height: 64px; font-size: 30px; margin: 0 auto 12px; border-radius: 18px; }
.auth-logo .name { color: white; font-size: var(--fs-2xl); font-weight: 900; }
.auth-logo .name span { color: var(--orange); }
.auth-logo .slogan { color: rgba(255,255,255,.5); font-size: var(--fs-sm); margin-top: 6px; }
.auth-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); }
.auth-input-wrap { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.auth-input-wrap input { background: none; border: none; color: white; font-size: var(--fs-md); flex: 1; }
.auth-input-wrap input::placeholder { color: rgba(255,255,255,.35); }
.auth-input-wrap .code-btn { font-size: var(--fs-sm); color: var(--orange); font-weight: 700; white-space: nowrap; cursor: pointer; border: none; background: none; }
.auth-btn { width: 100%; padding: 13px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; font-size: 16px; font-weight: 800; margin-top: 6px; box-shadow: 0 5px 16px rgba(255,92,26,.35); }
.auth-switch { text-align: center; color: rgba(255,255,255,.5); font-size: var(--fs-sm); margin-top: 14px; }
.auth-switch a { color: var(--orange); cursor: pointer; font-weight: 700; }
.auth-tip { color: rgba(255,255,255,.3); font-size: var(--fs-xs); text-align: center; margin-top: 20px; line-height: 1.7; }

/* 列表页 */
.list-wrap { padding: 10px 16px; }
.list-tabs { display: flex; background: white; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.list-tabs .lt { flex: 1; text-align: center; padding: 8px; font-size: var(--fs-base); font-weight: 700; color: var(--gray); border-radius: 10px; cursor: pointer; }
.list-tabs .lt.active { background: var(--orange-pale); color: var(--orange); }

/* 钱包 */
.wallet-header { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border-radius: 18px; padding: 20px; color: white; margin-bottom: 14px; position: relative; overflow: hidden; }
.wallet-header::before { content:''; position:absolute; top:-30px; right:-30px; width:130px; height:130px; background:rgba(255,255,255,.1); border-radius:50%; }
.wallet-balance-label { font-size: var(--fs-sm); opacity: .85; }
.wallet-balance { font-size: var(--fs-3xl); font-weight: 900; margin: 6px 0 12px; }
.wallet-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.wallet-actions button { flex: 1; padding: 10px; border-radius: 10px; border: none; font-size: var(--fs-base); font-weight: 800; }
.wallet-actions .wa1 { background: rgba(255,255,255,.25); color: white; }
.wallet-actions .wa2 { background: white; color: var(--orange); }

/* ===== 聊天 ===== */
.chat-conv { display: flex; align-items: center; gap: 12px; background: white; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; border: 1px solid var(--gray-light); cursor: pointer; }
.chat-conv-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-pale); color: var(--orange); font-size: var(--fs-lg); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-conv-avatar.service { background: linear-gradient(135deg,#EAF4FD,#D6EAF8); }
.chat-conv-body { flex: 1; min-width: 0; }
.chat-conv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-conv-name { font-size: var(--fs-base); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.chat-conv-time { font-size: var(--fs-2xs); color: var(--gray); flex-shrink: 0; }
.chat-conv-last { font-size: var(--fs-xs); color: var(--gray); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-task { font-size: var(--fs-2xs); color: var(--orange); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-dot { background: var(--red); color: white; border-radius: 10px; font-size: var(--fs-2xs); font-weight: 700; padding: 2px 7px; flex-shrink: 0; }

#page-chat { padding-bottom: 134px; }
.chat-body { padding: 12px 16px 6px; }
.chat-tip { background: #EAF4FD; color: #2471A3; font-size: var(--fs-xs); padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; text-align: center; }
.chat-tip.service { background: #FEF9E7; color: #B9770E; }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-msg-avatar { width: 34px; height: 34px; border-radius: 50%; background: white; border: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: var(--fs-base); flex-shrink: 0; }
.chat-msg.mine .chat-msg-avatar { background: var(--orange-pale); color: var(--orange); font-weight: 800; }
.chat-bubble { max-width: 74%; background: white; border-radius: 14px; padding: 10px 13px; font-size: var(--fs-base); line-height: 1.6; box-shadow: 0 1px 5px rgba(0,0,0,.05); word-break: break-word; white-space: pre-wrap; }
.chat-msg.mine .chat-bubble { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; }
.chat-bubble.order, .chat-msg.mine .chat-bubble.order { background: #FEF9E7; color: var(--dark); border: 1px solid #F9E79F; }
.chat-order-tag { font-size: var(--fs-2xs); font-weight: 800; color: var(--gold); margin-bottom: 5px; }
.chat-msg-time { font-size: var(--fs-2xs); opacity: .55; margin-top: 5px; }
.chat-input-bar { position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: white; border-top: 1px solid var(--gray-light); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; z-index: 150; }
.chat-input-bar input { flex: 1; padding: 11px 15px; border-radius: 22px; border: 1px solid var(--gray-light); background: var(--gray-light); font-size: var(--fs-base); }
.chat-input-bar button { border: none; border-radius: 22px; padding: 0 20px; background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; font-size: var(--fs-sm); font-weight: 700; }

/* 我的 · 投诉/申诉入口 */
.appeal-block { margin-top: 6px; margin-bottom: 18px; text-align: center; }
.appeal-btn { width: 100%; padding: 14px; border-radius: 14px; border: 2px solid #F5B7B1; background: #FDEDEC; color: #C0392B; font-size: var(--fs-base); font-weight: 800; }
.appeal-tip { font-size: var(--fs-xs); color: var(--gray); margin-top: 8px; }

/* 投诉/申诉 · 订单选择 */
.order-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.order-tab { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: var(--gray-light); color: var(--gray); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.order-tab.active { background: var(--orange-pale); color: var(--orange); }
.order-pick-list { max-height: 300px; overflow-y: auto; }
.order-pick-item { border: 1px solid var(--gray-light); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer; }
.order-pick-item:active { background: var(--orange-pale); }
.order-pick-title { font-size: var(--fs-base); font-weight: 700; }
.order-pick-meta { font-size: var(--fs-xs); color: var(--gray); margin-top: 4px; }

/* ===== 定位功能 ===== */
.loc-bar {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: #f4f5f7; border-radius: 12px;
  color: #666; font-size: 13px; cursor: pointer;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.loc-ico { font-size: 13px; flex-shrink: 0; }
.loc-txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-act { flex-shrink: 0; font-size: 11px; opacity: .8; color: var(--orange); background: rgba(255,107,53,.1); padding: 2px 7px; border-radius: 8px; }

/* 发布页地址行 */
.addr-row { display: flex; gap: 8px; }
.addr-input { flex: 1; }
.addr-map-btn {
  flex-shrink: 0; border: none; background: linear-gradient(135deg,#ff6b35,#ff8c42);
  color: #fff; border-radius: 10px; padding: 0 14px; font-size: 13.5px; cursor: pointer;
}
.addr-tips { margin-top: 8px; }
.addr-tip-item {
  display: flex; align-items: center; gap: 7px;
  background: #fff7f2; border: 1px solid #ffe0d0; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font-size: 13px;
}
.addr-tip-item .at-ico { flex-shrink: 0; }
.addr-tip-item .at-name { flex: 1; color: #333; font-weight: 600; }
.addr-tip-item .at-sub { flex-shrink: 0; color: #ff6b35; font-size: 12px; }
.addr-tip-empty { color: #999; font-size: 12.5px; padding: 4px 2px; }
.addr-tip-head { color: #888; font-size: 12px; margin: 2px 0 6px; }

/* 地图选点页 */
#page-map { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: #fff; z-index: 300; padding-bottom: 0; }
#page-map.active { display: block; }
#page-map .topbar { position: fixed; left: 0; top: 0; right: 0; z-index: 10; }
#mapFrame { margin-top: 48px; height: calc(100% - 48px); }

/* ===== 支付收银台（三选一） ===== */
.pay-type-list { margin-bottom: 12px; }
.pay-type-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--gray-light); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: all .15s; }
.pay-type-item.selected { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pay-type-icon { font-size: 22px; }
.pay-type-name { flex: 1; font-size: 14px; font-weight: 600; }
.pay-type-name small { display: block; font-size: 11px; font-weight: 400; color: #888; margin-top: 2px; }
.pay-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd; flex-shrink: 0; transition: all .15s; }
.pay-type-item.selected .pay-radio { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 3px #fff; }

/* ===== 地图选点顶层确认条 ===== */
.map-confirm-bar {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 999;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  padding: 12px 14px;
}
.map-confirm-addr { font-size: 14px; color: #333; line-height: 1.5; max-height: 60px; overflow: auto; }
.map-confirm-btn {
  margin-top: 10px; height: 44px; width: 100%; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ===== 任务探索 tabs ===== */
.explore-tabs { display: flex; gap: 6px; margin-bottom: 12px; justify-content: center; }
.explore-tab {
  flex: none; text-align: center; padding: 9px 10px; border-radius: 10px;
  background: #f5f6f7; color: #666; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; line-height: 1.2; transition: all .15s;
}
.explore-tab.active { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; box-shadow: 0 3px 10px rgba(255,107,53,.25); }

/* 搜索框文字颜色（白底时代残留修复） */
.search-bar input { color: #333 !important; font-size: 14px; background: transparent; border: none; outline: none; flex: 1; }
.search-bar input::placeholder { color: #9a9a9a; }
