/* 四时小铺 · H5 演示版
   移动优先，桌面端居中成一条 430px 的手机栏 */

:root {
  --paper: #FBF6EE;
  --paper-deep: #F5EEE2;
  --card: #FFFFFF;
  --ink: #3A322A;
  --ink-2: #8A8074;
  --ink-3: #B6AB9B;
  --red: #BE3A2E;
  --red-soft: #F8EBE7;
  --gold: #C89B4A;
  --gold-soft: #F7EEDF;
  --green: #5F7C4B;
  --line: #EFE6D8;
  --shadow: 0 2px 14px rgba(58, 50, 42, .05);
}

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

html { background: #EDE7DC; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(58, 50, 42, .08);
}

img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.serif { font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 48px;
  display: flex;
  align-items: center;
  background: var(--paper);
  padding: 0 12px;
  border-bottom: 1px solid rgba(58, 50, 42, .04);
}
.topbar .back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink); margin-left: -8px;
}
.topbar .title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 500; letter-spacing: 1px;
}
.topbar .right { width: 36px; text-align: right; font-size: 12px; color: var(--ink-3); }

/* ---------- 通用 ---------- */
.wrap { padding: 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hairline { height: 1px; background: var(--line); }
.price { color: var(--red); font-weight: 600; }
.psym { font-size: 11px; margin-right: 1px; font-weight: 500; }
.pnum { font-size: 18px; letter-spacing: .3px; }
.pnum-lg { font-size: 28px; letter-spacing: .5px; line-height: 1.1; }
.pold { color: var(--ink-3); font-size: 11px; text-decoration: line-through; margin-left: 7px; }
.muted { color: var(--ink-2); }
.seal-tag { display: inline-block; padding: 2px 6px; background: var(--red); color: #fff; font-size: 10px; border-radius: 3px; letter-spacing: .5px; }
.seal-line { display: inline-block; padding: 2px 7px; border: 1px solid var(--red); color: var(--red); font-size: 10px; border-radius: 3px; }

.btn {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 999px; font-size: 15px; letter-spacing: 1px;
  border: none; width: 100%;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary[disabled] { background: #DCCFC4; color: #FFF9F2; }
.btn-ghost { background: #fff; border: 1px solid var(--red); color: var(--red); }
.btn-plain { background: var(--paper-deep); color: var(--ink); }
.btn-sm { height: 34px; font-size: 13px; width: auto; padding: 0 16px; }

.section-head { display: flex; align-items: center; padding: 18px 0 10px; }
.section-title { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.section-line { flex: 1; height: 1px; background: var(--line); margin: 0 10px; }
.section-more { font-size: 11px; color: var(--ink-2); }

.empty { padding: 70px 20px; text-align: center; }
.empty-mark {
  width: 48px; height: 48px; line-height: 46px; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink-3); font-size: 20px;
}
.empty-text { color: var(--ink-2); font-size: 13px; letter-spacing: .5px; }
.empty-sub { color: var(--ink-3); font-size: 11px; margin-top: 5px; }
.empty .btn { width: 120px; margin: 18px auto 0; height: 40px; font-size: 13px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; color: #9A9086; gap: 2px;
}
.tabbar img { width: 24px; height: 24px; opacity: .95; }
.tabbar a.on { color: var(--red); }
.tabbar .dot {
  position: absolute; margin-left: 22px; margin-top: -18px;
  min-width: 15px; height: 15px; line-height: 15px; text-align: center;
  background: var(--red); color: #fff; font-size: 9px; border-radius: 999px; padding: 0 4px;
}

.page { padding-bottom: 76px; }

/* ---------- 首页 ---------- */
.hero { padding: 16px 14px 12px; }
.shop-row { display: flex; align-items: center; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--red-soft);
  color: var(--red); border: 1px solid #EFD6CF;
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.shop-meta { flex: 1; margin-left: 10px; min-width: 0; }
.shop-name { font-size: 19px; font-weight: 600; letter-spacing: 2px; line-height: 1.3; }
.shop-slogan { font-size: 11px; color: var(--ink-2); letter-spacing: .5px; margin-top: 2px; }
.follow {
  flex-shrink: 0; padding: 5px 12px; border: 1px solid var(--red); color: var(--red);
  border-radius: 999px; font-size: 11px;
}
.shop-stats { margin-top: 11px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .4px; }
.shop-stats i { margin: 0 6px; font-style: normal; }

.banner { position: relative; height: 172px; border-radius: 12px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; left: 18px; top: 32px; }
.banner-kicker { font-size: 10px; color: #8B7758; letter-spacing: 3px; }
.banner-title { font-size: 21px; color: #4A3D2C; letter-spacing: 1.5px; margin-top: 5px; font-weight: 600; }
.banner-link {
  display: inline-block; margin-top: 11px; padding: 4px 11px; font-size: 10.5px;
  color: #7A6A52; border: 1px solid rgba(122, 106, 82, .4); border-radius: 999px;
  background: rgba(255, 255, 255, .55);
}

.notice { margin-top: 11px; display: flex; align-items: flex-start; background: var(--gold-soft); border-radius: 7px; padding: 8px 10px; }
.notice-tag { flex-shrink: 0; font-size: 10px; color: #fff; background: var(--gold); border-radius: 2px; padding: 1px 5px; margin-right: 7px; margin-top: 2px; }
.notice-text { flex: 1; font-size: 11px; color: #7A6446; line-height: 1.5; }

.cats { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 2px; }
.cat { width: 25%; display: flex; flex-direction: column; align-items: center; }
.cat-ring { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; }
.cat-name { margin-top: 7px; font-size: 11px; color: var(--ink-2); letter-spacing: .3px; }

.pick-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pick-row::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; }
.pick img { width: 150px; height: 110px; object-fit: cover; }
.pick-body { padding: 8px 9px 10px; }
.pick-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-seal {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; line-height: 22px;
  text-align: center; font-size: 11px; color: #fff; background: rgba(190, 58, 46, .9); border-radius: 4px;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.goods-media { position: relative; }
.goods-media img { width: 100%; height: 150px; object-fit: cover; }
.goods-seal {
  position: absolute; left: 0; top: 0; padding: 2px 6px; font-size: 9px; color: #fff;
  background: rgba(190, 58, 46, .88); border-radius: 0 0 6px 0; letter-spacing: .4px;
}
.goods-body { padding: 8px 9px 10px; }
.goods-title { font-size: 13px; font-weight: 500; line-height: 1.45; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-sub { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-foot { margin-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; }
.goods-sales { font-size: 10px; color: var(--ink-3); }

.foot-note { display: flex; align-items: center; padding: 26px 0 10px; }
.foot-note .l { flex: 1; height: 1px; background: var(--line); }
.foot-note span { font-size: 10px; color: var(--ink-3); letter-spacing: 2px; margin: 0 10px; }

/* ---------- 分类 ---------- */
.search { padding: 10px 14px 8px; }
.search-box {
  display: flex; align-items: center; height: 38px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
}
.search-box input { flex: 1; border: none; outline: none; background: none; font-size: 13px; }
.search-box input::placeholder { color: var(--ink-3); }
.search-icon { width: 11px; height: 11px; border: 1.2px solid #B6AB9B; border-radius: 50%; position: relative; margin-right: 8px; flex-shrink: 0; }
.search-icon::after { content: ''; position: absolute; width: 1.2px; height: 6px; background: #B6AB9B; right: -3px; bottom: -3px; transform: rotate(45deg); }

.cat-body { display: flex; align-items: flex-start; }
.rail { width: 92px; flex-shrink: 0; background: var(--paper-deep); }
.rail a { display: block; padding: 15px 0; text-align: center; font-size: 12px; color: var(--ink-2); position: relative; }
.rail a.on { background: var(--paper); color: var(--red); font-weight: 600; }
.rail a.on::before { content: ''; position: absolute; left: 0; top: 50%; margin-top: -9px; width: 2px; height: 18px; background: var(--red); }
.list { flex: 1; padding: 0 12px 20px; min-width: 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 2px 9px; }
.list-title { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.list-count { font-size: 10px; color: var(--ink-3); }

.item-row { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin-bottom: 9px; }
.item-row img { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.item-info { flex: 1; margin-left: 10px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.item-title { font-size: 13px; font-weight: 500; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-foot { display: flex; align-items: center; justify-content: space-between; }
.add-mini { width: 27px; height: 27px; border-radius: 50%; background: var(--red); color: #fff; font-size: 17px; line-height: 26px; text-align: center; }

/* ---------- 详情 ---------- */
.gallery img { width: 100%; height: 340px; object-fit: cover; }
.sheet { position: relative; margin-top: -22px; background: #fff; border-radius: 14px 14px 0 0; padding: 17px 14px 6px; }
.price-row { display: flex; align-items: flex-end; }
.sales-pill { margin-left: auto; margin-bottom: 2px; font-size: 10px; color: var(--ink-3); background: var(--paper); padding: 3px 8px; border-radius: 999px; }
.p-title { font-size: 19px; font-weight: 600; letter-spacing: 1px; line-height: 1.45; margin-top: 11px; }
.p-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 5px; }
.service { margin-top: 11px; padding-bottom: 13px; font-size: 10.5px; color: #8A7A62; }
.service i { margin: 0 6px; color: var(--ink-3); font-style: normal; }
.count-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; }
.count-title { font-size: 13px; }
.count-stock { font-size: 10px; color: var(--ink-3); margin-left: 7px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.stepper button { width: 33px; height: 28px; font-size: 15px; line-height: 1; color: var(--ink); }
.stepper span { width: 37px; text-align: center; font-size: 13px; line-height: 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.shop-strip { display: flex; align-items: center; padding: 12px 0 14px; }
.strip-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red-soft); color: var(--red); text-align: center; line-height: 32px; font-size: 15px; }
.strip-info { flex: 1; margin-left: 8px; }
.strip-name { font-size: 13px; font-weight: 500; }
.strip-note { font-size: 10px; color: var(--ink-3); }
.strip-btn { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; color: var(--ink-2); }

.block { background: #fff; margin-top: 10px; padding: 2px 14px 20px; }
.block-head { display: flex; align-items: center; padding: 16px 0 13px; }
.block-line { flex: 1; height: 1px; background: var(--line); }
.block-title { font-size: 13px; font-weight: 500; letter-spacing: 3px; margin: 0 12px; color: #6F6455; }
.review { padding: 2px 0 13px; border-bottom: 1px solid #F8F2E8; }
.review:last-child { border-bottom: none; }
.review-top { display: flex; align-items: baseline; justify-content: space-between; }
.review-name { font-size: 11.5px; color: var(--ink-2); }
.review-date { font-size: 9.5px; color: #C6BBAB; }
.review-text { font-size: 12px; color: #5C5348; line-height: 1.8; margin-top: 4px; text-align: justify; }
.detail-text { font-size: 13px; line-height: 1.95; color: #5C5348; text-align: justify; }
.detail-img { width: 100%; border-radius: 8px; margin-top: 15px; }

.action-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); z-index: 40;
}
.act-icon { width: 44px; display: flex; flex-direction: column; align-items: center; padding-top: 3px; position: relative; }
.act-icon span { font-size: 9.5px; color: var(--ink-2); margin-top: 4px; }
.ic-chat { width: 18px; height: 15px; border: 1.2px solid #8A8074; border-radius: 5px; position: relative; }
.ic-chat::after { content: ''; position: absolute; left: 5px; bottom: -4px; width: 5px; height: 5px; border-left: 1.2px solid #8A8074; border-bottom: 1.2px solid #8A8074; background: #fff; transform: rotate(-45deg); }
.ic-basket { width: 19px; height: 13px; border: 1.2px solid #8A8074; border-radius: 2px 2px 5px 5px; margin-top: 4px; position: relative; }
.ic-basket::before { content: ''; position: absolute; left: 50%; top: -7px; margin-left: -5px; width: 10px; height: 7px; border: 1.2px solid #8A8074; border-bottom: none; border-radius: 6px 6px 0 0; }
.act-btn { flex: 1; margin-left: 8px; height: 42px; font-size: 14px; }

/* ---------- 竹篮 ---------- */
.cart-head { padding: 16px 14px 6px; }
.cart-title { font-size: 20px; font-weight: 600; letter-spacing: 3px; }
.cart-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.cart-list { padding: 8px 14px 0; }
.cart-item { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 10px; margin-bottom: 10px; }
.check { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #D9CFC1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check.on { background: var(--red); border-color: var(--red); }
.check.on::after { content: ''; width: 7px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); margin-top: -2px; }
.cart-item img { width: 84px; height: 84px; border-radius: 6px; margin-left: 9px; object-fit: cover; flex-shrink: 0; }
.cart-info { flex: 1; margin-left: 9px; min-width: 0; }
.cart-name { font-size: 13px; font-weight: 500; line-height: 1.4; padding-right: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-sub2 { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.cart-del { position: absolute; right: 9px; top: 7px; width: 20px; height: 20px; line-height: 17px; text-align: center; font-size: 15px; color: #C9BDAE; }

.settle {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; padding: 8px 14px; z-index: 39;
}
.settle-all { display: flex; align-items: center; font-size: 12px; color: var(--ink-2); gap: 6px; }
.settle-total { flex: 1; display: flex; align-items: baseline; justify-content: flex-end; margin-right: 10px; font-size: 11px; color: var(--ink-2); gap: 4px; }
.settle-num { font-size: 21px; font-weight: 600; color: var(--red); }
.settle .btn { width: 118px; height: 42px; font-size: 14px; }

/* ---------- 结算 ---------- */
.addr-card { display: flex; align-items: center; margin: 12px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; }
.addr-mark { width: 32px; height: 32px; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; text-align: center; line-height: 30px; font-size: 15px; flex-shrink: 0; }
.addr-body { flex: 1; margin-left: 11px; min-width: 0; }
.addr-name { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.addr-phone { font-size: 11.5px; color: var(--ink-2); margin-left: 8px; }
.addr-detail { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.addr-empty { font-size: 14px; font-weight: 500; }
.addr-tip { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.addr-arrow { font-size: 18px; color: #C9BDAE; margin-left: 6px; }

.grow { background: #fff; margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; }
.grow-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 5px; }
.grow-title { font-size: 13.5px; letter-spacing: 1.5px; font-weight: 600; }
.grow-count { font-size: 10px; color: var(--ink-3); }
.goods-row { display: flex; align-items: center; padding: 9px 0; }
.goods-row img { width: 58px; height: 58px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.gr-info { flex: 1; margin-left: 9px; min-width: 0; }
.gr-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-meta { margin-top: 4px; font-size: 11px; color: var(--ink-2); }
.gr-meta i { font-style: normal; color: var(--ink-3); margin-left: 6px; font-size: 10.5px; }
.gr-line { font-size: 12.5px; margin-left: 7px; }

.form-row { display: flex; align-items: center; padding: 14px 0; }
.form-label { font-size: 12.5px; margin-right: 11px; flex-shrink: 0; }
.form-input { flex: 1; border: none; outline: none; background: none; font-size: 12px; }
.form-input::placeholder { color: var(--ink-3); font-size: 11.5px; }

.money-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 12px; color: var(--ink-2); }
.money-row b { color: var(--ink); font-weight: 400; }
.money-row.total { padding: 11px 0; }
.money-row.total b { font-size: 19px; font-weight: 600; color: var(--red); }
.tip-line { text-align: center; font-size: 10px; color: var(--ink-3); padding: 15px 20px 0; letter-spacing: .5px; }

.pay-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); z-index: 40;
}
.pay-left { flex: 1; display: flex; align-items: baseline; font-size: 11px; color: var(--ink-2); gap: 5px; }
.pay-num { font-size: 21px; font-weight: 600; color: var(--red); }
.pay-bar .btn { width: 140px; height: 42px; }

/* ---------- 订单 ---------- */
.tabs { position: sticky; top: 48px; z-index: 20; background: var(--paper); display: flex; overflow-x: auto; padding: 7px 10px 5px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 6px 11px 8px; font-size: 13px; color: var(--ink-2); position: relative; white-space: nowrap; }
.tabs a.on { color: var(--ink); font-weight: 600; }
.tabs a.on::after { content: ''; position: absolute; left: 50%; margin-left: -7px; bottom: 2px; width: 14px; height: 2px; background: var(--red); border-radius: 1px; }
.tabs .n { font-size: 9px; color: #fff; background: var(--red); border-radius: 999px; padding: 0 4px; margin-left: 3px; vertical-align: top; }

.order { margin: 8px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 3px; }
.order-no { font-size: 10px; color: var(--ink-3); }
.order-status { font-size: 11px; color: var(--red); letter-spacing: .5px; }
.order-goods { padding: 3px 12px; }
.og-row { display: flex; align-items: center; padding: 7px 0; }
.og-row img { width: 54px; height: 54px; border-radius: 5px; object-fit: cover; }
.og-info { flex: 1; margin-left: 8px; min-width: 0; }
.og-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.og-line { font-size: 12px; margin-left: 7px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; border-top: 1px solid #F8F2E8; margin: 0 12px; font-size: 10.5px; color: var(--ink-3); }
.order-foot b { font-size: 14px; font-weight: 600; color: var(--red); }
.order-acts { display: flex; justify-content: flex-end; padding: 0 12px 12px; gap: 8px; }
.act { padding: 5px 14px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.act.main { border-color: var(--red); color: var(--red); }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; padding: 22px 16px 18px; }
.profile .avatar { width: 56px; height: 56px; font-size: 23px; background: #fff; border: 1px solid var(--line); }
.profile-info { flex: 1; margin-left: 12px; }
.nickname { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.profile-tip { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.profile-tag { padding: 3px 8px; border: 1px solid var(--gold); color: #A9822F; font-size: 9.5px; border-radius: 3px; letter-spacing: .5px; }

.order-card { margin: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding-bottom: 11px; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 13px 10px; }
.order-card-head .t { font-size: 13.5px; font-weight: 600; letter-spacing: 1px; }
.order-card-head .m { font-size: 10.5px; color: var(--ink-3); }
.order-grid { display: flex; }
.order-cell { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.cell-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--ink-2); font-size: 13px; line-height: 32px; text-align: center; }
.cell-name { font-size: 10.5px; color: var(--ink-2); margin-top: 5px; }
.cell-dot { position: absolute; top: -4px; right: 10px; min-width: 15px; height: 15px; line-height: 15px; background: var(--red); color: #fff; font-size: 8.5px; border-radius: 999px; text-align: center; padding: 0 4px; }

.menu { margin: 12px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.menu a { display: flex; align-items: center; padding: 14px 13px; border-top: 1px solid #F8F2E8; }
.menu a:first-child { border-top: none; }
.menu-ic { width: 27px; height: 27px; line-height: 25px; text-align: center; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--ink-2); margin-right: 10px; flex-shrink: 0; }
.menu-ic.gold { color: #A9822F; border-color: #E8D6B0; background: #FDF7EA; }
.menu-text { font-size: 13px; }
.menu-tip { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.menu-arrow { margin-left: auto; color: #C9BDAE; font-size: 17px; }

.mine-foot { text-align: center; padding: 32px 0 20px; }
.mine-foot .s { font-size: 10.5px; color: var(--ink-3); letter-spacing: 2px; }
.mine-foot .v { display: block; font-size: 9.5px; color: #C6BBAB; margin-top: 6px; }

/* ---------- 地址 ---------- */
.addr { display: flex; align-items: center; margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; }
.addr-main { flex: 1; min-width: 0; }
.addr-top { display: flex; align-items: baseline; }
.addr-def { font-size: 9px; color: var(--red); border: 1px solid #EFD6CF; border-radius: 3px; padding: 0 4px; margin-left: 6px; }
.addr-ops { display: flex; flex-direction: column; align-items: flex-end; margin-left: 10px; gap: 4px; }
.addr-ops button { font-size: 11px; color: var(--ink-2); }
.addr-ops button.danger { color: var(--red); }
.add-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: #fff; border-top: 1px solid var(--line); padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
.add-btn { height: 42px; font-size: 14px; }

.mask { position: fixed; inset: 0; background: rgba(58, 50, 42, .38); z-index: 50; }
.sheet-modal {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #fff; border-radius: 14px 14px 0 0;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); z-index: 51;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-title { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.sheet-close { font-size: 20px; color: var(--ink-3); line-height: 1; padding: 0 4px; }
.field-row { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid #F8F2E8; }
.field-label { width: 90px; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.field-input { flex: 1; border: none; outline: none; background: none; font-size: 13px; width: 100%; }
.field-input::placeholder { color: #C6BBAB; }
.field-unit { font-size: 11px; color: var(--ink-3); margin-left: 5px; }

/* ---------- 店铺管理 ---------- */
.admin-head { display: flex; align-items: baseline; padding: 15px 14px 11px; }
.admin-title { font-size: 18px; font-weight: 600; letter-spacing: 1.5px; }
.admin-tag { margin-left: 7px; font-size: 9px; color: #A9822F; border: 1px solid #E8D6B0; border-radius: 3px; padding: 1px 4px; background: #FDF7EA; }
.seg { display: flex; margin: 0 14px; background: #F2EADE; border-radius: 999px; padding: 3px; }
.seg a { flex: 1; text-align: center; font-size: 12px; color: var(--ink-2); padding: 7px 0; border-radius: 999px; }
.seg a.on { background: #fff; color: var(--ink); font-weight: 600; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 0; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 11px; }
.metric-num { display: block; font-size: 21px; font-weight: 600; line-height: 1.2; }
.metric-label { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

.quick { margin: 8px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quick a { display: block; padding: 13px 12px; border-top: 1px solid #F8F2E8; }
.quick a:first-child { border-top: none; background: #FDF7EA; }
.quick-t { font-size: 13px; font-weight: 500; }
.quick-s { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.note-card { margin: 10px 14px 0; background: var(--gold-soft); border-radius: 10px; padding: 13px 12px; }
.note-title { display: block; font-size: 12px; color: #7A6446; letter-spacing: 1px; margin-bottom: 6px; }
.note-line { display: block; font-size: 11px; color: #8A7A62; line-height: 1.95; }

.list-head2 { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 9px; }
.list-head2 .t { font-size: 13px; font-weight: 500; }
.list-head2 .add { padding: 4px 12px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; }

.p-row { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin: 0 14px 8px; }
.p-row img { width: 70px; height: 70px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.p-body { flex: 1; margin-left: 9px; min-width: 0; }
.p-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta { display: flex; align-items: center; margin-top: 4px; gap: 6px; }
.p-status { font-size: 9.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.p-status.on { color: var(--green); border-color: #CBDCB6; background: #F3F7EC; }
.p-acts { display: flex; gap: 6px; margin-top: 8px; }
.p-acts button { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.p-acts button.danger { color: var(--red); border-color: #EFD6CF; }

.o-row { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin: 0 14px 8px; }
.o-row img { width: 59px; height: 59px; border-radius: 5px; object-fit: cover; background: var(--paper-deep); flex-shrink: 0; }
.o-body { flex: 1; margin-left: 9px; min-width: 0; }
.o-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-meta { font-size: 10px; color: var(--ink-3); margin-top: 4px; }
.o-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.o-status { font-size: 10.5px; color: var(--red); }
.o-act { font-size: 10.5px; color: var(--red); border: 1px solid #EFD6CF; border-radius: 999px; padding: 3px 10px; }

.admin-field { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 11px; margin: 0 14px 7px; }
.admin-field .lb { width: 88px; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.admin-field input { flex: 1; border: none; outline: none; background: none; font-size: 12.5px; width: 100%; }
.save-wrap { padding: 5px 14px 0; }
.danger-zone { text-align: center; padding: 22px 0 10px; }
.danger-zone button { font-size: 11.5px; color: var(--red); }
.danger-zone span { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 4px; }

/* 商品表单 */
.img-grid { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px; }
.img-cell { position: relative; width: 66px; height: 66px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; }
.img-cell.on { border-color: var(--red); }
.img-cell .tick { position: absolute; right: 0; top: 0; width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--red); color: #fff; font-size: 9px; border-radius: 0 0 0 5px; }
.img-upload { border: 1px dashed #D9CFC1; background: #FCF8F1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-3); }
.img-upload span:first-child { font-size: 16px; line-height: 1; }
.img-upload span:last-child { font-size: 8px; margin-top: 3px; }
.img-tip { padding: 7px 14px 0; font-size: 9.5px; color: var(--ink-3); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px; }
.cat-chip { padding: 6px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.cat-chip.on { background: var(--red-soft); border-color: #EFD6CF; color: var(--red); font-weight: 500; }

.form-block { margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px; }
.form-block-t { font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 4px; }
.form-block .field-row:last-child { border-bottom: none; }
.desc-area { width: 100%; border: none; outline: none; background: none; font-size: 12.5px; line-height: 1.7; height: 110px; resize: none; }
.desc-area::placeholder { color: #C6BBAB; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(58, 50, 42, .88); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 8px; z-index: 99; letter-spacing: .5px;
}
