/* 星星 */
.stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; line-height: 1; vertical-align: middle; }
.stars-bg { color: #dcdcd8; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.star-input { display: inline-flex; align-items: center; gap: 2px; }
.star-btn { font-size: 24px; line-height: 1; padding: 2px; color: #dcdcd8; }
.star-btn.on { color: var(--star); }
.star-input.lg .star-btn { font-size: 36px; padding: 2px 4px; }
.star-text { margin-left: 8px; color: var(--muted); font-size: 13px; min-width: 36px; }
.star-input.lg .star-text { font-size: 15px; color: var(--accent); }
.sub-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); }

/* 菜单 */
.searchbar { margin-bottom: 8px; }
.searchbar input { width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: #fff; outline: none; }
.menu-wrap { display: flex; align-items: flex-start; gap: 8px; }
.side { position: sticky; top: 56px; width: 76px; flex: none; background: var(--card); border-radius: 8px; overflow: hidden; }
.side a { display: block; padding: 14px 6px; text-align: center; font-size: 14px; color: var(--muted); border-left: 3px solid transparent; }
.side a.on { color: var(--accent); font-weight: 600; background: var(--accent-soft); border-left-color: var(--accent); }
.dish-list { flex: 1; min-width: 0; }
.cat { margin-bottom: 8px; scroll-margin-top: 56px; }
.cat h2 { font-size: 13px; color: var(--muted); font-weight: 500; padding: 4px 2px 6px; }
.dish { display: flex; gap: 10px; padding: 12px; margin-bottom: 8px; background: var(--card); border-radius: 8px; }
.dish-body { flex: 1; min-width: 0; }
.dish-name { font-size: 16px; font-weight: 600; }
.dish-desc { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 2px; }
.rating-line b { color: var(--star); font-size: 13px; }

.thumb { width: 84px; height: 84px; flex: none; border-radius: 6px; object-fit: cover; background: #eee; }
.thumb.sm { width: 56px; height: 56px; }
.thumb.lg { width: 100%; height: 120px; }
.thumb.ph { display: flex; align-items: center; justify-content: center; background: #f0eeea; color: #b3ada2; font-size: 26px; font-weight: 600; }
.thumb.sm.ph { font-size: 20px; }
.hero { display: block; width: calc(100% + 20px); margin: -10px -10px 10px; height: 220px; object-fit: cover; background: #f0eeea; }
.hero.ph { display: flex; align-items: center; justify-content: center; color: #b3ada2; font-size: 28px; font-weight: 600; }

.stepper { display: inline-flex; align-items: center; gap: 8px; }
.step { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; line-height: 24px; text-align: center; background: #fff; }
.step.add { background: var(--accent); border-color: var(--accent); color: #fff; }
.qty { min-width: 16px; text-align: center; font-weight: 600; }

/* 菜品详情与评分概览 */
.summary { display: flex; gap: 16px; align-items: center; margin: 10px 0; }
.score { text-align: center; flex: none; }
.score-num { font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--accent); }
.dist { flex: 1; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dist-row > span:first-child { width: 28px; color: var(--muted); }
.dist-row > span:last-child { width: 20px; text-align: right; }
.bar { flex: 1; height: 6px; background: #eeeeea; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--star); }
.subs { display: flex; gap: 18px; padding: 8px 0; color: var(--muted); font-size: 13px; }
.subs b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { padding: 3px 10px; border-radius: 12px; background: #f3f2ef; font-size: 12px; color: #555; }
.chip.pick { border: 1px solid transparent; font-size: 13px; padding: 5px 12px; }
.chip.pick.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.filters { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #ecebe7; border-radius: 6px; padding: 2px; }
.seg button { padding: 4px 12px; border-radius: 5px; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); font-weight: 600; }
.seg.wide { display: flex; margin-bottom: 10px; }
.seg.wide button { flex: 1; padding: 7px 0; font-size: 14px; }

/* 点评 */
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; background: var(--accent); }
.avatar.lg { width: 52px; height: 52px; font-size: 22px; }
.review-name { font-weight: 600; line-height: 1.2; }
.review-dish { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; }
.review-rate { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; flex-wrap: wrap; }
.review-text { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #eee; }
.photos.edit { margin-top: 12px; }
.ph-item { position: relative; }
.ph-item button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; line-height: 20px; }
.ph-add { aspect-ratio: 1; border: 1px dashed #c9c7c0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--muted); cursor: pointer; }
.replies { margin-top: 8px; padding: 8px 10px; background: #f6f5f2; border-radius: 6px; font-size: 13px; }
.reply { padding: 2px 0; word-break: break-word; }
.reply .link { margin-left: 6px; padding: 0; }
.role { font-style: normal; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 3px; margin-left: 4px; }
.review-actions { display: flex; gap: 14px; margin-top: 6px; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form input { flex: 1; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; outline: none; }

/* 订单与购物车 */
.cart-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: 0; padding-top: 0; }
.mini { width: 100%; margin-top: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; outline: none; }
.order-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.order-item + .order-item { margin-top: 0; }
.order-item a:not(.btn):not(.link) { font-weight: 600; }
.order-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.status { font-size: 12px; padding: 1px 8px; border-radius: 10px; margin-left: 8px; }
.status.pending { background: var(--accent-soft); color: var(--accent); }
.status.cooking { background: #e7f0fb; color: var(--info); }
.status.done { background: #e5f4ec; color: var(--ok); }
.status.cancelled { background: #eeeeea; color: var(--muted); }

/* 列表行 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-no { width: 22px; text-align: center; font-weight: 700; color: var(--muted); font-size: 16px; }
.rank-no.n1 { color: var(--accent); }
.rank-no.n2 { color: #e08a1e; }
.rank-no.n3 { color: #c9a227; }
.group-title { margin: 0; padding: 10px 14px 6px; font-size: 13px; color: var(--muted); font-weight: 500; background: #faf9f7; }
.cell { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-top: 1px solid var(--line); }
.cell:first-child { border-top: 0; }
.arrow { color: #bbb; font-style: normal; font-size: 20px; margin-left: 8px; }
.profile { display: flex; align-items: center; gap: 14px; }
.code { display: block; font-size: 20px; letter-spacing: 2px; font-family: ui-monospace, Menlo, monospace; }

/* 后台 */
.cat-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.cat-row .mini { margin: 0; flex: 1; }
.photo-edit { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.photo-edit .thumb { width: 96px; height: 96px; font-size: 13px; }
