/* ============================================================
   屿岛咖啡 ISLE COFFEE — iOS 26 Liquid Glass × 精品咖啡馆
   ============================================================ */

:root {
  --paper: #F6F1E7;
  --paper-2: #EDE5D5;
  --card: #FFFDF8;
  --ink: #2B1B12;
  --ink-2: #7A6A5C;
  --ink-3: #A8988A;
  --accent: #A9612F;
  --accent-deep: #7C4218;
  --accent-soft: #F3E2D0;
  --espresso: #241610;
  --espresso-2: #3A2617;
  --crema: #C89B6D;
  --green: #4C7A57;
  --gold: #C9A24B;
  --red: #B4452F;
  --line: rgba(43, 27, 18, .08);
  --glass: rgba(255, 252, 246, .72);
  --glass-strong: rgba(255, 252, 246, .86);
  --shadow-card: 0 1px 2px rgba(43,27,18,.04), 0 8px 24px rgba(43,27,18,.06);
  --shadow-pop: 0 12px 40px rgba(30,18,10,.18);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #E8DFCF;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
img, svg { display: block; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 舞台（桌面端展示） ---------- */
.stage {
  position: relative;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  background:
    radial-gradient(1200px 700px at 15% -10%, #F7EEDC 0%, transparent 55%),
    radial-gradient(1000px 800px at 110% 110%, #D9C6A8 0%, transparent 50%),
    linear-gradient(160deg, #EFE6D4 0%, #E3D5BE 100%);
  overflow: hidden;
}
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.bg-bean {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5;
}
.bg-bean-1 { width: 420px; height: 420px; left: -120px; top: 8%; background: #D9B48F; }
.bg-bean-2 { width: 360px; height: 360px; right: -100px; bottom: 4%; background: #C89B6D; opacity: .35; }
.bg-bean-3 { width: 260px; height: 260px; right: 16%; top: -80px; background: #F3E2D0; }
.stage-caption {
  font-size: 12px; letter-spacing: .14em; color: #8A7A6C;
  text-align: center; padding: 0 20px;
}

/* ---------- 设备外框 ---------- */
.device {
  position: relative;
  width: 390px; height: min(844px, calc(100dvh - 64px));
  background: var(--paper);
  border-radius: 54px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px #1C130D,
    0 0 0 12px #3A2C20,
    0 40px 90px rgba(40, 24, 12, .45);
  flex-shrink: 0;
}
/* 纸张颗粒 */
.device::after {
  content: ''; position: absolute; inset: 0; z-index: 99; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 状态栏 / 动态岛 / Home 指示条 ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  height: 48px; padding: 14px 30px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.sb-icons { display: flex; gap: 6px; align-items: center; padding-top: 2px; }

.island {
  position: absolute; top: 11px; left: 50%; z-index: 70;
  transform: translateX(-50%);
  height: 34px; min-width: 112px;
  background: #120B07; color: #F6F1E7;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 14px;
  transition: min-width .5s var(--spring), box-shadow .4s;
  overflow: hidden; white-space: nowrap;
}
.island-dot, .island-label, .island-extra { opacity: 0; transition: opacity .3s .1s; }
.island-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crema); flex-shrink: 0; }
.island-label { font-size: 12.5px; font-weight: 600; }
.island-extra { font-size: 12.5px; font-weight: 700; color: var(--crema); font-variant-numeric: tabular-nums; }
.island.on { min-width: 236px; box-shadow: 0 6px 24px rgba(18,11,7,.35); }
.island.on .island-dot, .island.on .island-label, .island.on .island-extra { opacity: 1; }
.island.ready .island-dot { background: #6FBF7F; animation: pulse-dot 1.6s infinite; }
.island.ready .island-extra { color: #6FBF7F; }
.island .island-progress {
  position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: rgba(246,241,231,.18); border-radius: 2px; overflow: hidden;
  opacity: 0; transition: opacity .3s;
}
.island.on .island-progress { opacity: 1; }
.island .island-progress i { display: block; height: 100%; width: 0; background: var(--crema); border-radius: 2px; transition: width .5s linear; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(111,191,127,.5);} 50% { box-shadow: 0 0 0 5px rgba(111,191,127,0);} }

.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(43,27,18,.85); z-index: 65;
}

/* ---------- 视图与导航 ---------- */
#views { position: absolute; inset: 0; }
.view {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(.995);
  transition: opacity .38s var(--ease-out), transform .38s var(--ease-out);
}
.view.active { opacity: 1; pointer-events: auto; transform: none; z-index: 2; }
.view-scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 104px 18px 130px;
  -webkit-overflow-scrolling: touch;
}
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: 100px; padding-top: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 18px; padding-right: 18px;
  background: transparent;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.condensed {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 .5px 0 var(--line);
}
.nav-title {
  position: absolute; left: 50%; top: 46px; height: 54px;
  display: flex; align-items: center;
  font-size: 16px; font-weight: 700;
  opacity: 0; transform: translateX(-50%) translateY(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.nav.condensed .nav-title { opacity: 1; transform: translateX(-50%); }
.nav-left, .nav-right { display: flex; align-items: center; gap: 10px; min-width: 70px; }
.nav-right { justify-content: flex-end; }
.nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 .5px 0 var(--line), 0 2px 8px rgba(43,27,18,.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: transform .18s var(--spring);
}
.nav-btn:active { transform: scale(.9); }
.store-chip {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 13px; border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 .5px 0 var(--line), 0 2px 8px rgba(43,27,18,.06);
  font-size: 13px; font-weight: 600;
  transition: transform .18s var(--spring);
}
.store-chip:active { transform: scale(.95); }
.store-chip svg { color: var(--accent); }

.large-title { padding: 6px 2px 14px; }
.large-title .greet { font-size: 15px; color: var(--ink-2); font-weight: 500; margin-bottom: 3px; }
.large-title h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.large-title .sub { font-size: 14px; color: var(--ink-2); margin-top: 5px; }

/* 入场编排 */
.anim-in { opacity: 0; }
.view.active .anim-in {
  animation: rise .55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: .5px solid rgba(255,255,255,.7);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 24px 2px 12px;
}
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.section-head .more { font-size: 13px; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-deep);
}
.chip.ghost { background: rgba(43,27,18,.05); color: var(--ink-2); }
.chip.cream { background: rgba(246,241,231,.16); color: #E8D9C4; }
.chip.green { background: rgba(76,122,87,.12); color: var(--green); }
.chip.gold { background: rgba(201,162,75,.16); color: #8A6A24; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: .01em;
  background: var(--espresso); color: #F6F1E7;
  transition: transform .18s var(--spring), opacity .2s, background .2s;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn.accent { background: var(--accent); }
.btn.glass {
  background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 .5px 0 var(--line), 0 4px 14px rgba(43,27,18,.08);
}
.btn.small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.seg {
  position: relative; display: flex;
  background: var(--paper-2); border-radius: 13px; padding: 3px;
}
.seg button {
  position: relative; z-index: 2; flex: 1;
  height: 34px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: color .25s; white-space: nowrap;
}
.seg button.on { color: var(--ink); }
.seg-glider {
  position: absolute; top: 3px; bottom: 3px; z-index: 1;
  background: var(--card); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(43,27,18,.12), 0 .5px 0 rgba(255,255,255,.8);
  transition: left .32s var(--spring), width .32s var(--spring);
}

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 9px 15px; border-radius: 12px;
  background: rgba(43,27,18,.045);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: 1.5px solid transparent;
  transition: all .2s var(--ease-out);
}
.opt.on { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); }
.opt small { font-weight: 500; opacity: .75; margin-left: 3px; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(43,27,18,.06); color: var(--ink);
  font-size: 17px; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--spring), opacity .2s;
}
.stepper button:active { transform: scale(.88); }
.stepper button[disabled] { opacity: .3; }
.stepper b { font-size: 16px; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }

.switch {
  position: relative; width: 51px; height: 31px; border-radius: 16px;
  background: rgba(43,27,18,.14); transition: background .25s;
  flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .28s var(--spring);
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

.hairline-top { box-shadow: 0 -.5px 0 var(--line); }

/* ---------- 首页 ---------- */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  height: 42px; padding: 0 14px; border-radius: 14px;
  background: rgba(43,27,18,.05);
  color: var(--ink-3); font-size: 14.5px;
  transition: transform .18s var(--spring);
}
.search-bar:active { transform: scale(.98); }

.hero {
  position: relative; margin-top: 14px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, #3A2617 0%, #241610 60%, #1A0F09 100%);
  color: #F6F1E7;
  box-shadow: 0 16px 40px rgba(36,22,16,.35);
}
.hero-scene { position: absolute; right: -10px; top: 0; width: 240px; height: 100%; opacity: .95; }
.hero-body { position: relative; z-index: 2; padding: 20px 20px 18px; max-width: 62%; }
.hero-kicker { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--crema); margin-bottom: 8px; }
.hero-body h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.hero-body .origin { font-size: 12.5px; color: #C9B8A4; margin-top: 4px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 18px; }
.hero-price { font-size: 22px; font-weight: 800; color: var(--crema); }
.hero-price small { font-size: 12px; font-weight: 500; color: #C9B8A4; margin-left: 4px; }
.hero .btn { height: 40px; padding: 0 20px; font-size: 14px; background: var(--crema); color: var(--espresso); }

/* 风味签 */
.fortune { margin-top: 14px; perspective: 900px; height: 118px; }
.fortune-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--spring);
}
.fortune.flipped .fortune-inner { transform: rotateY(180deg); }
.fortune-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.fortune-front {
  background: linear-gradient(135deg, #FFFDF8, #F3E9D8);
  border: .5px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-card);
}
.fortune-front .f-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: var(--espresso); display: flex; align-items: center; justify-content: center;
}
.fortune-front h4 { font-size: 16px; font-weight: 800; }
.fortune-front p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.fortune-front .f-tap { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.fortune-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #FBF3E6; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
}
.fortune-back h4 { font-size: 16px; font-weight: 800; }
.fortune-back p { font-size: 12.5px; opacity: .88; line-height: 1.45; }
.fortune-back .f-link { font-size: 12px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 3px; color: #F3D9B8; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform .18s var(--spring); }
.quick-item:active { transform: scale(.92); }
.quick-icon {
  width: 56px; height: 56px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); border: .5px solid rgba(255,255,255,.7);
}
.quick-item span { font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* 横向人气榜 */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto;
  margin: 0 -18px; padding: 2px 18px 8px;
  scroll-snap-type: x mandatory;
}
.pop-card {
  scroll-snap-align: start; flex-shrink: 0; width: 148px;
  background: var(--card); border-radius: 22px; padding: 12px;
  box-shadow: var(--shadow-card); border: .5px solid rgba(255,255,255,.7);
  transition: transform .18s var(--spring);
}
.pop-card:active { transform: scale(.96); }
.pop-art { height: 96px; border-radius: 16px; background: linear-gradient(160deg, #F6EFE2, #EDE2CE); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pop-card h5 { font-size: 14.5px; font-weight: 700; margin-top: 9px; }
.pop-card .en { font-size: 10px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.pop-foot .price { font-size: 16px; font-weight: 800; color: var(--accent); }
.pop-foot .price small { font-size: 11px; font-weight: 600; }
.add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--espresso); color: #F6F1E7;
  font-size: 17px; font-weight: 500; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .16s var(--spring);
}
.add-btn:active { transform: scale(.85); }

/* 咖啡师手记 / 门店 */
.article-card { display: flex; gap: 14px; padding: 16px; align-items: center; transition: transform .18s var(--spring); }
.article-card:active { transform: scale(.98); }
.article-art { width: 74px; height: 74px; border-radius: 18px; flex-shrink: 0; background: linear-gradient(150deg, #3A2617, #241610); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-card h4 { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.article-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.article-card .meta { font-size: 11px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 8px; }

.store-card { padding: 16px; }
.store-row { display: flex; align-items: center; gap: 12px; }
.store-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--espresso); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-row h4 { font-size: 15.5px; font-weight: 700; }
.store-row p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.store-meta { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; box-shadow: 0 -.5px 0 var(--line); font-size: 12px; color: var(--ink-2); }
.store-meta b { color: var(--ink); font-weight: 700; }
.store-meta .open { color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.store-meta .open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- 点单页 ---------- */
.menu-layout { display: flex; gap: 12px; margin-top: 12px; }
.cat-rail {
  width: 76px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; align-self: flex-start;
}
.cat-rail button {
  padding: 13px 8px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-align: left; line-height: 1.25;
  transition: all .22s var(--ease-out);
}
.cat-rail button.on { background: var(--card); color: var(--accent-deep); font-weight: 800; box-shadow: var(--shadow-card); }
.cat-rail button small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.drink-list { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.drink-card {
  display: flex; gap: 11px; padding: 12px;
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow-card); border: .5px solid rgba(255,255,255,.7);
  transition: transform .18s var(--spring);
  text-align: left; width: 100%;
}
.drink-card:active { transform: scale(.97); }
.drink-art { width: 74px; height: 74px; border-radius: 16px; flex-shrink: 0; background: linear-gradient(160deg, #F6EFE2, #EDE2CE); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.drink-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drink-info h4 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.drink-info .en { font-size: 9.5px; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin-top: 1px; }
.drink-info .desc {
  font-size: 11.5px; color: var(--ink-2); line-height: 1.4; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.drink-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.drink-foot .price { font-size: 16.5px; font-weight: 800; color: var(--accent); }
.drink-foot .price small { font-size: 11px; font-weight: 600; }
.drink-tag { font-size: 9.5px; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; flex-shrink: 0; }
.menu-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ---------- 冲煮页 ---------- */
.brew-setup { padding: 16px; margin-top: 12px; }
.brew-setup .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.brew-setup .row:first-child { margin-top: 0; }
.brew-setup .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.brew-setup .val { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.brew-setup .hint { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.timer-card { margin-top: 14px; padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; }
.timer-ring { position: relative; width: 236px; height: 236px; }
.timer-ring svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-ring .ring-track { stroke: var(--paper-2); }
.timer-ring .ring-prog { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.timer-scene { position: absolute; inset: 26px; display: flex; align-items: center; justify-content: center; }
.timer-time { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 14px; line-height: 1; }
.timer-stage { font-size: 14px; font-weight: 700; color: var(--accent-deep); margin-top: 6px; min-height: 20px; }
.timer-note { font-size: 12px; color: var(--ink-2); margin-top: 3px; min-height: 17px; text-align: center; }
.water-bar { width: 100%; margin-top: 14px; }
.water-bar .wb-track { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.water-bar .wb-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--crema), var(--accent)); transition: width .3s linear; }
.water-bar .wb-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.water-bar .wb-labels b { color: var(--ink); }
.timer-ctrl { display: flex; gap: 12px; margin-top: 16px; width: 100%; }
.timer-ctrl .btn { flex: 1; }
.stage-track { display: flex; gap: 6px; margin-top: 16px; width: 100%; overflow-x: auto; padding-bottom: 2px; }
.stage-chip {
  flex-shrink: 0; padding: 7px 11px; border-radius: 11px;
  background: rgba(43,27,18,.045); font-size: 11px; font-weight: 600; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 1px; transition: all .25s;
}
.stage-chip small { font-size: 9.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stage-chip.now { background: var(--accent-soft); color: var(--accent-deep); }
.stage-chip.done { background: rgba(76,122,87,.1); color: var(--green); }

.brew-done { text-align: center; padding: 8px 4px 0; }
.brew-done h3 { font-size: 20px; font-weight: 800; }
.brew-done .sum { display: flex; justify-content: center; gap: 18px; margin: 12px 0; font-size: 12px; color: var(--ink-2); }
.brew-done .sum b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.brew-done .tip { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; text-align: left; }

.know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.know-card { padding: 14px; text-align: left; transition: transform .18s var(--spring); }
.know-card:active { transform: scale(.96); }
.know-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.know-card h5 { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.know-card p { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 我的 / 护照 ---------- */
.member-card {
  position: relative; margin-top: 12px; padding: 20px;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(140deg, #3A2617 0%, #241610 55%, #180E08 100%);
  color: #F6F1E7;
  box-shadow: 0 16px 40px rgba(36,22,16,.35);
}
.member-card::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,109,.35), transparent 70%);
}
.member-top { display: flex; align-items: center; gap: 12px; position: relative; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, var(--crema), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(246,241,231,.25); }
.member-top h3 { font-size: 18px; font-weight: 800; }
.member-top .lvl { font-size: 11px; color: var(--crema); font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.member-points { margin-left: auto; text-align: right; }
.member-points b { font-size: 22px; font-weight: 800; color: var(--crema); font-variant-numeric: tabular-nums; }
.member-points span { display: block; font-size: 10.5px; color: #C9B8A4; }
.member-code { margin-top: 16px; background: rgba(246,241,231,.95); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.member-code .bars { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
.member-code .bars i { width: 2px; background: var(--espresso); border-radius: 1px; }
.member-code span { font-size: 11px; color: var(--ink-2); font-weight: 600; letter-spacing: .1em; }

.stamp-card { margin-top: 14px; padding: 18px 16px; }
.stamp-head { display: flex; align-items: baseline; justify-content: space-between; }
.stamp-head h3 { font-size: 16.5px; font-weight: 800; }
.stamp-head span { font-size: 12px; color: var(--ink-2); }
.stamp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.stamp-slot {
  aspect-ratio: 1; border-radius: 18px;
  border: 1.5px dashed rgba(43,27,18,.16);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.stamp-slot.filled { border: none; background: var(--accent-soft); }
.stamp-slot .bean-stamp { width: 70%; height: 70%; }
.stamp-slot.new .bean-stamp { animation: stamp-in .6s var(--spring) both; }
@keyframes stamp-in {
  0% { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  60% { transform: scale(.92) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.stamp-slot.gift { border: none; background: linear-gradient(140deg, var(--gold), #A9822F); color: #fff; }
.stamp-slot.gift svg { width: 55%; height: 55%; }
.stamp-foot { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stamp-foot b { color: var(--accent-deep); }
.stamp-foot .btn { height: 32px; padding: 0 14px; font-size: 12.5px; }

.caffeine-card { margin-top: 14px; padding: 16px; }
.caffeine-head { display: flex; justify-content: space-between; align-items: baseline; }
.caffeine-head h3 { font-size: 15px; font-weight: 800; }
.caffeine-head b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.caffeine-head b small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.caf-track { position: relative; height: 10px; border-radius: 5px; margin-top: 12px; background: linear-gradient(90deg, #7FA886 0%, #C9A24B 55%, #B4452F 100%); opacity: .9; }
.caf-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.5);
  transition: left .6s var(--spring);
}
.caf-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 7px; }
.caffeine-note { font-size: 11.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }

.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat-row { display: flex; margin-top: 14px; padding: 14px 0 4px; box-shadow: 0 -.5px 0 var(--line); }
.stat-row .stat { flex: 1; text-align: center; }
.stat-row .stat b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-row .stat span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.stat-row .stat + .stat { box-shadow: -.5px 0 0 var(--line); }

.history-card { margin-top: 14px; padding: 6px 16px; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.history-row + .history-row { box-shadow: 0 -.5px 0 var(--line); }
.h-code { width: 46px; height: 46px; border-radius: 13px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: var(--accent-deep); flex-shrink: 0; }
.history-row .h-info { flex: 1; min-width: 0; }
.history-row .h-info h5 { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row .h-info p { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.history-row .h-total { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-list { margin-top: 14px; padding: 4px 16px; }
.me-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; text-align: left; font-size: 14.5px; font-weight: 600; }
.me-row + .me-row { box-shadow: 0 -.5px 0 var(--line); }
.me-row .m-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.me-row .arrow { margin-left: auto; color: var(--ink-3); }
.me-version { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 18px; line-height: 1.6; }

/* ---------- 购物袋 FAB ---------- */
.cart-fab {
  position: absolute; right: 16px; bottom: 96px; z-index: 55;
  height: 50px; padding: 0 18px 0 16px; border-radius: 25px;
  background: var(--espresso); color: #F6F1E7;
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 10px 30px rgba(36,22,16,.4);
  transform: translateY(90px) scale(.8); opacity: 0;
  transition: transform .45s var(--spring), opacity .3s;
}
.cart-fab.show { transform: none; opacity: 1; }
.cart-fab:active { transform: scale(.94); }
.cart-fab-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cart-fab-info b { font-size: 11px; font-weight: 600; color: #C9B8A4; }
.cart-fab-info i { font-size: 15px; font-weight: 800; font-style: normal; font-variant-numeric: tabular-nums; }
.cart-badge {
  position: absolute; top: -5px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.cart-fab.bump { animation: bump .4s var(--spring); }
@keyframes bump { 0% { transform: scale(1);} 40% { transform: scale(1.12);} 100% { transform: scale(1);} }

/* ---------- Tab Bar ---------- */
.tabbar {
  position: absolute; left: 18px; right: 18px; bottom: 24px; z-index: 56;
  height: 64px; border-radius: 32px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 .5px 0 rgba(255,255,255,.65) inset, 0 10px 34px rgba(43,27,18,.16);
  border: .5px solid rgba(255,255,255,.55);
  display: flex; padding: 6px;
}
.tab {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); border-radius: 26px;
  transition: color .25s;
}
.tab svg { width: 23px; height: 23px; transition: transform .3s var(--spring); }
.tab span { font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.tab.active { color: var(--accent-deep); }
.tab.active svg { transform: translateY(-1px) scale(1.06); }
.tab:active svg { transform: scale(.88); }
.tab-glider {
  position: absolute; top: 6px; bottom: 6px; z-index: 1;
  border-radius: 26px;
  background: rgba(169,97,47,.12);
  transition: left .38s var(--spring), width .38s var(--spring);
}

/* ---------- 弹层 Sheet ---------- */
.sheet-root { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,17,10,.42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s;
  pointer-events: auto;
}
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92%;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 50px rgba(30,18,10,.25);
  transform: translateY(105%);
  transition: transform .5s var(--spring);
  pointer-events: auto;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sheet-root.open .sheet { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-grab { padding: 10px 0 6px; display: flex; justify-content: center; flex-shrink: 0; cursor: grab; touch-action: none; }
.sheet-grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(43,27,18,.18); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 20px 12px; flex-shrink: 0; cursor: grab; touch-action: none; }
.sheet-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.sheet-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(43,27,18,.07); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .16s var(--spring);
}
.sheet-close:active { transform: scale(.88); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { flex-shrink: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 -.5px 0 var(--line); }
.sheet.tall { height: 92%; }

/* 豆详情 */
.bean-hero { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(150deg, #3A2617, #1A0F09); color: #F6F1E7; padding: 20px; }
.bean-hero .b-origin { font-size: 11.5px; letter-spacing: .14em; color: var(--crema); font-weight: 700; }
.bean-hero h2 { font-size: 24px; font-weight: 800; margin-top: 5px; letter-spacing: -.01em; }
.bean-hero .b-region { font-size: 12.5px; color: #C9B8A4; margin-top: 4px; }
.bean-hero .b-art { position: absolute; right: 8px; top: 12px; width: 110px; height: 110px; opacity: .9; }
.sca-badge { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 12px; background: rgba(200,155,109,.18); border: .5px solid rgba(200,155,109,.4); padding: 5px 11px; border-radius: 999px; font-size: 11px; color: var(--crema); font-weight: 600; }
.sca-badge b { font-size: 16px; font-weight: 800; }
.roast-meter { margin-top: 16px; }
.roast-meter .rm-label { display: flex; justify-content: space-between; font-size: 11px; color: #C9B8A4; margin-bottom: 6px; }
.roast-meter .rm-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #C29A6B, #96683C, #5C3A22, #33200F); }
.roast-meter .rm-dot { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; border-radius: 50%; background: #F6F1E7; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: left .6s var(--spring); }
.bean-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.radar-wrap { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 16px; }
.radar-wrap svg { flex-shrink: 0; }
.radar-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.radar-legend .rl-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.radar-legend .rl-row b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.radar-legend .rl-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.radar-legend .rl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width .7s var(--ease-out); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin-top: 14px; border: .5px solid var(--line); }
.info-cell { background: var(--card); padding: 12px 14px; }
.info-cell span { font-size: 10.5px; color: var(--ink-3); display: block; }
.info-cell b { font-size: 13px; font-weight: 700; margin-top: 3px; display: block; line-height: 1.3; }
.brew-rec { margin-top: 14px; padding: 16px; }
.brew-rec h4 { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.brew-rec .br-grid { display: flex; gap: 8px; margin-top: 12px; }
.brew-rec .br-item { flex: 1; background: var(--paper); border-radius: 13px; padding: 10px 6px; text-align: center; }
.brew-rec .br-item b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; }
.brew-rec .br-item span { font-size: 10px; color: var(--ink-3); display: block; margin-top: 2px; }
.brew-rec .br-note { font-size: 11.5px; color: var(--ink-2); margin-top: 10px; }
.barista-note { margin-top: 14px; padding: 16px; background: linear-gradient(140deg, #FFF9EF, #F6EBD9); }
.barista-note .bn-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--accent-deep); }
.barista-note .bn-head .bn-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.barista-note p { font-size: 13px; line-height: 1.65; color: var(--ink-2); margin-top: 9px; }
.bean-foot { display: flex; align-items: center; gap: 14px; }
.bean-foot .bf-price { line-height: 1.1; }
.bean-foot .bf-price b { font-size: 24px; font-weight: 800; color: var(--accent); }
.bean-foot .bf-price span { display: block; font-size: 10.5px; color: var(--ink-3); }
.bean-foot .btn { flex: 1; }

/* 定制弹层 */
.custom-hero { display: flex; gap: 14px; align-items: center; padding: 4px 0 14px; }
.custom-hero .ch-art { width: 88px; height: 88px; border-radius: 20px; background: linear-gradient(160deg, #F6EFE2, #EDE2CE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.custom-hero h2 { font-size: 20px; font-weight: 800; }
.custom-hero .en { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.custom-hero .desc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.opt-group { margin-top: 16px; }
.opt-group .og-name { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; display: flex; justify-content: space-between; }
.opt-group .og-name small { font-weight: 500; color: var(--ink-3); }
.custom-foot { display: flex; align-items: center; gap: 14px; }
.custom-foot .cf-price { line-height: 1.05; }
.custom-foot .cf-price b { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.custom-foot .cf-price span { display: block; font-size: 10px; color: var(--ink-3); }
.custom-foot .btn { flex: 1; }
.caff-line { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }
.caff-line .caff-dots { display: flex; gap: 3px; }
.caff-line .caff-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-2); }
.caff-line .caff-dots i.on { background: var(--accent); }

/* 购物袋 / 结算 */
.cart-row { display: flex; gap: 12px; padding: 13px 0; align-items: center; }
.cart-row + .cart-row { box-shadow: 0 -.5px 0 var(--line); }
.cart-row .cr-art { width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(160deg, #F6EFE2, #EDE2CE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-row .cr-info { flex: 1; min-width: 0; }
.cart-row h5 { font-size: 14.5px; font-weight: 700; }
.cart-row .cr-opts { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.cart-row .cr-price { font-size: 14px; font-weight: 800; color: var(--accent); margin-top: 4px; font-variant-numeric: tabular-nums; }
.cart-empty { text-align: center; padding: 40px 0 30px; }
.cart-empty .ce-art { width: 110px; height: 110px; margin: 0 auto 14px; opacity: .8; }
.cart-empty h4 { font-size: 16px; font-weight: 700; }
.cart-empty p { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 18px; }
.cart-summary { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); padding: 12px 0 0; }
.cart-summary.total { font-size: 15px; font-weight: 800; color: var(--ink); padding-top: 8px; }
.cart-summary.total b { color: var(--accent); font-size: 19px; font-variant-numeric: tabular-nums; }
.checkout-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.checkout-row + .checkout-row { box-shadow: 0 -.5px 0 var(--line); }
.checkout-row .co-lbl { font-size: 14.5px; font-weight: 700; }
.checkout-row .co-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.time-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.remark-input {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  background: rgba(43,27,18,.045); border-radius: 14px;
  font-size: 13.5px; resize: none; height: 64px; line-height: 1.5;
}
.pay-row { display: flex; align-items: center; gap: 10px; }
.pay-icon { width: 34px; height: 34px; border-radius: 9px; background: #2BA245; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkout-foot { display: flex; align-items: center; gap: 14px; }
.checkout-foot .cf-total { line-height: 1.05; }
.checkout-foot .cf-total b { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.checkout-foot .cf-total span { display: block; font-size: 10px; color: var(--ink-3); }
.checkout-foot .btn { flex: 1; }

/* 订单状态 */
.order-hero { text-align: center; padding: 10px 0 4px; }
.order-code { font-size: 52px; font-weight: 800; letter-spacing: .04em; color: var(--espresso); font-variant-numeric: tabular-nums; line-height: 1; }
.order-hero .oc-lbl { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.order-eta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; }
.order-steps { display: flex; margin: 22px 0 6px; }
.o-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; }
.o-step::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--paper-2); }
.o-step:first-child::before { display: none; }
.o-step.done::before, .o-step.now::before { background: var(--accent); }
.o-step .os-dot {
  width: 27px; height: 27px; border-radius: 50%; z-index: 1;
  background: var(--paper-2); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  transition: all .3s;
}
.o-step.done .os-dot { background: var(--accent); color: #fff; }
.o-step.now .os-dot { background: var(--espresso); color: var(--crema); box-shadow: 0 0 0 5px rgba(169,97,47,.15); animation: pulse-step 1.8s infinite; }
@keyframes pulse-step { 0%,100% { box-shadow: 0 0 0 4px rgba(169,97,47,.18);} 50% { box-shadow: 0 0 0 8px rgba(169,97,47,.06);} }
.o-step span { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.o-step.done span, .o-step.now span { color: var(--ink); }
.order-items { margin-top: 16px; padding: 4px 16px; }
.order-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 14px; line-height: 1.5; }

/* 门店 / 知识 / 动作面板 */
.store-opt { display: flex; gap: 12px; padding: 14px; border-radius: 18px; border: 1.5px solid transparent; background: var(--card); box-shadow: var(--shadow-card); margin-bottom: 10px; width: 100%; text-align: left; transition: all .2s; }
.store-opt.on { border-color: var(--accent); background: #FFF9F0; }
.store-opt .so-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--espresso); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-opt h5 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.store-opt p { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }
.store-opt .so-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.know-body p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 12px; }
.know-body p:first-child::first-letter { font-weight: 700; color: var(--accent-deep); }
.action-sheet { padding: 0 16px calc(14px + env(safe-area-inset-bottom)); }
.action-btn { width: 100%; height: 54px; border-radius: 16px; background: var(--card); font-size: 16px; font-weight: 600; margin-bottom: 8px; box-shadow: var(--shadow-card); transition: transform .16s var(--spring); }
.action-btn:active { transform: scale(.97); }
.action-btn.danger { color: var(--red); }
.action-btn.cancel { background: var(--espresso); color: #F6F1E7; font-weight: 700; }

/* 豆单列表 */
.bean-row { display: flex; gap: 12px; padding: 13px; align-items: center; width: 100%; text-align: left; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-card); margin-bottom: 10px; transition: transform .18s var(--spring); border: .5px solid rgba(255,255,255,.7); }
.bean-row:active { transform: scale(.97); }
.bean-row .br-bean { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #F6EFE2, #EDE2CE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bean-row .br-info { flex: 1; min-width: 0; }
.bean-row h5 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bean-row .br-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.bean-row .br-notes { font-size: 11px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bean-row .br-price { font-size: 16px; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.bean-row .br-price small { font-size: 10px; font-weight: 600; }
.roast-dots { display: inline-flex; gap: 2.5px; align-items: center; }
.roast-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(43,27,18,.14); }
.roast-dots i.on { background: var(--accent-deep); }

/* ---------- 搜索 ---------- */
.search-root { position: absolute; inset: 0; z-index: 85; pointer-events: none; }
.search-panel {
  position: absolute; inset: 0; background: var(--paper);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: auto; display: flex; flex-direction: column;
}
.search-root.open .search-panel { opacity: 1; transform: none; }
.search-top { display: flex; gap: 10px; padding: 56px 18px 12px; align-items: center; }
.search-input-wrap { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border-radius: 14px; background: rgba(43,27,18,.055); }
.search-input-wrap input { flex: 1; font-size: 15px; }
.search-input-wrap input::placeholder { color: var(--ink-3); }
.search-cancel { font-size: 15px; color: var(--accent); font-weight: 600; }
.search-results { flex: 1; overflow-y: auto; padding: 4px 18px 30px; }
.search-hint { font-size: 12px; color: var(--ink-3); padding: 10px 2px; }
.search-hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.search-hot button { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ---------- Toast HUD ---------- */
.toast-root { position: absolute; top: 56px; left: 0; right: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(30,19,12,.88); color: #F6F1E7;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(30,18,10,.3);
  animation: toast-in .4s var(--spring) both;
  max-width: 86%;
}
.toast.out { animation: toast-out .3s ease both; }
.toast svg { color: var(--crema); flex-shrink: 0; }
.toast.green svg { color: #6FBF7F; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* 飞入购物袋 */
.fly-layer { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.fly-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(169,97,47,.5); }

/* ---------- SVG 场景动效 ---------- */
.steam path { animation: steam-rise 2.6s ease-in-out infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.7s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(4px); }
  35% { opacity: .65; }
  100% { opacity: 0; transform: translateY(-7px); }
}
.pour-stream { stroke-dasharray: 5 4; animation: pour-flow .5s linear infinite; }
@keyframes pour-flow { to { stroke-dashoffset: -9; } }
.drip-drop { animation: drip-fall 1.1s ease-in infinite; opacity: 0; }
.drip-drop.d2 { animation-delay: .55s; }
@keyframes drip-fall { 0% { opacity: 0; transform: translateY(0);} 15% { opacity: 1;} 85% { opacity: 1;} 100% { opacity: 0; transform: translateY(16px);} }
.kettle-bob { animation: kettle-bob 3.4s ease-in-out infinite; transform-origin: 150px 60px; }
@keyframes kettle-bob { 0%,100% { transform: rotate(0deg);} 50% { transform: rotate(-2.4deg);} }

/* ---------- 响应式：真机全屏 ---------- */
@media (max-width: 480px) {
  .stage { gap: 0; }
  .stage-bg, .stage-caption { display: none; }
  .device {
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0; box-shadow: none;
  }
  .statusbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .island { top: max(11px, env(safe-area-inset-top)); }
  .home-indicator { display: none; }
  .tabbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cart-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .view-scroll { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}