/* =========================================================
   孙记羊肉汤馆 · 小程序端样式
   古典红 #8E2A24 / 浅金 #C8A96A / 全直角
   ========================================================= */
:root {
  --red: #8E2A24;
  --red-d: #6B1A15;
  --red-l: #A6392F;
  --gold: #C8A96A;
  --gold-l: #E7D6AE;
  --gold-d: #A9884B;
  --bg: #FBF7F1;
  --card: #FFFFFF;
  --ink: #2A2320;
  --ink-2: #5B5148;
  --muted: #948A80;
  --line: #E9E0D3;
  --line-soft: #F1EAE0;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #241D19;
  background-image: radial-gradient(circle at 50% 0%, #3A2C25 0%, #1C1613 70%);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* 手机容器 */
.app {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, .55);
  overflow-x: hidden;
  padding-bottom: 66px;
}

/* ---------------- 顶部 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(160deg, #96302A 0%, var(--red) 42%, var(--red-d) 100%);
  padding: 14px 14px 13px;
  border-bottom: 1px solid rgba(200, 169, 106, .55);
}
.hd::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 106, .45), transparent);
}
.hd-top { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.seal {
  width: 30px; height: 30px; flex: 0 0 30px;
  border: 1px solid rgba(231, 214, 174, .8);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px; color: var(--gold-l);
  background: rgba(0, 0, 0, .12);
  box-shadow: inset 0 0 0 2px rgba(200, 169, 106, .18);
}
.hd-name { flex: 1; min-width: 0; }
.hd-name h1 {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: #fff;
  letter-spacing: .14em; line-height: 1.2;
}
.hd-name p { font-size: 9px; color: rgba(231, 214, 174, .78); letter-spacing: .3em; margin-top: 2px; }
.hd-right { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .86); font-size: 11px; }
.hd-right .ico { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* 搜索框 */
.search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(200, 169, 106, .7);
}
.search svg { width: 15px; height: 15px; stroke: var(--gold-d); fill: none; stroke-width: 1.6; flex: 0 0 15px; }
.search input { flex: 1; font-size: 12.5px; color: var(--ink); background: none; }
.search .btn-go {
  font-size: 11px; color: var(--red); letter-spacing: .1em; padding-left: 9px;
  border-left: 1px solid var(--line); font-family: var(--serif);
}

/* 搜索联想 */
.sug {
  position: absolute; left: 14px; right: 14px; top: 100%; margin-top: -1px;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 16px 30px rgba(60, 30, 20, .16);
  max-height: 62vh; overflow-y: auto; z-index: 40; display: none;
}
.sug.on { display: block; }
.sug-t { padding: 9px 12px 5px; font-size: 10px; color: var(--gold-d); letter-spacing: .22em; background: #FCF8F1; }
.sug-i { display: flex; gap: 10px; padding: 9px 12px; align-items: center; border-top: 1px solid var(--line-soft); }
.sug-i img { width: 38px; height: 38px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 38px; }
.sug-i .t { flex: 1; min-width: 0; }
.sug-i .t b { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-i .t span { font-size: 10.5px; color: var(--muted); }
.sug-i .p { color: var(--red); font-family: Georgia, serif; font-size: 13px; }
.sug-i .art { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(200,169,106,.5); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; color: var(--gold-d); background: #FCF8F1; }
.sug-empty { padding: 26px 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------- Banner ---------------- */
.banner { position: relative; height: 190px; overflow: hidden; background: #2B1A16; border-bottom: 1px solid rgba(200, 169, 106, .35); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 6s linear; }
.slide.on img { transform: scale(1.08); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 10, 8, .78) 0%, rgba(24, 10, 8, .35) 46%, rgba(24, 10, 8, .08) 100%),
              linear-gradient(0deg, rgba(24, 10, 8, .45), transparent 55%);
}
.slide .cap { position: absolute; left: 16px; bottom: 20px; z-index: 2; right: 90px; }
.slide .cap .cn { font-family: var(--serif); color: #fff; font-size: 19px; letter-spacing: .16em; line-height: 1.3; text-shadow: 0 2px 14px rgba(0, 0, 0, .8), 0 0 26px rgba(0, 0, 0, .5); }
.slide .cap .rule { width: 26px; height: 1px; background: var(--gold); margin: 8px 0 7px; }
.slide .cap .sub { font-size: 10.5px; color: rgba(231, 214, 174, .92); letter-spacing: .12em; }
.dots { position: absolute; right: 14px; bottom: 16px; z-index: 3; display: flex; gap: 5px; align-items: center; }
.dots i { width: 14px; height: 2px; background: rgba(255, 255, 255, .38); transition: .3s; }
.dots i.on { width: 22px; background: var(--gold); }
.banner .tagb {
  position: absolute; left: 0; top: 16px; z-index: 3;
  background: rgba(200, 169, 106, .92); color: #4A2E10;
  font-size: 9.5px; letter-spacing: .3em; padding: 3px 10px 3px 12px;
}

/* ---------------- 快速导航 ---------------- */
.qn-wrap { position: relative; background: #fff; border-bottom: 1px solid var(--line-soft); }
.qn {
  display: grid; grid-template-rows: repeat(2, 1fr); grid-auto-flow: column;
  grid-auto-columns: 25%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.qn::-webkit-scrollbar { display: none; }
.qn a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 13px 0 11px; position: relative; scroll-snap-align: start;
}
.qn a .ic {
  width: 44px; height: 44px; border: 1px solid rgba(200, 169, 106, .7);
  display: grid; place-items: center; font-family: var(--serif); font-size: 14px;
  color: var(--red); background: linear-gradient(160deg, #FFFDF9, #F7EFE2);
  letter-spacing: 0; line-height: 1; overflow: hidden;
}
.qn a .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qn a .ic em { font-style: normal; }
.qn a span { font-size: 10.5px; color: var(--ink-2); letter-spacing: .04em; }
/* 一行 5 列时整体收一点，保证不挤 */
.qn.c5 a { padding: 12px 0 10px; gap: 6px; }
.qn.c5 a .ic { width: 38px; height: 38px; font-size: 12px; }
.qn.c5 a span { font-size: 9.5px; letter-spacing: 0; }
.qn-mask {
  position: absolute; right: 0; top: 0; bottom: 0; width: 26px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96));
}

/* ---------------- 公告 ---------------- */
.notice { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #FCF6EC; border-bottom: 1px solid var(--line-soft); }
.notice b { font-size: 9.5px; color: var(--gold-d); border: 1px solid rgba(200, 169, 106, .6); padding: 1px 5px; letter-spacing: .1em; font-weight: 400; flex: 0 0 auto; }
.notice p { flex: 1; font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 区块标题 ---------------- */
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 14px 11px; }
.sec-hd .l { display: flex; align-items: baseline; gap: 9px; }
.sec-hd h3 { font-family: var(--serif); font-size: 16px; letter-spacing: .1em; font-weight: 600; position: relative; padding-left: 11px; }
.sec-hd h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: var(--red); }
.sec-hd em { font-style: normal; font-size: 8.5px; letter-spacing: .22em; color: var(--gold-d); text-transform: uppercase; }
.sec-hd .more { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 3px; }

/* ---------------- 商品卡 ---------------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px; }
/* 一行 3 个：与 2 列同款卡片，等比缩小文字，图片仍为正方形，比例不变形 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 14px; }
.grid3 .pc .bd { padding: 7px 7px 8px; }
.grid3 .pc .nm { font-size: 11px; height: 2.8em; }
.grid3 .pc .sb { font-size: 9px; }
.grid3 .pc .price { font-size: 13px; }
.grid3 .pc .price i { font-size: 9px; }
.grid3 .pc .pr { margin-top: 5px; gap: 3px; }
.grid3 .pc .price-old { font-size: 9px; }
.grid3 .pc .ft { margin-top: 6px; }
.grid3 .pc .sales { font-size: 8.5px; }
.grid3 .pc .add { width: 21px; height: 21px; font-size: 13px; }
.grid3 .pc .bdg { font-size: 8px; padding: 2px 5px; }
.pc { background: #fff; border: 1px solid var(--line); overflow: hidden; position: relative; }
.pc .ph { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #F2EBE0; }
.pc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pc:active .ph img { transform: scale(1.04); }
.pc .bd { padding: 9px 9px 10px; }
.pc .nm { font-size: 12.5px; font-weight: 500; line-height: 1.4; height: 2.8em; overflow: hidden; }
.pc .sb { font-size: 10px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .pr { display: flex; align-items: flex-end; gap: 5px; margin-top: 7px; }
.price { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.pr { display: flex; align-items: flex-end; gap: 7px; }
.price i { font-style: normal; font-size: 10px; margin-right: 1px; }
.price-old { font-size: 10px; color: #B3A79A; text-decoration: line-through; padding-bottom: 1px; }
.pc .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.pc .sales { font-size: 9.5px; color: var(--muted); }
.add {
  width: 24px; height: 24px; border: 1px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-size: 15px; line-height: 1; background: #fff;
}
.add:active { background: var(--red); color: #fff; }
.bdg {
  position: absolute; left: 0; top: 0; z-index: 2;
  font-size: 9px; letter-spacing: .12em; padding: 3px 7px;
  background: var(--red); color: #fff;
}
.bdg.gold { background: linear-gradient(120deg, #C9A96B, #B08E4E); color: #3E2610; }

/* 横向促销 */
.hwrap { display: flex; gap: 9px; overflow-x: auto; padding: 0 14px 4px; scroll-snap-type: x mandatory; }
.hwrap::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 44%; background: #fff; border: 1px solid var(--line); scroll-snap-align: start; }
.hcard .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #F2EBE0; }
.hcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.hcard .bd { padding: 7px 8px 9px; }
.hcard .nm { font-size: 11.5px; height: 2.7em; overflow: hidden; line-height: 1.35; }
.hcard .pr { margin-top: 5px; }
.hcard .bar { height: 2px; background: #F0E6D7; margin-top: 7px; position: relative; }
.hcard .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--red), #C2564A); }
.hcard .bar-t { font-size: 9px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }

/* 促销专区横幅条 */
.strip {
  margin: 0 14px; padding: 13px 14px; background:
    linear-gradient(100deg, var(--red-d) 0%, var(--red) 58%, #A6392F 100%);
  display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden;
}
.strip::after { content: ""; position: absolute; right: -30px; top: -60px; width: 130px; height: 130px; border: 1px solid rgba(231, 214, 174, .3); transform: rotate(45deg); }
.strip .t1 { font-family: var(--serif); color: #fff; font-size: 14px; letter-spacing: .16em; }
.strip .t2 { color: rgba(231, 214, 174, .9); font-size: 9.5px; letter-spacing: .1em; margin-top: 3px; }
.strip .go { color: var(--gold-l); font-size: 10.5px; border: 1px solid rgba(231, 214, 174, .5); padding: 4px 9px; letter-spacing: .1em; }

/* 门店卡 */
.store-card { margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); padding: 14px; }
.store-card .st { display: flex; align-items: center; gap: 8px; }
.store-card .st b { font-family: var(--serif); font-size: 13.5px; letter-spacing: .08em; }
.store-card .st span { font-size: 9px; color: var(--gold-d); border: 1px solid rgba(200, 169, 106, .55); padding: 1px 5px; }
.store-card .row { display: flex; gap: 7px; font-size: 11px; color: var(--ink-2); margin-top: 9px; line-height: 1.6; }
.store-card .row em { font-style: normal; color: var(--gold-d); flex: 0 0 auto; font-size: 10px; padding-top: 1px; }
.store-card .acts { display: flex; gap: 8px; margin-top: 12px; }
.store-card .acts a { flex: 1; text-align: center; font-size: 11px; padding: 7px 0; border: 1px solid var(--line); color: var(--ink-2); letter-spacing: .08em; }
.store-card .acts a.pri { background: var(--red); color: #fff; border-color: var(--red); }

/* 页脚 */
.foot { text-align: center; padding: 26px 14px 18px; }
.foot .ln { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 12px; opacity: .6; }
.foot p { font-size: 9.5px; color: #A99F94; letter-spacing: .18em; line-height: 1.9; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; height: 57px; z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  display: flex; backdrop-filter: blur(12px);
  box-shadow: 0 -6px 24px rgba(80, 50, 35, .07);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; color: #9A8E82; }
.tabbar a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.35; }
.tabbar a span { font-size: 9.5px; letter-spacing: .06em; }
.tabbar a.on { color: var(--red); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; width: 22px; height: 2px; background: var(--red); }
.tabbar .badge {
  position: absolute; top: 5px; right: 50%; margin-right: -18px;
  min-width: 15px; height: 15px; padding: 0 3px; background: var(--red); color: #fff;
  font-size: 9px; line-height: 15px; text-align: center; letter-spacing: 0;
}

/* ---------------- 通用列表页头 ---------------- */
.bar-hd {
  position: sticky; top: 0; z-index: 25; height: 48px; display: flex; align-items: center;
  padding: 0 14px; background: linear-gradient(160deg, #96302A, var(--red) 60%, var(--red-d));
  border-bottom: 1px solid rgba(200, 169, 106, .5);
}
.bar-hd h2 { flex: 1; font-family: var(--serif); font-size: 14px; color: #fff; letter-spacing: .16em; text-align: center; }
.bar-hd .back, .bar-hd .rt { width: 40px; display: flex; align-items: center; color: #fff; }
.bar-hd .rt { justify-content: flex-end; }
.bar-hd svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.bar-hd.light { background: #fff; border-bottom: 1px solid var(--line); }
.bar-hd.light h2 { color: var(--ink); }
.bar-hd.light .back, .bar-hd.light .rt { color: var(--ink-2); }

/* 筛选条 */
.filters { background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 48px; z-index: 24; }
.f-row { display: flex; gap: 0; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.f-row:last-child { border-bottom: 0; }
.f-row a { padding: 11px 0; margin-right: 20px; font-size: 12px; color: var(--ink-2); position: relative; white-space: nowrap; }
.f-row a.on { color: var(--red); font-weight: 500; }
.f-row a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.f-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 9px 14px; }
.f-scroll::-webkit-scrollbar { display: none; }
.chip { padding: 4px 11px; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); white-space: nowrap; background: #fff; }
.chip.on { border-color: var(--red); color: var(--red); background: #FBEEEA; }

/* 商品列表行 */
.plist { padding: 10px 14px 0; display: flex; flex-direction: column; gap: 9px; }
.prow { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); padding: 9px; }
.prow .ph { width: 92px; height: 92px; flex: 0 0 92px; overflow: hidden; background: #F2EBE0; position: relative; }
.prow .ph img { width: 100%; height: 100%; object-fit: cover; }
.prow .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .nm { font-size: 13.5px; font-weight: 500; }
.prow .sb { font-size: 10.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.tagm { font-size: 9px; padding: 1px 5px; border: 1px solid rgba(200, 169, 106, .7); color: var(--gold-d); letter-spacing: .06em; }
.tagm.red { border-color: rgba(142, 42, 36, .35); color: var(--red); background: #FBF0EE; }
.prow .bt { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.prow .stk { font-size: 9.5px; color: var(--muted); }

/* 分类页 */
.cat-wrap { display: flex; min-height: calc(100vh - 48px - 57px); }
.cat-l { width: 92px; flex: 0 0 92px; background: #F5EEE4; border-right: 1px solid var(--line); }
.cat-l a { display: block; padding: 15px 6px; text-align: center; font-size: 12px; color: var(--ink-2); position: relative; }
.cat-l a.on { background: var(--bg); color: var(--red); font-weight: 600; }
.cat-l a.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--red); }
.cat-r { flex: 1; min-width: 0; padding: 0 0 10px; }
.cat-banner { margin: 10px 11px; height: 66px; position: relative; overflow: hidden; border: 1px solid rgba(200,169,106,.4); }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.cat-banner b { position: absolute; left: 11px; bottom: 9px; color: #fff; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; }
.cat-h { padding: 12px 11px 7px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cat-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 11px; }

/* ---------------- 购物车 ---------------- */
.cart-list { padding: 10px 14px 0; display: flex; flex-direction: column; gap: 9px; }
.citem { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 10px; align-items: center; }
.ck { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #CFC3B4; display: grid; place-items: center; }
.ck.on { background: var(--red); border-color: var(--red); }
.ck.on::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.citem .ph { width: 74px; height: 74px; flex: 0 0 74px; overflow: hidden; background: #F2EBE0; }
.citem .ph img { width: 100%; height: 100%; object-fit: cover; }
.citem .bd { flex: 1; min-width: 0; }
.citem .nm { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .sp { font-size: 10px; color: var(--muted); margin-top: 2px; }
.citem .bt { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.stepper { display: flex; border: 1px solid var(--line); }
.stepper button { width: 24px; height: 22px; display: grid; place-items: center; font-size: 13px; color: var(--ink-2); }
.stepper span { width: 28px; text-align: center; font-size: 12px; line-height: 22px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cart-bar {
  position: fixed; bottom: 57px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px;
  height: 54px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 14px; gap: 12px; z-index: 55;
}
.cart-bar .all { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.cart-bar .sm { flex: 1; text-align: right; font-size: 10.5px; color: var(--muted); }
.cart-bar .sm b { display: block; font-family: Georgia, serif; color: var(--red); font-size: 17px; font-weight: 400; }
.btn-pri { background: var(--red); color: #fff; padding: 9px 22px; font-size: 13px; letter-spacing: .1em; }
.btn-pri:disabled { background: #C9BCAF; }

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; }
.empty .ic { width: 54px; height: 54px; margin: 0 auto 14px; border: 1px solid rgba(200, 169, 106, .5); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--gold-d); }
.empty p { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.empty .btn-pri { display: inline-block; margin-top: 16px; padding: 8px 20px; font-size: 12px; }

/* ---------------- 我的 ---------------- */
.me-hd { background: linear-gradient(150deg, #9A342D, var(--red) 45%, #5E1611); padding: 22px 16px 56px; position: relative; }
.me-hd::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 82% 22%, rgba(231, 214, 174, .16), transparent 42%); }
.me-hd .u { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.ava { width: 52px; height: 52px; border: 1px solid rgba(231, 214, 174, .8); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--gold-l); background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 3px rgba(200, 169, 106, .1); }
.me-hd .nm { font-family: var(--serif); color: #fff; font-size: 16px; letter-spacing: .1em; }
.me-hd .lv { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 9.5px; color: #4A2E10; background: linear-gradient(120deg, #E7D6AE, #C8A96A); padding: 2px 8px; letter-spacing: .08em; }
.me-hd .tel { font-size: 10.5px; color: rgba(231, 214, 174, .8); margin-top: 5px; letter-spacing: .06em; }
.me-assets { margin: -40px 14px 0; background: #fff; border: 1px solid var(--line); display: flex; position: relative; z-index: 3; }
.me-assets div { flex: 1; text-align: center; padding: 12px 0; border-right: 1px solid var(--line-soft); }
.me-assets div:last-child { border-right: 0; }
.me-assets b { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 400; color: var(--red); }
.me-assets span { font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.ord-card { margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); }
.ord-card .h { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px 8px; }
.ord-card .h b { font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }
.ord-card .h span { font-size: 10px; color: var(--muted); }
.ord-st { display: flex; padding: 6px 0 14px; }
.ord-st a { flex: 1; text-align: center; position: relative; }
.ord-st a .ic { width: 30px; height: 30px; margin: 0 auto 6px; display: grid; place-items: center; }
.ord-st a svg { width: 21px; height: 21px; stroke: var(--ink-2); fill: none; stroke-width: 1.3; }
.ord-st a span { font-size: 10.5px; color: var(--ink-2); }
.ord-st a i { position: absolute; top: -3px; right: 50%; margin-right: -24px; background: var(--red); color: #fff; font-size: 9px; font-style: normal; min-width: 14px; height: 14px; line-height: 14px; text-align: center; padding: 0 3px; }

.tool-grid { margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.tool-grid a { padding: 15px 0 13px; text-align: center; position: relative; }
.tool-grid a::after { content: ""; position: absolute; right: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line-soft); }
.tool-grid a:nth-child(4n)::after, .tool-grid a:last-child::after { display: none; }
.tool-grid a em { font-style: normal; display: block; font-family: var(--serif); font-size: 14px; color: var(--gold-d); margin-bottom: 5px; }
.tool-grid a span { font-size: 10.5px; color: var(--ink-2); }

.adm-entry { margin: 10px 14px 0; border: 1px solid rgba(200, 169, 106, .6); background: linear-gradient(120deg, #FFFDF8, #F7EFE2); display: flex; align-items: center; gap: 12px; padding: 14px; }
.adm-entry .ic { width: 36px; height: 36px; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); color: var(--red); font-size: 15px; }
.adm-entry .t { flex: 1; }
.adm-entry .t b { font-size: 13px; font-family: var(--serif); letter-spacing: .08em; }
.adm-entry .t p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.adm-entry .go { font-size: 11px; color: var(--red); border: 1px solid var(--red); padding: 5px 10px; }

/* ---------------- 商品详情 ---------------- */
.detail { position: fixed; inset: 0; z-index: 80; max-width: 460px; margin: 0 auto; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gallery { position: relative; background: #201512; }
.gallery .main { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .back { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; background: rgba(0, 0, 0, .42); display: grid; place-items: center; z-index: 3; }
.gallery .back svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.6; }
.gallery .idx { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; padding: 2px 8px; letter-spacing: .1em; }
.thumbs { display: flex; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 46px; opacity: .75; }
.thumbs img.on { border-color: var(--red); opacity: 1; }

.dt-price { background: #fff; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.dt-price .r1 { display: flex; align-items: flex-end; gap: 8px; }
.dt-price .price { font-size: 25px; }
.dt-price .price-old { font-size: 11px; padding-bottom: 3px; }
.dt-price .save { font-size: 9.5px; color: #fff; background: var(--red); padding: 2px 6px; letter-spacing: .06em; margin-bottom: 3px; }
.dt-price .nm { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; margin-top: 8px; line-height: 1.4; }
.dt-price .sb { font-size: 11px; color: var(--muted); margin-top: 5px; }
.dt-price .mt { display: flex; gap: 14px; margin-top: 9px; font-size: 10.5px; color: var(--muted); }
.dt-price .mt b { color: var(--ink-2); font-weight: 500; }

.dt-sec { background: #fff; margin-top: 8px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dt-row { display: flex; padding: 13px 14px; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.dt-row:last-child { border-bottom: 0; }
.dt-row .k { width: 44px; flex: 0 0 44px; font-size: 11px; color: var(--muted); padding-top: 5px; }
.dt-row .v { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.sku { padding: 6px 12px; border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); background: #FCFAF6; text-align: center; }
.sku small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.sku.on { border-color: var(--red); color: var(--red); background: #FCF1EE; }
.sku.on small { color: var(--red); }
.sku.dis { opacity: .4; }

.dt-tabs { display: flex; background: #fff; margin-top: 8px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dt-tabs a { flex: 1; text-align: center; padding: 12px 0; font-size: 12.5px; color: var(--ink-2); position: relative; letter-spacing: .06em; }
.dt-tabs a.on { color: var(--red); font-weight: 500; }
.dt-tabs a.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 24px; height: 2px; background: var(--red); }
.dt-body { background: #fff; padding: 14px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }

.cmt { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 10px; }
.cmt:last-child { border-bottom: 0; }
.cmt .av { width: 30px; height: 30px; flex: 0 0 30px; background: #F3EBDF; border: 1px solid rgba(200, 169, 106, .5); display: grid; place-items: center; font-family: var(--serif); color: var(--gold-d); font-size: 12px; }
.cmt .c { flex: 1; min-width: 0; }
.cmt .c .n { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
.cmt .c .n span { color: var(--muted); font-size: 9.5px; }
.stars { color: var(--gold); font-size: 10px; letter-spacing: 1px; }
.cmt .c p { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.65; }
.cmt .rp { background: #FBF7F1; border-left: 2px solid var(--gold); padding: 6px 8px; margin-top: 7px; font-size: 11px; color: var(--ink-2); }
.cmt .rp b { color: var(--red); font-weight: 400; }

.dt-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; background: #fff;
  border-top: 1px solid var(--line); padding: 8px 12px; z-index: 10;
}
.dt-bar .op { width: 46px; text-align: center; font-size: 9.5px; color: var(--ink-2); }
.dt-bar .op svg { width: 19px; height: 19px; stroke: var(--ink-2); fill: none; stroke-width: 1.35; display: block; margin: 0 auto 2px; }
.dt-bar .op.on svg { stroke: var(--red); fill: rgba(142, 42, 36, .1); }
.dt-bar .op.on { color: var(--red); }
.dt-bar .b { flex: 1; text-align: center; padding: 10px 0; font-size: 12.5px; letter-spacing: .08em; }
.dt-bar .b1 { background: #F7EEE0; color: var(--red); border: 1px solid rgba(200, 169, 106, .8); }
.dt-bar .b2 { background: var(--red); color: #fff; }

/* ---------------- 订单 ---------------- */
.oitem { background: #fff; border: 1px solid var(--line); margin: 10px 14px 0; }
.oitem .h { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; color: var(--muted); }
.oitem .h b { color: var(--red); font-weight: 400; }
.oitem .g { display: flex; gap: 10px; padding: 11px 12px; }
.oitem .g img { width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--line); }
.oitem .g .t { flex: 1; min-width: 0; }
.oitem .g .t b { font-size: 12.5px; font-weight: 500; display: block; }
.oitem .g .t span { font-size: 10px; color: var(--muted); }
.oitem .f { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.oitem .f .s { font-size: 11px; color: var(--muted); }
.oitem .f .s b { font-family: Georgia, serif; color: var(--red); font-size: 15px; font-weight: 400; }
.oitem .f .a { display: flex; gap: 7px; }
.btn-sm { padding: 5px 12px; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.btn-sm.pri { border-color: var(--red); color: var(--red); }
.btn-sm.solid { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------------- 表单 / 弹层 ---------------- */
.mask { position: fixed; inset: 0; background: rgba(30, 16, 12, .55); z-index: 90; display: none; }
.mask.on { display: block; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 460px; background: #fff; z-index: 95; transition: transform .32s cubic-bezier(.2, .8, .3, 1);
  max-height: 86vh; overflow-y: auto;
}
.sheet.on { transform: translateX(-50%) translateY(0); }
.sheet .sh { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: #fff; z-index: 2; }
.sheet .sh b { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; }
.sheet .sh .x { font-size: 18px; color: var(--muted); line-height: 1; }
.sheet .sb { padding: 14px; }
.sheet .sf { padding: 10px 14px 14px; border-top: 1px solid var(--line-soft); display: flex; gap: 9px; }
.sheet .sf .btn-pri { flex: 1; text-align: center; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; letter-spacing: .06em; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); padding: 9px 10px; font-size: 12.5px; background: #FCFAF6;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); background: #fff; }
.field textarea { min-height: 70px; resize: vertical; }
.row2 { display: flex; gap: 9px; }
.row2 .field { flex: 1; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96);
  background: rgba(32, 20, 16, .92); color: #fff; font-size: 12.5px; padding: 10px 18px;
  z-index: 120; opacity: 0; pointer-events: none; transition: .22s; letter-spacing: .06em; max-width: 74vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 文章 */
.art { padding: 18px 16px 30px; background: #fff; }
.art h1 { font-family: var(--serif); font-size: 18px; line-height: 1.5; letter-spacing: .06em; }
.art .mt { font-size: 10px; color: var(--muted); margin: 8px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.art p { font-size: 13px; line-height: 2; color: var(--ink-2); text-align: justify; }

/* ---------------- 小程序内管理端 ---------------- */
.madm { padding: 0 0 20px; }
.madm-hd { background: linear-gradient(150deg, #2A211C, #1B1512); padding: 18px 16px; border-bottom: 1px solid rgba(200, 169, 106, .35); }
.madm-hd b { font-family: var(--serif); color: var(--gold-l); font-size: 15px; letter-spacing: .16em; }
.madm-hd p { font-size: 10px; color: rgba(231, 214, 174, .6); margin-top: 4px; letter-spacing: .1em; }
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 12px 14px 0; }
.kpi div { background: #fff; padding: 13px 12px; }
.kpi span { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.kpi b { display: block; font-family: Georgia, serif; font-size: 21px; font-weight: 400; color: var(--red); margin-top: 4px; }
.kpi b small { font-size: 10px; color: var(--muted); margin-left: 2px; }
.m-tabs { display: flex; padding: 12px 14px 4px; gap: 8px; }
.m-tabs a { padding: 4px 12px; font-size: 11px; border: 1px solid var(--line); color: var(--ink-2); }
.m-tabs a.on { background: var(--red); color: #fff; border-color: var(--red); }
.bars { margin: 10px 14px 0; background: #fff; border: 1px solid var(--line); padding: 14px; }
.bars .t { font-size: 11px; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; }
.bars .t b { color: var(--ink); font-weight: 500; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.bar-row span { width: 46px; font-size: 9.5px; color: var(--muted); flex: 0 0 46px; }
.bar-row .tr { flex: 1; height: 8px; background: #F5EEE3; }
.bar-row .tr i { display: block; height: 100%; background: linear-gradient(90deg, #C2564A, var(--red)); }
.bar-row b { width: 42px; text-align: right; font-size: 10px; font-family: Georgia, serif; color: var(--ink-2); font-weight: 400; }

.mo { background: #fff; border: 1px solid var(--line); margin: 10px 14px 0; padding: 11px 12px; }
.mo .r1 { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mo .r2 { margin-top: 6px; font-size: 12px; color: var(--ink); }
.mo .r3 { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.mo .r3 b { font-family: Georgia, serif; color: var(--red); font-size: 15px; font-weight: 400; }

.hidden { display: none !important; }
.safe-b { height: env(safe-area-inset-bottom); }
