/* ==========================================================================
   小小咖啡 · 在线点单
   视觉语言取自设计稿：米黄纸色 + 咖啡棕线描 + 极细咖啡色分隔线
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-tone: #F3EAD8;
  --deep: #6B5B4E;
  --deep-2: #7C6B5C;
  --line: #DACBB8;
  --line-2: #C9B7A2;
  --ink: #6E5A47;
  --text: #3A2E24;
  --muted: #9A8978;
  --price: #B0601F;
  --chip: #F0EAE1;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 60px;
  font-synthesis: none;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: #EDE4D6;
  overscroll-behavior-y: none;
}

button, input, textarea { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- 外壳 ---------- */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

@media (min-width: 480px) {
  body { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
  .app {
    height: min(880px, calc(100dvh - 48px));
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: 0 24px 60px rgba(90, 72, 54, .16);
  }
}

.view {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

.page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  animation: page-in .26s cubic-bezier(.22,.61,.36,1);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { display: none; }

/* ---------- 纸质纹理 ---------- */
.tone {
  background-color: var(--paper-tone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- 通用导航条 ---------- */
.nav {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.nav .back {
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  margin-right: 8px;
  padding: 0 4px 2px;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav .t { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.nav .r { margin-left: auto; font-size: 12px; color: var(--muted); padding: 6px 0 6px 12px; }
.nav .r:active { color: var(--deep); }
.nav .r.accent { color: var(--deep); }

/* ---------- tabbar ---------- */
.tabbar {
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--paper);
  position: relative;
  z-index: 20;
}
.tabbar.hidden { display: none; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  width: 54px;
  padding: 0;
  transition: color .2s;
}
.tab.on { color: var(--deep); font-weight: 600; }
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.tab-mid {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--deep);
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(107, 91, 78, .3);
  position: relative;
  flex: 0 0 52px;
}
.tab-mid svg { width: 24px; height: 24px; stroke: #FBF6EE; fill: none; stroke-width: 1.6; }
.tab-mid:active { transform: scale(.94); }
.tab-mid .badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--price); color: #fff;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--paper);
  animation: pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(.5); } to { transform: scale(1); } }

/* ---------- 按钮 ---------- */
.btn-fill {
  background: var(--deep); color: #FBF6EE;
  border-radius: 10px; padding: 13px;
  text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  box-shadow: 0 5px 12px rgba(107, 91, 78, .2);
  transition: transform .12s, opacity .2s;
}
.btn-fill:active { transform: scale(.985); opacity: .92; }
.btn-fill[disabled] { opacity: .45; box-shadow: none; }
.btn-stroke {
  border: 1px solid var(--deep); color: var(--deep);
  border-radius: 10px; padding: 12px;
  text-align: center; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.btn-stroke:active { background: #F8F3EC; }

/* ---------- 状态页 ---------- */
.state {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 40px 24px;
  color: var(--muted); font-size: 12px;
}
.state svg { width: 96px; height: 96px; opacity: .8; }
.state .tt { font-size: 14px; color: var(--ink); font-weight: 600; }
.state .go { margin-top: 6px; color: var(--deep); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

.skeleton { padding: 16px; }
.sk {
  background: linear-gradient(90deg, #F4EEE4 25%, #FAF6EF 37%, #F4EEE4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: 78vw;
  background: rgba(58, 46, 36, .93);
  color: #FBF6EE;
  font-size: 13px; line-height: 1.45;
  padding: 10px 16px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 90;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 底部弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0;
  background: rgba(50, 40, 30, .38);
  opacity: 0; pointer-events: none;
  transition: opacity .24s;
  z-index: 70;
  backdrop-filter: blur(1px);
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 50%; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translate(-50%, 102%);
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(60, 46, 34, .18);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  z-index: 80;
  padding-bottom: var(--safe-b);
  max-height: 82vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sheet.on { transform: translate(-50%, 0); }
.sheet .sh-head {
  padding: 16px 18px 10px;
  display: flex; align-items: center;
  font-size: 14px; font-weight: 600;
}
.sheet .sh-head .x { margin-left: auto; color: var(--muted); font-size: 18px; padding: 0 4px; }
.sheet .sh-body { padding: 4px 18px 18px; overflow-y: auto; }
.sheet .sh-foot { padding: 0 18px 18px; }

/* ==========================================================================
   首页
   ========================================================================== */
.hp-head { padding: 10px 16px 14px; border-bottom: 1px solid var(--line); }
.hp-top { display: flex; align-items: center; gap: 8px; height: 34px; }
.hp-top .brand { font-size: 16px; font-weight: 700; color: var(--deep); letter-spacing: .06em; }
.hp-top .brand i { font-style: normal; color: var(--ink); margin-right: 5px; }
.hp-top .search {
  margin-left: auto; flex: 1; max-width: 152px; height: 30px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #FAF7F1;
  display: flex; align-items: center; gap: 5px; padding: 0 10px;
  color: var(--muted); font-size: 11px;
}
.hp-top .search svg { width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.hp-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; font-size: 11px; color: var(--ink);
}
.hp-meta .m-item { display: flex; align-items: center; gap: 5px; min-width: 0; }
.hp-meta .m-item .ic { font-size: 10px; color: var(--ink); flex: 0 0 auto; }
.hp-meta .m-item .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-meta .addr { flex: 1; cursor: pointer; }
.hp-meta .hours { flex: 0 0 auto; color: var(--muted); }
.hp-meta .hours .ic { color: var(--muted); }

.order-btn {
  margin-top: 12px; width: 100%;
  background: var(--deep); color: #FBF6EE;
  border-radius: 10px; padding: 12px;
  text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .08em;
  box-shadow: 0 5px 12px rgba(107, 91, 78, .2);
}
.order-btn span { opacity: .8; margin-left: 6px; }
.order-btn:active { transform: scale(.99); }



.feed { padding: 12px 12px 20px; }
.feed-row { display: flex; gap: 10px; margin-bottom: 12px; }
.card {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: var(--paper);
  transition: transform .16s;
}
.card:active { transform: scale(.985); }
.card .cover {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 3; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #FBF7F1;
}
.card .cover svg { width: 100%; height: 100%; }
.card .cover .gimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cover .badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 600; color: #FBF6EE;
  background: var(--deep); border-radius: 10px; padding: 3px 8px; letter-spacing: .05em;
}
.card .cover .badge.hot { background: var(--price); }
.card .tt {
  font-size: 12px; font-weight: 600; line-height: 1.42;
  padding: 9px 10px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { display: flex; align-items: center; padding: 6px 10px 10px; gap: 5px; }
.card .meta .av {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--chip); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--deep);
}
.card .meta .nm { font-size: 9px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta .like { margin-left: auto; font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.card .meta .like svg { width: 11px; height: 11px; stroke: var(--price); fill: none; stroke-width: 1.6; }

.cover-fill-1 { background: linear-gradient(160deg, #F3EAD8, #E7D8C2); }
.cover-fill-2 { background: linear-gradient(160deg, #EFE6D9, #DCCBB4); }
.cover-fill-3 { background: linear-gradient(160deg, #F5EEE0, #E9DAC5); }
.cover-fill-4 { background: linear-gradient(160deg, #F0E7DA, #DFCFB9); }

/* ==========================================================================
   点单
   ========================================================================== */
.menu-top { height: 152px; flex: 0 0 152px; position: relative; overflow: hidden; }
.coffee-scene { position: absolute; inset: 0; }
.coffee-scene svg { width: 100%; height: 100%; }
.menu-top .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.05) 45%, rgba(255,255,255,.78));
}
.m-nav { position: absolute; top: 8px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.m-nav .back { font-size: 22px; color: var(--ink); line-height: 1; padding: 0 6px 2px 0; }
.m-nav .search, .m-nav .dots {
  width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%;
  background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
}
.m-nav .search { margin-left: auto; }
.m-nav .search svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.m-nav .dots { font-size: 13px; color: var(--ink); letter-spacing: .5px; padding-bottom: 4px; }

.m-shop { position: absolute; top: 46px; left: 16px; right: 16px; z-index: 5; }
.m-shop .nm { font-size: 17px; font-weight: 700; }
.m-shop .nm::before { content: "◉ "; color: var(--ink); font-size: 13px; }

.m-filter {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.m-pick { display: flex; gap: 8px; }
.m-pick div {
  font-size: 11px; padding: 6px 14px;
  border: 1px solid var(--ink); border-radius: 16px;
  background: rgba(255,255,255,.85); color: var(--ink);
  transition: background .2s, color .2s;
}
.m-pick div.on { background: var(--deep); border-color: var(--deep); color: #FBF6EE; }
.m-filter .m-time {
  margin-left: auto;
  font-size: 10px; color: var(--ink);
  background: #FAF7F1;
  border: 1px solid var(--line-2); border-radius: 16px; padding: 6px 10px;
}

.member {
  margin: 8px 14px 6px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px;
  display: flex; align-items: center; gap: 10px;
  background: #FDFBF7;
}
.member .t { font-size: 10px; color: var(--muted); flex: 1; }
.member .b { background: var(--deep); color: #FBF6EE; font-size: 10px; padding: 4px 10px; border-radius: 5px; }

.menu-area { flex: 1; min-height: 0; display: flex; position: relative; }
.cats {
  flex: 0 0 78px;
  background: #FAF7F1;
  border-right: 1px solid var(--line);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  position: relative; border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.cat.on { background: var(--paper); color: var(--deep); font-weight: 600; }
.cat.on::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; background: var(--deep); border-radius: 0 2px 2px 0;
}
.cat svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.2; }

.goods { flex: 1; min-width: 0; background: var(--paper); padding: 0 14px 90px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.goods::-webkit-scrollbar { display: none; }
.goods .grp { font-size: 13px; font-weight: 700; margin: 14px 0 4px; }
.gitem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gitem:last-child { border-bottom: 0; }
.gpic {
  flex: 0 0 88px; height: 88px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #FBF7F1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gpic svg { width: 100%; height: 100%; }
.ginfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ginfo .n { font-size: 13px; font-weight: 700; }
.ginfo .d {
  font-size: 10px; color: var(--muted); line-height: 1.45; margin: 4px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ginfo .bottom { margin-top: auto; display: flex; align-items: center; }
.ginfo .p { font-size: 15px; font-weight: 700; color: var(--price); }
.ginfo .p small { font-size: 10px; font-weight: 400; }
.ginfo .sel {
  margin-left: auto;
  background: var(--chip); border: 1px solid var(--line);
  border-radius: 14px; padding: 5px 12px;
  font-size: 11px; color: var(--ink);
}
.ginfo .sel:active { background: #E8DFD2; }

/* 点单页浮动购物车 */
.cart-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 50px;
  background: var(--deep);
  border-radius: 12px;
  display: flex; align-items: center;
  padding-left: 16px;
  color: #FBF6EE;
  box-shadow: 0 8px 20px rgba(107, 91, 78, .28);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s;
  z-index: 15;
}
.cart-bar.on { transform: none; opacity: 1; }
.cart-bar .cnt { font-size: 10px; opacity: .85; }
.cart-bar .amt { font-size: 17px; font-weight: 700; line-height: 1.25; }
.cart-bar .amt small { font-size: 10px; font-weight: 400; opacity: .8; }
.cart-bar .go {
  margin-left: auto; height: 100%;
  background: #FBF6EE; color: var(--deep);
  border-radius: 0 12px 12px 0;
  padding: 0 20px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center;
}

/* ==========================================================================
   规格
   ========================================================================== */
.spec-hero {
  height: 200px; flex: 0 0 200px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.spec-hero svg { width: 118px; height: 118px; }
.spec-hero .gimg { width: 118px; height: 118px; object-fit: contain; display: block; }
.spec-body { padding: 18px 18px 90px; }
.spec-body .pt { font-size: 18px; font-weight: 700; }
.spec-body .pd { font-size: 11px; color: var(--muted); margin: 4px 0 18px; line-height: 1.55; }
.grp-t { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.opt {
  border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 13px; font-size: 12px; color: var(--ink);
  background: var(--paper);
  transition: all .16s;
}
.opt.on { border-color: var(--deep); color: var(--deep); background: #F6F1EA; font-weight: 600; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--deep); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.stepper button:active { background: var(--chip); }
.stepper button[disabled] { opacity: .35; }
.stepper span { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; }

.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 18px calc(14px + var(--safe-b));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  z-index: 12;
}
.bottom-bar .solid-btn { position: static; }
.solid-btn {
  background: var(--deep); color: #FBF6EE;
  border-radius: 10px; padding: 14px;
  text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 5px 12px rgba(107, 91, 78, .2);
}
.solid-btn:active { transform: scale(.99); }
.solid-btn[disabled] { opacity: .5; box-shadow: none; }

/* ==========================================================================
   购物车
   ========================================================================== */
.cart-list { padding: 4px 16px; }
.ci { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ci .gpic { flex: 0 0 62px; height: 62px; }
.ci .mid { flex: 1; min-width: 0; }
.ci .n { font-size: 13px; font-weight: 600; }
.ci .o { font-size: 10px; color: var(--muted); margin: 3px 0 5px; }
.ci .p { font-size: 14px; font-weight: 700; color: var(--price); }
.ci .ctrl { margin-left: auto; display: flex; gap: 9px; align-items: center; flex: 0 0 auto; }
.ci .ctrl button {
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--deep); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ci .ctrl button:active { background: var(--chip); }
.ci .ctrl span { font-size: 12px; min-width: 14px; text-align: center; }

.sum { padding: 10px 16px 8px; font-size: 12px; color: var(--muted); }
.sum .row { display: flex; justify-content: space-between; padding: 5px 0; }
.sum .row span:last-child { color: var(--text); }
.sum .row.disc span:last-child { color: var(--price); }
.sum .row.tot {
  color: var(--text); font-weight: 600;
  border-top: 1px solid var(--line);
  margin-top: 7px; padding-top: 10px;
}
.sum .row.tot b { color: var(--price); font-size: 17px; }

.coupon-row {
  margin: 4px 16px 0; padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; font-size: 12px;
}
.coupon-row .k { color: var(--muted); }
.coupon-row .v { margin-left: auto; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.coupon-row .v.on { color: var(--price); }

.checkout {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(14px + var(--safe-b));
  height: 50px; background: var(--deep); border-radius: 12px;
  display: flex; align-items: center; padding-left: 16px; color: #FBF6EE;
  box-shadow: 0 8px 20px rgba(107, 91, 78, .26);
}
.checkout .c { font-size: 10px; opacity: .85; }
.checkout .p { font-size: 17px; font-weight: 700; line-height: 1.25; }
.checkout .p small { font-size: 10px; font-weight: 400; opacity: .8; }
.checkout .go {
  margin-left: auto; height: 100%; background: #FBF6EE; color: var(--deep);
  border-radius: 0 12px 12px 0; padding: 0 20px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center;
}

/* ==========================================================================
   确认订单
   ========================================================================== */
.panel { margin: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.seg { display: flex; border-bottom: 1px solid var(--line); }
.seg div { flex: 1; text-align: center; padding: 11px; font-size: 13px; color: var(--muted); transition: all .18s; }
.seg div.on { background: var(--deep); color: #FBF6EE; font-weight: 600; }
.pr { display: flex; justify-content: space-between; padding: 11px 13px; font-size: 12px; }
.pr + .pr { border-top: 1px solid #F0E9DE; }
.pr .k { color: var(--muted); }
.pr .v { font-weight: 500; }
.pr .v.ac { color: var(--price); }

.oline { padding: 13px 14px; font-size: 12px; }
.oline .h { color: var(--muted); margin-bottom: 9px; }
.oline .r { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.oline .r .nm { flex: 1; min-width: 0; }
.oline .r .op { font-size: 10px; color: var(--muted); margin-top: 2px; }
.oline .tot {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px;
  display: flex; justify-content: space-between; font-weight: 600;
}
.oline .tot b { color: var(--price); font-size: 16px; }

.pay { margin: 12px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.pay .w { width: 20px; height: 20px; border-radius: 5px; background: #09BB07; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.pay .tag { margin-left: 6px; font-size: 9px; color: var(--price); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.pay .ck { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }

.remark { margin: 12px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; }
.remark textarea {
  width: 100%; border: 0; resize: none; padding: 12px 13px;
  font-size: 16px; line-height: 1.5; min-height: 62px; outline: none;
  background: transparent;
}
.remark textarea::placeholder { color: var(--muted); font-size: 12px; }

/* 模拟收银台 */
.cashier { text-align: center; padding: 6px 0 4px; }
.cashier .amt { font-size: 34px; font-weight: 700; color: var(--price); letter-spacing: .02em; }
.cashier .lab { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .08em; }
.cashier .mock {
  display: inline-block; margin-top: 14px; font-size: 10px; color: var(--ink);
  border: 1px dashed var(--line-2); border-radius: 6px; padding: 4px 10px;
}
.cashier-methods { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cashier-methods .m { display: flex; align-items: center; gap: 9px; padding: 13px; font-size: 13px; }
.cashier-methods .m + .m { border-top: 1px solid #F0E9DE; }
.cashier-methods .ck { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.cashier-methods .m.on .ck { background: var(--deep); border-color: var(--deep); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   支付成功
   ========================================================================== */
.ok-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 52px 0 0; overflow-y: auto; }
.ok-ring {
  width: 72px; height: 72px; border: 2px solid #6E8A63; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: ring .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ring { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-ring svg { width: 34px; height: 34px; stroke: #6E8A63; fill: none; stroke-width: 2; }
.ok-wrap h3 { font-size: 19px; margin: 18px 0 5px; letter-spacing: .02em; }
.ok-wrap .sub { font-size: 11px; color: var(--muted); }

.ticket {
  margin: 26px 18px 0; width: calc(100% - 36px);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}
.ticket .top { padding: 18px 16px; text-align: center; border-bottom: 1px dashed var(--line); }
.ticket .no { font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.ticket .big { font-size: 38px; font-weight: 700; color: var(--price); letter-spacing: .06em; margin: 2px 0; }
.ticket .hint { font-size: 10px; color: var(--muted); }
.ticket .r { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 11px; color: var(--muted); }
.ticket .r b { color: var(--text); font-weight: 500; }
.ok-btns { width: calc(100% - 36px); margin: 20px 18px 24px; display: flex; gap: 10px; }
.ok-btns > * { flex: 1; }

/* ==========================================================================
   订单详情
   ========================================================================== */
.prog { margin: 14px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.prog .st { font-size: 15px; font-weight: 700; }
.prog .sd { font-size: 11px; color: var(--muted); margin-top: 4px; }
.track { display: flex; margin-top: 20px; }
.track .node { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.track .dot {
  width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); z-index: 2;
  transition: all .3s;
}
.track .dot.done { background: var(--deep); border-color: var(--deep); color: #FBF6EE; }
.track .dot.cur { border-color: var(--deep); color: var(--deep); font-weight: 700; box-shadow: 0 0 0 3px rgba(107,91,78,.1); }
.track .ln { position: absolute; top: 10px; left: 50%; width: 100%; height: 1px; background: var(--line); z-index: 1; }
.track .node:last-child .ln { display: none; }
.track .lb { font-size: 10px; color: var(--muted); margin-top: 7px; }
.track .lb.on { color: var(--deep); font-weight: 600; }

.odetail { margin: 0 16px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 12px; }
.odetail .r { display: flex; justify-content: space-between; padding: 5px 0; gap: 12px; }
.odetail .r .k { color: var(--muted); }
.odetail .r .v { text-align: right; }
.odetail .sep { border-top: 1px solid var(--line); margin: 9px 0; }
.od-btns { margin: 14px 16px 24px; display: flex; gap: 10px; }
.od-btns .btn-stroke { flex: 1; }

/* ==========================================================================
   订单列表
   ========================================================================== */
.orders-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.orders-tabs div {
  padding: 13px 0; margin-right: 26px;
  font-size: 13px; color: var(--muted); position: relative;
}
.orders-tabs div.on { color: var(--deep); font-weight: 600; }
.orders-tabs div.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--deep); border-radius: 2px;
}
.orders-tabs .n { font-size: 10px; margin-left: 3px; }

.o-card { margin: 12px 14px; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: var(--paper); }
.o-card .top { display: flex; align-items: center; }
.o-card .no { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.o-card .st { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--deep); }
.o-card .st.warn { color: var(--price); }
.o-card .st.gray { color: var(--muted); }
.o-card .items { margin: 10px 0; display: flex; flex-direction: column; gap: 7px; }
.o-card .it { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.o-card .it .gpic { flex: 0 0 42px; height: 42px; border-radius: 6px; }
.o-card .it .nm { flex: 1; min-width: 0; }
.o-card .it .nm .sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.o-card .it .q { color: var(--muted); font-size: 11px; }
.o-card .bot { display: flex; align-items: center; border-top: 1px solid #F0E9DE; padding-top: 10px; }
.o-card .bot .tt { font-size: 11px; color: var(--muted); }
.o-card .bot .tt b { color: var(--price); font-size: 14px; margin-left: 4px; }
.o-card .bot .acts { margin-left: auto; display: flex; gap: 8px; }
.o-card .bot .acts .b {
  border: 1px solid var(--deep); color: var(--deep);
  border-radius: 14px; padding: 5px 12px; font-size: 11px; font-weight: 600;
}
.o-card .bot .acts .b.fill { background: var(--deep); color: #FBF6EE; }
.o-card .pickup {
  font-size: 10px; color: var(--ink); background: var(--chip);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; margin-left: 8px;
}

/* ==========================================================================
   我的
   ========================================================================== */
.me-top { position: relative; height: 316px; flex: 0 0 316px; }
.store-drawing { position: absolute; top: 6px; left: 14px; right: 14px; height: 140px; }
.store-drawing svg { width: 100%; height: 100%; }
.me-top.short { height: 252px; flex: 0 0 252px; }
.me-txt { position: absolute; top: 156px; left: 0; right: 0; text-align: center; }
.me-txt .hi { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .05em; }
.me-txt .wel { font-size: 19px; font-weight: 700; margin: 5px 0; letter-spacing: .02em; }
.me-txt .sub { font-size: 11px; color: #8A7865; }
.me-btn {
  position: absolute; left: 34px; right: 34px; bottom: 26px;
  background: var(--deep); color: #FBF6EE; text-align: center;
  padding: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  box-shadow: 0 6px 14px rgba(107, 91, 78, .25);
}

.list { padding: 4px 20px; }
.li { height: 58px; display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .arrow { margin-left: auto; color: #B8A692; font-size: 16px; }
.li .val { margin-left: auto; font-size: 12px; color: var(--muted); margin-right: 6px; }

.logout-row {
  margin: 4px 20px 0;
  padding: 14px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.logout-row:active { color: var(--deep); }

.brand { text-align: center; padding: 18px 0 22px; color: #BCAE9E; font-size: 11px; }
.brand b { font-size: 14px; letter-spacing: .06em; }

/* ==========================================================================
   登录
   ========================================================================== */
.login-wrap { padding: 40px 30px; }
.login-wrap .kw { font-size: 12px; letter-spacing: .3em; color: var(--ink); text-transform: uppercase; }
.login-wrap h2 { font-size: 24px; font-weight: 700; margin: 10px 0 6px; letter-spacing: .04em; }
.login-wrap .desc { font-size: 12px; color: var(--muted); margin-bottom: 30px; line-height: 1.6; }
.field { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; gap: 10px; }
.field label { font-size: 13px; color: var(--muted); flex: 0 0 56px; }
.field input {
  flex: 1; border: 0; outline: none; font-size: 16px;
  background: transparent; letter-spacing: .02em;
}
.field input::placeholder { color: #C7B9A8; font-size: 13px; }
.field .code-btn { font-size: 12px; color: var(--deep); font-weight: 600; padding: 6px 0 6px 10px; flex: 0 0 auto; }
.field .code-btn[disabled] { color: var(--muted); font-weight: 400; }
.login-wrap .btn-fill { width: 100%; margin-top: 30px; }
.login-wrap .tip { font-size: 10px; color: var(--muted); margin-top: 14px; line-height: 1.6; text-align: center; }
.login-wrap .tip b { color: var(--price); font-weight: 600; }

/* ==========================================================================
   杂项
   ========================================================================== */
.row-gap { height: 8px; background: #FBF7F1; }
.foot-note { text-align: center; font-size: 10px; color: var(--muted); padding: 20px 0 28px; line-height: 1.7; }


/* ==========================================================================
   门店动态（图文）
   ========================================================================== */
.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; color: var(--muted); letter-spacing: .18em;
  padding: 2px 2px 10px;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card .cover .cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cover .cover-type {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.card .cover .cover-type span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 44px; color: rgba(110, 90, 71, .32); letter-spacing: .04em;
}

.post-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 6px;
}
.post-cell {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: var(--paper);
  transition: transform .16s;
}
.post-cell:active { transform: scale(.985); }
.pc-img {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img svg { width: 100%; height: 100%; }
.pc-img .cover-type span { font-size: 46px; }
.pc-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 600; color: #FBF6EE;
  background: var(--deep); border-radius: 10px; padding: 3px 8px; letter-spacing: .05em;
}
.pc-title {
  font-size: 12px; font-weight: 600; line-height: 1.45;
  padding: 8px 10px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { padding: 3px 10px 10px; font-size: 9px; color: var(--muted); letter-spacing: .04em; }

.post-hero { padding: 16px 18px 4px; display: flex; justify-content: center; }
.post-frame {
  width: 100%; max-width: 268px;
  aspect-ratio: 2 / 3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.post-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-frame svg { width: 100%; height: 100%; }
.post-frame .cover-type span { font-size: 84px; }

.post-wrap { padding: 18px 20px 10px; }
.post-tag {
  display: inline-block; font-size: 10px; font-weight: 600; color: var(--deep);
  border: 1px solid var(--deep); border-radius: 10px; padding: 2px 9px;
  letter-spacing: .08em; margin-bottom: 10px;
}
.post-h1 { font-size: 20px; line-height: 1.45; letter-spacing: .02em; font-weight: 700; }
.post-meta { font-size: 10px; color: var(--muted); margin: 8px 0 16px; letter-spacing: .06em; }
.post-p { font-size: 14px; line-height: 1.85; margin-bottom: 14px; text-align: justify; }

.post-goods {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; margin: 18px 0 4px; background: #FDFBF7;
}
.post-goods .gpic {
  flex: 0 0 56px; height: 56px; border-radius: 8px;
  border: 1px solid var(--line); background: #FBF7F1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.post-goods .gpic svg { width: 100%; height: 100%; }
.gitem .gpic .gimg, .ci .gpic .gimg, .post-goods .gpic .gimg { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.post-goods .gi { flex: 1; min-width: 0; }
.post-goods .gi .n { font-size: 13px; font-weight: 600; }
.post-goods .gi .d {
  font-size: 10px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-goods .pr { font-size: 15px; font-weight: 700; color: var(--price); }
.post-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  z-index: 12;
}
.post-bottom .pb-l { flex: 1; min-width: 0; }
.post-bottom .pb-nm { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-bottom .pb-price { font-size: 18px; font-weight: 700; color: var(--price); line-height: 1.2; }
.post-bottom .pb-sub { font-size: 10px; color: var(--muted); }
.post-bottom .pb-btn {
  flex: 0 0 auto;
  background: var(--deep); color: #FBF6EE;
  border-radius: 10px; padding: 12px 30px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
  box-shadow: 0 5px 12px rgba(107, 91, 78, .2);
}
.post-bottom .pb-btn:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
