/* ============================================================
   推客云 · 用户端样式
   设计基调：深林绿 + 米白，信息密度高但留白克制，数字用等宽感字体
   ============================================================ */
:root {
  --brand: #0fa968;
  --brand-600: #0b8f58;
  --brand-deep: #0b3b2a;
  --brand-soft: #e7f7ef;
  --brand-line: #b8e6cf;
  --money: #ff5a1f;
  --ink: #10231b;
  --ink-2: #3f5549;
  --muted: #85978e;
  --line: #e7ede9;
  --bg: #f4f7f5;
  --card: #ffffff;
  --danger: #d92d20;
  --warn: #b45309;
  --gold: #b7791f;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --shadow: 0 1px 2px rgba(16, 35, 27, .04), 0 8px 24px -18px rgba(16, 35, 27, .28);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #e8eee9;
  background-image: radial-gradient(circle at 12% 8%, rgba(15, 169, 104, .10), transparent 45%),
                    radial-gradient(circle at 88% 92%, rgba(11, 59, 42, .10), transparent 40%);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(11, 59, 42, .05), 0 24px 80px -40px rgba(11, 59, 42, .45);
  padding-bottom: 84px;
  overflow-x: hidden;
}
.boot { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------------- 通用 ---------------- */
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.pad { padding: 16px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card.pad { padding: 16px; }
.section { padding: 0 16px; margin-top: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.section-more { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; line-height: 18px; font-weight: 600;
  background: #f2f5f3; color: var(--ink-2); border: 1px solid transparent;
}
.chip.green { background: var(--brand-soft); color: var(--brand-600); }
.chip.orange { background: #fff2e8; color: #c2410c; }
.chip.red { background: #fdeceb; color: var(--danger); }
.chip.blue { background: #eaf2ff; color: #1d4ed8; }
.chip.gold { background: #fdf6e3; color: var(--gold); }
.chip.line { background: #fff; border-color: var(--line); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #fff; background: var(--brand);
  cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.985); filter: brightness(.96); }
.btn[disabled] { background: #cfd8d3; color: #fff; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:active { background: #f7faf8; }
.btn.line-brand { background: #fff; color: var(--brand-600); border: 1px solid var(--brand-line); }
.btn.danger { background: var(--danger); }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 34px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.btn.lg { height: 48px; font-size: 16px; border-radius: 14px; }

/* ---------------- 顶部 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(244, 247, 245, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(231, 237, 233, .8);
}
.brand-mark { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: .4px; }
.brand-mark .dot {
  width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, #0fa968, #0b3b2a);
  color: #fff; font-size: 14px; display: grid; place-items: center;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn svg { width: 18px; height: 18px; }
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; line-height: 15px; text-align: center; }

/* ---------------- 首页 hero ---------------- */
.hero {
  margin: 12px 16px 0;
  border-radius: var(--r-xl);
  padding: 18px;
  color: #fff;
  background: linear-gradient(150deg, #0b3b2a 0%, #0d5c3f 58%, #0f7d54 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(134, 239, 172, .30), transparent 68%);
}
.hero::before {
  content: ""; position: absolute; left: -30px; bottom: -70px;
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-slogan { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { font-size: 12px; color: rgba(255, 255, 255, .74); margin-top: 4px; }
.hero-stats { display: flex; gap: 22px; margin-top: 16px; position: relative; z-index: 1; }
.hero-stats .k { font-size: 11px; color: rgba(255, 255, 255, .66); }
.hero-stats .v { font-size: 19px; font-weight: 700; font-family: var(--num); }
.hero-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; position: relative; z-index: 1;
}

/* ---------------- 分类 ---------------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 2px; padding: 4px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; cursor: pointer; border: 0; background: none; color: var(--ink-2); }
.cat:active { background: #f2f7f4; }
.cat .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #f3f8f5; color: var(--brand-600); border: 1px solid #e3efe8;
}
.cat .ico svg { width: 22px; height: 22px; }
.cat.on .ico { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 18px -10px rgba(15, 169, 104, .9); }
.cat.on { color: var(--brand-600); font-weight: 700; }
.cat span { font-size: 12px; }

/* ---------------- 公告 ---------------- */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 16px 0; padding: 9px 12px;
  background: #fffdf5; border: 1px solid #f3e6c8; border-radius: 12px;
  color: #8a5a12; font-size: 12px;
}
.notice-bar svg { width: 16px; height: 16px; flex: none; }
.notice-bar .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 项目卡片 ---------------- */
.tabs { display: flex; gap: 18px; padding: 0 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 4px 0 10px; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.tab.on { color: var(--ink); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 3px; background: var(--brand); }

.product {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.product:active { transform: scale(.994); }
.logo {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
}
.p-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.p-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.p-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.p-right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.p-price { font-family: var(--num); font-size: 19px; font-weight: 700; color: var(--money); line-height: 1.1; }
.p-price small { font-size: 11px; font-weight: 600; }
.p-price .yuan { font-size: 12px; margin-right: 1px; }
.p-date { font-size: 11px; color: var(--muted); }
.p-go { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--brand-600); font-weight: 600; }
.p-go svg { width: 14px; height: 14px; }

/* ---------------- 详情 ---------------- */
.detail-hero {
  padding: 16px; color: #fff;
  background: linear-gradient(150deg, #0b3b2a, #0e7049);
  border-radius: 0 0 22px 22px;
  position: relative; overflow: hidden;
}
.detail-hero .logo { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .16) !important; color: #fff; font-size: 22px; }
.detail-hero .name { font-size: 20px; font-weight: 800; }
.d-stat { display: flex; margin-top: 16px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 0; }
.d-stat > div { flex: 1; text-align: center; }
.d-stat .v { font-family: var(--num); font-size: 18px; font-weight: 700; }
.d-stat .k { font-size: 11px; color: rgba(255, 255, 255, .7); margin-top: 2px; }

.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tier-table th { background: #f6f9f7; color: var(--ink-2); font-weight: 600; font-size: 12px; padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.tier-table td { padding: 11px 8px; border-bottom: 1px solid #f1f5f2; vertical-align: middle; }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table .price { color: var(--money); font-weight: 700; font-family: var(--num); white-space: nowrap; }
.tier-table .cyc { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tier-pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.tier-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.radio { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; border: 2px solid #cbd6d0; background: #fff; flex: 0 0 18px; }
.tier-pick.on .radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3.5px #fff; }

.steps { counter-reset: step; }
.step { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 1px; background: var(--line); }
.step .n { flex: none; width: 23px; height: 23px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-600); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step .t { font-size: 13px; color: var(--ink-2); padding-top: 3px; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9aa8a1; font-size: 11px; padding: 4px 0; }
.tabbar a.on { color: var(--brand-600); font-weight: 700; }
.tabbar a.on svg { stroke-width: 2; }
.tabbar svg { width: 22px; height: 22px; }

/* ---------------- 我的 ---------------- */
.me-head { padding: 18px 16px 26px; background: linear-gradient(160deg, #0b3b2a, #0d6b47); color: #fff; position: relative; overflow: hidden; }
.me-head::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(134, 239, 172, .22), transparent 70%); }
.avatar { width: 54px; height: 54px; border-radius: 18px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.me-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.me-meta { font-size: 11.5px; color: rgba(255, 255, 255, .74); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

.balance-card { margin: -16px 16px 0; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -24px rgba(11, 59, 42, .7); position: relative; z-index: 2; }
.balance-num { font-family: var(--num); font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.balance-sub { display: flex; gap: 18px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.func { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 0; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.func .ico { width: 38px; height: 38px; border-radius: 12px; background: #f3f8f5; display: grid; place-items: center; color: var(--brand-600); }
.func .ico svg { width: 19px; height: 19px; }

.cell-list { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cell { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f1f5f2; cursor: pointer; background: #fff; }
.cell:last-child { border-bottom: 0; }
.cell .ico { width: 30px; height: 30px; border-radius: 9px; background: #f3f8f5; display: grid; place-items: center; color: var(--brand-600); flex: none; }
.cell .ico svg { width: 17px; height: 17px; }
.cell .t { font-size: 14px; }
.cell .d { font-size: 12px; color: var(--muted); }
.cell .arrow { color: #c3cec8; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 169, 104, .12); }
.input::placeholder, .textarea::placeholder { color: #adb9b3; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-btn { flex: none; height: 44px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.hint.warn { color: var(--warn); }

.uploader { display: flex; gap: 10px; flex-wrap: wrap; }
.up-item { width: 84px; height: 84px; border-radius: 12px; border: 1px dashed #c9d6cf; background: #fafcfb; display: grid; place-items: center; color: var(--muted); cursor: pointer; overflow: hidden; position: relative; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item svg { width: 22px; height: 22px; }
.up-item .rm { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.up-item .rm svg { width: 11px; height: 11px; }

/* ---------------- 列表 / 状态 ---------------- */
.list-item { padding: 14px 16px; border-bottom: 1px solid #f1f5f2; background: #fff; }
.list-item:last-child { border-bottom: 0; }
.li-title { font-size: 14px; font-weight: 600; }
.li-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.amount { font-family: var(--num); font-size: 16px; font-weight: 700; }
.amount.plus { color: var(--money); }
.amount.minus { color: var(--ink); }

.empty { padding: 46px 0; text-align: center; color: var(--muted); font-size: 13px; }
.empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 8px; }

.skeleton { height: 76px; border-radius: var(--r-lg); background: linear-gradient(90deg, #eef3f0 25%, #f7faf8 37%, #eef3f0 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; margin-bottom: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------- 浮层 ---------------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(16, 35, 27, .92); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; z-index: 99; max-width: 78vw; text-align: center; line-height: 1.5;
  animation: tin .18s ease;
}
@keyframes tin { from { opacity: 0; transform: translate(-50%, -46%); } }

.sheet-mask { position: fixed; inset: 0; background: rgba(8, 20, 14, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto; animation: sup .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes sup { from { transform: translateY(30px); opacity: .6; } }
.sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.sheet-close { position: absolute; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 25;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.page-back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }

/* ---------------- 登录 ---------------- */
.auth-wrap { min-height: 100vh; padding: 0 22px 40px; display: flex; flex-direction: column; background: var(--bg); }
.auth-top {
  margin: 0 -22px; padding: 62px 22px 46px;
  background: linear-gradient(160deg, #0b3b2a 0%, #0d5c3f 62%, #0e7d54 100%);
  border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
}
.auth-top::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(134, 239, 172, .28), transparent 68%);
}
.auth-logo { width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 24px; color: #fff; }
.auth-title { color: #fff; font-size: 24px; font-weight: 800; margin-top: 14px; letter-spacing: .5px; }
.auth-sub { color: rgba(255, 255, 255, .72); font-size: 12.5px; margin-top: 5px; }
.auth-card { margin-top: -26px; position: relative; z-index: 2; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px -30px rgba(11, 59, 42, .8); }
.auth-tabs { display: flex; gap: 20px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: none; font-size: 16px; color: var(--muted); padding: 0 0 6px; cursor: pointer; position: relative; font-weight: 600; }
.auth-tabs button.on { color: var(--ink); }
.auth-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); border-radius: 2px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed #eef3f0; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }

.marquee { overflow: hidden; }

/* hidden 属性优先级修正：避免浮层在隐藏状态下仍参与布局 */
[hidden] { display: none !important; }
/* 详情页/回填页带固定底栏时，额外留白 */
.app-shell.has-bottom-bar { padding-bottom: 96px; }
.func .ico { position: relative; }
.func .ico .dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px;
  text-align: center; border: 2px solid #fff; box-sizing: content-box;
}

.auth-benefits { display: flex; margin-top: 18px; gap: 10px; }
.auth-benefits > div {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
}
.auth-benefits b { display: block; font-family: var(--num); font-size: 18px; color: var(--brand-600); }
.auth-benefits span { font-size: 11.5px; color: var(--muted); }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 16px; }

/* ============================================================
   第二轮改版：首页信息条 / 任务清单 / 专属链接 / 团长阶梯 / PC 自适应
   ============================================================ */

/* ---------- 容器 ---------- */
.page-body { padding: 12px 16px 28px; }
.page-body.narrow { max-width: 880px; margin: 0 auto; }
.page-body > .hero,
.page-body > .notice-bar { margin-left: 0; margin-right: 0; }
.page-body > .me-head { border-radius: 18px; }
.page-body > .balance-card { margin-left: 0; margin-right: 0; }

/* ---------- 用户信息条 ---------- */
.user-strip {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.user-strip .avatar {
  width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, #0fa968, #0b3b2a);
  border: 0; color: #fff; font-size: 17px; font-weight: 800;
}
.us-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.us-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- hero 四指标 ---------- */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hero-stats .v { font-size: 16.5px; }
.hero-stats .k { font-size: 10.5px; line-height: 1.35; margin-top: 3px; }

/* ---------- 列表工具条 ---------- */
.list-toolbar { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; flex-wrap: wrap; }
.search-inline { position: relative; flex: 1; min-width: 160px; }
.search-inline svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--muted); }
.search-inline .input { height: 40px; padding-left: 34px; background: #fff; }
.seg-tabs { display: inline-flex; background: #eef4f0; border-radius: 10px; padding: 3px; gap: 2px; }
.seg-tabs button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.seg-tabs button.on { background: #fff; font-weight: 700; color: var(--ink); box-shadow: 0 1px 4px rgba(16,35,27,.12); }

/* ---------- 任务网格 ---------- */
.product-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.product { margin-bottom: 0; }

/* ---------- 统计小条 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 10px; box-shadow: var(--shadow);
}
.mini-stat span { display: block; font-size: 11px; color: var(--muted); }
.mini-stat b { display: block; font-family: var(--num); font-size: 17px; font-weight: 700; margin-top: 4px; }
.mini-stat b.orange { color: var(--money); }

/* ---------- 我的任务行 ---------- */
.task-list { display: grid; gap: 10px; }
.task-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow);
}
.task-row .logo { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
.tr-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tr-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tr-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.tr-actions { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 专属链接卡 ---------- */
.link-card { background: linear-gradient(145deg, #f0fbf5, #ffffff 60%); border-color: var(--brand-line); }
.link-text { font-family: var(--num); font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.link-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.link-stats b { color: var(--brand-600); font-family: var(--num); font-size: 13px; }

/* ---------- 阶梯返佣 ---------- */
.ladder-bar { height: 8px; border-radius: 999px; background: #eef4f0; overflow: hidden; margin-top: 12px; }
.ladder-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0fa968, #0b8f58); transition: width .4s ease; }
.ladder-table { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ladder-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; font-size: 12.5px; border-bottom: 1px solid #f2f6f3; background: #fff;
}
.ladder-row:last-child { border-bottom: 0; }
.ladder-row.on { background: #f4fbf7; }
.ladder-row b { font-family: var(--num); color: var(--money); }

/* ---------- 支付方式 ---------- */
.pay-option {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { width: 17px; height: 17px; accent-color: var(--brand); }
.pay-option:has(input:disabled) { opacity: .6; cursor: not-allowed; }

/* ---------- 其他 ---------- */
.avatar-sm {
  width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-600);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
.big-icon {
  width: 54px; height: 54px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-600);
  display: grid; place-items: center; margin: 0 auto;
}
.big-icon svg { width: 26px; height: 26px; }
.leader-cta { background: linear-gradient(150deg, #f3fbf7, #fff); border-color: var(--brand-line); }
.alert-box {
  display: flex; gap: 9px; padding: 11px 12px; border-radius: 11px;
  background: #fffdf5; border: 1px solid #f3e6c8; color: #8a5a12; font-size: 12.5px; line-height: 1.65;
}
.alert-box svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.tier-table-wrap { overflow-x: auto; padding: 10px 8px 6px; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* ---------- 钱包快捷入口 ---------- */
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-act {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 13px;
  font-family: inherit; color: var(--ink);
}
.wallet-act:active { background: var(--brand-soft); }
.wallet-act .wa-ico {
  width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-600);
  display: grid; place-items: center; margin-bottom: 4px;
}
.wallet-act .wa-ico svg { width: 16px; height: 16px; }
.wallet-act b { font-size: 13.5px; }
.wallet-act i { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- 充值页 ---------- */
.step-title {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  margin: 18px 0 9px; color: var(--ink);
}
.step-title b {
  width: 20px; height: 20px; border-radius: 7px; background: var(--brand-deep); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.pay-account {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fbfdfc;
}
.pay-account .pa-label { font-size: 11.5px; color: var(--muted); }
.pay-account .pa-value { font-family: var(--num); font-size: 16px; font-weight: 700; letter-spacing: .4px; color: var(--brand-deep); margin-top: 1px; }
.pay-account .pa-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.amount-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-picks .pick {
  padding: 9px 15px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  font-family: var(--num); font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.amount-picks .pick.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.empty-title { text-align: center; font-weight: 700; margin-top: 10px; }

/* ============================================================
   电脑端（≥1000px）：左侧导航 + 多列内容
   ============================================================ */
@media (min-width: 1000px) {
  body { background: #eef3f0; }
  .app-shell.pc { max-width: none; padding-bottom: 0; box-shadow: none; background: var(--bg); }
  .layout { display: grid; grid-template-columns: 238px 1fr; min-height: 100vh; }
  .sidenav {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0b3b2a 0%, #0a3124 100%);
    padding: 20px 14px 16px; color: #c8ded2;
  }
  .side-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 16.5px; font-weight: 800; padding: 0 10px 20px; letter-spacing: .4px; }
  .side-brand .mark { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 15px; }
  .side-links { display: flex; flex-direction: column; gap: 2px; }
  .side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #b9d2c6; font-size: 13.5px; }
  .side-links a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side-links a.on { background: rgba(15,169,104,.18); color: #fff; font-weight: 600; }
  .side-divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 10px; }
  .side-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
  .side-user .ava { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
  .side-user .n { font-size: 12.5px; color: #fff; }
  .side-user .r { font-size: 10.5px; color: #7f9a8c; }
  .sidenav-logout { background: transparent; border: 0; color: #8fae9d; cursor: pointer; padding: 4px; }
  .sidenav-logout:hover { color: #fff; }

  .main { min-width: 0; }
  .pc .topbar {
    background: #fff; border-bottom: 1px solid var(--line); padding: 11px 28px;
    position: sticky; top: 0; z-index: 20;
  }
  .pc .topbar > .brand-mark { display: none; }
  .pc .page-body { max-width: 1180px; margin: 0 auto; padding: 22px 28px 60px; }
  .pc .page-body.narrow { max-width: 900px; }

  .product-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .task-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-row { gap: 12px; }
  .hero-stats .v { font-size: 22px; }
  .hero-stats .k { font-size: 11.5px; }
  .hero { padding: 22px; }
  .page-body > .me-head { padding: 22px 24px 30px; }
  .bottom-bar { max-width: 900px; border-radius: 16px; border: 1px solid var(--line); bottom: 18px; box-shadow: 0 18px 40px -30px rgba(11,59,42,.9); }
  .app-shell.has-bottom-bar { padding-bottom: 96px; }
  .detail-hero { border-radius: 22px; }

  /* 阶梯表在宽屏下别拉太散，保持「档位—比例—状态」靠拢 */
  .ladder-table { max-width: 620px; }

  /* 登录 / 注册页：内容居中限宽，不再显示「手机框」阴影 */
  .app-shell.pc .auth-wrap { padding: 0; display: block; }
  .app-shell.pc .auth-top {
    margin: 0; border-radius: 0; padding: 80px 40px 120px; text-align: center;
  }
  .app-shell.pc .auth-top .auth-logo { margin: 0 auto; }
  .app-shell.pc .auth-top .auth-title { font-size: 30px; }
  .app-shell.pc .auth-top .auth-sub { font-size: 14px; }
  .app-shell.pc .auth-card {
    max-width: 440px; margin: -80px auto 0; padding: 28px 32px; border-radius: 24px;
  }
  .app-shell.pc .auth-foot { max-width: 440px; margin: 16px auto 0; }
}

@media (min-width: 1440px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
}
