/* ============ 果如云商城 移动端样式 ============ */
:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #222222;
  --text-sub: #888888;
  --danger: #fa5151;
  --border: #ececec;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { max-width: 560px; margin: 0 auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  padding-bottom: 60px; /* tabbar 高度 */
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 顶部栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  height: 48px; padding: 0 12px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.header-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #35d47f);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.header-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 大号 Logo（关于页/登录页，居中展示） */
.header-logo.big {
  width: 64px; height: 64px; border-radius: 16px;
  font-size: 32px; margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(7, 193, 96, .18);
}
.header-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.header-link { font-size: 13px; color: var(--text-sub); min-width: 52px; text-align: right; }
.back-btn { font-size: 26px; color: var(--text); min-width: 28px; line-height: 1; }

/* 顶栏头像+昵称（登录态） */
.header-link.user-link {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  color: var(--text);
}
.mini-avatar {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #eafaf7; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.mini-avatar .avatar-img { width: 100%; height: 100%; }

/* ---------- Banner ---------- */
.banner {
  margin: 12px; border-radius: var(--radius);
  padding: 28px 20px; color: #fff;
  background: linear-gradient(135deg, #0aa858, #07c160 55%, #4cd980);
}
.banner h1 { font-size: 22px; margin-bottom: 8px; }
.banner p { font-size: 13px; opacity: .9; }

/* ---------- 区块标题 ---------- */
.main { padding: 0 12px 24px; }
.section-title { font-size: 17px; margin: 18px 2px 12px; }

/* ---------- 商品列表 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.product-thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: linear-gradient(135deg, #eef7f0, #e2f2e7);
}
.product-info { padding: 10px 12px 14px; }
.product-name { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.product-price { color: var(--danger); font-weight: 700; font-size: 17px; margin-top: 8px; }
.product-price small { font-size: 12px; font-weight: 400; }
.loading { grid-column: 1 / -1; text-align: center; color: var(--text-sub); padding: 40px 0; }

/* ---------- 商品详情 ---------- */
.product-detail { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.detail-thumb { height: 260px; display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(135deg, #eef7f0, #e2f2e7); }
.detail-body { padding: 16px; }
.detail-name { font-size: 18px; font-weight: 600; line-height: 1.5; }
.detail-price { color: var(--danger); font-size: 24px; font-weight: 700; margin-top: 10px; }
.detail-price small { font-size: 13px; font-weight: 400; }
.detail-desc { background: var(--card); border-radius: var(--radius); padding-bottom: 6px; margin-top: 2px; }
.detail-desc p { color: var(--text-sub); font-size: 14px; line-height: 1.8; padding: 0 14px 14px; }
.detail-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 100;
  display: flex; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--border);
}
.detail-bar .detail-price { flex: 1; color: var(--danger); font-size: 22px; font-weight: 700; margin: 0; }

.btn-primary {
  width: 100%; border: 0; border-radius: 24px;
  padding: 13px 0; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.btn-primary:active { opacity: .85; }
.btn-primary:disabled { background: #c8c8c8; }
.detail-bar .btn-primary, .result-actions .btn-primary { width: auto; padding: 12px 34px; }
.btn-plain { display: inline-block; padding: 12px 24px; color: var(--text-sub); }
.btn-danger-outline {
  width: 100%; border: 1px solid var(--danger); border-radius: 24px;
  padding: 12px 0; font-size: 15px; font-weight: 500;
  color: var(--danger); background: #fff;
}
.btn-danger-outline:active { background: #fff2f2; }

/* ---------- 订单确认 ---------- */
.order-product { display: flex; align-items: center; background: var(--card); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.order-product .product-thumb { width: 72px; height: 72px; font-size: 30px; border-radius: 10px; flex-shrink: 0; margin-right: 12px; }
.order-product-meta { flex: 1; }
.order-product-meta .name { font-size: 15px; line-height: 1.4; }
.order-product-meta .price { color: var(--danger); font-weight: 700; margin-top: 6px; }

.order-form { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 4px 14px; }
.form-item { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.form-item:last-child { border-bottom: 0; }
.form-item label { width: 72px; font-size: 14px; color: var(--text-sub); flex-shrink: 0; }
.form-item input { flex: 1; border: 0; outline: none; font-size: 15px; background: transparent; }

.order-summary { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 6px 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-sub); font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.summary-row.total span:last-child { color: var(--danger); font-size: 18px; }

.pay-method { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 14px; }
.pay-method-title { font-weight: 600; margin-bottom: 12px; }
.pay-option { display: flex; align-items: center; gap: 10px; color: var(--text-sub); }
.pay-option input { margin-left: auto; accent-color: var(--primary); }
.pay-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- 支付结果 ---------- */
.result-box { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 40px 20px; text-align: center; }
.result-icon { font-size: 56px; margin-bottom: 16px; }
.result-icon.success { color: var(--primary); }
.result-icon.fail { color: var(--danger); }
.result-box h2 { font-size: 19px; margin-bottom: 10px; }
.result-box p { color: var(--text-sub); font-size: 14px; margin-bottom: 28px; }
.result-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* ---------- 我的页面 ---------- */
.me-hero {
  position: relative; overflow: hidden;
  margin: 0 -12px; padding: 34px 24px 58px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 55%, #059b4c 100%);
  color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.me-bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }
.me-bubble.b1 { width: 170px; height: 170px; top: -70px; right: -50px; }
.me-bubble.b2 { width: 90px; height: 90px; bottom: -20px; left: 24px; opacity: .6; }
.me-bubble.b3 { width: 44px; height: 44px; top: 46px; left: 46%; opacity: .5; }

.me-user-row { position: relative; display: flex; align-items: center; gap: 16px; cursor: pointer; flex: 1; min-width: 0; }
.me-avatar-wrap { position: relative; flex-shrink: 0; }
.me-avatar-edit {
  position: absolute; right: -3px; bottom: -3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--primary); font-size: 12px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.me-avatar-wrap .me-avatar { width: 62px; height: 62px; }
.me-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.25); color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.me-user { flex: 1; min-width: 0; }
.me-user b { display: block; font-size: 19px; color: #fff; margin-bottom: 4px; }
.me-user span { font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 1px; }
.me-edit-pill {
  background: rgba(255,255,255,.22); color: #fff; font-size: 12px;
  padding: 6px 12px; border-radius: 15px; white-space: nowrap;
}
.me-login-pill {
  background: #fff; color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 18px; white-space: nowrap;
}

.me-body { position: relative; z-index: 2; margin-top: -36px; padding-bottom: 80px; }
.me-menu {
  background: var(--card); border-radius: 16px; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 40, 60, .05);
}
.me-menu-head { font-size: 13px; font-weight: 600; padding: 14px 16px 2px; color: var(--text); }

/* 订单卡片标题行（商城式：左标题 + 右“全部订单”） */
.order-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 2px;
}
.order-head b { font-size: 15px; }
.order-all { font-size: 12px; color: var(--text-sub); }

.me-quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px 12px; }
.me-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 0; position: relative;
}
.me-quick-item:active { opacity: .7; }
.me-quick-ic {
  width: 44px; height: 44px; border-radius: 14px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.me-quick-item b { font-size: 12px; font-weight: 500; }
.me-quick-item i {
  position: absolute; top: -2px; right: 14%;
  min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10px; font-style: normal;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 5px rgba(255, 80, 60, .35);
}

/* 我的服务宫格（商城式 4 列宫格） */
.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px 14px; }
.me-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 0;
}
.me-grid-item:active { opacity: .7; }
.me-grid-ic {
  width: 44px; height: 44px; border-radius: 14px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.me-grid-item b { font-size: 12px; font-weight: 500; color: var(--text); }

/* 图标底色 */
.ic-red    { background: #ffecec; }
.ic-blue   { background: #e8f3ff; }
.ic-orange { background: #fff4e5; }
.ic-green  { background: #e6f9ef; }
.ic-purple { background: #f1ecff; }
.ic-teal   { background: #e2f7f5; }
.ic-pink   { background: #ffeef2; }

.me-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.me-item:last-child { border-bottom: 0; }
.me-item:active { background: #f7f8fa; }
.me-item-icon {
  font-size: 16px; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.me-item-name { flex: 1; }
.me-item-arrow { color: #c8c9cc; }

/* 退出登录（我的页右上角毛玻璃胶囊） */
.me-logout-top {
  position: relative; z-index: 5; flex-shrink: 0;
  background: rgba(255, 255, 255, .18); color: #fff;
  border: 0; border-radius: 15px; padding: 6px 12px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.me-logout-top:active { background: rgba(255, 255, 255, .32); }

/* 个人资料弹窗 */
.pf-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.pf-modal {
  width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 20px;
  animation: pfIn .18s ease;
}
@keyframes pfIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.pf-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.pf-avatar-preview {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
.pf-label { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.pf-avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.pf-avatar-item {
  width: 100%; aspect-ratio: 1; border-radius: 10px; background: #f4f5f7;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  border: 2px solid transparent; cursor: pointer;
}
.pf-avatar-item.active { border-color: var(--primary); background: #eafaf7; }

/* 图片头像（本地上传） */
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.me-avatar, .pf-avatar-preview { overflow: hidden; }

/* 上传图片行 */
.pf-upload-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-upload-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eafaf7; color: var(--primary); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
}
.pf-upload-btn:active { opacity: .75; }
.pf-upload-tip { font-size: 11px; color: var(--text-sub); }
.pf-input {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; margin-bottom: 16px;
}
.pf-input:focus { border-color: var(--primary); }
.pf-input[readonly] { background: #f6f7f9; color: var(--text-sub); }
.pf-tip { font-size: 11px; color: var(--text-sub); line-height: 1.6; margin: -6px 0 14px; }
.pf-btns { display: flex; gap: 10px; }
.pf-btns .btn-primary, .pf-btns .btn-plain {
  flex: 1; margin: 0; width: auto;
  padding: 13px 0; border-radius: 24px;
  font-size: 16px; font-weight: 600; text-align: center;
}

/* ---------- 商品收藏 ---------- */
/* 标题行：商品名与收藏按钮同一水平线 */
.detail-head { display: flex; align-items: center; gap: 10px; }
.detail-head .detail-name { flex: 1; min-width: 0; }
.fav-fab {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 7px 15px; border: 1px solid var(--border); border-radius: 18px;
  background: #fff; color: var(--text-sub);
  font-size: 13px; cursor: pointer;
}
.fav-fab .fav-fab-ic { font-size: 15px; line-height: 1; }
.fav-fab.active { color: #ff4d4f; border-color: #ffd6d6; background: #fff5f5; }
.fav-fab.active .fav-fab-ic { color: #ff4d4f; }
.fav-fab:active { transform: scale(.94); }

.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
}
.fav-thumb {
  width: 56px; height: 56px; border-radius: 12px; background: #f4f5f7;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  flex-shrink: 0;
}
.fav-thumb.off { filter: grayscale(1); opacity: .5; }
.fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fav-name {
  font-size: 14px; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fav-meta { display: flex; align-items: center; gap: 8px; }
.fav-price { color: var(--danger); font-size: 16px; font-weight: 700; }
.fav-price small { font-size: 12px; font-weight: 400; }
.fav-off { font-size: 11px; color: var(--text-sub); background: #f4f5f7; padding: 2px 8px; border-radius: 8px; }
.fav-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.fav-actions .btn-mini { text-align: center; }

.fav-empty { text-align: center; padding: 60px 0 30px; color: var(--text-sub); }
.fav-empty-ic { font-size: 44px; color: #ff9e9e; margin-bottom: 10px; }
.fav-empty p { font-size: 14px; margin-bottom: 18px; }
.fav-empty .btn-primary { width: auto; padding: 11px 40px; }

/* ---------- 全站页脚（主体信息 / ICP 备案号，微信 H5 支付审核要求） ---------- */
.site-footer { padding: 0 16px calc(72px + env(safe-area-inset-bottom)); }
.sf-inner {
  background: linear-gradient(180deg, #f8faf8 0%, #f1f4f1 100%);
  border-radius: 16px;
  padding: 18px 14px 14px;
  text-align: center;
}
.sf-tel { margin-bottom: 12px; }
.sf-tel > a {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--primary); font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 20px;
  box-shadow: 0 2px 10px rgba(7, 193, 96, .14);
}
.sf-tel > a:active { transform: scale(.97); }
.sf-work {
  display: block; margin-top: 6px;
  font-size: 11px; color: var(--text-sub); letter-spacing: .5px;
}
.sf-copy { font-size: 11px; color: var(--text-sub); line-height: 1.6; margin-bottom: 8px; }
.sf-icp a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-sub);
  padding: 4px 12px; border-radius: 12px;
  background: rgba(0, 0, 0, .045);
}
.sf-icp a:active { background: rgba(0, 0, 0, .08); }

/* ---------- 服务保障行 ---------- */
.service-list {
  display: flex; justify-content: space-between; gap: 8px;
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
  margin-bottom: 12px;
}
.service-item { font-size: 12px; color: var(--text-sub); }
.service-item span { color: var(--primary); margin-right: 4px; font-weight: 600; }

/* ---------- 支付结果订单信息 ---------- */
.result-order {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  margin-top: 16px; text-align: left;
}
.result-order .od-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 13px;
}
.result-order .od-row span { color: var(--text-sub); flex-shrink: 0; }
.result-order .od-row b { font-weight: 500; word-break: break-all; text-align: right; }

/* ---------- 文档页 ---------- */
.doc { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 18px 16px 26px; }
.doc h2 { font-size: 16px; margin: 20px 0 10px; }
.doc h2:first-of-type { margin-top: 6px; }
.doc p { font-size: 14px; color: #444; line-height: 1.9; margin-bottom: 8px; }
.doc-update { font-size: 12px; color: var(--text-sub) !important; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

.about-card { text-align: center; padding: 26px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.about-slogan { color: var(--text-sub); font-size: 13px; }

.info-list { background: var(--bg); border-radius: 10px; padding: 2px 14px; }
.info-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; align-items: baseline; }
.info-item:last-child { border-bottom: 0; }
.info-item span { color: var(--text-sub); width: 110px; flex-shrink: 0; }
.info-item b { font-weight: 500; }
.info-item a { color: var(--primary); word-break: break-all; }

.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.promise-item { background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }
.promise-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.promise-item span { font-size: 12px; color: var(--text-sub); }

/* ---------- 登录 / 注册 ---------- */
.auth-box { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 28px 16px 22px; }
.auth-tabs { display: flex; margin: 18px 0 14px; background: var(--bg); border-radius: 22px; padding: 3px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 19px; font-size: 15px; color: var(--text-sub); }
.auth-tab.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-submit { margin-top: 18px; }
.auth-tip { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 14px; }
.auth-tip a { color: var(--primary); }

/* ---------- 订单列表 ---------- */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item { background: var(--card); border-radius: var(--radius); padding: 12px 14px; }
.order-item-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.order-no { font-size: 12px; color: var(--text-sub); }
.status-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.status-badge.ok { color: var(--primary); background: #e8f8ee; }
.status-badge.wait { color: #ff9d00; background: #fff5e5; }
.status-badge.off { color: var(--text-sub); background: var(--bg); }
.order-item-body { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.order-item-name { font-size: 14px; line-height: 1.4; padding-right: 10px; }
.order-item-amount { color: var(--danger); font-weight: 700; flex-shrink: 0; }
.order-item-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-sub); }
.btn-mini { border: 0; border-radius: 14px; padding: 6px 14px; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-mini.ghost { color: var(--text-sub); background: var(--bg); }
.order-actions { display: flex; gap: 8px; }

/* ---------- 地址管理 / 选择 ---------- */
.addr-section { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 14px; }
.addr-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.addr-head a { font-size: 13px; font-weight: 400; color: var(--primary); }
.addr-select-list, .addr-list { display: flex; flex-direction: column; gap: 8px; }
.addr-card { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 12px; }
.addr-card.selected { outline: 2px solid var(--primary); background: #f0faf4; }
.addr-card.selectable { cursor: pointer; }
.addr-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9c9c9; flex-shrink: 0; position: relative; }
.addr-card.selected .addr-radio { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.addr-card .addr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addr-line1 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.addr-line1 span { color: var(--text-sub); }
.addr-tag { font-style: normal; font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; padding: 0 4px; }
.addr-line2 { font-size: 13px; color: var(--text-sub); line-height: 1.5; }
.addr-ops { display: flex; gap: 10px; flex-shrink: 0; }
.link-btn { border: 0; background: transparent; color: var(--primary); font-size: 13px; padding: 4px; }
.link-btn.danger { color: var(--danger); }
.addr-add-btn { width: 100%; border: 1px dashed #c9c9c9; background: transparent; border-radius: 10px; padding: 12px 0; color: var(--text-sub); font-size: 14px; margin-top: 10px; }
.addr-add-btn.big { margin: 12px 0; padding: 14px 0; }
.save-addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); padding: 12px 2px; }
.save-addr input { accent-color: var(--primary); }

/* ---------- 订单详情 ---------- */
.od-status {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0aa858, #35d47f);
  border-radius: var(--radius); padding: 18px 16px; color: #fff; margin-top: 12px;
}
.od-status-icon { font-size: 30px; line-height: 1; }
.od-status-icon.off, .od-status-icon.wait { filter: none; }
.od-status-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.od-status-text b { font-size: 17px; }
.od-status-text span { font-size: 12px; opacity: .9; }
.od-status-amount { font-size: 20px; font-weight: 700; }
.od-card { background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 14px; }
.od-card-title { font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.od-row { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; align-items: baseline; }
.od-row span { color: var(--text-sub); width: 64px; flex-shrink: 0; }
.od-row b { font-weight: 500; word-break: break-all; }
.od-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 100;
  display: flex; height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--border);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--text-sub); }
.tab-item.active { color: var(--primary); }
.tab-icon { font-size: 20px; line-height: 1; }
