/* ============================================================
 * 米家商城 H5 —— 基础样式
 * 视觉参照米家 App：橙色主色、大量留白、圆角卡片、轻分隔线
 * ============================================================ */

:root {
  --brand: #ff6700;
  --brand-dark: #e55a00;
  --brand-light: #fff4ed;
  --black: #191919;
  --gray-1: #333;
  --gray-2: #666;
  --gray-3: #999;
  --gray-4: #bbb;
  --gray-5: #e0e0e0;
  --gray-6: #f5f5f5;
  --gray-7: #fafafa;
  --white: #fff;
  --red: #e53935;
  --green: #07c160;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-up: 0 -2px 12px rgba(0, 0, 0, .06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--gray-7);
  color: var(--black);
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; outline: none; border: 0; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- 布局骨架 ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  background: var(--gray-7);
  position: relative;
}
.page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}
.page-body.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 16px); }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 48px;
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-6);
}
.navbar.transparent { background: transparent; border-bottom: 0; }
.navbar .nav-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px; flex: 0 0 auto;
}
.navbar .nav-title {
  flex: 1; text-align: center;
  font-size: 17px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.navbar .nav-right { width: 36px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; }
.navbar .nav-left { min-width: 36px; flex: 0 0 auto; display: flex; align-items: center; }

/* ---------- 搜索栏 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--white);
}
.searchbar-input {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  background: var(--gray-6);
  border-radius: 17px;
  color: var(--gray-3);
}
.searchbar-input input { flex: 1; background: none; font-size: 14px; }
.searchbar-input input::placeholder { color: var(--gray-4); }

/* ---------- 通用文字 ---------- */
.price {
  color: var(--brand); font-weight: 600;
  font-family: -apple-system, 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
.price .sym { font-size: .72em; margin-right: 1px; }
.price-origin { color: var(--gray-4); font-size: 12px; text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.c-primary { color: var(--brand); }
.c-gray { color: var(--gray-3); }
.c-red { color: var(--red); }
.c-green { color: var(--green); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin: 10px 12px;
  overflow: hidden;
}
.card-flat { margin: 10px 0; border-radius: 0; }
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
  font-size: 16px; font-weight: 600;
}
.card-title .more { font-size: 12px; font-weight: 400; color: var(--gray-3); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 4px;
  font-size: 10px; line-height: 1; border-radius: 3px;
  border: 1px solid currentColor;
}
.tag-new { color: var(--brand); }
.tag-hot { color: var(--red); }
.tag-solid { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border-radius: 20px;
  font-size: 15px; font-weight: 500;
  background: var(--gray-6); color: var(--gray-1);
  transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { background: none; border: 1px solid var(--brand); color: var(--brand); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; border-radius: 15px; }
.btn-lg { height: 46px; font-size: 16px; border-radius: 23px; }
.btn[disabled], .btn.disabled { background: var(--gray-5); color: var(--gray-3); pointer-events: none; }

/* ---------- 表单 ---------- */
.field {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-6);
}
.field:last-child { border-bottom: 0; }
.field-label { width: 72px; flex: 0 0 auto; color: var(--gray-1); }
.field-input { flex: 1; }
.field-input input, .field-input textarea { width: 100%; }
.field-input textarea { resize: none; min-height: 68px; line-height: 1.6; }
.field-arrow { color: var(--gray-4); flex: 0 0 auto; }
.field-error { color: var(--red); font-size: 12px; padding: 6px 14px 0; }
.field-code {
  flex: 0 0 auto; padding-left: 12px; margin-left: 4px;
  border-left: 1px solid var(--gray-5);
  color: var(--brand); font-size: 13px;
}
.field-code.disabled { color: var(--gray-4); }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--gray-6);
  max-width: 640px;
  margin: 0 auto;
}
.tabbar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10px; color: var(--gray-3);
  position: relative;
}
.tabbar-item.active { color: var(--brand); }
.tabbar-item svg { width: 22px; height: 22px; }
.tabbar-badge {
  position: absolute; top: 4px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  border-radius: 8px;
  font-size: 10px; line-height: 16px; text-align: center;
}

/* ---------- 底部操作栏 ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: var(--white);
  border-top: 1px solid var(--gray-6);
  max-width: 640px; margin: 0 auto;
}
.actionbar .actionbar-info { flex: 1; min-width: 0; }
.actionbar .actionbar-btns { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---------- 空态 / 加载 ---------- */
.empty {
  padding: 80px 24px; text-align: center;
  color: var(--gray-3); font-size: 14px;
}
.empty svg { width: 88px; height: 88px; margin: 0 auto 16px; opacity: .5; }
.empty .empty-text { line-height: 1.8; }
.empty .btn { margin-top: 18px; }

.loading { padding: 40px; text-align: center; color: var(--gray-3); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 2px solid var(--gray-5); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.list-end { padding: 18px; text-align: center; color: var(--gray-4); font-size: 12px; }

/* ---------- 商品网格卡片 ---------- */
.goods-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px;
}
.goods-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden;
}
.goods-card .goods-pic { position: relative; width: 100%; aspect-ratio: 1; background: var(--gray-6); }
.goods-card .goods-pic img { width: 100%; height: 100%; object-fit: cover; }
.goods-card .goods-info { padding: 9px 10px 11px; }
.goods-card .goods-name {
  font-size: 13px; line-height: 1.4; height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-card .goods-sub { font-size: 11px; color: var(--gray-3); margin-top: 3px; height: 15px; overflow: hidden; }
.goods-card .goods-bottom { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.goods-card .goods-price { font-size: 16px; }
.goods-card .goods-sales { font-size: 11px; color: var(--gray-3); }

/* ---------- 横向商品条 ---------- */
.goods-row {
  display: flex; gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-7);
}
.goods-row .row-pic {
  width: 92px; height: 92px; flex: 0 0 auto;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-6);
}
.goods-row .row-pic img { width: 100%; height: 100%; object-fit: cover; }
.goods-row .row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods-row .row-name { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-row .row-sub { font-size: 12px; color: var(--gray-3); margin-top: 4px; }
.goods-row .row-bottom { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.goods-row .row-price { font-size: 17px; }
.goods-row .row-sales { font-size: 11px; color: var(--gray-3); }

/* ---------- 规格标签 ---------- */
.spec-group { padding: 12px 14px; }
.spec-group-name { font-size: 13px; color: var(--gray-2); margin-bottom: 9px; }
.spec-values { display: flex; flex-wrap: wrap; gap: 9px; }
.spec-value {
  position: relative;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  background: var(--gray-6); color: var(--gray-1);
  font-size: 13px;
  border: 1px solid transparent;
  transition: all .15s;
}
.spec-value.active {
  background: var(--brand-light); color: var(--brand);
  border-color: var(--brand); font-weight: 500;
}
.spec-value.disabled {
  color: var(--gray-4); background: var(--gray-7);
  text-decoration: line-through; pointer-events: none;
}

/* ---------- 分割线 / 通用行 ---------- */
.divider { height: 1px; background: var(--gray-6); margin: 0 14px; }
.divider-gap { height: 8px; background: var(--gray-7); }
.row-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--white);
  border-bottom: 1px solid var(--gray-7);
  font-size: 14px;
}
.row-item:last-child { border-bottom: 0; }
.row-item .row-label { color: var(--gray-1); }
.row-item .row-value { margin-left: auto; color: var(--gray-3); font-size: 13px; }
.row-item .row-icon { width: 22px; flex: 0 0 auto; color: var(--brand); }

/* ---------- 数量步进器 ---------- */
.stepper { display: inline-flex; align-items: center; border-radius: 4px; overflow: hidden; }
.stepper button {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-6); color: var(--gray-2); font-size: 16px; line-height: 1;
}
.stepper button.disabled { color: var(--gray-4); }
.stepper input {
  width: 40px; height: 26px; text-align: center;
  background: var(--gray-6); margin: 0 1px; font-size: 13px;
}

/* ---------- 区块小标题 ---------- */
.sec-title {
  display: flex; align-items: baseline;
  padding: 16px 14px 9px;
  font-size: 14px; font-weight: 600; color: var(--black);
}
.sec-title .opt { margin-left: 5px; font-size: 11.5px; font-weight: 400; color: var(--gray-4); }
.sec-title .more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--gray-3); }

/* ---------- 单选圆点 ---------- */
.radio {
  width: 20px; height: 20px; flex: 0 0 auto; position: relative;
  border-radius: 50%; border: 1.5px solid var(--gray-4);
  transition: border-color .15s;
}
.radio.on { border-color: var(--brand); }
.radio.on::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 50%; background: var(--brand);
}

/* ---------- 复选框 ---------- */
.checkbox { width: 20px; height: 20px; flex: 0 0 auto; position: relative; }
.checkbox input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.checkbox .box {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--gray-4);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.checkbox input:checked + .box { background: var(--brand); border-color: var(--brand); }
.checkbox .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox.square .box { border-radius: 4px; }

/* ---------- 徽标 / 状态 ---------- */
.badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  border-radius: 9px; font-size: 11px; line-height: 1;
  background: var(--brand-light); color: var(--brand);
}
.badge-gray { background: var(--gray-6); color: var(--gray-2); }
.badge-red { background: #fdecea; color: var(--red); }
.badge-green { background: #e8f8ef; color: var(--green); }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .22s;
}
.mask.show { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
  max-width: 640px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  max-height: 82vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.sheet.show { transform: translateY(0); }
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-bottom: 1px solid var(--gray-6);
  flex: 0 0 auto;
}
.sheet-head .sheet-close { width: 24px; height: 24px; color: var(--gray-3); flex: 0 0 auto; }
.sheet-body { overflow-y: auto; flex: 1; }
.sheet-foot { padding: 10px 14px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--gray-6); flex: 0 0 auto; }

/* 居中弹窗 */
.dialog {
  position: fixed; z-index: 902;
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92);
  width: 78%; max-width: 320px;
  background: var(--white); border-radius: var(--radius-lg);
  opacity: 0; visibility: hidden; transition: all .2s;
  overflow: hidden;
}
.dialog.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.dialog-body { padding: 22px 20px 8px; text-align: center; }
.dialog-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dialog-text { font-size: 14px; color: var(--gray-2); line-height: 1.6; }
.dialog-foot { display: flex; border-top: 1px solid var(--gray-6); margin-top: 16px; }
.dialog-foot button {
  flex: 1; height: 46px; font-size: 16px; color: var(--gray-2);
  border-right: 1px solid var(--gray-6);
}
.dialog-foot button:last-child { border-right: 0; color: var(--brand); font-weight: 500; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; z-index: 950;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  max-width: 76%;
  padding: 11px 18px;
  background: rgba(0, 0, 0, .78); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.5; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .2s;
  word-break: break-all;
}
.toast.show { opacity: 1; visibility: visible; }

/* ---------- 顶部渐变（首页） ---------- */
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(180deg, #ffe6d2 0%, #fff5ec 55%, var(--gray-7) 100%);
  z-index: 0;
}
.hero-bg.blue { background: linear-gradient(180deg, #e3edff 0%, #f2f7ff 55%, var(--gray-7) 100%); }
.page-rel { position: relative; z-index: 1; }

/* ---------- 顶部公告条 ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px; padding: 9px 12px;
  background: rgba(255, 255, 255, .8);
  border-radius: 20px;
  font-size: 12px; color: var(--gray-2);
  backdrop-filter: blur(6px);
}
.notice-bar svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; }

/* ---------- 分类宫格 ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px 0;
  padding: 14px 6px 6px;
  background: var(--white);
  border-radius: var(--radius);
  margin: 10px 12px;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 2px;
  font-size: 11px; color: var(--gray-1);
}
.cat-item .cat-pic {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.cat-item .cat-pic svg { width: 24px; height: 24px; }

/* ---------- 轮播 ---------- */
.banner {
  margin: 10px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2.4; background: var(--gray-6); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.banner-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: all .2s;
}
.banner-dots i.on { width: 14px; border-radius: 3px; background: #fff; }

/* ---------- 秒杀 ---------- */
.seckill-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 6px;
}
.seckill-head .sk-title { font-size: 17px; font-weight: 700; }
.seckill-timer { display: flex; align-items: center; gap: 3px; margin-left: auto; font-size: 12px; color: var(--gray-2); }
.seckill-timer b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 3px;
  background: var(--black); color: #fff;
  border-radius: 4px; font-size: 12px; font-weight: 500;
}
.seckill-list { display: flex; gap: 12px; overflow-x: auto; padding: 8px 14px 14px; scrollbar-width: none; }
.seckill-list::-webkit-scrollbar { display: none; }
.seckill-item { flex: 0 0 92px; }
.seckill-item .sk-pic { width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-6); }
.seckill-item .sk-pic img { width: 100%; height: 100%; object-fit: cover; }
.seckill-item .sk-name { font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seckill-item .sk-price { font-size: 15px; margin-top: 2px; }
.seckill-item .sk-origin { font-size: 11px; }

/* ---------- 楼层 ---------- */
.floor { margin: 10px 12px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.floor-head {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 14px 4px;
}
.floor-head .floor-bar { width: 3px; height: 15px; background: var(--brand); border-radius: 2px; }
.floor-head .floor-name { font-size: 16px; font-weight: 600; }
.floor-head .floor-more { margin-left: auto; font-size: 12px; color: var(--gray-3); }
.floor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px 14px; }
.floor-goods .fg-pic { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-6); }
.floor-goods .fg-pic img { width: 100%; height: 100%; object-fit: cover; }
.floor-goods .fg-name { font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floor-goods .fg-price { font-size: 14px; margin-top: 2px; }

/* ---------- 订单卡片 ---------- */
.order-card { margin: 10px 12px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.order-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--gray-7);
  font-size: 13px;
}
.order-head .order-no { color: var(--gray-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-head .order-status { margin-left: auto; color: var(--brand); font-weight: 500; flex: 0 0 auto; }
.order-status.done { color: var(--gray-3); font-weight: 400; }
.order-status.red { color: var(--red); }
.order-goods { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gray-7); }
.order-goods:last-of-type { border-bottom: 0; }
.order-goods .og-pic { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-6); flex: 0 0 auto; }
.order-goods .og-pic img { width: 100%; height: 100%; object-fit: cover; }
.order-goods .og-info { flex: 1; min-width: 0; }
.order-goods .og-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-goods .og-spec { font-size: 12px; color: var(--gray-3); margin-top: 4px; }
.order-goods .og-right { text-align: right; flex: 0 0 auto; }
.order-goods .og-price { font-size: 14px; }
.order-goods .og-qty { font-size: 12px; color: var(--gray-3); margin-top: 4px; }
.order-total {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 4px;
  padding: 12px 14px; border-top: 1px solid var(--gray-7);
  font-size: 13px;
}
.order-total .total-price { font-size: 17px; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 12px; }

/* ---------- 结算 / 金额明细 ---------- */
.amount-row { display: flex; align-items: center; padding: 11px 14px; font-size: 14px; }
.amount-row .ar-label { color: var(--gray-2); }
.amount-row .ar-value { margin-left: auto; }
.amount-row.total { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--gray-6); }
.amount-row.total .ar-value { font-size: 18px; font-weight: 600; color: var(--brand); }

/* ---------- 状态时间线 ---------- */
.timeline { padding: 6px 14px 16px; }
.tl-item { display: flex; gap: 10px; position: relative; padding-bottom: 4px; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 16px; bottom: 0;
  width: 1px; background: var(--gray-5);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; background: var(--gray-5); position: relative; z-index: 1; }
.tl-item.on .tl-dot { background: var(--brand); }
.tl-body { flex: 1; min-width: 0; }
.tl-text { font-size: 13px; line-height: 1.6; }
.tl-item.on .tl-text { color: var(--black); }
.tl-item:not(.on) .tl-text { color: var(--gray-3); }
.tl-time { font-size: 11px; color: var(--gray-4); margin-top: 2px; }

/* ---------- 进度条 ---------- */
.progress { height: 6px; border-radius: 3px; background: var(--gray-5); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ---------- 我的页面头部 ---------- */
.me-head {
  position: relative;
  padding: 22px 16px 56px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff6700 100%);
  color: #fff;
}
.me-user { display: flex; align-items: center; gap: 12px; }
.me-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .5);
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-avatar svg { width: 30px; height: 30px; color: rgba(255, 255, 255, .9); }
.me-name { font-size: 18px; font-weight: 600; }
.me-sub { font-size: 12px; opacity: .88; margin-top: 3px; }
.me-assets {
  display: flex;
  margin: -42px 12px 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; z-index: 2;
  padding: 14px 0;
}
.me-asset { flex: 1; text-align: center; position: relative; }
.me-asset:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--gray-6);
}
.me-asset .ma-value { font-size: 17px; font-weight: 600; color: var(--brand); }
.me-asset .ma-label { font-size: 11px; color: var(--gray-3); margin-top: 3px; }

/* ---------- 订单入口 ---------- */
.order-entry {
  display: flex; padding: 14px 0;
  background: var(--white); border-radius: var(--radius);
  margin: 10px 12px;
}
.order-entry-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--gray-2); position: relative; }
.order-entry-item svg { width: 24px; height: 24px; color: var(--brand); }
.order-entry-badge {
  position: absolute; top: -4px; left: 50%; margin-left: 5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center;
}

/* ---------- 工具类 ---------- */
.mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb16 { margin-bottom: 16px; }
.px12 { padding-left: 12px; padding-right: 12px; }
.px14 { padding-left: 14px; padding-right: 14px; }
.flex { display: flex; } .flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; } .items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs16 { font-size: 16px; } .fs18 { font-size: 18px; }
.fw600 { font-weight: 600; }
.hidden { display: none !important; }
.bg-white { background: var(--white); }
.safe-b { padding-bottom: var(--safe-bottom); }

/* ---------- 滚动条（桌面预览） ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--gray-5); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }
