/* 茶屿 TEA ISLE — iOS 26 液态玻璃设计系统 */

:root {
  --bg: #F6F0E7;
  --bg-elev: #FBF7F1;
  --ink: #33261A;
  --ink2: #7A6A58;
  --ink3: #AB9C8A;
  --accent: #8C5A33;
  --accent2: #B07B4F;
  --accent-deep: #4A2F18;
  --accent-soft: #F0E2D0;
  --btn-ink: #FFF8EE;
  --card: rgba(255, 255, 255, .62);
  --card-border: rgba(255, 255, 255, .85);
  --glass: rgba(252, 249, 244, .72);
  --glass-strong: rgba(252, 249, 244, .9);
  --sheet-bg: rgba(252, 249, 244, .95);
  --hairline: rgba(80, 55, 30, .09);
  --seg-bg: rgba(120, 90, 60, .1);
  --seg-pill: #FFFFFF;
  --chip-bg: rgba(120, 90, 60, .08);
  --danger: #FF3B30;
  --green: #07C160;
  --ios-green: #34C759;
  --matcha: #7A9B6D;
  --matcha-soft: #E4EBD9;
  --taro: #9B7BC0;
  --taro-soft: #EBE2F4;
  --berry: #E88A9C;
  --berry-soft: #F9E3E8;
  --amber: #C98A3D;
  --amber-soft: #F5E7CE;
  --shadow: 0 10px 30px rgba(90, 60, 30, .09);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --r-lg: 24px;
  --r-md: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110C;
    --bg-elev: #211913;
    --ink: #F3EAE0;
    --ink2: #C0B09D;
    --ink3: #8A7A68;
    --accent: #C99B6F;
    --accent2: #D9B088;
    --accent-deep: #E8D3B8;
    --accent-soft: #3A2C1F;
    --btn-ink: #241708;
    --card: rgba(46, 36, 27, .6);
    --card-border: rgba(255, 255, 255, .09);
    --glass: rgba(32, 25, 19, .72);
    --glass-strong: rgba(36, 28, 21, .92);
    --sheet-bg: rgba(30, 23, 17, .97);
    --hairline: rgba(255, 240, 220, .09);
    --seg-bg: rgba(255, 240, 220, .09);
    --seg-pill: rgba(255, 240, 220, .18);
    --chip-bg: rgba(255, 240, 220, .08);
    --matcha-soft: #2A3324;
    --taro-soft: #322840;
    --berry-soft: #3D2830;
    --amber-soft: #3A2E1C;
    --shadow: 0 10px 30px rgba(0, 0, 0, .38);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  background: #EFE6D8;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: dark) { body { background: #0E0A07; } }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; background: none; border: none; outline: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg { display: block; }

/* ---------- 环境氛围（桌面） ---------- */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-a { width: 520px; height: 520px; left: -120px; top: -140px; background: #F2D9BE; animation: drift 26s ease-in-out infinite alternate; }
.blob-b { width: 460px; height: 460px; right: -100px; bottom: -120px; background: #DCE4CC; animation: drift 32s ease-in-out infinite alternate-reverse; }
.blob-c { width: 380px; height: 380px; right: 14%; top: -100px; background: #F3D7DC; animation: drift 38s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { .blob { opacity: .16; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

.stage { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.stage-caption { display: flex; align-items: baseline; gap: 12px; color: #8A7358; user-select: none; }
.cap-brand { font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.cap-slogan { font-size: 12.5px; letter-spacing: .2em; opacity: .75; }
@media (prefers-color-scheme: dark) { .stage-caption { color: #A08B72; } }

/* ---------- 手机壳 ---------- */
.phone {
  position: relative; width: 393px; height: 852px; flex: none;
  background: var(--bg); border-radius: 54px; overflow: hidden;
  box-shadow: 0 0 0 10px #1B1B1E, 0 0 0 12px #48484C, 0 34px 90px rgba(60, 35, 15, .38);
  transform-origin: center center;
}
.phone::before, .phone::after { content: ""; position: absolute; background: #2A2A2E; border-radius: 3px; z-index: -1; }
.phone::before { left: -13px; top: 190px; width: 4px; height: 88px; box-shadow: 0 120px 0 #2A2A2E; }
.phone::after { right: -13px; top: 250px; width: 4px; height: 130px; }

/* ---------- 状态栏 / 灵动岛 ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 26px 0 32px; color: var(--ink); pointer-events: none;
}
.sb-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; width: 54px; }
.sb-icons { display: flex; align-items: center; gap: 7px; width: 78px; justify-content: flex-end; }
.island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  height: 36px; width: 122px; border-radius: 20px; background: #0B0B0C;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; overflow: hidden; pointer-events: auto; color: #fff;
  transition: width .55s var(--spring), background .35s;
}
.island-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; display: none; animation: pulse 1.6s ease-in-out infinite; }
.island-text { font-size: 12px; font-weight: 600; white-space: nowrap; display: none; }
.island-progress { width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; display: none; flex: none; }
.island-progress i { display: block; height: 100%; width: 0%; background: var(--amber); border-radius: 2px; transition: width .8s var(--spring); }
.island.live { width: 252px; }
.island.live .island-dot, .island.live .island-text, .island.live .island-progress { display: block; }
.island.ready { background: #123B22; }
.island.ready .island-dot { background: var(--ios-green); }
.island.ready .island-progress i { background: var(--ios-green); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }

/* ---------- 微信胶囊 ---------- */
.capsule {
  position: absolute; top: 61px; right: 12px; z-index: 75;
  width: 87px; height: 32px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--hairline); display: flex; align-items: center;
  box-shadow: 0 2px 10px rgba(80, 50, 25, .08);
}
.capsule-btn { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.capsule-btn:active { opacity: .5; }
.capsule-divider { width: 1px; height: 18px; background: var(--hairline); }

/* ---------- 页面框架 ---------- */
.pages { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(14px); transition: opacity .3s ease, transform .38s var(--spring); }
.page.active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.navbar {
  position: absolute; top: 54px; left: 0; right: 0; height: 52px; z-index: 20;
  display: flex; align-items: center; padding: 0 16px;
}
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: 1px solid var(--hairline); opacity: 0; transition: opacity .25s;
}
.navbar.scrolled::before, .navbar.solid::before { opacity: 1; }
.nav-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 700; opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.navbar.scrolled .nav-title, .nav-title.always { opacity: 1; }
.nav-link { margin-left: auto; font-size: 14px; color: var(--ink2); padding: 6px 4px; }
#page-cart .navbar { padding-right: 112px; }
.nav-link:active { opacity: .5; }
.loc-pill {
  display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--ink);
  transition: transform .15s;
}
.loc-pill:active { transform: scale(.95); }
.page-scroll {
  position: absolute; inset: 54px 0 0 0; overflow-y: auto; overflow-x: hidden;
  padding: 52px 16px 128px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-scroll::-webkit-scrollbar { display: none; }

/* ---------- 标签栏 ---------- */
.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); height: 64px; z-index: 60;
  display: flex; border-radius: 32px;
  background: var(--glass-strong); backdrop-filter: blur(26px) saturate(1.9); -webkit-backdrop-filter: blur(26px) saturate(1.9);
  border: 1px solid var(--card-border); box-shadow: 0 12px 32px rgba(70, 45, 20, .16);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink3); position: relative; transition: color .2s; }
.tab.active { color: var(--accent); }
.tab-ico { width: 25px; height: 25px; }
.tab-ico svg { width: 100%; height: 100%; }
.tab-label { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.tab:active .tab-ico { transform: scale(.88); }
.tab-ico { transition: transform .18s var(--spring); }
.tab-badge {
  position: absolute; top: 5px; left: calc(50% + 4px); min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--bg-elev);
}
.tab-badge.bump { animation: bump .45s var(--spring); }
.tab-badge[hidden] { display: none; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.home-indicator { position: absolute; bottom: calc(7px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .8; z-index: 65; pointer-events: none; }

/* ---------- 通用组件 ---------- */
.glass-card {
  background: var(--card); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--card-border); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.pressable { transition: transform .16s var(--spring); }
.pressable:active { transform: scale(.97); }
.section-title { font-size: 19px; font-weight: 800; margin: 24px 2px 12px; display: flex; align-items: baseline; justify-content: space-between; }
.section-more { font-size: 12.5px; font-weight: 500; color: var(--ink3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; font-size: 15px; font-weight: 600; padding: 12px 22px;
  transition: transform .15s var(--spring), filter .2s; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: var(--btn-ink); box-shadow: 0 6px 16px rgba(140, 90, 51, .3); }
.btn-ghost { background: var(--chip-bg); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(7, 193, 96, .28); }
.btn-danger { background: rgba(255, 59, 48, .12); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.price { color: var(--accent); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.price .yen { font-size: 12px; font-weight: 700; margin-right: 1px; }
.price .dec { font-size: 12px; font-weight: 700; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2.5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.green { background: var(--matcha-soft); color: var(--matcha); }
.tag.berry { background: var(--berry-soft); color: #D96A80; }
.tag.taro { background: var(--taro-soft); color: var(--taro); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }

.seg { display: flex; position: relative; background: var(--seg-bg); border-radius: 12px; padding: 3px; }
.seg-pill { position: absolute; top: 3px; bottom: 3px; border-radius: 9px; background: var(--seg-pill); box-shadow: 0 2px 8px rgba(70, 45, 20, .14); transition: left .32s var(--spring), width .32s var(--spring); pointer-events: none; }
.seg button { flex: 1; height: 32px; font-size: 13.5px; font-weight: 500; color: var(--ink2); position: relative; z-index: 1; border-radius: 9px; transition: color .2s; white-space: nowrap; }
.seg button.active { color: var(--ink); font-weight: 700; }

.chip {
  padding: 8px 14px; border-radius: 12px; background: var(--chip-bg); font-size: 13.5px;
  color: var(--ink2); border: 1px solid transparent; transition: all .18s var(--spring); user-select: none;
}
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(140, 90, 51, .35); font-weight: 700; }
.chip.disabled { opacity: .32; pointer-events: none; }
.chip:active { transform: scale(.94); }

.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 28px; height: 28px; border-radius: 9px; background: var(--chip-bg); color: var(--accent); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.stepper button:active { transform: scale(.88); }
.stepper button[disabled] { opacity: .3; pointer-events: none; }
.stepper-num { min-width: 30px; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--seg-bg); position: relative; transition: background .25s; flex: none; }
.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: left .25s var(--spring); }
.switch.on { background: var(--ios-green); }
.switch.on::after { left: 22px; }

/* ---------- 首页 ---------- */
.large-head { padding: 10px 2px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.greet-title { font-size: 30px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.greet-sub { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.points-chip { flex: none; display: flex; align-items: center; gap: 5px; margin-top: 6px; padding: 7px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; font-weight: 700; }

.hero-card { margin-top: 16px; padding: 20px; display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden; background: linear-gradient(135deg, #F7E8CF 0%, #EFD6AE 55%, #E4BE8C 100%); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: 0 14px 34px rgba(160, 110, 50, .22); }
@media (prefers-color-scheme: dark) { .hero-card { background: linear-gradient(135deg, #4A3520 0%, #3E2C18 60%, #33220F 100%); border-color: rgba(255,255,255,.1); } }
.hero-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; font-size: 11px; font-weight: 700; color: #8C5A33; background: rgba(255,255,255,.65); padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
@media (prefers-color-scheme: dark) { .hero-tag { background: rgba(255,240,220,.14); color: #E8C9A0; } }
.hero-name { font-size: 23px; font-weight: 800; margin-top: 10px; color: #4A2F18; }
.hero-desc { font-size: 12.5px; color: #7A5A38; margin-top: 6px; line-height: 1.5; }
@media (prefers-color-scheme: dark) { .hero-name { color: #F3E3C8; } .hero-desc { color: #C9AE8A; } }
.hero-price-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hero-price-row .price { color: #8C5A33; }
@media (prefers-color-scheme: dark) { .hero-price-row .price { color: #E8C9A0; } }
.hero-half { font-size: 10.5px; font-weight: 700; color: #B05A2A; background: rgba(255,255,255,.6); padding: 3px 8px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .hero-half { background: rgba(255,240,220,.12); color: #F0A878; } }
.hero-cta { margin-top: 14px; }
.hero-cup { width: 132px; flex: none; position: relative; z-index: 1; }
.hero-cup svg { width: 100%; height: auto; animation: cupFloat 4.5s ease-in-out infinite; }
@keyframes cupFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-1.4deg); } }

.mood-card { margin-top: 16px; padding: 18px; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 16.5px; font-weight: 800; }
.card-hint { font-size: 11.5px; color: var(--ink3); }
.mood-row { display: flex; gap: 8px; }
.mood-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; border-radius: 16px; background: var(--chip-bg); transition: all .2s var(--spring); }
.mood-btn:active { transform: scale(.92); }
.mood-btn.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgba(140,90,51,.4); }
.mood-emoji { font-size: 23px; line-height: 1; }
.mood-label { font-size: 11px; font-weight: 600; color: var(--ink2); }
.mood-result { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 18px; background: var(--chip-bg); animation: riseIn .45s var(--spring); }
.mood-cup { width: 54px; flex: none; }
.mood-cup svg { width: 100%; height: auto; }
.mood-info { flex: 1; min-width: 0; }
.mood-name { font-size: 14.5px; font-weight: 800; }
.mood-reason { font-size: 11.5px; color: var(--ink2); margin-top: 3px; line-height: 1.45; }
.mood-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fortune-card { margin-top: 16px; height: 172px; perspective: 900px; }
.fortune-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.35, .1, .2, 1); }
.fortune-card.flipped .fortune-inner { transform: rotateY(180deg); }
.fortune-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); overflow: hidden; }
.fortune-front { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: linear-gradient(135deg, #EFE6F6 0%, #E2D3EE 60%, #D3BEE6 100%); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .fortune-front { background: linear-gradient(135deg, #322840 0%, #2A2036 100%); border-color: rgba(255,255,255,.1); } }
.fortune-back { transform: rotateY(180deg); padding: 16px 20px; background: var(--glass-strong); backdrop-filter: blur(20px); border: 1px solid var(--card-border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fortune-tube { width: 74px; flex: none; }
.fortune-tube svg { width: 100%; height: auto; }
.fortune-title { font-size: 17px; font-weight: 800; color: #5C4370; }
@media (prefers-color-scheme: dark) { .fortune-title { color: #D8C4EC; } }
.fortune-sub { font-size: 12px; color: #8A7398; margin-top: 5px; line-height: 1.5; }
@media (prefers-color-scheme: dark) { .fortune-sub { color: #A893BC; } }
.fortune-draw { margin-top: 12px; align-self: flex-start; background: #8E6FB8; color: #fff; box-shadow: 0 6px 14px rgba(142, 111, 184, .35); }
.fortune-top { display: flex; align-items: center; justify-content: space-between; }
.fortune-level { font-size: 15px; font-weight: 800; color: var(--taro); }
.fortune-yiji { font-size: 12px; color: var(--ink2); margin-top: 7px; }
.fortune-yiji b { color: var(--ink); font-weight: 700; }
.fortune-verse { font-size: 12px; color: var(--ink3); margin-top: 6px; font-style: italic; }
.fortune-drink { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.fortune-drink-cup { width: 34px; }
.fortune-drink-cup svg { width: 100%; height: auto; }
.fortune-drink-name { font-size: 13px; font-weight: 700; flex: 1; }
.fortune-again { font-size: 11.5px; color: var(--ink3); padding: 4px; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.mini-card { width: 142px; flex: none; padding: 14px 12px 12px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; }
.mini-cup { width: 84px; }
.mini-cup svg { width: 100%; height: auto; }
.mini-name { font-size: 13.5px; font-weight: 700; margin-top: 8px; text-align: center; }
.mini-sub { font-size: 10.5px; color: var(--ink3); margin-top: 2px; }
.mini-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 9px; }
.mini-bottom .price { font-size: 16px; }
.mini-add { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--btn-ink); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.mini-add:active { transform: scale(.85); }

.passport-card { margin-top: 4px; padding: 18px; }
.stamp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.6px dashed var(--ink3); display: flex; align-items: center; justify-content: center; opacity: .55; }
.stamp.stamped { border: none; opacity: 1; }
.stamp.stamped svg { width: 82%; height: 82%; transform: rotate(-12deg); }
.stamp.just-stamped svg { animation: stampIn .55s var(--spring); }
@keyframes stampIn { 0% { transform: scale(2.1) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
.passport-progress { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12.5px; color: var(--ink2); }
.passport-progress b { color: var(--accent); }

.store-card { margin-top: 16px; padding: 16px 18px; }
.store-line { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.store-name { font-size: 15px; font-weight: 800; }
.store-dist { font-size: 11.5px; color: var(--ink3); }
.store-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.store-meta span { display: flex; align-items: center; gap: 4px; }
.store-wait { color: var(--matcha); font-weight: 700; }

.banner-card { margin-top: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--matcha-soft), var(--card)); }
.banner-cup { width: 62px; flex: none; }
.banner-cup svg { width: 100%; height: auto; }
.banner-info { flex: 1; min-width: 0; }
.banner-title { font-size: 15.5px; font-weight: 800; }
.banner-sub { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.banner-arrow { color: var(--ink3); flex: none; }
.home-foot { text-align: center; margin-top: 30px; font-size: 11px; color: var(--ink3); letter-spacing: .12em; line-height: 2; }

/* ---------- 点单页 ---------- */
.menu-head { position: absolute; top: 106px; left: 0; right: 0; z-index: 15; padding: 6px 16px 10px; background: var(--bg); }
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 13px; background: var(--chip-bg); color: var(--ink3); }
.search-box input { flex: 1; font-size: 14px; color: var(--ink); height: 100%; }
.search-box input::placeholder { color: var(--ink3); }
.mode-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mode-row .seg { width: 158px; flex: none; }
.store-mini { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink2); justify-content: flex-end; }
.store-mini b { color: var(--ink); font-weight: 700; }
.menu-body { position: absolute; top: 208px; left: 0; right: 0; bottom: 0; display: flex; }
.cat-rail { width: 88px; flex: none; overflow-y: auto; padding: 6px 0 120px; scrollbar-width: none; background: var(--bg); }
.cat-rail::-webkit-scrollbar { display: none; }
.rail-item { position: relative; width: 100%; padding: 15px 8px 15px 14px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink2); line-height: 1.35; transition: color .2s; }
.rail-item .rail-sub { display: block; font-size: 10px; font-weight: 500; color: var(--ink3); margin-top: 2px; }
.rail-item.active { color: var(--accent); font-weight: 800; background: var(--bg-elev); border-radius: 0 14px 14px 0; }
.rail-item.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3.5px; height: 22px; border-radius: 2px; background: var(--accent); }
.menu-list { flex: 1; overflow-y: auto; padding: 6px 14px 130px 12px; scrollbar-width: none; overscroll-behavior: contain; background: var(--bg-elev); border-radius: 18px 0 0 0; }
.menu-list::-webkit-scrollbar { display: none; }
.sec-title { font-size: 13px; font-weight: 800; color: var(--ink2); padding: 12px 2px 8px; letter-spacing: .03em; }
.drink-row { display: flex; gap: 12px; padding: 12px 10px; border-radius: 20px; transition: background .2s; position: relative; }
.drink-row:active { background: var(--chip-bg); }
.row-cup { width: 76px; flex: none; align-self: center; }
.row-cup svg { width: 100%; height: auto; }
.row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 15px; font-weight: 800; }
.row-desc { font-size: 11.5px; color: var(--ink2); margin-top: 3px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.row-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.add-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--btn-ink); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(140, 90, 51, .3); transition: transform .15s; }
.add-btn:active { transform: scale(.85); }
.search-empty { text-align: center; padding: 60px 20px; color: var(--ink3); font-size: 13px; }

/* ---------- 购物袋 ---------- */
.cart-list { display: flex; flex-direction: column; gap: 8px; }
.cart-row-wrap { position: relative; border-radius: 20px; overflow: hidden; }
.cart-row { display: flex; gap: 10px; padding: 10px; position: relative; background: var(--bg-elev); border: 1px solid var(--card-border); border-radius: 20px; transition: transform .28s var(--spring); touch-action: pan-y; }
.cart-row .row-cup { width: 52px; }
.cart-row .row-name { font-size: 14.5px; }
.row-spec { font-size: 11px; color: var(--ink3); margin-top: 3px; line-height: 1.45; }
.swipe-del { position: absolute; right: 0; top: 0; bottom: 0; width: 84px; background: var(--danger); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 0 20px 20px 0; }
.cart-section { margin-top: 12px; padding: 2px 16px; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); min-height: 44px; }
.cart-line:last-child { border-bottom: none; }
.cart-line-label { font-size: 14px; font-weight: 600; width: 64px; flex: none; }
.cart-line-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; color: var(--ink2); }
.cart-line-body .seg { width: 150px; }
.coupon-val { color: var(--danger); font-weight: 700; font-size: 13px; }
.remark-input { flex: 1; text-align: right; font-size: 13px; color: var(--ink); min-width: 0; }
.remark-input::placeholder { color: var(--ink3); }
.bill-card { margin-top: 12px; padding: 10px 16px; }
.bill-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 13px; color: var(--ink2); }
.bill-row .val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.bill-row .val.off { color: var(--danger); }
.bill-row.total { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--hairline); font-size: 14px; font-weight: 700; color: var(--ink); }
.checkout-bar {
  position: static; margin: 12px 0 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  border-radius: 26px; background: var(--glass-strong); backdrop-filter: blur(26px) saturate(1.9); -webkit-backdrop-filter: blur(26px) saturate(1.9);
  border: 1px solid var(--card-border); box-shadow: 0 12px 30px rgba(70, 45, 20, .18);
}
#cartScroll { padding-bottom: 110px; }
.checkout-total { flex: 1; min-width: 0; }
.checkout-total .price { font-size: 21px; }
.checkout-save { font-size: 11px; color: var(--danger); font-weight: 600; margin-top: 1px; }
.checkout-btn { padding: 13px 26px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 70px 20px 30px; text-align: center; }
.empty-cup { width: 120px; opacity: .9; }
.empty-cup svg { width: 100%; height: auto; }
.empty-title { font-size: 16px; font-weight: 800; margin-top: 18px; }
.empty-sub { font-size: 12.5px; color: var(--ink3); margin-top: 6px; line-height: 1.6; }
.empty-state .btn { margin-top: 20px; }

/* ---------- 我的 ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 14px 2px 6px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 6px 16px rgba(140, 90, 51, .25); }
.avatar svg { width: 100%; height: 100%; }
.p-name { font-size: 21px; font-weight: 800; }
.p-level { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 3.5px 10px; border-radius: 999px; }
.assets-row { display: flex; margin-top: 16px; padding: 16px 0; }
.asset { flex: 1; text-align: center; position: relative; }
.asset + .asset::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--hairline); }
.asset-num { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.asset-label { font-size: 11.5px; color: var(--ink3); margin-top: 3px; }
.order-row { padding: 14px 16px; margin-bottom: 10px; }
.order-top { display: flex; align-items: center; justify-content: space-between; }
.order-store { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.status-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-chip.making { background: var(--amber-soft); color: var(--amber); }
.status-chip.ready { background: var(--matcha-soft); color: var(--matcha); }
.status-chip.done { background: var(--chip-bg); color: var(--ink3); }
.order-items { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.order-cups { display: flex; }
.order-cups .oc { width: 40px; }
.order-cups .oc + .oc { margin-left: -12px; }
.order-cups svg { width: 100%; height: auto; }
.order-summary { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.order-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.order-time { font-size: 11px; color: var(--ink3); }
.order-total { font-size: 14px; font-weight: 800; }
.reorder-btn { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }
.prefs-card { padding: 16px 18px; margin-bottom: 10px; }
.pref-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.pref-chip { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.prefs-actions { display: flex; gap: 10px; margin-top: 14px; }
.fav-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.fav-row::-webkit-scrollbar { display: none; }
.fav-item { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 12px 8px; }
.fav-cup { width: 56px; }
.fav-cup svg { width: 100%; height: auto; }
.fav-name { font-size: 11.5px; font-weight: 700; margin-top: 7px; text-align: center; line-height: 1.35; }
.settings-list { padding: 4px 16px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); width: 100%; text-align: left; }
.set-row:last-child { border-bottom: none; }
.set-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.set-label { flex: 1; font-size: 14.5px; font-weight: 600; }
.set-val { font-size: 12.5px; color: var(--ink3); }
.set-chev { color: var(--ink3); }
.profile-foot { text-align: center; margin-top: 26px; font-size: 11px; color: var(--ink3); letter-spacing: .1em; }

/* ---------- 弹层 ---------- */
.sheet-overlay { position: absolute; inset: 0; z-index: 80; background: rgba(30, 20, 10, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.sheet-overlay.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 88%;
  background: var(--sheet-bg); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 28px 28px 0 0; box-shadow: 0 -14px 44px rgba(40, 25, 10, .22);
  transform: translateY(105%); transition: transform .52s var(--spring);
  display: flex; flex-direction: column;
}
.sheet.show { transform: translateY(0); }
.sheet.tall { max-height: 93%; }
.sheet-grip { height: 26px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; flex: none; }
.grip-bar { width: 38px; height: 5px; border-radius: 3px; background: var(--ink3); opacity: .5; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px calc(26px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; flex: 1; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-title { font-size: 18px; font-weight: 800; text-align: center; padding: 4px 0 14px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--chip-bg); color: var(--ink2); display: flex; align-items: center; justify-content: center; z-index: 5; }

/* 商品详情 */
.detail-cup-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 2px; }
.detail-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 210px; height: 210px; border-radius: 50%; filter: blur(34px); opacity: .5; }
.detail-cup { width: 168px; position: relative; z-index: 1; }
.detail-cup svg { width: 100%; height: auto; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 6px; }
.detail-name { font-size: 21px; font-weight: 800; }
.detail-en { font-size: 11.5px; color: var(--ink3); margin-top: 3px; letter-spacing: .04em; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; color: var(--ink3); flex: none; transition: transform .18s var(--spring); }
.fav-btn.on { color: var(--berry); }
.fav-btn:active { transform: scale(.85); }
.detail-desc { font-size: 13px; color: var(--ink2); margin-top: 8px; line-height: 1.55; }
.detail-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.meta-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink2); background: var(--chip-bg); padding: 5px 10px; border-radius: 999px; }
.grade-dot { width: 7px; height: 7px; border-radius: 50%; }
.opt-group { margin-top: 19px; }
.opt-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.opt-title .opt-sub { font-size: 11px; font-weight: 500; color: var(--ink3); }
.opt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-chips .chip { padding: 8px 12px; font-size: 13px; }
.detail-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 18px; font-size: 11.5px; color: var(--ink3); line-height: 1.55; background: var(--chip-bg); padding: 10px 13px; border-radius: 13px; }
.detail-foot {
  position: sticky; bottom: 0; margin: 20px -20px 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-strong); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 12px;
}
.sheet-body.no-pad-bottom { padding-bottom: 0; }
.detail-price { flex: 1; min-width: 0; }
.detail-price .price { font-size: 23px; }
.detail-spec-line { font-size: 10.5px; color: var(--ink3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-qty { display: flex; align-items: center; gap: 10px; margin-top: 19px; }
.detail-qty .opt-title { margin-bottom: 0; flex: 1; }
.add-cart-btn { padding: 13px 24px; }

/* 门店 / 优惠券 / 支付 / 订单 */
.store-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 14px; border-radius: 18px; border: 1.5px solid transparent; background: var(--chip-bg); margin-bottom: 10px; transition: all .2s; }
.store-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.store-opt-info { flex: 1; min-width: 0; }
.store-opt-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.store-opt-addr { font-size: 11.5px; color: var(--ink2); margin-top: 4px; }
.store-opt-meta { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink3); flex: none; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.radio.on { border-color: var(--accent); background: var(--accent); color: var(--btn-ink); }
.coupon-opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--chip-bg); margin-bottom: 10px; border: 1.5px solid transparent; }
.coupon-opt.active { border-color: var(--danger); background: rgba(255, 59, 48, .06); }
.coupon-opt.disabled { opacity: .45; pointer-events: none; }
.coupon-face { flex: none; min-width: 74px; text-align: center; color: var(--danger); font-weight: 800; }
.coupon-face .cf-big { font-size: 20px; }
.coupon-face .cf-small { font-size: 11px; font-weight: 700; }
.coupon-info { flex: 1; min-width: 0; }
.coupon-title { font-size: 14px; font-weight: 700; }
.coupon-cond { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.pay-merchant { text-align: center; font-size: 13.5px; color: var(--ink2); padding-top: 6px; }
.pay-amount { text-align: center; font-size: 42px; font-weight: 800; padding: 14px 0 22px; font-variant-numeric: tabular-nums; }
.pay-amount .yen { font-size: 22px; font-weight: 700; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 15px 14px; border-radius: 16px; background: var(--chip-bg); margin-bottom: 20px; }
.pay-method-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.pay-method-name { flex: 1; font-size: 14.5px; font-weight: 700; }
.pay-method-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.pay-check { color: var(--green); }
.pay-cancel { display: block; width: 100%; text-align: center; padding: 14px; font-size: 14px; color: var(--ink3); }
.spinner { width: 18px; height: 18px; border: 2.4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-head { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.success-check { width: 58px; height: 58px; }
.success-check circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .6s var(--spring) forwards; }
.success-check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .4s .45s var(--spring) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-title { font-size: 19px; font-weight: 800; margin-top: 12px; }
.success-sub { font-size: 12.5px; color: var(--ink2); margin-top: 5px; }
.pickup-no { text-align: center; margin: 18px 0 4px; }
.pickup-no .no { font-size: 52px; font-weight: 800; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.pickup-no .no-label { font-size: 12px; color: var(--ink3); letter-spacing: .18em; margin-top: 2px; }
.qr-box { display: flex; justify-content: center; padding: 14px 0 6px; }
.qr-frame { padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.qr-frame svg { width: 132px; height: 132px; }
.qr-hint { text-align: center; font-size: 11.5px; color: var(--ink3); padding-bottom: 6px; }
.timeline { margin: 16px 0 6px; padding: 0 6px; }
.tl-node { display: flex; gap: 13px; position: relative; padding-bottom: 22px; }
.tl-node:last-child { padding-bottom: 0; }
.tl-node::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--hairline); }
.tl-node:last-child::before { display: none; }
.tl-node.done::before { background: var(--matcha); }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink3); background: var(--sheet-bg); flex: none; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.tl-node.done .tl-dot { border-color: var(--matcha); background: var(--matcha); }
.tl-node.current .tl-dot { border-color: var(--amber); }
.tl-node.current .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.tl-info { flex: 1; }
.tl-name { font-size: 14px; font-weight: 700; color: var(--ink3); }
.tl-node.done .tl-name, .tl-node.current .tl-name { color: var(--ink); }
.tl-desc { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.order-actions { display: flex; gap: 10px; margin-top: 18px; }
.order-actions .btn { flex: 1; }

/* 动作面板 / 关于 / 分享 / 客服 / 偏好 */
.sheet.action-sheet { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet.action-sheet .sheet-grip { display: none; }
.sheet.action-sheet .sheet-body { padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
.as-group { border-radius: 22px; overflow: hidden; background: var(--glass-strong); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.as-btn { display: block; width: 100%; padding: 17px; text-align: center; font-size: 16.5px; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.as-btn:last-child { border-bottom: none; }
.as-btn.danger { color: var(--danger); }
.as-btn.bold { font-weight: 700; }
.as-cancel { margin-top: 9px; border-radius: 22px; background: var(--glass-strong); backdrop-filter: blur(26px); font-weight: 700; color: var(--accent); }
.about-logo { display: flex; justify-content: center; padding: 10px 0 14px; }
.about-name { text-align: center; font-size: 20px; font-weight: 800; }
.about-slogan { text-align: center; font-size: 12.5px; color: var(--ink2); margin-top: 6px; letter-spacing: .14em; }
.about-story { font-size: 13px; color: var(--ink2); line-height: 1.8; margin-top: 18px; text-align: center; }
.about-chips { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.about-ver { text-align: center; font-size: 11px; color: var(--ink3); margin-top: 20px; }
.share-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); background: linear-gradient(150deg, #F7E8CF, #E4BE8C); padding: 22px 20px; display: flex; align-items: center; gap: 16px; }
@media (prefers-color-scheme: dark) { .share-card { background: linear-gradient(150deg, #4A3520, #33220F); } }
.share-cup { width: 84px; flex: none; }
.share-cup svg { width: 100%; height: auto; }
.share-brand { font-size: 18px; font-weight: 800; color: #4A2F18; }
.share-slogan { font-size: 12px; color: #7A5A38; margin-top: 5px; line-height: 1.6; }
@media (prefers-color-scheme: dark) { .share-brand { color: #F3E3C8; } .share-slogan { color: #C9AE8A; } }
.share-tip { font-size: 11.5px; color: var(--ink3); text-align: center; margin: 14px 0 16px; line-height: 1.6; }
.service-row { display: flex; align-items: center; gap: 12px; padding: 15px 14px; border-radius: 16px; background: var(--chip-bg); margin-bottom: 10px; width: 100%; text-align: left; }
.service-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.service-info { flex: 1; }
.service-name { font-size: 14.5px; font-weight: 700; }
.service-sub { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.prefs-group { margin-bottom: 18px; }

/* ---------- Toast / 飞入 ---------- */
.toast-wrap { position: absolute; top: 102px; 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: 7px; max-width: 82%;
  background: var(--glass-strong); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--card-border); border-radius: 999px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 10px 26px rgba(50, 30, 12, .2);
  animation: toastIn .4s var(--spring);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast .t-ico { color: var(--matcha); flex: none; display: flex; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.94); } }
.fly-layer { position: absolute; inset: 0; z-index: 85; pointer-events: none; }
.fly-cup { position: absolute; width: 56px; will-change: transform, opacity; }
.fly-cup svg { width: 100%; height: auto; }

/* ---------- 杯中动效 ---------- */
.cup-wave { animation: waveShift 3.2s ease-in-out infinite alternate; }
@keyframes waveShift { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
.cup-boba { animation: bobaBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bobaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
.cup-ice { animation: iceFloat 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.8px); } }
.cup-fruit { animation: fruitFloat 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fruitFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(2deg); } }
.cup-steam path { animation: steamRise 2.8s ease-in-out infinite; }
@keyframes steamRise { 0% { opacity: 0; transform: translateY(3px); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-6px); } }
.cup-pop { animation: dropIn .5s var(--spring); transform-box: fill-box; transform-origin: center; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px) scale(.8); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  body { overflow: hidden; background: var(--bg); }
  .ambient, .stage-caption { display: none; }
  .stage { gap: 0; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; transform: none !important; }
  .phone::before, .phone::after { display: none; }
  .statusbar { padding-top: max(12px, env(safe-area-inset-top)); height: calc(54px + env(safe-area-inset-top, 0px)); }
  .island { top: calc(11px + env(safe-area-inset-top, 0px)); }
  .capsule { top: calc(61px + env(safe-area-inset-top, 0px)); }
  .navbar { top: calc(54px + env(safe-area-inset-top, 0px)); }
  .page-scroll { inset: calc(54px + env(safe-area-inset-top, 0px)) 0 0 0; }
  .menu-head { top: calc(106px + env(safe-area-inset-top, 0px)); }
  .menu-body { top: calc(208px + env(safe-area-inset-top, 0px)); }
  .toast-wrap { top: calc(102px + env(safe-area-inset-top, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}