/* =========================================================
   海淘 · 购物 App 演示版
   设计：移动优先，桌面端包在手机框里展示
   ========================================================= */

:root {
  --bg: #f7f3ea;
  --bg-deep: #f0eadf;
  --paper: #fffdf8;
  --ink: #1b1915;
  --ink-2: #4c473d;
  --muted: #8d8577;
  --faint: #b3aa99;
  --line: #e9e1d3;
  --line-strong: #d9cfbd;
  --accent: #d9482f;
  --accent-deep: #b6341f;
  --accent-soft: #fae9e2;
  --green: #1f3a31;
  --green-2: #2c4a3d;
  --green-soft: #e6eee7;
  --gold: #a9824c;
  --gold-soft: #f3ead8;
  --danger: #c0392b;
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --shadow: 0 18px 44px rgba(61, 47, 29, .12);
  --shadow-sm: 0 6px 18px rgba(61, 47, 29, .08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #e7dfd0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -5%, #faf4e8 0%, rgba(250, 244, 232, 0) 62%),
    radial-gradient(820px 520px at 92% 8%, #f2e6d2 0%, rgba(242, 230, 210, 0) 58%),
    linear-gradient(158deg, #eee7da 0%, #e2d9c9 55%, #d8cdba 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .35;
  background-image: radial-gradient(rgba(88, 68, 42, .16) .7px, transparent .7px);
  background-size: 7px 7px;
  pointer-events: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 13px; height: 13px; }
.i-lg { width: 26px; height: 26px; }
.i-xl { width: 40px; height: 40px; }

/* ---------------- 舞台 / 手机框 ---------------- */

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
}

.stage-head {
  width: 414px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px;
}
.stage-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stage-brand b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #2a241b;
}
.stage-brand span {
  font-size: 9.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #8f8371;
}
.stage-note {
  font-size: 10.5px;
  letter-spacing: .5px;
  color: #8c806e;
}

.phone {
  position: relative;
  width: 414px;
  height: min(858px, calc(100dvh - 150px));
  min-height: 600px;
  padding: 11px;
  background: linear-gradient(150deg, #2a2721, #121110 45%, #26231d);
  border-radius: 54px;
  box-shadow:
    0 46px 90px rgba(45, 33, 19, .38),
    0 10px 26px rgba(45, 33, 19, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border-radius: 43px;
}

/* ---------------- 状态栏 ---------------- */

.statusbar {
  flex: none;
  height: 34px;
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink);
}
.sb-time { font-variant-numeric: tabular-nums; }
.sb-island {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #100f0d;
  border-radius: 12px;
}
.sb-icons { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.sb-icons svg { width: 15px; height: 15px; }

/* ---------------- 屏幕 ---------------- */

.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.screen::-webkit-scrollbar { display: none; }

.view {
  min-height: 100%;
  padding-bottom: 86px;
}
.view.no-pad { padding-bottom: 0; }

/* 底部标签栏 */
.tabbar {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  padding: 6px 10px 10px;
  display: flex;
  align-items: stretch;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(217, 207, 189, .7);
}
.tabbar.hide { display: none; }
.tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9a9181;
  border-radius: 12px;
  transition: color .18s ease;
}
.tab .i { width: 22px; height: 22px; stroke-width: 1.7; }
.tab span { font-size: 10px; letter-spacing: .3px; }
.tab.active { color: var(--accent); }
.tab.active .i { stroke-width: 2; }
.tab-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fffdf8;
}
.tab-badge.show { display: flex; }

/* ---------------- 通用元素 ---------------- */

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.icon-btn .i { width: 21px; height: 21px; }
.icon-btn:hover { background: rgba(27, 25, 21, .06); }
.icon-btn.soft { background: rgba(255, 253, 248, .8); border: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, filter .15s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(217, 72, 47, .22); }
.btn-primary:hover { background: #cf4129; }
.btn-dark { background: var(--green); color: #f7f1e4; }
.btn-dark:hover { background: #172d26; }
.btn-ghost { background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: #f4eee2; }
.btn-cream { background: #f5edda; color: var(--green); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  transition: all .16s ease;
}
.chip.active { background: var(--green); border-color: var(--green); color: #f7f1e4; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--green-soft);
  color: #385a49;
  font-size: 10px;
  letter-spacing: .2px;
  white-space: nowrap;
}

.price {
  font-family: var(--font);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1.1;
}
.price .cur { font-size: .58em; font-weight: 600; margin-right: 1px; }
.price-old {
  font-size: 11px;
  color: var(--faint);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.sec { padding: 0 16px; margin-top: 22px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.sec-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sec-title small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .8px;
  color: var(--muted);
  text-transform: uppercase;
}
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}
.sec-more .i { width: 13px; height: 13px; }

.soldout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 243, 234, .64);
  backdrop-filter: blur(1px);
}
.soldout span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(27, 25, 21, .78);
  color: #f7f1e4;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ---------------- 首页 ---------------- */

.home-head {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 9px;
  background: linear-gradient(180deg, rgba(247, 243, 234, .98) 72%, rgba(247, 243, 234, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.loc {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  flex: none;
}
.loc .i { width: 15px; height: 15px; color: var(--accent); }
.loc .chev { width: 12px; height: 12px; color: var(--muted); }
.searchbar {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(61, 47, 29, .03);
}
.searchbar .i { width: 16px; height: 16px; color: var(--faint); }
.searchbar .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.banners {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 0;
  scrollbar-width: none;
}
.banners::-webkit-scrollbar { display: none; }
.banner {
  position: relative;
  flex: 0 0 calc(100% - 14px);
  height: 174px;
  border-radius: 22px;
  overflow: hidden;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #f7f1e4;
  scroll-snap-align: center;
  box-shadow: 0 16px 32px rgba(35, 45, 36, .18);
}
.banner::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
}
.banner::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}
.banner-wm {
  position: absolute;
  right: 12px;
  bottom: -20px;
  font-family: var(--serif);
  font-size: 92px;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .09);
  pointer-events: none;
  white-space: nowrap;
}
.banner-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border: 1px solid rgba(247, 241, 228, .4);
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #f7f1e4;
}
.banner-title {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}
.banner-sub {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(247, 241, 228, .78);
  letter-spacing: .3px;
}
.banner-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(247, 241, 228, .94);
  color: #223329;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2px;
}
.banner-cta .i { width: 12px; height: 12px; }

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 2px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #d3c8b4;
  transition: all .2s ease;
}
.dot.active { width: 16px; background: var(--green); }

.quick {
  margin: 12px 16px 0;
  padding: 14px 6px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
}
.quick-ico {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--green);
}
.quick-ico .i { width: 21px; height: 21px; }
.quick-item:nth-child(1) .quick-ico { background: #fbe7e0; color: #c3452c; }
.quick-item:nth-child(2) .quick-ico { background: #f4ecd8; color: #a07b3f; }
.quick-item:nth-child(3) .quick-ico { background: #e6efe7; color: #3b6350; }
.quick-item:nth-child(4) .quick-ico { background: #ece8df; color: #5e574a; }
.quick-label { font-size: 11px; color: var(--ink-2); letter-spacing: .2px; }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #f7f1e4;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.countdown .i { width: 12px; height: 12px; color: #e7b98f; }

.flash-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 16px 4px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.flash-scroll::-webkit-scrollbar { display: none; }
.flash-card {
  flex: 0 0 128px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
}
.flash-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #efe8da;
}
.flash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flash-name {
  margin: 7px 1px 0;
  font-size: 11.5px;
  line-height: 1.35;
  height: 31px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.flash-price { display: flex; align-items: baseline; gap: 4px; margin: 4px 1px 0; }
.flash-price .price { font-size: 15px; }
.flash-price .price-old { font-size: 10px; }

.promo-strip {
  margin: 22px 16px 0;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(220px 120px at 94% 0%, rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(120deg, #1d332a, #2b4a3b);
  color: #f7f1e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.promo-strip::after {
  content: "满";
  position: absolute;
  right: 58px;
  bottom: -28px;
  font-family: var(--serif);
  font-size: 92px;
  color: rgba(247, 241, 228, .07);
  line-height: 1;
}
.promo-left { position: relative; z-index: 1; }
.promo-left h3 { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.promo-left p { font-size: 10.5px; color: rgba(247, 241, 228, .62); margin-top: 3px; }
.promo-chips { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.promo-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(247, 241, 228, .28);
  font-size: 10.5px;
  letter-spacing: .3px;
  background: rgba(247, 241, 228, .07);
  white-space: nowrap;
}

.feed-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}
.feed-chips::-webkit-scrollbar { display: none; }
.feed-chips .chip { height: 28px; font-size: 11.5px; }

.p-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
.p-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 7px 10px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.p-card-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  background: #efe8da;
}
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.img-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: rgba(24, 22, 18, .8);
  color: #f7f1e4;
  font-size: 9.5px;
  letter-spacing: .6px;
  backdrop-filter: blur(4px);
}
.img-badge.hot { background: rgba(217, 72, 47, .92); }
.img-badge.free { background: rgba(31, 58, 49, .9); }
.p-card-body { padding: 8px 2px 0; display: flex; flex-direction: column; flex: 1; }
.p-title {
  font-size: 12.5px;
  line-height: 1.42;
  height: 35px;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.p-brandline {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .8px;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-price-row { margin-top: 6px; display: flex; align-items: baseline; gap: 5px; }
.p-price-row .price { font-size: 18px; }
.p-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .1px;
}
.p-meta span { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.p-meta .i { width: 11px; height: 11px; color: var(--faint); }
.p-meta .pts { color: var(--gold); }

/* ---------------- 分类 ---------------- */

.cat-head {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(247, 243, 234, .98) 75%, rgba(247, 243, 234, 0));
}
.cat-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cat-head .sub { font-size: 10px; color: var(--muted); letter-spacing: .6px; margin-top: 1px; }

.cat-layout {
  display: flex;
  align-items: flex-start;
  padding: 0 0 18px 4px;
}
.cat-rail {
  flex: 0 0 92px;
  width: 92px;
  padding: 4px 7px 24px;
  position: sticky;
  top: 54px;
  align-self: flex-start;
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.rail-item {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .2px;
  text-align: center;
  transition: all .18s ease;
}
.rail-item .i { width: 18px; height: 18px; opacity: .75; }
.rail-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(61, 47, 29, .06);
}
.rail-item.active .i { color: var(--accent); opacity: 1; }
.rail-item.active::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.cat-main {
  flex: 1;
  min-width: 0;
  padding: 4px 14px 20px 2px;
}
.cat-hero {
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(255, 255, 255, .1), transparent),
    linear-gradient(135deg, #21382f, #35564a);
  color: #f7f1e4;
  margin-bottom: 10px;
}
.cat-hero h2 { font-size: 19px; letter-spacing: .5px; word-break: break-all; }
.cat-hero p { font-size: 10.5px; color: rgba(247, 241, 228, .62); margin-top: 4px; letter-spacing: .3px; }
.cat-hero .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cat-hero .chip {
  height: 25px;
  padding: 0 10px;
  background: rgba(247, 241, 228, .1);
  border-color: rgba(247, 241, 228, .22);
  color: rgba(247, 241, 228, .85);
  font-size: 10.5px;
}
.cat-hero .chip.active { background: #f7f1e4; border-color: #f7f1e4; color: var(--green); font-weight: 600; }

.cat-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  margin-bottom: 9px;
}
.cat-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cat-group-head h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.cat-group-head span { font-size: 9.5px; color: var(--faint); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chips .chip {
  height: 26px;
  padding: 0 10px;
  font-size: 10.5px;
  background: #f5f0e6;
  border-color: transparent;
}
.cat-chips .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-none { font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.cat-products-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 2px 9px;
  font-size: 12px;
  color: var(--muted);
}
.cat-products-title b { color: var(--ink); font-size: 12.5px; }
.cat-grid { grid-template-columns: 1fr 1fr; padding: 0; gap: 8px; }

/* ---------------- 购物车 ---------------- */

.cart-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cart-head .count { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cart-head .count b { color: var(--accent); }

.cart-progress {
  margin: 2px 16px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid #e7d9bd;
  font-size: 11px;
  color: #7c5f2e;
}
.cart-progress b { color: #5c4419; }
.cart-progress.ship {
  margin-bottom: 6px;
  background: #edf3ee;
  border-color: #d8e4da;
  color: #3f604f;
}
.cart-progress.ship b { color: #234936; }
.cart-progress.ship .progress-fill { background: linear-gradient(90deg, #6f957f, #2f5a46); }
.cart-progress.ship.free { background: #e4efe7; }
.ship-saved { font-size: 9px; color: #3a6b52; margin-right: 4px; }
.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.progress-track {
  margin-top: 8px;
  height: 6px;
  border-radius: 99px;
  background: rgba(122, 95, 46, .18);
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #a87c3f, #6f4f21);
  transition: width .4s ease;
}

.cart-list { padding: 0 16px; }
.cart-line {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
}
.cart-thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 11px;
  overflow: hidden;
  background: #efe8da;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-title {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-spec { margin-top: 3px; font-size: 10px; color: var(--muted); }
.cart-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-price .price { font-size: 16px; }
.cart-price small { display: block; font-size: 9.5px; color: var(--faint); margin-top: 1px; }

.stepper {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
}
.stepper button {
  width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.stepper button:disabled { color: #d3c9b7; }
.stepper button .i { width: 12px; height: 12px; }
.stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 24px;
}
.cart-del {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}
.cart-del .i { width: 14px; height: 14px; }

.cart-summary {
  margin: 6px 16px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 0;
}
.sum-row b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.sum-row.discount b { color: var(--accent); }
.sum-row.total {
  margin-top: 7px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink);
  font-size: 12.5px;
}
.sum-row.total b { font-size: 19px; font-weight: 700; color: var(--accent); }
.sum-row.total .hint { font-size: 9.5px; color: var(--faint); font-weight: 400; margin-left: 4px; }
.cart-points {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--gold);
}
.cart-points .i { width: 13px; height: 13px; }

.view.cart-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 74px;
}
.cart-view .cart-bar { margin-top: auto; }

.cart-bar {
  position: sticky;
  bottom: 70px;
  z-index: 12;
  margin: 12px 16px 0;
  padding: 10px 10px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  background: #1c2b25;
  color: #f7f1e4;
  box-shadow: 0 16px 30px rgba(28, 43, 37, .25);
}
.cart-bar .lbl { font-size: 9.5px; color: rgba(247, 241, 228, .55); letter-spacing: .4px; }
.cart-bar .amt { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cart-bar .amt .cur { font-size: 11px; font-weight: 500; margin-right: 1px; }
.cart-bar .btn { height: 42px; padding: 0 20px; }

.empty {
  padding: 54px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-ico {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #efe8db;
  color: #a79a85;
  margin-bottom: 14px;
}
.empty-ico .i { width: 30px; height: 30px; }
.empty-title { font-size: 14px; font-weight: 600; }
.empty-text { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.empty .btn { margin-top: 16px; }

/* ---------------- 我的 ---------------- */

.me-hero {
  position: relative;
  padding: 20px 18px 24px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(255, 255, 255, .1), transparent 70%),
    linear-gradient(150deg, #1e332b, #15231d 74%);
  color: #f7f1e4;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.me-hero::after {
  content: "SEA";
  position: absolute;
  right: -10px;
  top: 18px;
  font-family: var(--serif);
  font-size: 74px;
  letter-spacing: 4px;
  color: rgba(247, 241, 228, .05);
  pointer-events: none;
}
.me-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f3ead8, #d8c39e);
  color: #4a3a21;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.me-name-row { display: flex; align-items: center; gap: 7px; }
.me-name { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.me-level {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  border: 1px solid rgba(226, 196, 143, .45);
  background: rgba(226, 196, 143, .12);
  color: #e6c793;
  font-size: 9.5px;
  letter-spacing: .4px;
}
.me-level .i { width: 11px; height: 11px; }
.me-phone { margin-top: 4px; font-size: 10.5px; color: rgba(247, 241, 228, .48); letter-spacing: .6px; }

.me-stats {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 241, 228, .12);
  display: flex;
}
.me-stat { flex: 1; text-align: center; position: relative; }
.me-stat + .me-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(247, 241, 228, .1);
}
.me-stat b { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.me-stat span { display: block; margin-top: 2px; font-size: 9.5px; color: rgba(247, 241, 228, .5); letter-spacing: .5px; }

.me-body { padding: 14px 16px 0; }

.member-join {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(140deg, #1f3a31, #335646);
  color: #f7f1e4;
  position: relative;
  overflow: hidden;
}
.member-join::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(240, 223, 186, .16);
}
.member-join.on {
  background: linear-gradient(140deg, #f7eeda, #eee0c4);
  border: 1px solid #e3d3b1;
  color: #56421f;
}
.mj-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #e3c98f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-join.on .mj-ico { background: rgba(169, 130, 76, .14); color: #8a6c37; }
.mj-ico .i { width: 18px; height: 18px; }
.mj-main { flex: 1; min-width: 0; }
.mj-title { font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.mj-sub { margin-top: 3px; font-size: 9.5px; opacity: .68; line-height: 1.5; }
.mj-btn {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0dfba;
  color: #3d2f16;
  font-size: 10.5px;
  font-weight: 600;
}
.member-join.on .mj-btn { background: #1f3a31; color: #f7f1e4; }

.member-sheet-hero {
  padding: 22px 20px 20px;
  border-radius: 18px;
  text-align: center;
  color: #f7f1e4;
  background: linear-gradient(145deg, #1f3a31, #3a604d);
  position: relative;
  overflow: hidden;
}
.member-sheet-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(240, 223, 186, .15);
}
.mh-ico {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(240, 223, 186, .13);
  color: #e7cf9b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-ico .i { width: 24px; height: 24px; }
.mh-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.mh-sub { margin-top: 5px; font-size: 9.5px; opacity: .62; }
.mh-price { margin-top: 14px; font-size: 30px; font-weight: 600; color: #e7cf9b; line-height: 1; }
.mh-price small { font-size: 13px; font-weight: 500; margin-right: 2px; }
.mh-price span { font-size: 10px; font-weight: 400; color: rgba(247, 241, 228, .5); margin-left: 4px; }

.member-benefit-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.mb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.mb-ico {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-ico .i { width: 15px; height: 15px; }
.mb-item b { display: block; font-size: 11.5px; font-weight: 600; }
.mb-item span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); line-height: 1.55; }

.member-card {
  background: linear-gradient(140deg, #f7eeda, #eee0c4);
  border: 1px solid #e3d3b1;
  border-radius: 18px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(134, 103, 52, .16);
}
.member-top { display: flex; align-items: center; justify-content: space-between; }
.member-top h3 { font-size: 13px; font-weight: 700; color: #52401f; letter-spacing: .3px; }
.member-top .lv { font-size: 10px; color: #8a6c37; display: inline-flex; align-items: center; gap: 3px; }
.member-top .lv .i { width: 12px; height: 12px; }
.member-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 99px;
  background: rgba(111, 84, 40, .16);
  overflow: hidden;
}
.member-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #a9824c, #6f5428);
  transition: width .5s ease;
}
.member-hint { margin-top: 7px; font-size: 10px; color: #82683a; }
.member-perks { margin-top: 11px; display: flex; gap: 5px; flex-wrap: wrap; }
.member-perks span {
  font-size: 9px;
  color: #7b6135;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 253, 246, .6);
  border: 1px solid rgba(163, 133, 79, .22);
  letter-spacing: .2px;
}

.me-card {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.card-head {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-head h3 .i { width: 15px; height: 15px; color: var(--gold); }
.card-head .more { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 1px; }
.card-head .more .i { width: 12px; height: 12px; }

.order-row { display: flex; padding: 14px 6px 12px; }
.order-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.order-item .ico {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3eee3;
  color: var(--green);
}
.order-item .ico .i { width: 18px; height: 18px; }
.order-item span { font-size: 10px; color: var(--ink-2); }
.order-badge {
  position: absolute;
  top: -3px;
  left: 50%;
  margin-left: 8px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu { padding: 4px 0; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f2ecdf;
}
.menu-item:last-child { border-bottom: 0; }
.menu-ico {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f3eee3;
  color: var(--ink-2);
}
.menu-ico .i { width: 16px; height: 16px; }
.menu-ico.accent { background: var(--accent-soft); color: var(--accent); }
.menu-ico.green { background: var(--green-soft); color: var(--green); }
.menu-label { flex: 1; font-size: 12.5px; }
.menu-label small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; font-weight: 400; }
.menu-item > .i.chev { width: 14px; height: 14px; color: var(--faint); }
.menu-value { font-size: 10.5px; color: var(--muted); margin-right: 2px; }

.demo-note {
  margin: 16px 4px 8px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--faint);
  letter-spacing: .3px;
}

/* ---------------- 弹层 / 面板 ---------------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
}
.overlay.on { display: block; }
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, .44);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .24s ease;
}
.overlay.on .scrim { opacity: 1; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 50px rgba(30, 24, 16, .25);
  transform: translateY(102%);
  transition: transform .3s cubic-bezier(.32, .72, .3, 1);
  overflow: hidden;
}
.overlay.on .sheet { transform: translateY(0); }
.sheet.full {
  top: 0;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
}
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.sheet-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sheet-head .sub { font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sheet-close {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ece5d8;
  color: var(--ink-2);
}
.sheet-close .i { width: 15px; height: 15px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 16px 18px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot {
  flex: none;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .96);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
}

/* 搜索 */
.search-panel { display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.search-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg);
}
.search-top .back { flex: none; }
.search-input-wrap {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}
.search-input-wrap .i { width: 16px; height: 16px; color: var(--faint); }
.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12.5px;
}
.search-input-wrap input::placeholder { color: var(--faint); }
.search-cancel { font-size: 12px; color: var(--muted); flex: none; padding: 0 2px; }
.hot-block { padding: 8px 16px 4px; }
.hot-block h3 { font-size: 11px; color: var(--muted); letter-spacing: .5px; margin-bottom: 9px; }
.hot-list { display: flex; flex-wrap: wrap; gap: 7px; }
.hot-list button {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
}
.search-results { flex: 1; overflow-y: auto; padding: 8px 0 20px; scrollbar-width: none; }
.search-results::-webkit-scrollbar { display: none; }
.search-count { padding: 8px 16px 10px; font-size: 10.5px; color: var(--muted); }
.search-results .p-grid { padding: 0 16px; }

/* 商品详情 */
.detail-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; position: relative; }
.detail-scroll::-webkit-scrollbar { display: none; }
.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  background: #efe8da;
  overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.float-back {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(30, 24, 16, .12);
}
.float-back .i { width: 18px; height: 18px; }
.float-share {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.float-share .i { width: 17px; height: 17px; }

.detail-body {
  position: relative;
  margin-top: -20px;
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  padding: 18px 18px 24px;
}
.detail-price-row { display: flex; align-items: flex-end; gap: 8px; }
.detail-price-row .price { font-size: 30px; }
.detail-price-row .price-old { font-size: 12px; margin-bottom: 4px; }
.detail-save {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.detail-title { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.detail-sub { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.tag-row { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag-row .tag { background: #f0e9db; color: #6e6353; }

.info-card {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px 13px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f2ecdf;
  font-size: 11.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-key { flex: 0 0 56px; color: var(--muted); font-size: 11px; padding-top: 1px; }
.info-val { flex: 1; color: var(--ink-2); line-height: 1.55; }
.info-val b { color: var(--ink); font-weight: 600; }
.info-val .freight-hint { display: block; color: var(--faint); font-size: 9.5px; margin-top: 2px; }
.info-val .gold { color: var(--gold); font-weight: 600; }

.detail-desc {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
}
.detail-desc h3 { font-size: 12px; font-weight: 700; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.detail-desc h3 .i { width: 14px; height: 14px; color: var(--gold); }
.detail-desc p { font-size: 11.5px; line-height: 1.75; color: var(--ink-2); }
.detail-services { display: flex; gap: 16px; margin-top: 12px; padding: 0 2px; }
.detail-services span { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.detail-services .i { width: 13px; height: 13px; color: var(--green); }

.detail-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.action-ico {
  flex: none;
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: var(--muted);
  position: relative;
}
.action-ico .i { width: 19px; height: 19px; color: var(--ink-2); }
.action-ico .dot {
  position: absolute;
  top: -1px;
  right: 3px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.detail-actions .btn { flex: 1; height: 44px; padding: 0 8px; font-size: 13px; border-radius: 12px; }
.detail-actions .btn-ghost { flex: .9; background: var(--paper); }

.qty-line { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty-line .k { font-size: 11.5px; color: var(--muted); }
.qty-line .stepper { height: 30px; }
.qty-line .stepper button { height: 30px; width: 28px; }
.qty-line .stepper span { line-height: 28px; min-width: 32px; font-size: 12px; }

/* 结算 */
.addr-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.addr-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 24px);
  opacity: .55;
}
.addr-card .i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.addr-name { font-size: 12.5px; font-weight: 600; }
.addr-name span { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 11px; }
.addr-text { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.5; }

.co-items {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 13px;
}
.co-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2ecdf; }
.co-item:last-child { border-bottom: 0; }
.co-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: #efe8da; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-info { flex: 1; min-width: 0; }
.co-title { font-size: 11.5px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.co-meta { margin-top: 3px; font-size: 9.5px; color: var(--faint); }
.co-price { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-price small { display: block; font-size: 9px; color: var(--faint); font-weight: 400; margin-top: 3px; }

.co-card { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 13px; }
.co-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2ecdf; font-size: 11.5px; }
.co-row:last-child { border-bottom: 0; }
.co-row .k { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.co-row .k .i { width: 14px; height: 14px; color: var(--muted); }
.co-row .v { color: var(--muted); font-size: 10.5px; }
.co-row .v.strong { color: var(--accent); font-weight: 600; }
.co-row .v.green { color: #3a6b52; }
.co-switch { position: relative; width: 38px; height: 22px; flex: none; }
.co-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.co-switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #ddd4c4;
  transition: background .2s ease;
}
.co-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.co-switch input:checked + i { background: var(--green); }
.co-switch input:checked + i::after { transform: translateX(16px); }

.co-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .97);
  border-top: 1px solid var(--line);
}
.co-total small { display: block; font-size: 9px; color: var(--faint); letter-spacing: .3px; }
.co-total b { font-size: 21px; color: var(--accent); font-variant-numeric: tabular-nums; }
.co-total b .cur { font-size: 11px; }
.co-foot .btn { min-width: 132px; }

/* 成功页 */
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 22px;
}
.success-ico {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 14px;
}
.success-ico .i { width: 30px; height: 30px; }
.success-ico.gold { background: var(--gold-soft); color: #8a6c37; }
.success h2 { font-size: 18px; font-weight: 700; }
.success p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.success-card {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: left;
}
.success-card .r { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; color: var(--muted); }
.success-card .r b { color: var(--ink); font-weight: 500; }
.success-card .r .gold { color: var(--gold); font-weight: 600; }
.success-actions { display: flex; gap: 9px; width: 100%; margin-top: 18px; }
.success-actions .btn { flex: 1; }

/* 订单列表 */
.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 10px;
}
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.order-top .no { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.status-pill {
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 9.5px;
  background: #f2ecdf;
  color: #7b705e;
}
.status-pill.wait { background: var(--accent-soft); color: var(--accent-deep); }
.status-pill.ship { background: #e8eef7; color: #3f5d86; }
.status-pill.done { background: var(--green-soft); color: #355a47; }
.order-items { margin-top: 10px; }
.order-item-line { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.order-thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: #efe8da; flex: none; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-line-name { flex: 1; min-width: 0; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line-qty { font-size: 10px; color: var(--faint); }
.order-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.order-foot b { color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-foot b .cur { font-size: 10px; }

/* 积分 / 优惠券 / 消息 */
.points-hero {
  margin-top: 4px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(180px 120px at 95% 0%, rgba(255, 255, 255, .1), transparent),
    linear-gradient(140deg, #1f3a31, #2d5041);
  color: #f7f1e4;
  position: relative;
  overflow: hidden;
}
.points-hero::after {
  content: "PTS";
  position: absolute;
  right: 6px;
  bottom: -14px;
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: 3px;
  color: rgba(247, 241, 228, .07);
}
.points-hero .lbl { font-size: 10px; color: rgba(247, 241, 228, .55); letter-spacing: .8px; }
.points-hero .num { margin-top: 4px; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.points-hero .tip { margin-top: 5px; font-size: 9.5px; color: rgba(247, 241, 228, .5); }
.points-level { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: rgba(247, 241, 228, .65); }
.points-level b { color: #e8cfa3; font-weight: 600; }
.points-progress { margin-top: 6px; height: 5px; border-radius: 99px; background: rgba(247, 241, 228, .16); overflow: hidden; }
.points-progress i { display: block; height: 100%; border-radius: 99px; background: #e0c08b; }
.rule-note { margin-top: 10px; font-size: 9.5px; line-height: 1.7; color: var(--muted); padding: 0 4px; }
.log-list { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 2px 13px; }
.log-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2ecdf; }
.log-item:last-child { border-bottom: 0; }
.log-ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3eee3;
  color: var(--gold);
}
.log-ico .i { width: 15px; height: 15px; }
.log-info { flex: 1; min-width: 0; }
.log-info b { display: block; font-size: 11.5px; font-weight: 600; }
.log-info span { display: block; font-size: 9.5px; color: var(--faint); margin-top: 1px; }
.log-pts { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #3a6b52; }
.log-pts.minus { color: var(--accent); }

.coupon {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.coupon-amount {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f7f1e4;
  padding: 16px 0;
}
.coupon-amount b { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.coupon-amount b small { font-size: 12px; font-weight: 500; margin-right: 1px; }
.coupon-amount span { margin-top: 5px; font-size: 9px; opacity: .65; letter-spacing: .4px; }
.coupon.clay .coupon-amount { background: linear-gradient(150deg, #b0462c, #d4694a); }
.coupon.green .coupon-amount { background: linear-gradient(150deg, #1f3a31, #3c5c4c); }
.coupon.ink .coupon-amount { background: linear-gradient(150deg, #24211c, #4a4438); }
.coupon.gold .coupon-amount { background: linear-gradient(150deg, #8a6a34, #c3a063); }
.coupon-info { flex: 1; padding: 13px 13px; display: flex; flex-direction: column; justify-content: center; }
.coupon-info h3 { font-size: 12.5px; font-weight: 600; }
.coupon-info h3 .coupon-src {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  font-style: normal;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--gold-deep, #8a6a34);
  background: rgba(169, 130, 76, .12);
  vertical-align: 1px;
}
.coupon.off { opacity: .55; filter: grayscale(.5); }
.coupon.off .coupon-use { border-color: var(--line); color: var(--faint); }
.coupon-info p { margin-top: 3px; font-size: 10px; color: var(--muted); }
.coupon-info span { margin-top: 6px; font-size: 9px; color: var(--faint); }
.coupon-use {
  align-self: center;
  margin-right: 12px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
}

.notice-item { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f2ecdf; }
.notice-item:last-child { border-bottom: 0; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.notice-info h3 { font-size: 12px; font-weight: 600; }
.notice-info p { margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.notice-info span { display: block; margin-top: 4px; font-size: 9px; color: var(--faint); }

/* ---------------- 商家后台 ---------------- */

.admin { min-height: 100%; background: var(--bg); padding-bottom: 26px; }
.admin-head {
  padding: 12px 16px 18px;
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(255, 255, 255, .1), transparent 70%),
    linear-gradient(150deg, #20382f, #16241e);
  color: #f7f1e4;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
}
.admin-head::after {
  content: "CONSOLE";
  position: absolute;
  right: -8px;
  bottom: 12px;
  font-family: var(--serif);
  font-size: 52px;
  letter-spacing: 3px;
  color: rgba(247, 241, 228, .05);
  pointer-events: none;
}
.admin-nav { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.admin-back { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(247, 241, 228, .65); }
.admin-back .i { width: 15px; height: 15px; }
.admin-reset { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: rgba(247, 241, 228, .55); }
.admin-reset .i { width: 13px; height: 13px; }
.admin-title-row { margin-top: 13px; position: relative; z-index: 1; }
.admin-kicker { font-size: 8.5px; letter-spacing: 2px; color: rgba(247, 241, 228, .42); text-transform: uppercase; }
.admin-title { margin-top: 3px; font-size: 23px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.admin-title .i { width: 21px; height: 21px; color: #d9be8d; }
.admin-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; position: relative; z-index: 1; }
.admin-stat {
  padding: 10px 10px 9px;
  border-radius: 11px;
  background: rgba(247, 241, 228, .07);
  border: 1px solid rgba(247, 241, 228, .1);
}
.admin-stat b { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.admin-stat span { display: block; margin-top: 2px; font-size: 9px; color: rgba(247, 241, 228, .48); letter-spacing: .4px; }

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(247, 243, 234, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.admin-tab .i { width: 14px; height: 14px; }
.admin-tab.active { background: var(--green); color: #f7f1e4; font-weight: 600; }

.admin-body { padding: 14px; }
.admin-toolbar { display: flex; gap: 8px; margin-bottom: 11px; }
.admin-search {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.admin-search .i { width: 14px; height: 14px; color: var(--faint); }
.admin-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 11.5px; }
.admin-add {
  flex: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-add .i { width: 14px; height: 14px; }

.admin-prod {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
}
.ap-thumb { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: #efe8da; position: relative; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-info { flex: 1; min-width: 0; }
.ap-name { font-size: 11.5px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ap-cat { margin-top: 2px; font-size: 9px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-meta { margin-top: 4px; display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); flex-wrap: wrap; }
.ap-meta b { color: var(--accent); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ap-meta .dotsep { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }
.ap-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.ap-edit {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3eee3;
  color: var(--ink-2);
}
.ap-edit .i { width: 14px; height: 14px; }
.ap-off { font-size: 8.5px; color: var(--faint); }

/* 分类管理 */
.cat-admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cat-admin-title { font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.cat-admin-count { margin-top: 2px; font-size: 9.5px; color: var(--faint); }
.admin-cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 9px;
  overflow: hidden;
}
.admin-cat-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-top: 1px solid #f3ede0; }
.admin-cat-row:first-child { border-top: 0; }
.admin-cat-row.lv2 { padding-left: 24px; background: #fdfaf3; }
.admin-cat-row.lv3 { padding-left: 42px; background: #fdfaf3; }
.ac-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
}
.ac-ico .i { width: 16px; height: 16px; }
.ac-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; margin: 0 4px; }
.ac-dot.small { width: 4px; height: 4px; background: var(--faint); }
.ac-main { flex: 1; min-width: 0; }
.ac-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-meta { margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.ac-acts { display: flex; align-items: center; gap: 3px; flex: none; }
.ac-add {
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px dashed rgba(217, 72, 47, .42);
  background: #fff;
  color: var(--accent);
  font-size: 8.5px;
  white-space: nowrap;
}
.ac-edit, .ac-del {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4efe4;
  color: var(--muted);
}
.ac-del { background: transparent; color: #b85b45; }
.ac-edit .i, .ac-del .i { width: 12px; height: 12px; }
.cat-icon-row { display: flex; align-items: center; gap: 9px; }
.cat-icon-row .select { flex: 1; }


.switch { position: relative; width: 34px; height: 20px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; z-index: 2; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d9d0bf; transition: background .2s ease; }
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(14px); }

.admin-banner {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.admin-banner-preview {
  height: 92px;
  padding: 14px 16px;
  color: #f7f1e4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.admin-banner-preview::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
}
.admin-banner-preview .bd {
  font-size: 7.5px;
  letter-spacing: 1.6px;
  opacity: .7;
  text-transform: uppercase;
}
.admin-banner-preview .bt { margin-top: 4px; font-size: 17px; font-weight: 700; letter-spacing: .4px; }
.admin-banner-preview .bs { margin-top: 2px; font-size: 9.5px; opacity: .7; }
.admin-banner-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.admin-banner-bar span { font-size: 9.5px; color: var(--muted); }
.admin-banner-bar .acts { display: flex; align-items: center; gap: 8px; }
.admin-banner-bar .txt-btn { font-size: 10px; color: var(--accent); }

.settings-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 10px;
}
.settings-card h3 { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.settings-card h3 .i { width: 15px; height: 15px; color: var(--gold); }
.settings-card .desc { font-size: 9.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.field { margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; letter-spacing: .2px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fffdf8;
  padding: 9px 10px;
  font-size: 11.5px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 58, 49, .08); }
.textarea { resize: vertical; min-height: 68px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid .field { margin-bottom: 0; }
.form-note { font-size: 9.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.admin-save-row { display: flex; gap: 8px; margin-top: 12px; }
.admin-save-row .btn { flex: 1; height: 40px; font-size: 12px; border-radius: 10px; }

.img-field { display: flex; gap: 10px; align-items: flex-start; }
.img-preview {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #efe8da;
  border: 1px solid var(--line);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-controls { flex: 1; }
.img-controls .input { font-size: 10px; }
.img-upload {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: #f3eee3;
  color: var(--ink-2);
  font-size: 9.5px;
}
.img-upload .i { width: 12px; height: 12px; }
.img-hint { margin-top: 4px; font-size: 8.5px; color: var(--faint); line-height: 1.5; }

.admin-order { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 12px; margin-bottom: 9px; }
.admin-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-order-top .no { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-order-items { margin-top: 8px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.admin-order-items .ao-line { display: flex; justify-content: space-between; gap: 10px; }
.admin-order-items .ao-line em { font-style: normal; color: var(--faint); font-size: 9px; white-space: nowrap; }
.admin-order-foot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.admin-order-foot b { font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.admin-order-foot b .cur { font-size: 10px; }
.admin-order-foot .acts { display: flex; gap: 6px; }
.admin-order-foot .btn { height: 30px; padding: 0 11px; font-size: 10px; border-radius: 8px; }
.admin-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 11.5px; }
.admin-empty .i { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--faint); }

.admin-toast-space { height: 6px; }

/* ---------------- Toast ---------------- */

.toast {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 12px);
  max-width: 82%;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(23, 21, 17, .9);
  color: #f7f1e4;
  font-size: 11.5px;
  letter-spacing: .2px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(8px);
  line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 细节 / 动效 ---------------- */

@media (hover: hover) {
  .p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
  .p-card:hover .p-card-img img { transform: scale(1.04); }
  .menu-item:hover { background: #faf6ec; }
  .rail-item:hover { color: var(--ink-2); }
  .banner-cta:hover { background: #fffdf8; }
  .admin-prod:hover, .admin-order:hover { border-color: var(--line-strong); }
}

.overlay.on .sheet .sheet-body { overscroll-behavior: contain; }

@media (max-width: 520px) {
  body::before { background: var(--bg); }
  body::after { display: none; }
  .stage { padding: 0; display: block; min-height: 100dvh; }
  .stage-head, .stage-note { display: none; }
  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .phone::after { display: none; }
  .app { border-radius: 0; height: 100dvh; }
  .statusbar { display: none; }
  .tabbar { height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .view { padding-bottom: 78px; }
  .cart-bar { bottom: 70px; }
  .toast { bottom: 86px; }
  .banner { height: 168px; }
}

@media (max-height: 760px) and (min-width: 521px) {
  .stage-head { display: none; }
  .phone { height: calc(100dvh - 32px); }
}

/* Android WebView: fill the window even on tablets / high-DPI screens */
html.app-mode body::before { background: var(--bg); }
html.app-mode body::after { display: none; }
html.app-mode .stage { padding: 0; display: block; min-height: 100dvh; }
html.app-mode .stage-head, html.app-mode .stage-note { display: none; }
html.app-mode .phone {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
}
html.app-mode .phone::after { display: none; }
html.app-mode .app { border-radius: 0; height: 100dvh; }
html.app-mode .statusbar { display: none; }
html.app-mode .tabbar { height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
html.app-mode .view { padding-bottom: 78px; }
html.app-mode .cart-bar { bottom: 70px; }
html.app-mode .toast { bottom: 86px; }
html.app-mode .banner { height: 168px; }
