:root {
  --brand: #f7b500;
  --brand-strong: #f0a500;
  --brand-deep: #d99200;
  --brand-soft: #fff3c9;
  --brand-pale: #fffaeb;
  --ink: #1d1b16;
  --ink-2: #4a463d;
  --muted: #8f897a;
  --muted-2: #b6b0a2;
  --line: #eee8da;
  --card: #ffffff;
  --page: #f7f4ec;
  --danger: #e0474c;
  --danger-soft: #fff0f0;
  --success: #178a55;
  --success-soft: #eaf8f0;
  --info: #3f6fd8;
  --info-soft: #edf3ff;
  --dark: #1c1a17;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(58, 46, 12, 0.07);
  --shadow-soft: 0 4px 14px rgba(58, 46, 12, 0.05);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  background: var(--page);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea, select { outline: none; }
.h5-body {
  background:
    radial-gradient(520px 280px at 12% -6%, #fff3cf 0, rgba(255, 243, 207, 0) 70%),
    radial-gradient(420px 240px at 100% 0, #fff8e2 0, rgba(255, 248, 226, 0) 72%),
    var(--page);
  min-height: 100vh;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(82px + var(--safe-bottom));
  position: relative;
}
.app.no-nav { padding-bottom: 0; }
.page { padding: 0 14px 24px; }
.page-flush { padding: 0 0 24px; }
.section { margin-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.section-head h2 { font-size: 17px; margin: 0; letter-spacing: .2px; }
.section-head h2 span { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.section-head a { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.brand-text { color: var(--brand-deep); }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 顶栏与子页头 */
.home-head { padding: 18px 14px 4px; }
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 6px 16px rgba(58, 46, 12, .12); }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .4px; }
.brand-slogan { font-size: 11px; color: var(--muted); margin-top: -2px; }
.head-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .72);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); color: var(--ink-2);
}
.icon-btn svg { width: 20px; height: 20px; }
.search-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px; padding: 11px 16px;
  box-shadow: var(--shadow-soft); color: var(--muted);
}
.search-pill svg { width: 18px; height: 18px; flex: none; }
.search-pill input { border: 0; background: transparent; width: 100%; color: var(--ink); font-size: 13px; }
.search-pill input::placeholder { color: var(--muted-2); }

.subbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(255, 249, 233, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(238, 232, 218, .6);
}
.subbar h1 { flex: 1; font-size: 16px; text-align: center; margin: 0; font-weight: 700; }
.subbar .side { width: 38px; display: flex; justify-content: center; }
.subbar .icon-btn { width: 34px; height: 34px; }
.subbar .spacer { width: 34px; }

/* 公告条 */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 14px 0; padding: 10px 13px;
  background: rgba(255, 246, 216, .78);
  border: 1px solid rgba(247, 181, 0, .16);
  border-radius: 14px; color: #8a6a00; font-size: 12px;
  overflow: hidden;
}
.notice-bar svg { width: 17px; height: 17px; flex: none; color: var(--brand-deep); }
.notice-track { overflow: hidden; white-space: nowrap; flex: 1; }
.notice-track span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 轮播 */
.carousel { position: relative; margin: 14px 14px 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #191919; }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.22,.8,.24,1); }
.carousel-slide { min-width: 100%; display: block; }
.carousel-slide img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.carousel-dots i { width: 5px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.55); transition: .25s; }
.carousel-dots i.on { width: 16px; background: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 44px; border: 0; background: rgba(0,0,0,.18); color: #fff; display: none; }
.carousel:hover .carousel-arrow { display: block; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid rgba(238, 232, 218, .8); }
.card-pad { padding: 16px; }
.card + .card { margin-top: 12px; }
.flat-card { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* 秒杀 */
.seckill {
  display: block;
  margin: 14px; padding: 14px;
  border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(240px 160px at 110% -20%, rgba(247,181,0,.5), transparent 70%),
    linear-gradient(135deg, #23211c 0%, #151411 70%);
  box-shadow: 0 12px 26px rgba(28, 26, 23, .18);
}
.seckill:after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 14px 14px; pointer-events: none; }
.seckill-head { display: flex; align-items: baseline; gap: 8px; position: relative; z-index: 1; }
.seckill-head b { font-size: 19px; letter-spacing: .5px; }
.seckill-head span { font-size: 11px; color: rgba(255,255,255,.6); }
.seckill-main { display: flex; gap: 12px; margin-top: 12px; position: relative; z-index: 1; }
.seckill-main img { width: 106px; height: 96px; object-fit: cover; border-radius: 12px; flex: none; border: 1px solid rgba(255,255,255,.14); }
.seckill-info { flex: 1; min-width: 0; }
.seckill-title { font-size: 14px; font-weight: 700; }
.seckill-timer { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.65); margin-top: 6px; }
.seckill-timer b { background: rgba(255,255,255,.15); color: #fff; border-radius: 5px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
.seckill-progress { height: 5px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.seckill-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ffdb6b); border-radius: 99px; }
.seckill-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.seckill-price em { font-style: normal; font-size: 21px; font-weight: 800; color: var(--brand); }
.seckill-price s { color: rgba(255,255,255,.45); font-size: 12px; }
.seckill-buy { margin-left: auto; align-self: flex-end; }
.seckill-sold { font-size: 10px; color: rgba(255,255,255,.5); }

/* 分类横滑 */
.category-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.8); color: var(--ink-2);
  border: 1px solid rgba(238, 232, 218, .9); white-space: nowrap;
}
.cat-chip.on { background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 600; }

/* 商品 */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px; }
.product-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(238, 232, 218, .7); display: flex; flex-direction: column; }
.product-cover { position: relative; display: block; }
.product-cover img { width: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; background: #f2eee4; }
.product-cover .badge-corner { position: absolute; top: 8px; right: 8px; }
.product-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.product-desc { font-size: 11px; color: var(--muted); line-height: 1.45; min-height: 32px; }
.product-price-row { display: flex; align-items: baseline; gap: 5px; margin-top: auto; }
.price { color: var(--brand-deep); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.price:before { content: "¥"; font-size: 11px; margin-right: 1px; font-weight: 600; }
.price-old { color: var(--muted-2); font-size: 11px; text-decoration: line-through; }
.price-old:before { content: "¥"; }
.sales { margin-left: auto; color: var(--muted-2); font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; line-height: 1; padding: 4px 6px; border-radius: 6px; background: var(--brand-soft); color: #8a6500; font-weight: 600; }
.badge.hot { background: linear-gradient(135deg, #ff6a3d, #e0474c); color: #fff; }
.badge.dark { background: rgba(0,0,0,.55); color: #fff; }
.badge-line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tag-list { display: flex; gap: 4px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 12px 18px;
  background: var(--brand); color: #201a08; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 18px rgba(247, 181, 0, .22);
  transition: .18s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 8px 18px rgba(28,26,23,.16); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }
.btn-soft { background: var(--brand-soft); color: #8a6500; box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 8px 18px rgba(224,71,76,.18); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; border-radius: 9px; font-size: 12px; box-shadow: none; }
.btn-lg { padding: 15px 22px; border-radius: 14px; font-size: 16px; }
.btn-line { background: transparent; border: 1px solid var(--brand); color: var(--brand-deep); box-shadow: none; }
.btn-link { background: transparent; border: 0; color: var(--brand-deep); padding: 4px 0; box-shadow: none; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* 表单 */
.field { margin-bottom: 16px; }
.field > label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { font-size: 11px; color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: #fbfaf6;
  border-radius: 12px; padding: 12px 13px; font-size: 14px;
  transition: .18s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(247,181,0,.12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 100px; resize: vertical; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-card { background: #fff; border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-soft); border: 1px solid rgba(238,232,218,.7); }
.form-note { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* 选择器 */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; transition: .18s;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: #7a5900; font-weight: 700; }
.chip input { display: none; }
.segmented { display: flex; background: #fff; border-radius: 999px; padding: 4px; border: 1px solid var(--line); gap: 2px; }
.segmented a, .segmented button { flex: 1; text-align: center; border-radius: 999px; padding: 8px 6px; font-size: 13px; color: var(--muted); border: 0; background: transparent; }
.segmented .on { background: var(--dark); color: #fff; font-weight: 600; }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll a { flex: none; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.tabs-scroll a.on { background: var(--dark); border-color: var(--dark); color: #fff; font-weight: 600; }
.tabs-scroll .count { opacity: .65; font-size: 10px; margin-left: 2px; }

/* 头部信息 */
.sub-hero { margin: 14px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #fff6d8, #fffdf6); border: 1px solid #ffefbf; }
.sub-hero h2 { margin: 0 0 4px; font-size: 20px; }
.sub-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f0ece2; flex: none; }
.avatar-lg { width: 68px; height: 68px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 4px #ffe7a3; }

/* 列表 */
.list { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(238,232,218,.75); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f4f0e7; }
.list-item:last-child { border-bottom: 0; }
.list-item .arrow { color: var(--muted-2); margin-left: auto; }
.list-item .title { font-size: 14px; font-weight: 600; }
.list-item .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.list-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-pale); display: flex; align-items: center; justify-content: center; color: var(--brand-deep); flex: none; }
.list-icon svg { width: 20px; height: 20px; }

/* 订单 */
.order-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(238,232,218,.7); }
.order-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #f5f1e8; }
.order-head .no { font-size: 11px; color: var(--muted); }
.order-head .status-pill { margin-left: auto; }
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.status-pill.warn { background: #fff4d6; color: #966a00; }
.status-pill.info { background: var(--info-soft); color: var(--info); }
.status-pill.primary { background: var(--brand-soft); color: #8a6500; }
.status-pill.success { background: var(--success-soft); color: var(--success); }
.status-pill.danger { background: var(--danger-soft); color: var(--danger); }
.status-pill.muted { background: #f1efe9; color: var(--muted); }
.order-body { display: flex; gap: 11px; padding: 13px 14px; }
.order-body img { width: 76px; height: 70px; border-radius: 10px; object-fit: cover; flex: none; background: #f2eee4; }
.order-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.order-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.order-meta { font-size: 11px; color: var(--muted); }
.order-amount { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); }
.order-amount b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.order-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 14px 13px; border-top: 1px solid #f5f1e8; flex-wrap: wrap; }

/* 空状态 */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .empty-art { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 26px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); color: var(--muted-2); }
.empty .empty-art svg { width: 40px; height: 40px; }
.empty-art { width: 84px; height: 84px; border-radius: 26px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); color: var(--muted-2); }
.empty-art svg { width: 40px; height: 40px; }
.empty p { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.empty span { font-size: 12px; color: var(--muted); }

/* 底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0 12px calc(8px + var(--safe-bottom));
  pointer-events: none;
}
.tabbar-inner {
  max-width: 456px; margin: 0 auto; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(238,232,218,.9);
  border-radius: 22px; padding: 7px 6px;
  box-shadow: 0 14px 34px rgba(58,46,12,.14);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px; color: #8f897a; font-size: 10px; border-radius: 14px; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--brand-deep); font-weight: 700; background: rgba(255, 243, 201, .55); }
.tab .dot { position: absolute; top: 2px; right: 8px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 9px; line-height: 15px; text-align: center; font-weight: 700; }

/* 弹窗 / toast / 选择面板 */
.toast {
  position: fixed; left: 50%; top: 28px; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 8px;
  max-width: min(86vw, 420px); padding: 11px 16px; border-radius: 14px;
  background: rgba(29,27,22,.92); color: #fff; font-size: 13px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  animation: toastIn .28s cubic-bezier(.2,.9,.3,1.2);
  backdrop-filter: blur(8px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.toast.hide { opacity: 0; transform: translate(-50%, -10px) scale(.96); transition: .22s; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--brand); box-shadow: 0 0 0 4px rgba(247,181,0,.18); }
.toast-success .toast-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.16); }
.toast-error .toast-dot { background: #ff6b70; box-shadow: 0 0 0 4px rgba(255,107,112,.16); }
.toast-warning .toast-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.16); }
.modal-mask { position: fixed; inset: 0; z-index: 150; background: rgba(20,18,14,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: .2s; }
.modal-mask.show { opacity: 1; }
.modal {
  width: 100%; max-width: 330px; background: #fff; border-radius: 22px; padding: 22px 20px 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.22); transform: translateY(8px) scale(.97); transition: .22s;
}
.modal-mask.show .modal { transform: none; }
.modal-icon { width: 48px; height: 48px; border-radius: 16px; margin: 0 auto 12px; background: var(--brand-soft); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.modal-icon svg { width: 24px; height: 24px; }
.modal h3 { margin: 0 0 6px; font-size: 17px; text-align: center; }
.modal p { margin: 0 0 18px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.modal-actions { display: flex; gap: 9px; }
.modal-actions .btn { flex: 1; }
.sheet-mask { position: fixed; inset: 0; z-index: 140; background: rgba(20,18,14,.42); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: .2s; }
.sheet-mask.show { opacity: 1; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + var(--safe-bottom)); transform: translateY(24px); transition: .25s; max-height: 84vh; overflow-y: auto; }
.sheet-mask.show .sheet { transform: none; }
.sheet-handle { width: 38px; height: 4px; border-radius: 99px; background: #e6e1d6; margin: 2px auto 12px; }
.sheet h3 { margin: 0 0 10px; font-size: 16px; }
.sheet-option { padding: 13px 10px; border-radius: 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f5f1e8; }
.sheet-option:last-child { border-bottom: 0; }
.sheet-option.on { background: var(--brand-pale); }

/* 详情 */
.goods-hero { background: #0f0e0c; }
.goods-hero img { width: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; }
.goods-main { margin-top: -18px; position: relative; border-radius: 22px 22px 0 0; background: var(--page); padding: 18px 14px 0; }
.price-block { display: flex; align-items: baseline; gap: 8px; }
.price-block .price { font-size: 30px; }
.goods-title { font-size: 20px; font-weight: 800; line-height: 1.35; margin: 10px 0 4px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 0; }
.service-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.service-item svg { width: 20px; height: 20px; color: var(--brand-deep); }
.rich-text { font-size: 13px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.spec-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: #faf8f2; font-size: 18px; color: var(--ink-2); }
.stepper input { width: 52px; height: 38px; border: 0; text-align: center; font-weight: 700; background: #fff; }
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 9px 14px calc(9px + var(--safe-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(238,232,218,.8);
}
.bottom-bar-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.bottom-bar .btn { flex: 1; }
.bottom-bar .side { width: 52px; text-align: center; font-size: 10px; color: var(--muted); }
.bottom-bar .side svg { width: 22px; height: 22px; color: var(--ink-2); display: block; margin: 0 auto 1px; }

/* 收银台 */
.pay-amount { text-align: center; padding: 24px 16px 20px; }
.pay-amount .label { font-size: 12px; color: var(--muted); }
.pay-amount .num { font-size: 40px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pay-amount .num:before { content: "¥"; font-size: 20px; margin-right: 3px; font-weight: 600; }
.pay-countdown { font-size: 12px; color: var(--danger); margin-top: 6px; }
.pay-methods { display: flex; flex-direction: column; gap: 9px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; width: 100%; }
.pay-method.on { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 3px rgba(247,181,0,.1); }
.pay-method .pm-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #f6f3eb; font-weight: 800; font-size: 13px; flex: none; }
.pay-method .pm-icon.alipay { background: #e8f3ff; color: #1677ff; }
.pay-method .pm-icon.wechat { background: #e9f9ee; color: #07c160; }
.pay-method .pm-icon.balance { background: var(--brand-soft); color: #8a6500; }
.pay-method .pm-main { flex: 1; }
.pay-method .pm-title { font-size: 14px; font-weight: 600; }
.pay-method .pm-desc { font-size: 11px; color: var(--muted); }
.pay-method .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd6c8; flex: none; }
.pay-method.on .radio { border: 5px solid var(--brand); }

/* 钱包 */
.wallet-hero { border-radius: 22px; padding: 20px; color: #fff; background: radial-gradient(200px 120px at 95% 0, rgba(247,181,0,.28), transparent 70%), linear-gradient(135deg, #26231d, #151310); box-shadow: 0 16px 34px rgba(28,26,23,.2); }
.wallet-hero .label { font-size: 12px; color: rgba(255,255,255,.6); }
.wallet-hero .amount { font-size: 36px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.wallet-hero .amount:before { content: "¥"; font-size: 18px; margin-right: 3px; color: var(--brand); }
.wallet-hero .actions { display: flex; gap: 9px; margin-top: 16px; }
.wallet-hero .btn { flex: 1; }
.wallet-yellow { border-radius: 20px; padding: 18px; background: linear-gradient(135deg, #ffce3f, #f7b500); color: #221a05; box-shadow: 0 14px 30px rgba(247,181,0,.22); }
.wallet-yellow .amount { font-size: 30px; font-weight: 800; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid rgba(238,232,218,.7); }
.stat-card .label { font-size: 11px; color: var(--muted); }
.stat-card .value { font-size: 20px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.log-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f5f1e8; }
.log-row:last-child { border-bottom: 0; }
.log-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--brand); flex: none; }
.log-dot.minus { background: var(--danger); }
.log-main { flex: 1; min-width: 0; }
.log-title { font-size: 13px; font-weight: 600; }
.log-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.log-amount { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.log-amount.plus { color: var(--success); }
.log-amount.minus { color: var(--ink); }

/* 订单详情/时间线 */
.detail-hero { margin: 14px; border-radius: 20px; padding: 18px; background: linear-gradient(135deg, #fff6d8, #fffdf8); border: 1px solid #ffedb9; }
.detail-hero .status { font-size: 21px; font-weight: 800; }
.detail-hero .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f1e8; font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { width: 76px; color: var(--muted); flex: none; }
.info-row .v { flex: 1; word-break: break-word; }
.timeline { position: relative; padding-left: 20px; }
.timeline:before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: #e9e3d6; }
.tl-item { position: relative; padding: 0 0 16px; font-size: 12px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #d8d0bf; }
.tl-item:first-child:before { border-color: var(--brand); background: var(--brand); }
.tl-title { font-weight: 600; color: var(--ink-2); }
.tl-time { color: var(--muted); font-size: 11px; }

/* 聊天 */
.chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto; background: #f4f1e9; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,251,241,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex: none; }
.chat-head .name { font-size: 15px; font-weight: 700; }
.chat-head .sub { font-size: 10px; color: var(--muted); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 12px; }
.chat-time { text-align: center; font-size: 10px; color: var(--muted-2); margin: 2px 0; }
.msg { display: flex; gap: 8px; max-width: 86%; }
.msg .avatar { width: 34px; height: 34px; }
.msg-body { display: flex; flex-direction: column; gap: 3px; }
.msg-bubble { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 13px; line-height: 1.55; word-break: break-word; box-shadow: 0 2px 6px rgba(58,46,12,.04); }
.msg-meta { font-size: 9px; color: var(--muted-2); }
.msg-read { margin-left: 4px; }
.msg-read.is-read { color: #2e8b57; }
.msg-action { margin-left: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 9px; color: var(--muted); cursor: pointer; }
.msg-recalled { color: var(--muted); font-style: italic; }
.chat-typing { color: #b07c00; }
.msg-name { font-size: 10px; color: var(--muted-2); margin: 0 0 3px 2px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .msg-bubble { background: linear-gradient(135deg, #ffd44d, #f7b500); color: #221a05; border-radius: 14px 14px 4px 14px; }
.msg.me .msg-meta { text-align: right; }
.chat-inputbar { flex: none; display: flex; gap: 8px; padding: 9px 12px calc(9px + var(--safe-bottom)); background: #fff; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-inputbar textarea { flex: 1; border: 1px solid var(--line); background: #faf8f2; border-radius: 18px; padding: 9px 13px; max-height: 96px; min-height: 40px; resize: none; font-size: 14px; }
.chat-inputbar .send { width: 58px; height: 40px; border-radius: 12px; padding: 0; flex: none; }
.chat-inputbar .chat-img-btn { width: 40px; height: 40px; border-radius: 12px; padding: 0; flex: none; display: flex; align-items: center; justify-content: center; }
.chat-inputbar .chat-img-btn svg { width: 20px; height: 20px; }
.msg-image { display: block; max-width: 200px; max-height: 260px; border-radius: 10px; object-fit: cover; }
.chat-tip { font-size: 10px; color: var(--muted); text-align: center; padding: 0 12px 6px; background: #fff; }

/* 我的 */
.profile-hero { padding: 20px 16px 16px; background: linear-gradient(180deg, #fff2c8 0%, rgba(255,248,231,.3) 100%); }
.profile-row { display: flex; align-items: center; gap: 12px; }
.profile-name { font-size: 20px; font-weight: 800; }
.profile-id { font-size: 11px; color: var(--muted); margin-top: 2px; }
.role-switch { margin-left: auto; display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-soft); }
.order-shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 4px 0 2px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); position: relative; padding: 6px 0; }
.shortcut svg { width: 24px; height: 24px; color: var(--ink-2); }
.shortcut .n { position: absolute; top: 0; right: 12px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 9px; line-height: 15px; text-align: center; padding: 0 4px; }
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.func { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px; font-size: 11px; color: var(--ink-2); text-align: center; }
.func .fi { width: 42px; height: 42px; border-radius: 13px; background: #faf8f2; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.func .fi svg { width: 22px; height: 22px; }

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 22px calc(28px + var(--safe-bottom)); background: radial-gradient(500px 300px at 20% 0, #ffe9a8, transparent 70%), linear-gradient(180deg, #fff8e3, #f7f4ec 60%); }
.login-brand { text-align: center; margin: 32px 0 26px; }
.login-brand img { width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 14px; box-shadow: 0 18px 38px rgba(58,46,12,.16); }
.login-brand h1 { font-size: 24px; margin: 0; letter-spacing: 1px; }
.login-brand p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.login-card { background: rgba(255,255,255,.94); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); }
.login-card h2 { font-size: 15px; margin: 0 0 14px; }
.passport-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #ffd44d, #f7b500); color: #221a05; font-weight: 800; box-shadow: 0 12px 24px rgba(247,181,0,.24); }
.passport-btn .mark { width: 38px; height: 38px; border-radius: 12px; background: #221a05; color: #ffd44d; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.passport-btn .sub { font-size: 10px; font-weight: 500; opacity: .7; }
.login-foot { margin-top: auto; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.8; }
.dev-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.dev-box .hint { font-size: 10px; color: var(--muted); margin-bottom: 8px; }

/* 上传 */
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-box { width: 80px; height: 80px; border-radius: 12px; border: 1px dashed #d9d2c2; background: #faf8f2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: var(--muted); font-size: 10px; position: relative; overflow: hidden; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-grid img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }

/* 其他 */
.divider { height: 1px; background: #f1ece1; margin: 14px 0; }
.notice-item { display: flex; gap: 10px; padding: 14px 15px; border-bottom: 1px solid #f5f1e8; }
.notice-item:last-child { border-bottom: 0; }
.notice-item .unread { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: none; margin-top: 7px; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { font-size: 14px; font-weight: 600; }
.notice-content { font-size: 12px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-date { font-size: 10px; color: var(--muted-2); margin-top: 5px; }
.article { padding: 18px 16px; font-size: 13px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.article h2 { font-size: 18px; color: var(--ink); margin: 22px 0 8px; }
.article h3 { font-size: 15px; color: var(--ink); margin: 16px 0 6px; }
.safe-tip { display: flex; gap: 8px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: #fff9e6; border: 1px solid #ffeab3; font-size: 11px; color: #7f6200; line-height: 1.6; }
.safe-tip svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 18px 0; font-size: 12px; color: var(--muted); }
.pagination a, .pagination span { min-width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.pagination .on { background: var(--dark); color: #fff; border-color: var(--dark); }
.floating-service { position: fixed; right: 14px; bottom: calc(94px + var(--safe-bottom)); z-index: 50; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px rgba(58,46,12,.16); display: flex; align-items: center; justify-content: center; color: var(--ink-2); border: 1px solid var(--line); }
.floating-service svg { width: 23px; height: 23px; }
.hide { display: none !important; }
.text-link { color: var(--brand-deep); font-weight: 600; }

@media (max-width: 360px) {
  .product-grid { gap: 8px; padding: 0 10px; }
  .product-name { font-size: 12px; }
  .price { font-size: 16px; }
  .tab { padding: 4px 8px; }
  .func-grid { grid-template-columns: repeat(4, 1fr); }
  .func { font-size: 10px; }
}

.rating-input { display: flex; align-items: center; gap: 5px; font-size: 30px; line-height: 1; color: #e4ded0; }
.rating-input span { cursor: pointer; transition: .15s; }
.rating-input span.on { color: var(--brand); text-shadow: 0 2px 6px rgba(247,181,0,.25); }
.review-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.review-tags .chip { font-size: 12px; padding: 6px 11px; }

/* 订单详情首屏与下方卡片对齐 */
.page > .detail-hero { margin: 0; }

/* 指定打手 */
.player-pick { display: flex; flex-direction: column; gap: 8px; }
.player-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.player-option > input { display: none; }
.player-option .avatar-sm { width: 34px; height: 34px; }
.player-option-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.player-option-main b { font-size: 13px; font-weight: 600; }
.player-option-main small { font-size: 11px; color: var(--muted); }
.player-option.on { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 3px rgba(247,181,0,.09); }

/* 结算页选券 */
.coupon-pick { display: flex; flex-direction: column; gap: 8px; }
.coupon-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.coupon-option > input { display: none; }
.coupon-option b { font-size: 13px; font-weight: 600; }
.coupon-option small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.coupon-option em { font-style: normal; flex: none; font-size: 13px; font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.coupon-option.on { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 3px rgba(247,181,0,.09); }

/* 领券中心 / 我的优惠券 */
.coupon-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-card { display: flex; align-items: stretch; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.coupon-value { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-right: 12px; border-right: 1px dashed #e8e1d1; color: var(--brand-deep); }
.coupon-value b { font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.coupon-value b small { font-size: 12px; margin: 0 1px; }
.coupon-value span { font-size: 10px; color: var(--muted); text-align: center; }
.coupon-main { flex: 1; min-width: 0; align-self: center; }
.coupon-state { flex: none; display: flex; align-items: center; }
.coupon-card.is-used { opacity: .6; }

/* 强制公告 */
body.notice-open { overflow: hidden; }
.force-notice { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(24,21,15,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fnFade .2s ease; }
.force-notice-card { width: 100%; max-width: 340px; padding: 24px 20px 18px; background: #fff; border-radius: 22px; text-align: center; box-shadow: 0 24px 60px rgba(28,26,23,.3); animation: fnPop .24s cubic-bezier(.2,.9,.3,1.15); }
.force-notice-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 17px; background: var(--brand-soft); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.force-notice-icon svg { width: 26px; height: 26px; }
.force-notice-card h3 { margin: 0 0 8px; font-size: 17px; }
.force-notice-body { max-height: 44vh; overflow-y: auto; margin-bottom: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-2); text-align: left; }
.force-notice.is-hide { opacity: 0; transition: opacity .18s ease; }
@keyframes fnFade { from { opacity: 0; } }
@keyframes fnPop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* 聊天安全区 */
.chat-service-tip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 7px 12px; background: #fffaf0; border-bottom: 1px solid #f6ecd5; font-size: 11px; color: #7f6200; }
.dot-online, .dot-offline { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.dot-offline { background: var(--muted-2); }
.chat-service-tip .text-link { margin-left: auto; }
.chat-blocked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--danger-soft); border-top: 1px solid #ffd9da; font-size: 11px; color: #a33438; }
.chat-safety { flex: none; background: #fff; border-top: 1px solid var(--line); font-size: 12px; }
.chat-safety summary { padding: 9px 12px; font-size: 11px; color: var(--muted); cursor: pointer; }
.chat-safety-body { padding: 0 12px 12px; }
.chat-safety-body .textarea { min-height: 64px; font-size: 13px; }

.req { color: var(--danger); margin-left: 2px; }

.servant-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f5f1e8; }
.servant-row:last-child { border-bottom: 0; padding-bottom: 0; }
.servant-row .grow { min-width: 0; }
.fee-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.fee-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.agreement-text { font-size: 12px; line-height: 1.9; color: var(--ink-2); }
