/* ================= 基础重置 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #F5F6F8;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 14px; border: none; outline: none; background: transparent; }
a { color: inherit; text-decoration: none; }

:root {
  --primary: #0E7C66;
  --primary-light: #E6F4F1;
  --primary-dark: #0A5D4C;
  --gold: #C9962E;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #666666;
  --text-3: #999999;
  --line: #EFEFEF;
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.page { min-height: 100vh; background: var(--bg); }
.page.has-tabbar { padding-bottom: calc(56px + var(--safe-bottom)); }
.page.has-bottombar { padding-bottom: calc(74px + var(--safe-bottom)); }

/* ================= 居中容器（手机全宽 / 桌面定宽居中） ================= */
html { background: #E4E7EC; }
body { background: #E4E7EC; }
body { display: flex; justify-content: center; align-items: flex-start; }
#app {
  width: 100%; max-width: 430px; min-height: 100vh;
  background: var(--bg); position: relative;
  box-shadow: 0 0 48px rgba(0,0,0,.10);
}
.tabbar, .bottom-bar {
  width: 100%; max-width: 430px;
  left: 50%; right: auto; transform: translateX(-50%);
}

/* ================= 通用 ================= */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 80px 20px; color: var(--text-3); font-size: 13px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .35; }

/* ================= 顶部搜索 ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #0E7C66 0%, #12907A 100%);
  padding: 10px 14px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.topbar-row { display: flex; align-items: center; gap: 8px; }
.city-btn { display: flex; align-items: center; gap: 3px; color: #fff; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.city-btn .arrow { font-size: 10px; opacity: .8; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.95); border-radius: 18px;
  padding: 7px 12px; color: var(--text-3); font-size: 13px;
}
.search-box .ico { font-size: 14px; opacity: .6; }
.search-box input { flex: 1; font-size: 13px; color: var(--text); }
.search-box input::placeholder { color: #BBB; }

/* ================= 分类 ================= */
.cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 4px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
  flex-shrink: 0; padding: 7px 15px; border-radius: 16px;
  background: #fff; color: var(--text-2); font-size: 13px;
  border: 1px solid transparent; transition: all .2s;
}
.cat-item.active {
  background: var(--primary); color: #fff; font-weight: 500;
  box-shadow: 0 3px 10px rgba(14,124,102,.28);
}

/* ================= 筛选条 ================= */
.filter-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px; font-size: 13px; color: var(--text-2);
}
.filter-bar .item { display: flex; align-items: center; gap: 3px; }
.filter-bar .item.active { color: var(--primary); font-weight: 500; }

/* ================= 商家卡片 ================= */
.shop-list { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.shop-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.045);
  transition: transform .15s;
}
.shop-card:active { transform: scale(.985); }
.shop-cover {
  position: relative; height: 132px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden;
}
.shop-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.42) 100%);
}
.cover-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px);
  color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px;
}
.cover-promo {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: linear-gradient(90deg, #C9962E, #E0B44F);
  color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 4px;
  font-weight: 500;
}
.shop-body { padding: 11px 13px 13px; }
.shop-title-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.shop-name { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-rating { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.shop-rating .num { font-size: 14px; font-weight: 600; color: var(--gold); }
.shop-rating .star { font-size: 11px; color: var(--gold); }
.shop-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.shop-meta .price { color: #E05A3A; font-weight: 600; font-size: 13px; }
.shop-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  font-size: 11px; padding: 2px 7px; border-radius: 3px;
  background: var(--primary-light); color: var(--primary);
}
.tag-chip.gold { background: #FDF6E7; color: #A87B18; }

/* ================= 商家详情 ================= */
.hero {
  position: relative; height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); }
.hero-back {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.32); backdrop-filter: blur(6px);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.hero-back svg, .nav-back svg { width: 18px; height: 18px; display: block; }
.detail-card {
  background: #fff; border-radius: 16px 16px 0 0;
  margin-top: -18px; position: relative; z-index: 3;
  padding: 16px 16px 14px;
}
.detail-name { font-size: 19px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.detail-stats { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.detail-stats .hl { color: var(--gold); font-weight: 600; font-size: 15px; }
.info-row { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); padding: 7px 0; line-height: 1.5; }
.info-row .label { color: var(--text-3); flex-shrink: 0; width: 52px; }
.info-row .val { flex: 1; }
.info-row .val.link { color: var(--primary); }

.section { background: #fff; margin-top: 10px; padding: 16px; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }

.service-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.service-item:last-child { border-bottom: none; }
.service-thumb {
  width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.service-info { flex: 1; min-width: 0; }
.service-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.service-desc { font-size: 12px; color: var(--text-3); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-price-row { display: flex; align-items: baseline; gap: 6px; }
.service-price { color: #E05A3A; font-weight: 600; font-size: 16px; }
.service-price::before { content: '¥'; font-size: 12px; }
.service-origin { color: var(--text-3); font-size: 12px; text-decoration: line-through; }
.btn-book {
  align-self: center; padding: 7px 16px; border-radius: 16px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 500; flex-shrink: 0;
}

/* ================= 底部操作栏 ================= */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  display: flex; align-items: center; gap: 12px;
}
.bottom-bar .icon-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-2); flex-shrink: 0; width: 40px; }
.bottom-bar .icon-btn .ico { font-size: 19px; }
.btn-primary {
  flex: 1; height: 44px; border-radius: 22px;
  background: linear-gradient(90deg, #0E7C66, #16A085);
  color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(14,124,102,.3);
}
.btn-primary:active { opacity: .88; }
.btn-primary:disabled { background: #CCC; box-shadow: none; }

/* ================= 预约页 ================= */
.nav-bar {
  position: sticky; top: 0; z-index: 50; background: #fff;
  display: flex; align-items: center; height: 46px; padding: 0 12px;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
}
.nav-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 32px; }

.form-card { background: #fff; margin: 10px 0 0; padding: 4px 16px; }
.form-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.form-row:last-child { border-bottom: none; }
.form-label { width: 68px; flex-shrink: 0; font-size: 14px; color: var(--text); }
.form-label .req { color: #E05A3A; margin-left: 2px; }
.form-value { flex: 1; font-size: 14px; color: var(--text); }
.form-value.placeholder { color: #BBB; }
.form-value input { width: 100%; }
.form-arrow { color: #CCC; font-size: 14px; }

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 6px; font-size: 13px;
  background: #F5F6F8; color: var(--text-2); border: 1px solid transparent;
}
.chip.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); font-weight: 500; }
.chip.disabled { opacity: .35; }

.summary-card { background: #fff; margin-top: 10px; padding: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 5px 0; }
.summary-row.total { font-size: 15px; color: var(--text); font-weight: 600; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.summary-row.total .amount { color: #E05A3A; font-size: 18px; }

/* ================= 订单页 ================= */
.order-card { background: #fff; margin: 10px 14px 0; border-radius: var(--radius); padding: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-shop { font-size: 14px; font-weight: 600; }
.order-status { font-size: 12px; color: var(--primary); }
.order-status.done { color: var(--text-3); }
.order-status.cancel { color: #999; }
.order-body { padding: 10px 0; }
.order-service { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.order-time { font-size: 12px; color: var(--text-3); }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.order-amount { font-size: 13px; color: var(--text-2); }
.order-amount .num { color: #E05A3A; font-weight: 600; font-size: 15px; }
.btn-sm { padding: 6px 14px; border-radius: 15px; font-size: 12px; border: 1px solid var(--primary); color: var(--primary); }
.btn-sm.fill { background: var(--primary); color: #fff; }

/* ================= 我的 ================= */
.mine-header {
  background: linear-gradient(160deg, #0E7C66 0%, #16A085 60%, #1EB39A 100%);
  padding: 28px 20px 56px;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  color: #fff;
}
.mine-user { display: flex; align-items: center; gap: 14px; }
.mine-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.mine-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.mine-sub { font-size: 12px; opacity: .82; }
.mine-assets {
  display: flex; background: #fff; border-radius: 14px;
  margin: -40px 14px 0; padding: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.07); position: relative; z-index: 2;
}
.asset-item { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.asset-item:last-child { border-right: none; }
.asset-num { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.asset-label { font-size: 11px; color: var(--text-3); }

.menu-group { background: #fff; margin: 10px 14px 0; border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu-item:last-child { border-bottom: none; }
.menu-ico { font-size: 18px; width: 22px; text-align: center; }
.menu-text { flex: 1; }
.menu-extra { font-size: 13px; color: var(--text-3); }

/* ================= Tabbar ================= */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-bottom);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px; font-size: 10px; color: var(--text-3);
}
.tab-item .ico { font-size: 20px; line-height: 1; filter: grayscale(1); opacity: .55; }
.tab-item.active { color: var(--primary); font-weight: 500; }
.tab-item.active .ico { filter: none; opacity: 1; }

/* ================= 弹层 ================= */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 11px 20px;
  border-radius: 8px; font-size: 13px; z-index: 999; max-width: 70%; text-align: center;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.loading-wrap { padding: 60px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.spinner {
  width: 24px; height: 24px; border: 2px solid var(--primary-light);
  border-top-color: var(--primary); border-radius: 50%;
  margin: 0 auto 10px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 轮播点 ================= */
.hero-dots { position: absolute; bottom: 14px; right: 14px; z-index: 4; display: flex; gap: 5px; }
.hero-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); display: block; }
.hero-dots i.on { background: #fff; width: 14px; border-radius: 3px; }

/* ================= 商家 / 服务 切换 ================= */
.view-tabs {
  display: flex; gap: 24px; margin-top: 12px; padding: 0 4px;
}
.view-tab {
  position: relative; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 500;
  padding-bottom: 7px; transition: color .2s;
}
.view-tab.active { color: #fff; font-weight: 600; }
.view-tab.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px; background: #fff;
}

/* ================= 服务列表 ================= */
.service-list { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.service-card {
  display: flex; gap: 12px; background: #fff; border-radius: var(--radius);
  padding: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.045);
}
.service-card:active { transform: scale(.99); }
.sc-thumb {
  width: 78px; height: 78px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.sc-main { flex: 1; min-width: 0; }
.sc-name { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-shop { font-size: 12px; color: var(--text-2); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-arrow { color: #CCC; }
.sc-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.sc-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.sc-price { color: #E05A3A; font-weight: 700; font-size: 18px; line-height: 1; }
.sc-price .rmb { font-size: 12px; font-weight: 600; margin-right: 1px; }
.sc-origin { color: var(--text-3); font-size: 11px; font-weight: 400; text-decoration: line-through; margin-left: 6px; }

/* ================= 入驻页 ================= */
.join-banner {
  margin: 12px 14px 4px; padding: 20px 18px; border-radius: 14px;
  background: linear-gradient(135deg, #0E7C66 0%, #17A085 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(14,124,102,.22);
}
.jb-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.jb-sub { font-size: 12.5px; opacity: .88; }
.form-section-label {
  padding: 16px 18px 8px; font-size: 13px; color: var(--text-3); font-weight: 500;
}
.upload-box {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; height: 40px; padding: 0 12px;
  border: 1px dashed #CFD6D3; border-radius: 8px; background: #FAFBFA;
}
.upload-hint { font-size: 13px; color: var(--primary); }
.upload-name { font-size: 12px; color: var(--text-2); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-svc {
  text-align: center; font-size: 13px; color: var(--primary);
  padding: 8px 0; border: 1px dashed #CFE3DE; border-radius: 8px; background: #F7FBFA;
}
.del-svc { color: #C4C4C4; font-size: 14px; padding: 0 2px; }
.join-done { text-align: center; padding: 90px 24px 0; }
.done-icon { font-size: 56px; margin-bottom: 18px; }
.done-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.done-sub { font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ================= 商家工作台 ================= */
.mc-header {
  background: linear-gradient(160deg, #0E7C66 0%, #16A085 100%);
  padding-bottom: 44px;
  padding-top: env(safe-area-inset-top, 0px);
}
.mc-shop { padding: 0 20px; color: #fff; }
.mc-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.mc-meta { font-size: 12.5px; opacity: .88; }
.mc-status { color: #C8F5E6; }
.mc-stats {
  display: flex; background: #fff; border-radius: 14px; margin: -30px 14px 0;
  padding: 16px 0; box-shadow: 0 4px 16px rgba(0,0,0,.08); position: relative; z-index: 2;
}
.mc-stat { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.mc-stat:last-child { border-right: none; }
.mc-stat .n { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.mc-stat .n.hl { color: #E05A3A; }
.mc-stat .l { font-size: 11px; color: var(--text-3); }

.mc-order { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mc-order:last-child { border-bottom: none; }
.mc-order-main { flex: 1; min-width: 0; }
.mc-order-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.mc-order-sub { font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.mc-order-no { font-size: 11px; color: var(--text-3); }
.mc-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mc-order-amt { font-size: 15px; font-weight: 700; color: #E05A3A; }

.mc-svc { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mc-svc:last-child { border-bottom: none; }
.mc-svc-main { flex: 1; min-width: 0; }
.mc-svc-name { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.mc-svc-sub { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-svc-right { text-align: right; flex-shrink: 0; }
.mc-svc-price { font-size: 14px; font-weight: 600; color: #E05A3A; margin-bottom: 4px; }
.mc-svc-state { font-size: 11px; color: var(--primary); }
.mc-svc-state.off { color: var(--text-3); }

.mc-menu {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; font-size: 14px; border-bottom: 1px solid var(--line);
}
.mc-menu:last-child { border-bottom: none; }
.mc-arrow { color: #CCC; font-size: 15px; }

/* ================= 个人中心入口（顶部） ================= */
.mine-entry {
  height: 30px; padding: 0 11px; border-radius: 15px; flex-shrink: 0;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.38);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap;
}
.hero-mine {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.32); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* tabbar 在微信内置浏览器里避开底部工具栏 */
.tabbar { padding-bottom: calc(var(--safe-bottom) + 2px); }
.tab-item { padding: 8px 0 7px; }

/* ================= 我的：易货额 ================= */
.asset-num.money { color: #E05A3A; }
.asset-num.money::before { content: '¥'; font-size: 12px; margin-right: 1px; }

.wallet-actions { display: flex; gap: 12px; margin: 12px 14px 0; }
.wa-btn {
  flex: 1; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 500;
  background: #fff; color: var(--text); border: 1px solid var(--line);
}
.wa-btn.primary {
  background: linear-gradient(90deg, #0E7C66, #16A085); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(14,124,102,.24);
}

/* ================= 充值页 ================= */
.rc-hero {
  background: linear-gradient(135deg, #1B4B43 0%, #0E7C66 55%, #17A085 100%);
  margin: 12px 14px 0; border-radius: 16px; padding: 22px 20px;
  color: #fff; box-shadow: 0 8px 24px rgba(14,124,102,.24);
}
.rc-label { font-size: 12px; opacity: .82; margin-bottom: 8px; }
.rc-balance { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.rc-balance::before { content: '¥'; font-size: 18px; font-weight: 600; margin-right: 3px; }
.rc-tip-line { font-size: 11.5px; opacity: .75; margin-top: 10px; }

.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-item {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 16px 4px; text-align: center; background: #fff;
  transition: all .15s;
}
.rc-item.active {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: 0 2px 10px rgba(14,124,102,.14);
}
.rc-num { font-size: 20px; font-weight: 700; color: var(--text); }
.rc-item.active .rc-num { color: var(--primary); }
.rc-unit { font-size: 12px; color: var(--text-3); margin-left: 2px; }

.rc-custom {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 12px 14px; background: #F7F8FA; border-radius: 10px;
}
.rc-custom-label { font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.rc-custom input { flex: 1; font-size: 15px; font-weight: 500; }

.rc-note { font-size: 12.5px; color: var(--text-2); line-height: 2; }

/* 充值引导步骤 */
.rc-steps { display: flex; flex-direction: column; gap: 14px; }
.rc-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.rc-step-n {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(14,124,102,.10); color: var(--primary);
  font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center;
  margin-top: 1px;
}

/* ================= 易货额明细 ================= */
.wallet-hero {
  position: relative;
  background: linear-gradient(135deg, #1B4B43 0%, #0E7C66 60%, #17A085 100%);
  padding: 24px 20px 26px; color: #fff;
}
.wh-label { font-size: 12px; opacity: .82; margin-bottom: 8px; }
.wh-amount { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.wh-amount::before { content: '¥'; font-size: 18px; font-weight: 600; margin-right: 3px; }
.wh-sub { font-size: 11.5px; opacity: .72; margin-top: 10px; }
.wh-btn {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  padding: 8px 22px; border-radius: 18px;
  background: rgba(255,255,255,.92); color: var(--primary);
  font-size: 13.5px; font-weight: 600;
}

.ledger-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.ledger-item:last-child { border-bottom: none; }
.li-left { flex: 1; min-width: 0; }
.li-memo { font-size: 14px; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-time { font-size: 11.5px; color: var(--text-3); }
.li-right { text-align: right; flex-shrink: 0; }
.li-amount { font-size: 15.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.li-amount.plus { color: var(--primary); }
.li-balance { font-size: 11px; color: var(--text-3); }
