/* ============================================================
   侠玩赚 - 全站统一样式（前端 v4：增强对比度与锐度）
   参考风格：红粉渐变悬赏主题 / 白色圆角卡片 / 清晰描边
   所有图标可在后台“站点图标”上传替换
   ============================================================ */
:root {
  --red: #e5123a;
  --red-2: #d92b48;
  --pink: #ff7a9c;
  --orange: #f26312;
  --gold: #f5a613;
  --green: #12996a;
  --blue: #2f6ad6;
  --text: #101521;
  --text-2: #5f6678;
  --pink-bg: #ffe6eb;
  --grad-hero: linear-gradient(150deg, #ff6a36 0%, #f71346 55%, #e80b78 100%);
  --grad-btn: linear-gradient(90deg, #ff6229, #e90f3c);
  --bg: #f2f3f7;
  --card: #ffffff;
  --radius: 13px;
  --line: rgba(16, 21, 33, .07);
  --shadow: 0 2px 8px rgba(90, 16, 44, .10), 0 0 0 1px var(--line);
  --shadow-md: 0 5px 16px rgba(90, 16, 44, .16), 0 0 0 1px var(--line);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #e7e9ef;
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ---------- 手机壳容器 ---------- */
.phone {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 32px rgba(0, 0, 0, .1);
}
.page { padding-bottom: 78px; min-height: 100vh; }

/* ---------- 可替换图标通用 ---------- */
.ui-icon { object-fit: contain; display: inline-block; vertical-align: middle; }
.ui-fallback { display: inline-block; vertical-align: middle; }

/* ---------- 首页红粉渐变头部（Logo+搜索+Banner） ---------- */
.hero {
  background: var(--grad-hero);
  padding: 14px 14px 46px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 14px rgba(160, 10, 55, .28);
}
.hero-top { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 10px; }
.hero-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(120, 0, 30, .3); }
.hero-logo img { height: 34px; width: auto; }
.hero-slogan { font-size: 11px; color: rgba(255,255,255,.92); }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 18px; padding: 3px 3px 3px 6px;
  box-shadow: 0 3px 12px rgba(140, 10, 45, .28);
}
.search-ico { padding: 0 4px 0 10px; color: #9aa1b2; font-size: 15px; }
.search-wrap input {
  flex: 1; border: none; outline: none; height: 36px;
  font-size: 13px; background: transparent; color: var(--text);
}
.search-wrap button {
  border: none; height: 34px; padding: 0 18px; border-radius: 16px;
  background: var(--grad-btn); color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer;
}
.banner { border-radius: 12px; overflow: hidden; position: relative; margin-top: 12px; box-shadow: var(--shadow-md); }
.banner-slide { display: none; }
.banner-slide.on { display: block; animation: bannerFade .5s ease; }
@keyframes bannerFade { from { opacity: .35; } to { opacity: 1; } }
.banner img { width: 100%; height: 150px; object-fit: cover; }
.banner-fallback {
  height: 150px;
  background: linear-gradient(115deg, #ffb35c 0%, #ff8a5f 45%, #ff5f7e 100%);
  display: flex; flex-direction: column; justify-content: center; padding-left: 26px;
  color: #fff; position: relative; overflow: hidden;
}
.banner-fallback::after {
  content: "🧧"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 68px; opacity: .3;
}
.banner-fallback .bf-title { font-size: 26px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 6px rgba(0,0,0,.12); }
.banner-fallback .bf-sub { margin-top: 8px; font-size: 13px; opacity: .95; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); }
.banner-dots i.on { background: #fff; width: 14px; }

/* ---------- 滚动通知 ---------- */
.notice {
  margin: -30px 12px 12px; background: var(--card); border-radius: 18px;
  display: flex; align-items: center; height: 40px; overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative; z-index: 2;
}
.notice-horn { color: var(--red); font-size: 16px; padding: 0 6px 0 14px; flex: none; display: flex; align-items: center; }
.notice-label { color: var(--red); font-weight: 800; flex: none; padding-right: 8px; border-right: 1px solid #ffd2da; }
.notice-body { flex: 1; overflow: hidden; }
.notice-track {
  display: inline-block; white-space: nowrap; padding-left: 12px;
  font-size: 13px; color: #454c60;
  animation: noticeMove 16s linear infinite;
}
.notice-arrow { color: #c9cedb; padding-right: 12px; font-size: 14px; flex: none; }
@keyframes noticeMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 分类区（动态图标，支持上传替换） ---------- */
.cats {
  margin: 0 12px 12px; background: var(--card); border-radius: var(--radius);
  padding: 18px 8px 14px; display: flex; box-shadow: var(--shadow);
}
.cat { flex: 1; text-align: center; cursor: pointer; }
.cat-ico {
  width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cat-ico .ui-icon { width: 100%; height: 100%; object-fit: cover; }
.cat:nth-child(1) .cat-ico { background: linear-gradient(150deg, #ffa424, #f2295b); box-shadow: 0 5px 13px rgba(242, 41, 91, .34); animation: bounce 1.8s ease-in-out infinite; }
.cat:nth-child(2) .cat-ico { background: linear-gradient(150deg, #ff8a4d, #ef2f7f); box-shadow: 0 5px 13px rgba(239, 47, 127, .34); animation: wiggle 1.8s ease-in-out infinite; }
.cat:nth-child(3) .cat-ico { background: linear-gradient(150deg, #ff7040, #e8386d); box-shadow: 0 5px 13px rgba(232, 56, 109, .34); animation: floaty 2.2s ease-in-out infinite; }
.cat:nth-child(4) .cat-ico { background: linear-gradient(150deg, #ff4f75, #c31f8c); box-shadow: 0 5px 13px rgba(195, 31, 140, .34); animation: pulse 2s ease-in-out infinite; }
.cat-name { font-size: 14px; font-weight: 700; color: #232838; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }

/* ---------- 胶囊 Tab（首页推荐/全部任务 等） ---------- */
.pill-tabs {
  margin: 4px 12px 12px; background: var(--pink-bg);
  border-radius: 22px; padding: 4px; display: flex; gap: 4px;
}
.pill-tabs a {
  flex: 1; text-align: center; padding: 9px 0; font-size: 15px; font-weight: 800;
  color: #737b90; border-radius: 18px;
}
.pill-tabs a.on { background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(200, 20, 60, .16); }

/* ---------- 区块标题 ---------- */
.sec { display: flex; align-items: center; margin: 14px 16px 10px; gap: 6px; }
.sec-ico { font-size: 16px; display: flex; align-items: center; }
.sec-title { font-size: 17px; font-weight: 800; color: #141a28; letter-spacing: .2px; }
.sec-more { margin-left: auto; font-size: 12px; color: var(--text-2); }

/* ---------- 任务卡片（参考悬赏列表：白卡+角标+右侧金额+底部统计） ---------- */
.task-cards { padding: 0 12px; }
.task-row {
  background: var(--card); border-radius: var(--radius);
  padding: 13px 14px 10px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.task-row:active { transform: scale(.985); box-shadow: var(--shadow-md); }
.tr-top { display: flex; align-items: center; gap: 11px; }
.task-ico { position: relative; flex: none; }
.task-ico .app-icon { display: block; }
.ico-ribbon {
  position: absolute; top: -5px; left: -5px;
  background: var(--grad-btn); color: #fff;
  font-size: 9px; font-weight: 800; line-height: 1;
  padding: 3px 5px; border-radius: 6px 6px 6px 0;
  box-shadow: 0 2px 6px rgba(200, 15, 60, .45);
}
.app-icon { object-fit: cover; flex: none; }
.icon-ph {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px; flex: none;
}
.icon-ph.g1 { background: linear-gradient(135deg, #f6c088, #eea45f); }
.icon-ph.g2 { background: linear-gradient(135deg, #96d9b6, #62b98e); }
.icon-ph.g3 { background: linear-gradient(135deg, #93abee, #6f83dd); }
.icon-ph.g4 { background: linear-gradient(135deg, #f79fb2, #e56a7a); }
.icon-ph.g5 { background: linear-gradient(135deg, #b9a2ef, #8f74e0); }
.icon-ph.g6 { background: linear-gradient(135deg, #82c8ec, #5f9edd); }
.task-main { flex: 1; min-width: 0; }
.task-title { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; color: #12172a; overflow: hidden; }
.task-title .tt { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flame { font-size: 13px; }
.badge {
  font-size: 10px; color: #fff; border-radius: 4px; padding: 1px 4px; flex: none; font-weight: 800;
}
.badge-top { background: var(--grad-btn); border-radius: 4px 4px 4px 0; }
.badge-fast { background: linear-gradient(135deg, #ffbb42, #f59300); }
.task-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: #d90f36; background: var(--pink-bg);
  padding: 2px 8px; border-radius: 5px; max-width: 130px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tag-gray { color: #616980; background: #eef0f6; }
.tag-orange { color: #d95c05; background: #ffebd8; }
.task-money { color: var(--red); font-weight: 800; font-size: 17px; flex: none; }
.tr-meta { margin-top: 7px; text-align: right; font-size: 12px; color: var(--red-2); }
.tr-meta em { font-style: normal; font-weight: 800; }
.tr-meta i { font-style: normal; color: #f3a7b5; margin: 0 6px; }
.tr-meta b { font-weight: 600; color: #565d70; }

/* ---------- 游戏卡片 ---------- */
.game-list { padding: 0 12px; }
.game-row {
  background: var(--card); border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.game-row:active { transform: scale(.985); box-shadow: var(--shadow-md); }
.game-main { flex: 1; min-width: 0; }
.game-title { font-size: 15px; font-weight: 800; color: #12172a; }
.game-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.game-reward { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.game-reward b { color: var(--orange); font-weight: 800; }
.btn-go {
  flex: none; border: none; cursor: pointer;
  background: var(--grad-btn);
  color: #fff; font-size: 14px; font-weight: 800;
  padding: 8px 18px; border-radius: 16px;
  box-shadow: 0 3px 9px rgba(200, 15, 60, .38);
}

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex; gap: 4px; margin: 10px 12px 4px; background: var(--pink-bg);
  border-radius: 22px; padding: 4px;
}
.filter-bar a {
  flex: 1; text-align: center; padding: 8px 0; font-size: 14px;
  color: #737b90; border-radius: 18px; font-weight: 700;
}
.filter-bar a.on { background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(200, 20, 60, .16); }

/* ---------- 排行榜 ---------- */
.rank-head {
  margin: 12px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #ff6231, #e80b78);
  color: #fff; padding: 20px 16px 24px; text-align: center;
  box-shadow: 0 6px 18px rgba(200, 10, 90, .38);
  position: relative;
}
.rank-head .rh-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(120, 0, 40, .35); }
.rank-head .rh-time {
  margin-top: 10px; display: inline-block; font-size: 12px;
  background: rgba(255, 255, 255, .26); border-radius: 13px; padding: 4px 14px;
  font-weight: 600;
}
.rank-tabs { display: flex; margin: 0 12px 12px; gap: 8px; }
.rank-tabs a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 18px;
  background: var(--card); color: var(--text-2); font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow);
}
.rank-tabs a.on { background: var(--grad-btn); color: #fff; box-shadow: 0 3px 10px rgba(200, 15, 60, .34); }
/* 展开提示条 */
.rank-hint {
  margin: 0 12px 8px; text-align: center; font-size: 12px; font-weight: 700;
  color: #c9122f; background: #fff1f4; border: 1px dashed rgba(200, 20, 60, .3);
  border-radius: 9px; padding: 7px 0;
}
.rank-list { margin: 0 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rank-thead {
  display: flex; padding: 11px 14px; font-size: 12px; color: #5f6678; font-weight: 700;
  border-bottom: 1px solid #eceef4; background: #fff1f4;
}
.rank-thead span:nth-child(1) { width: 52px; text-align: center; }
.rank-thead span:nth-child(2) { flex: 1; }
.rank-thead span:nth-child(3) { width: 86px; text-align: center; }
.rank-thead span:nth-child(4) { width: 70px; text-align: center; }
.rank-thead span:nth-child(5) { width: 26px; }
.rank-user { border-bottom: 1px solid #eceef4; }
.rank-user:last-child { border-bottom: none; }
.rank-line { display: flex; align-items: center; padding: 12px 6px 12px 14px; cursor: pointer; transition: background .15s; }
.rank-line:hover { background: #fff7f8; }
.rank-line:active { background: #ffeff2; }
.rank-no { width: 52px; text-align: center; flex: none; }
.medal {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  background: #e6e9f1; color: #6b7385;
}
.medal.m1 { background: linear-gradient(135deg, #ffd270, #f59300); color: #6f4400; box-shadow: 0 3px 8px rgba(245, 147, 0, .45); }
.medal.m2 { background: linear-gradient(135deg, #e9ecf4, #bcc4d4); color: #4d566b; }
.medal.m3 { background: linear-gradient(135deg, #f0c39c, #d98243); color: #6b390c; }
.rank-name { flex: 1; font-weight: 800; font-size: 15px; color: #12172a; min-width: 0; }
.rank-sub {
  display: block; font-style: normal; font-weight: 400; font-size: 10px;
  color: #d4718a; margin-top: 2px;
}
.rank-income { width: 86px; text-align: center; color: var(--red); font-weight: 800; font-size: 14px; }
.rank-income small { font-size: 10px; font-weight: 400; }
.rank-bonus { width: 70px; text-align: center; color: #c9122f; font-size: 13px; font-weight: 800; }
.rank-bonus::before { content: "🧧 "; font-size: 12px; }
.rank-fold {
  width: 26px; flex: none; text-align: center; color: #d4718a; font-size: 13px; font-weight: 800;
  transition: transform .22s ease;
}
.rank-user.open .rank-fold { transform: rotate(180deg); color: var(--red); }
.rank-detail { display: none; padding: 4px 14px 14px 66px; }
.rank-user.open .rank-detail { display: block; animation: fadeDown .25s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rd-tip { font-size: 11px; color: var(--text-2); margin-bottom: 8px; }
.rd-item {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  background: #fff1f4; border-radius: 9px; padding: 8px 10px; cursor: pointer;
  border: 1px solid rgba(200, 20, 60, .07);
  transition: background .15s;
}
.rd-item:active { background: #ffe1e7; }
.rd-item .app-icon { width: 30px !important; height: 30px !important; border-radius: 7px !important; }
.rd-item .rd-name { flex: 1; font-size: 13px; font-weight: 700; color: #1a2032; display: flex; align-items: center; gap: 5px; min-width: 0; }
.rd-kind {
  font-style: normal; font-size: 9px; font-weight: 800; line-height: 1;
  padding: 2px 4px; border-radius: 4px; flex: none;
}
.rd-kind.k-a { color: #d10f34; background: #ffdde4; }
.rd-kind.k-g { color: #cf5500; background: #ffe7cf; }
.rd-kind.k-t { color: #1c56c4; background: #dde9ff; }
.rd-item .rd-amt { color: var(--orange); font-weight: 800; font-size: 14px; }
.rd-arrow { color: #d99aa6; font-size: 12px; }

/* ---------- 我的 ---------- */
.me-card {
  margin: 12px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.me-head {
  background: var(--grad-hero);
  color: #fff; padding: 20px 18px;
  display: flex; align-items: center; gap: 12px;
}
.me-avatar {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  border: 2px solid rgba(255,255,255,.7);
}
.me-name { font-size: 17px; font-weight: 800; }
.me-sub { font-size: 12px; opacity: .92; margin-top: 4px; }
.me-sec-title {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 16px 6px; font-size: 15px; font-weight: 800; color: #12172a;
}
.me-sec-title .dot { width: 4px; height: 15px; border-radius: 2px; background: var(--grad-btn); }
.me-sec-title .cnt { margin-left: auto; font-size: 12px; color: var(--text-2); font-weight: 400; }
.installed-list, .reco-list { padding: 4px 10px 12px; }
.assistant-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 11px;
}
.assistant-row:active { background: #fff1f4; }
.assistant-main { flex: 1; min-width: 0; }
.assistant-name { font-size: 14px; font-weight: 800; color: #12172a; }
.assistant-steps { font-size: 11px; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-installed {
  flex: none; font-size: 12px; color: #0f8a5e; background: #ddf6ea;
  border-radius: 13px; padding: 5px 12px; font-weight: 800;
}
.btn-install {
  flex: none; border: none; cursor: pointer; font-size: 12px; color: #fff;
  background: var(--grad-btn);
  border-radius: 13px; padding: 6px 14px; font-weight: 800;
  box-shadow: 0 3px 9px rgba(200, 15, 60, .36);
}
.empty-tip { text-align: center; color: var(--text-2); font-size: 13px; padding: 18px 0 8px; }

/* ---------- 底部导航（图标支持上传替换） ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; display: flex; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(20, 25, 40, .10); border-top: 1px solid rgba(16, 21, 33, .06); z-index: 50;
}
.tab-item {
  flex: 1; text-align: center; font-size: 11px; color: #666e80;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab-ico { font-size: 22px; display: flex; align-items: center; justify-content: center; height: 24px; filter: grayscale(1) opacity(.55); }
.tab-ico img { border-radius: 5px; }
.tab-item.active { color: var(--red); font-weight: 800; }
.tab-item.active .tab-ico { filter: none; }

/* ---------- 通用弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 14, 26, .62);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  z-index: 100; padding: 30px;
}
.modal-mask.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; max-width: 320px; background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .38);
  animation: popUp .25s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes popUp { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  background: linear-gradient(160deg, #58a1ee, #2456c6);
  padding: 22px 20px 34px; text-align: center; color: #fff;
  position: relative;
}
.modal-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
  background: #fff; border-radius: 16px 16px 0 0;
}
.modal-logo {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 15px;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.modal-logo img { width: 100%; height: 100%; object-fit: cover; }
.modal-logo .icon-ph { width: 100%; height: 100%; font-size: 26px; border-radius: 0; }
.modal-name {
  font-size: 17px; font-weight: 800; position: relative; z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 30, 90, .3);
  line-height: 1.4; word-break: break-all;
  margin-bottom: 12px; /* 文字上提，避开白色圆弧遮挡 */
}
.modal-body { padding: 6px 22px 22px; text-align: center; }
.modal-sec {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800; color: #12172a;
  text-align: left; margin: 2px 0 2px; padding-top: 10px;
}
.modal-sec::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--grad-btn); }
/* 收入结构说明（排行榜弹窗上半部分） */
.modal-inc {
  margin: 6px 0 2px; padding: 9px 12px;
  background: #fff4e8; border: 1px dashed #ffb35c; border-radius: 10px;
  color: #c2570c; font-size: 13.5px; font-weight: 700; text-align: left; line-height: 1.5;
}
.modal-steps { text-align: left; }
.modal-step {
  display: flex; gap: 8px; font-size: 14px; color: #232939;
  padding: 7px 0; line-height: 1.55;
}
.modal-step .no {
  flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  background: #dde8fb; color: #2456c6; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
/* 弹窗规则图片宫格（点击放大） */
.modal-imgs {
  display: none; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 12px; text-align: left;
}
.modal-imgs .modal-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  cursor: zoom-in; border: 1px solid rgba(16, 21, 33, .08);
}
/* 图片放大查看层 */
.img-viewer {
  position: fixed; inset: 0; background: rgba(8, 10, 18, .9);
  display: none; align-items: center; justify-content: center; z-index: 300;
  cursor: zoom-out;
}
.img-viewer.show { display: flex; animation: fadeIn .18s ease; }
.img-viewer img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.modal-go {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 22px; color: #fff; font-size: 16px; font-weight: 800;
  background: linear-gradient(90deg, #58a1ee, #2456c6);
  box-shadow: 0 6px 16px rgba(36, 86, 198, .42);
}
.modal-go-coin {
  width: 24px; height: 24px; border-radius: 50%; background: #ffd270; color: #7a5700;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.modal-close {
  margin-top: 22px; width: 44px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  flex: none;
}

/* ---------- 推荐助手专用弹窗（独立样式，不与通用弹窗通用） ---------- */
.reco-card {
  width: 100%; max-width: 320px; background: #fff; border-radius: 18px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .38);
  animation: popUp .25s cubic-bezier(.2, .9, .3, 1.3);
}
.reco-head {
  background: var(--grad-hero);
  padding: 18px 18px 24px; text-align: center; color: #fff;
  position: relative;
}
.reco-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
  background: #fff; border-radius: 18px 18px 0 0;
}
.reco-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: rgba(255, 255, 255, .24); border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 10px; padding: 3px 10px; margin-bottom: 12px; letter-spacing: 1px;
}
.reco-logo {
  width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 17px;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(120, 0, 40, .3);
}
.reco-logo img { width: 100%; height: 100%; object-fit: cover; }
.reco-name {
  font-size: 18px; font-weight: 800; position: relative; z-index: 1;
  text-shadow: 0 1px 3px rgba(120, 0, 40, .35); line-height: 1.35;
  margin-bottom: 14px; word-break: break-all;
}
.reco-intro {
  font-size: 12px; opacity: .95; line-height: 1.5; position: relative; z-index: 1;
  margin-bottom: 16px; word-break: break-all;
}
.reco-body { padding: 4px 20px 20px; }
.reco-steps-title {
  font-size: 13px; font-weight: 800; color: #12172a; text-align: left;
  margin-bottom: 2px; display: flex; align-items: center; gap: 5px;
}
.reco-steps-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--grad-btn); }
.reco-step {
  display: flex; gap: 8px; font-size: 14px; color: #232939;
  padding: 7px 0; line-height: 1.55; text-align: left;
}
.reco-step .no {
  flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  background: #ffe3ea; color: #d90f36; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.reco-go {
  margin-top: 12px; display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 23px; color: #fff; font-size: 16px; font-weight: 800;
  background: var(--grad-btn);
  box-shadow: 0 6px 16px rgba(220, 20, 70, .42); letter-spacing: 2px;
}
.reco-tip { margin-top: 10px; font-size: 11px; color: var(--text-2); text-align: center; }

/* ---------- 内页页头 ---------- */
.sub-head {
  background: var(--grad-hero);
  padding: 14px 16px; color: #fff;
  display: flex; align-items: center; gap: 10px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 3px 12px rgba(160, 10, 55, .26);
}
.sub-head .back { font-size: 20px; width: 26px; }
.sub-head h1 { font-size: 17px; font-weight: 800; flex: 1; text-align: center; text-shadow: 0 1px 3px rgba(120, 0, 30, .3); }
.sub-head .ph { width: 26px; }
