/* 邻用的样式。大字、留白、毛玻璃导航，动效统一用 --ease 这条缓动曲线。 */
@view-transition { navigation: auto; }

:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --fill: #F2F2F4; --ink: #1D1D1F; --ink2: #6E6E73; --ink3: #86868B;
  --line: rgba(0, 0, 0, .1); --stroke: #D2D2D7;
  --accent: #087F5B; --accent-soft: #E7F5EF; --gold: #F9C14B; --red: #D7392B;
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-sheet: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
h1, h2, h3, .lead, .hero p, .product p, .center p { text-wrap: balance; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-appearance: none; appearance: none; }

/* 列宽写成 minmax(0, 1fr)：里面的内容再宽也不会把整页撑出屏幕（360 宽的安卓机上日历曾经撑出 8px） */
.page { max-width: 560px; margin: 0 auto; padding: 0 16px 150px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.page > h2 { font-size: 28px; margin: 34px 6px 4px; }
.muted { color: var(--ink2); }
.small { font-size: 14px; line-height: 1.43; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.strike { text-decoration: line-through; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.display { font-size: 46px; line-height: 1.07; font-weight: 700; letter-spacing: -.025em; }
.lead { font-size: 19px; line-height: 1.42; color: var(--ink2); }
.grad { background: linear-gradient(92deg, #0FB48A, #1E9BE0 62%, #6C6CF5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad.warm { background-image: linear-gradient(92deg, #F5A524, #EF6C3A); }
.link { font-size: 17px; color: var(--accent); }
.link::after { content: " ›"; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 30; height: 52px; margin: 0 -16px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 245, 247, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 .5px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-size: 13px; font-weight: 400; color: var(--ink3); letter-spacing: 0; }
.chip-btn {
  border: 0; border-radius: 980px; padding: 7px 14px; background: rgba(0, 0, 0, .06); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: transform .25s var(--ease), background .2s;
}
.chip-btn:active { transform: scale(.94); background: rgba(0, 0, 0, .1); }

/* 卡片 */
.card { background: var(--surface); border-radius: var(--r); padding: 24px 22px; display: grid; gap: 14px; }
.card.warm { background: #FFF1D6; }
.card.dark { background: var(--ink); color: #F5F5F7; }
.card.dark .muted { color: #A1A1A6; }
.card.dark a { color: #5EE0B2; }
.product { background: var(--surface); }
.hero { padding: 46px 8px 30px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.product { border-radius: 28px; padding: 40px 22px 0; overflow: hidden; display: grid; gap: 10px; text-align: center; justify-items: center; }
.product h1, .product h3.big { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.product .art { width: calc(100% + 44px); max-width: none; margin: 18px -22px 0; }
.product .art { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.product .art img { width: 100%; height: 100%; object-fit: cover; }
a.product, a.card { color: inherit; transition: transform .5s var(--ease); }
a.product:active, a.card:active { transform: scale(.98); }
.product a.product-cover { position: absolute; inset: 0; }

.tag { display: inline-block; padding: 4px 11px; border-radius: 980px; background: rgba(0, 0, 0, .06); color: var(--ink2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dark .tag { background: rgba(255, 255, 255, .14); color: #F5F5F7; }
.tag.amber { background: var(--gold); color: var(--ink); }
.tag.green { background: var(--accent-soft); color: var(--accent); }
.tag.gray { color: var(--ink3); }
.tag.red { background: #FDECEA; color: var(--red); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 980px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .2s, background .2s;
}
.btn:active { transform: scale(.96); }
.btn.accent { background: var(--accent); }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.plain { background: #E8E8ED; color: var(--ink); }
.btn.danger { background: #FDECEA; color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 15px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.price b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }

.steps { counter-reset: step; display: grid; gap: 18px; }
.steps > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps > div::before {
  counter-increment: step; content: counter(step); font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(160deg, #0FB48A, #1E9BE0); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-grid > div { background: var(--fill); border-radius: 16px; padding: 16px 6px 14px; text-align: center; display: grid; gap: 2px; }
.price-grid b { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.price-grid b::after { content: " 元"; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink2); }
.card.warm .price-grid > div { background: #FFFAEE; }

/* 亮点横滑 */
.hl { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.hl::-webkit-scrollbar { display: none; }
.hl > * { flex: 0 0 74%; scroll-snap-align: center; background: var(--surface); border-radius: var(--r); padding: 24px 22px; min-height: 168px; display: grid; align-content: space-between; gap: 18px; }
.hl h3 { font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -.015em; }

/* 档期日历 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px 2px; }
.cal > * { border: 0; background: none; padding: 0; text-align: center; font-size: 11px; color: var(--ink3); display: grid; justify-items: center; gap: 3px; }
.cal b {
  width: min(38px, 10.4vw); height: min(38px, 10.4vw); border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; color: var(--ink);
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.cal > span { font-size: 12px; padding-bottom: 2px; }
.cal small { font-size: 10px; line-height: 12px; height: 12px; color: var(--ink3); }
.cal i { display: flex; gap: 3px; height: 6px; }
.cal button { cursor: pointer; }
.cal button:active b { transform: scale(.88); }
.cal button:disabled { cursor: not-allowed; }
.cal button:disabled b { color: #C7C7CC; text-decoration: line-through; }
.cal button.on b { background: var(--ink); color: #fff; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend.col { display: grid; gap: 7px; padding-top: 12px; border-top: .5px solid var(--stroke); }
.cal.slots i s, .legend s {
  width: min(19px, 4.7vw); height: min(19px, 4.7vw); border-radius: 6px; display: grid; place-items: center; text-decoration: none; font-style: normal; font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.cal.slots i s.taken, .legend s.taken { background: #EDEDF0; color: #AEAEB2; text-decoration: line-through; }
.cal.slots i s.closed, .legend s.closed { background: none; color: #C7C7CC; box-shadow: inset 0 0 0 1px #E5E5EA; }
.cal.slots i { height: auto; gap: 1px; }
.pick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--ink); }
.pick.on { background: var(--ink); color: #fff; }
.pick.off { color: #C7C7CC; text-decoration: line-through; }

/* 实拍图轮播：小图横排，说明在图下，来源是图里的小字 */
.gallery { margin: 0 -16px; }
.gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 4px; scrollbar-width: none; outline: 0; }
.gal::-webkit-scrollbar { display: none; }
.gal figure { flex: 0 0 56%; margin: 0; display: grid; gap: 9px; align-content: start; scroll-snap-align: center; }
.gal .shot { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--fill); }
.gal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 7s linear; }
.gal figure.on img { transform: scale(1.06); }
.gal .shot small { position: absolute; right: 9px; bottom: 7px; font-size: 10px; line-height: 1; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.gal figcaption { padding: 0 2px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--ink); }

/* 擦窗背景：固定在屏幕上的一整面玻璃，由 scrolly.js 按滚动擦亮。景色的浓淡由脚本控制。 */
.backdrop { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100vw, 560px); transform: translateX(-50%); z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop .pane {
  position: absolute; inset: 0; opacity: .88;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, rgba(0, 0, 0, .7) 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 80%, rgba(0, 0, 0, .7) 100%);
}
.backdrop .pane > canvas, .winart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop .bot, .winart .bot { position: absolute; left: 0; top: 0; max-width: none; border-radius: 9%; will-change: transform; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.backdrop .bot.cut, .winart .bot.cut { border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .28)); }
.page { position: relative; z-index: 1; }
/* 首页好物卡片里的那一小块窗户 */
.winart { position: relative; width: 100%; height: 100%; overflow: hidden; background: #C5CED6; }

/* 背景层等图片和路线都备好了再出现，免得闪一下 */
.backdrop { opacity: 0; transition: opacity .5s; }
.backdrop.ready { opacity: 1; }

/* 首屏：干净明亮，只有品名和机器。机器在背景层里，.spot 给它占着位置 */
.brighthero { min-height: calc(100vh - 148px); min-height: calc(100svh - 148px); padding: 30px 4px 0; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; }
.brighthero .words { display: grid; gap: 10px; justify-items: center; }
.brighthero h1 { font-size: 46px; }
.brighthero .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.brighthero .spot { align-self: center; width: min(58%, 250px); aspect-ratio: 1 / 1; margin: 16px 0; }
.brighthero .spot img { width: 100%; }
.brighthero .hint { padding-bottom: 12px; font-size: 13px; color: var(--ink3); }
.brighthero .hint::after { content: ""; display: block; width: 8px; height: 8px; margin: 7px auto 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); animation: nudge 1.9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px) rotate(45deg); } }

/* 留半屏：卡片只占一边，另一边空出来看机器干活。卡片会在原地多停一小段，等机器把这半边擦完 */
.peek::after { content: ""; display: block; height: 34vh; height: 34svh; }
.peek > .card { width: 54%; padding: 22px 18px; position: sticky; top: 74px; }
.peek.right > .card { margin-left: auto; }
.peek .card h2 { font-size: 24px; line-height: 1.22; }
.peek .lead { font-size: 16px; line-height: 1.45; }
.swap, .points { display: grid; gap: 15px; }
.swap > div, .points > div { display: grid; gap: 3px; }
.swap del { font-size: 13px; line-height: 1.4; color: var(--ink3); text-decoration-color: rgba(0, 0, 0, .3); }
.swap b { font-size: 16px; line-height: 1.35; font-weight: 600; }
.points h3 { display: flex; align-items: center; gap: 6px; }
.icon { flex: none; width: 20px; height: 20px; color: var(--accent); }

/* 页尾的窗框：擦干净后的窗外，不调淡 */
.endhero { position: relative; height: 72vh; height: 72svh; margin-top: 34px; border-radius: 28px; border: 6px solid #fff; overflow: hidden; background: #BFE0FB; text-align: center; }
.endhero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.endhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .14) 100%); }
.endhero .words { position: relative; z-index: 1; padding: 46px 22px 0; display: grid; gap: 10px; justify-items: center; color: #fff; text-shadow: 0 1px 16px rgba(0, 40, 100, .5); }
.endhero h2 { font-size: 34px; }
.endhero .words p { font-size: 19px; font-weight: 500; }
.endhero .btn { margin-top: 8px; text-shadow: none; }
.endhero .bot { position: absolute; right: 18px; bottom: 18px; width: 31%; border-radius: 9%; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.endhero .bot.cut { border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }

/* 背景还在的时候，卡片换成半透的磨砂，让背景透一点上来 */
.card, .product, .hl > * { transition: background-color .5s; }
body.glassy .card:not(.dark):not(.warm), body.glassy .product, body.glassy .hl > * {
  background-color: rgba(255, 255, 255, .76); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
}
body.glassy .card.warm { background-color: rgba(255, 241, 214, .82); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px); }
body.glassy .price-grid > div { background: rgba(0, 0, 0, .045); }
/* 直接压在窗外景色上的标题和图注，垫一圈柔光，楼和树后面也看得清 */
body.glassy .page > h2, body.glassy .page > .stack > h2, body.glassy .gal figcaption { text-shadow: 0 0 5px rgba(255, 255, 255, .85), 0 0 22px rgba(255, 255, 255, .9); }

/* 评价 */
.stars { color: #F5A524; letter-spacing: 1px; }
.stars i { font-style: normal; color: #D2D2D7; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { border: 0; background: none; padding: 0; font-size: 34px; line-height: 1; color: #D2D2D7; cursor: pointer; transition: color .2s, transform .3s var(--ease); }
.star-pick button.on { color: #F5A524; }
.star-pick button:active { transform: scale(.85); }

/* 折叠 */
.acc { border-top: .5px solid var(--stroke); }
.acc > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 2px; border: 0; background: none;
  font-size: 17px; font-weight: 600; text-align: left; cursor: pointer;
}
.acc > button::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: translateY(-2px) rotate(45deg); transition: transform .45s var(--ease);
}
.acc.open > button::after { transform: translateY(2px) rotate(-135deg); }
.acc > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.open > div { grid-template-rows: 1fr; }
.acc > div > div { overflow: hidden; }
.acc ul, .list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; color: #424245; }
.acc ul, .acc p { padding-bottom: 18px; }

/* 表单 */
label.field { display: grid; gap: 7px; font-size: 14px; color: var(--ink2); }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid var(--stroke); border-radius: 12px; background: #fff; color: var(--ink); font-size: 17px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 21px) 23px, calc(100% - 15px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(8, 127, 91, .16); }
::placeholder { color: #B0B0B5; }

.choices { display: grid; gap: 10px; }
.choices.cols { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block; height: 100%; padding: 15px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--stroke); cursor: pointer; font-weight: 600;
  transition: box-shadow .25s, background .25s, transform .35s var(--ease);
}
.choice span small { display: block; margin-top: 3px; color: var(--ink2); font-size: 12px; font-weight: 400; line-height: 1.35; }
.choice:active span { transform: scale(.97); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: #FAFFFC; }
.choice input:focus-visible + span { outline: 3px solid rgba(8, 127, 91, .3); outline-offset: 2px; }
.cols .choice span { padding: 14px 10px; text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #C7C7CC; background: #fff;
  transition: background .2s, box-shadow .2s, transform .35s var(--ease);
}
.check input:checked {
  box-shadow: none; transform: scale(1.04);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.check input:focus-visible { outline: 3px solid rgba(8, 127, 91, .3); outline-offset: 2px; }

.bill { display: grid; gap: 9px; }
.bill > div { display: flex; justify-content: space-between; gap: 12px; color: #424245; }
.bill .total { border-top: .5px solid var(--stroke); padding-top: 13px; margin-top: 4px; font-weight: 700; font-size: 21px; color: var(--ink); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } }

.qr { width: 190px; height: 190px; border-radius: 18px; margin: 0 auto; background: #fff; }
.code { font-size: 40px; font-weight: 700; letter-spacing: .06em; }

/* 底部 */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; gap: 2px; padding: 5px;
  border-radius: 980px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14);
}
.tabbar a { padding: 9px 17px; border-radius: 980px; font-size: 14px; font-weight: 500; color: var(--ink2); white-space: nowrap; transition: background .3s, color .3s, transform .3s var(--ease); }
.tabbar a:active { transform: scale(.94); }
.tabbar a.on { background: var(--ink); color: #fff; }
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--line);
}
.bar > div { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.bar .sum { flex: 1; min-width: 0; line-height: 1.2; }
.bar .sum b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; display: inline-block; }
.bar .sum span { display: block; font-size: 12px; color: var(--ink2); }

/* 弹层 */
.sheet-mask { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background .45s; }
.sheet-mask.in { background: rgba(0, 0, 0, .42); }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; overflow: auto; transform: translateY(100%); transition: transform .55s var(--ease-sheet);
}
.sheet-mask.in .sheet { transform: none; }
.sheet::before { content: ""; flex: none; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #C7C7CC; }
.chat-log { flex: 1; min-height: 240px; max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; background: #E9E9EB; white-space: pre-wrap; word-break: break-word; animation: pop .45s var(--ease) both; transform-origin: 0 100%; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; transform-origin: 100% 100%; }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(8px); } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 0; background: #fff; border-radius: 980px; padding: 8px 14px; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--stroke); }

.toast {
  position: fixed; left: 50%; top: 64px; z-index: 60; max-width: 82vw; padding: 11px 18px; border-radius: 980px; text-align: center; font-size: 15px; font-weight: 500;
  background: rgba(29, 29, 31, .88); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: toast 2.4s var(--ease) both;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -16px) scale(.94); } 12%, 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }

.timeline { display: flex; gap: 4px; }
.timeline span { flex: 1; text-align: center; font-size: 12px; font-weight: 500; padding: 7px 0; border-radius: 980px; background: var(--fill); color: var(--ink3); }
.timeline span.on { background: var(--ink); color: #fff; }
.admin-card { box-shadow: inset 4px 0 0 var(--stroke); }
.admin-card.pending { box-shadow: inset 4px 0 0 var(--gold); }
.admin-card.paid, .admin-card.picked { box-shadow: inset 4px 0 0 var(--accent); }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; font-size: 15px; }
.kv dt { color: var(--ink2); }
.kv dd { margin: 0; word-break: break-all; }

/* 进场动效 */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
