﻿/* ============================================================
   小榆校园 · 消费模块 · consumer.css
   依据 2026-11-18/ui-lines/consumer/outputs/consumer.css 落地。
   只补充 design/ui-shell/base.css 尚未覆盖的模块级布局；
   颜色、字号、圆角、阴影全部引用 --yu-* 变量，不另立色板。
   依赖：../../design/ui-shell/base.css
   ============================================================ */

/* ---------- 图标快捷类（路径只在这里出现一次） ---------- */
.c-ic-back { --ic: url(/design/ui-shell/icons/back.svg); }
.c-ic-search { --ic: url(/design/ui-shell/icons/search.svg); }
.c-ic-star { --ic: url(/design/ui-shell/icons/star.svg); }
.c-ic-shop { --ic: url(/design/ui-shell/icons/shop.svg); }
.c-ic-cart { --ic: url(/design/ui-shell/icons/cart.svg); }
.c-ic-clock { --ic: url(/design/ui-shell/icons/clock.svg); }
.c-ic-location { --ic: url(/design/ui-shell/icons/location.svg); }
.c-ic-phone { --ic: url(/design/ui-shell/icons/phone.svg); }
.c-ic-scan { --ic: url(/design/ui-shell/icons/scan.svg); }
.c-ic-coupon { --ic: url(/design/ui-shell/icons/coupon.svg); }
.c-ic-check { --ic: url(/design/ui-shell/icons/check.svg); }
.c-ic-close { --ic: url(/design/ui-shell/icons/close.svg); }
.c-ic-arrow-right { --ic: url(/design/ui-shell/icons/arrow-right.svg); }
.c-ic-filter { --ic: url(/design/ui-shell/icons/filter.svg); }
.c-ic-message { --ic: url(/design/ui-shell/icons/message.svg); }
.c-ic-plus { --ic: url(/design/ui-shell/icons/plus.svg); }
.c-ic-more { --ic: url(/design/ui-shell/icons/more.svg); }
.c-ic-express { --ic: url(/design/ui-shell/icons/express.svg); }
.c-ic-activity { --ic: url(/design/ui-shell/icons/activity.svg); }
.c-ic-bell { --ic: url(/design/ui-shell/icons/bell.svg); }
.c-ic-user { --ic: url(/design/ui-shell/icons/user.svg); }

/* ---------- 页面级 ---------- */
[hidden] { display: none !important; }
/* 底部 tabbar 实际高度沿用 app.css 的 --yu-tab-h */
.yu-page { padding-bottom: calc(var(--yu-tab-h) + 20px + var(--yu-safe-bottom)); }
.c-page--actionbar { padding-bottom: calc(88px + var(--yu-safe-bottom)); }
.c-section { margin-top: var(--yu-section-gap); }
.c-section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 10px; }
.c-section__title { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-h3); font-weight: 700; }
.c-section__sub { font-size: var(--yu-fs-micro); color: var(--yu-text-3); font-weight: 400; }
.c-section__more { display: inline-flex; align-items: center; gap: 2px; font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-muted { color: var(--yu-text-3); }
.c-strong { font-weight: 700; }

/* ---------- 消费首页头图 ---------- */
.c-head {
  position: relative; overflow: hidden;
  padding: calc(10px + var(--yu-safe-top)) var(--yu-gutter) 20px;
  background: var(--yu-gradient-hero);
  color: var(--yu-on-primary);
  border-radius: 0 0 var(--yu-radius-xl) var(--yu-radius-xl);
  box-shadow: var(--yu-shadow-green);
}
.c-head::before {
  content: ""; position: absolute; width: 210px; height: 210px; right: -104px; top: -108px;
  border: 26px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none;
}
.c-head::after {
  content: ""; position: absolute; left: 18px; bottom: 18px; width: 68px; height: 28px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 2px, transparent 2.5px);
  background-size: 14px 14px; transform: rotate(-10deg); pointer-events: none;
}
.c-head__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-head__brand { display: flex; align-items: center; gap: 8px; font-size: var(--yu-fs-caption); opacity: .92; }
.c-head__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yu-orange-soft); object-fit: contain; padding: 2px;
  box-shadow: var(--yu-shadow-sm);
}
.c-head__date { font-size: var(--yu-fs-micro); opacity: .72; letter-spacing: .04em; }
.c-head__title {
  position: relative; z-index: 2;
  margin-top: 12px;
  font-family: var(--yu-font-display);
  font-size: var(--yu-fs-h1); line-height: 1.28; font-weight: 800; letter-spacing: .01em;
}
.c-head__sub { position: relative; z-index: 2; margin-top: 5px; font-size: var(--yu-fs-caption); opacity: .9; }
.c-searchbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  height: 42px; margin-top: 14px; padding: 0 14px;
  border-radius: var(--yu-radius-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--yu-text-3);
  font-size: var(--yu-fs-caption);
  box-shadow: var(--yu-shadow-sm);
}
.c-searchbar .yu-ico { color: var(--yu-primary); }
.c-searchbar input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  color: var(--yu-text); font-size: var(--yu-fs-caption);
}
.c-searchbar input::placeholder { color: var(--yu-text-3); }
.c-searchbar__btn {
  flex-shrink: 0; height: 28px; padding: 0 12px;
  border-radius: var(--yu-radius-pill);
  background: var(--yu-primary); color: var(--yu-on-primary);
  font-size: var(--yu-fs-micro); font-weight: 600;
}

/* ---------- 吸顶筛选 ---------- */
.c-filterbar {
  position: sticky; top: 0; z-index: 25;
  margin: 0 calc(-1 * var(--yu-gutter));
  padding: 10px var(--yu-gutter) 8px;
  background: rgba(255, 248, 240, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yu-border);
}
.c-filterbar .yu-segmented { margin-bottom: 8px; }
.c-sortline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 2px 8px; }
.c-sortline__left { font-size: var(--yu-fs-sm); font-weight: 700; }
.c-sortline__left span { font-size: var(--yu-fs-micro); color: var(--yu-text-3); font-weight: 400; margin-left: 4px; }
.c-sortline__right { display: inline-flex; align-items: center; gap: 3px; font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-sortbar { display: flex; align-items: center; gap: 14px; padding: 2px 2px 8px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.c-sortbar button { color: var(--yu-text-2); }
.c-sortbar button.is-active { color: var(--yu-primary-strong); font-weight: 700; }
.c-sortbar span { margin-left: auto; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }

/* ---------- 首次说明 ---------- */
.c-tag-intro { margin-top: 12px; align-items: center; }
.c-tag-intro b { color: var(--yu-primary-strong); }
.c-tag-intro__text { flex: 1; min-width: 0; }
.c-tag-intro__link {
  display: inline-block; margin-left: 4px;
  color: var(--yu-primary-strong); font-weight: 700; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 2px;
}
.c-tag-intro__close {
  flex-shrink: 0; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; color: var(--yu-text-3);
}
.c-tag-intro__close:active { background: var(--yu-bg-sub); }

/* ---------- 店铺列表 ---------- */
.c-list { display: flex; flex-direction: column; gap: var(--yu-card-gap); }
.c-shop { display: flex; gap: 12px; padding: 10px; align-items: stretch; position: relative; }
.c-shop__cover {
  width: 96px; height: 96px; border-radius: var(--yu-radius-md);
  overflow: hidden; flex-shrink: 0; background: var(--yu-cream-deep);
}
.c-shop__cover img { width: 100%; height: 100%; object-fit: cover; }
.c-shop__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.c-shop__name { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-body); font-weight: 700; color: var(--yu-text); min-width: 0; }
.c-shop__name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-shop__name .yu-tag { height: 20px; padding: 0 6px; font-size: var(--yu-fs-micro); }
.c-shop__meta { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.c-shop__meta--muted { color: var(--yu-text-3); font-size: var(--yu-fs-micro); }
.c-shop__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.c-shop__tags .yu-tag { height: 20px; padding: 0 7px; font-size: var(--yu-fs-micro); background: var(--yu-bg-sub); color: var(--yu-text-2); }
.c-rate { display: inline-flex; align-items: center; gap: 2px; color: var(--yu-orange-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-rate .yu-ico { width: 12px; height: 12px; }
.c-shop__arrow { align-self: center; width: 18px; height: 18px; flex-shrink: 0; color: var(--yu-ink-3); }
.c-shop--closed .c-shop__cover img { filter: grayscale(.9); opacity: .72; }
.c-shop--closed .c-shop__name > span:first-child { color: var(--yu-text-2); }
.c-star-btn {
  flex-shrink: 0; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 3px;
  height: 26px; padding: 0 8px;
  border-radius: var(--yu-radius-pill);
  background: var(--yu-orange-soft); color: var(--yu-orange-700);
  font-size: var(--yu-fs-micro); font-weight: 600;
}
.c-star-btn .yu-ico { width: 12px; height: 12px; }
.c-star-btn.is-off { background: var(--yu-bg-sub); color: var(--yu-text-3); }

/* ---------- 平台自营固定区 ---------- */
.c-platform { margin-top: var(--yu-section-gap); }
.c-platform__head { display: flex; align-items: flex-start; gap: 10px; }
.c-platform__cat {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--yu-orange-soft); object-fit: contain; padding: 3px;
}
.c-platform__title { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-h3); font-weight: 700; }
.c-platform__sub { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-platform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.c-pshop {
  display: block; overflow: hidden;
  background: var(--yu-surface);
  border: 1px solid var(--yu-border);
  border-radius: var(--yu-radius-md);
  box-shadow: var(--yu-shadow-xs);
}
.c-pshop__cover { width: 100%; height: 78px; object-fit: cover; }
.c-pshop__body { padding: 8px 9px 9px; }
.c-pshop__name { display: flex; align-items: center; gap: 4px; font-size: var(--yu-fs-caption); font-weight: 700; min-width: 0; }
.c-pshop__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-pshop__name .yu-tag { height: 18px; padding: 0 5px; font-size: var(--yu-fs-micro); }
.c-pshop__meta { margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 榜单 ---------- */
.c-rank { display: flex; flex-direction: column; gap: 8px; }
.c-rank__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.c-rank__no { width: 20px; text-align: center; font-size: var(--yu-fs-sm); font-weight: 800; color: var(--yu-text-3); }
.c-rank__no--top { color: var(--yu-orange-700); }
.c-rank__thumb { width: 44px; height: 44px; border-radius: var(--yu-radius-sm); object-fit: cover; flex-shrink: 0; background: var(--yu-cream-deep); }

/* ---------- 店铺详情头图 ---------- */
.c-cover { position: relative; height: 196px; overflow: hidden; background: var(--yu-cream-deep); }
.c-cover > img { width: 100%; height: 100%; object-fit: cover; }
.c-cover__fallback {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2E8B63, #1F6B4A 62%, #175239);
  display: grid; place-items: center; color: rgba(255, 255, 255, .38);
}
.c-cover__fallback .yu-ico { width: 64px; height: 64px; }
.c-cover__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 56, 39, .38) 0%, rgba(15, 56, 39, 0) 40%, rgba(15, 56, 39, .46) 100%);
}
.c-cover .yu-navbar { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- 店铺信息卡 ---------- */
.c-shopcard { position: relative; z-index: 3; margin-top: -30px; padding: 14px; }
.c-shopcard__head { display: flex; align-items: flex-start; gap: 10px; }
.c-shopcard__logo {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: var(--yu-radius-md);
  border: 3px solid var(--yu-surface);
  background: var(--yu-surface);
  box-shadow: var(--yu-shadow-sm);
  object-fit: cover;
}
.c-shopcard__main { flex: 1; min-width: 0; padding-top: 2px; }
.c-shopcard__name { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-h3); font-weight: 800; line-height: 1.3; }
.c-shopcard__name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-shopcard__meta { margin-top: 4px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-shopcard__addr { margin-top: 5px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); display: flex; align-items: center; gap: 4px; }
.c-shopcard__addr .yu-ico { width: 13px; height: 13px; }
.c-shopcard__fav {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
  height: 30px; padding: 0 10px; border-radius: var(--yu-radius-pill);
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: var(--yu-fs-micro); font-weight: 600;
}
.c-shopcard__fav .yu-ico { width: 14px; height: 14px; }
.c-shopcard__fav.is-off { background: var(--yu-bg-sub); color: var(--yu-text-3); }
.c-facts { display: flex; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--yu-border); }
.c-facts__item { flex: 1; text-align: center; border-left: 1px solid var(--yu-border); }
.c-facts__item:first-child { border-left: 0; }
.c-facts__num { font-size: var(--yu-fs-sm); font-weight: 700; color: var(--yu-text); }
.c-facts__label { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }

/* ---------- 店铺内分区 ---------- */
.c-subtabs {
  position: sticky; top: 0; z-index: 15;
  display: flex; gap: 22px;
  margin: 0 calc(-1 * var(--yu-gutter));
  padding: 10px var(--yu-gutter) 0;
  background: rgba(255, 248, 240, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yu-border);
}
.c-subtabs button {
  position: relative; padding: 4px 0 10px;
  font-size: var(--yu-fs-sm); color: var(--yu-text-2);
}
.c-subtabs button small { font-size: var(--yu-fs-micro); color: var(--yu-text-3); margin-left: 2px; }
.c-subtabs button.is-active { color: var(--yu-primary-strong); font-weight: 700; }
.c-subtabs button.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 3px; border-radius: var(--yu-radius-pill);
  background: var(--yu-primary); transform: translateX(-50%);
}
.c-menu { margin-top: 6px; }
.c-menu__cat { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; font-size: var(--yu-fs-sm); font-weight: 700; }
.c-menu__cat::before { content: ""; width: 3px; height: 14px; border-radius: var(--yu-radius-pill); background: var(--yu-primary); }
.c-menu__card { padding: 0 14px; }
.c-dish {
  display: flex; gap: 12px; padding: 12px;
  background: var(--yu-surface);
  border: 1px solid var(--yu-border);
  border-radius: var(--yu-radius-lg);
  box-shadow: var(--yu-shadow-xs);
}
.c-dish + .c-dish { margin-top: 10px; }
.c-dish__img { width: 84px; height: 84px; border-radius: var(--yu-radius-md); object-fit: cover; flex-shrink: 0; background: var(--yu-cream-deep); }
.c-dish__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-dish__name { font-size: var(--yu-fs-sm); font-weight: 700; }
.c-dish__desc { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.5; }
.c-dish__meta { margin-top: 4px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-dish__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.c-dish__price { font-size: var(--yu-fs-body); }
.c-stepper { display: inline-flex; align-items: center; gap: 8px; }
.c-stepper__btn {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yu-primary); color: var(--yu-on-primary);
  font-size: var(--yu-fs-body); line-height: 1;
}
.c-stepper__btn--ghost { background: var(--yu-primary-soft); color: var(--yu-primary-strong); border: 1px solid var(--yu-green-200); }
.c-stepper__btn .yu-ico { width: 14px; height: 14px; }
.c-stepper__qty { min-width: 16px; text-align: center; font-size: var(--yu-fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-addbtn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yu-primary); color: var(--yu-on-primary);
}
.c-addbtn .yu-ico { width: 14px; height: 14px; }
.c-addbtn[disabled] { background: var(--yu-cream-deep); color: var(--yu-ink-3); }

/* ---------- 购物车吸底 ---------- */
.c-cartbtn {
  position: relative; flex-shrink: 0;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
}
.c-cartbtn .yu-ico { width: 24px; height: 24px; }
.c-cartbtn .yu-badge { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--yu-surface); }
.c-total { font-size: var(--yu-fs-h2); font-weight: 800; color: var(--yu-danger); line-height: 1.1; font-variant-numeric: tabular-nums; }
.c-total small { font-size: var(--yu-fs-caption); font-weight: 700; }
.c-total__sub { margin-top: 1px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-actionbar__btn { min-width: 118px; }

/* ---------- 橱窗店动作 / 相册 / 地图 ---------- */
.c-actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.c-actionbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 62px; padding: 9px 6px;
  border-radius: var(--yu-radius-md);
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: var(--yu-fs-caption); font-weight: 600;
}
.c-actionbtn .yu-ico { width: 20px; height: 20px; }
.c-actionbtn--accent { background: var(--yu-orange-soft); color: var(--yu-orange-700); }
.c-actionbtn:active { transform: scale(.97); }
.c-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--yu-radius-md); }
.c-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.c-info-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--yu-border); }
.c-info-row:first-child { padding-top: 0; border-top: 0; }
.c-info-row:last-child { padding-bottom: 0; }
.c-info-row > .yu-ico { margin-top: 2px; color: var(--yu-primary); width: 17px; height: 17px; }
.c-info-row__label { font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-info-row__value { margin-top: 2px; font-size: var(--yu-fs-sm); color: var(--yu-text); line-height: 1.5; }
.c-info-row__side { margin-left: auto; flex-shrink: 0; font-size: var(--yu-fs-caption); color: var(--yu-primary-strong); font-weight: 600; }
.c-map { position: relative; height: 132px; margin-top: 12px; border-radius: var(--yu-radius-md); overflow: hidden; background: var(--yu-leaf-soft); border: 1px solid var(--yu-border); }
.c-map svg { width: 100%; height: 100%; display: block; }
.c-map__road { stroke: var(--yu-white); stroke-width: 12; }
.c-map__road--thin { stroke-width: 6; }
.c-map__block { fill: var(--yu-green-100); }
.c-map__water { fill: var(--yu-green-200); opacity: .5; }
.c-map__pin {
  position: absolute; left: 58%; top: 46%; transform: translate(-50%, -100%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px;
  background: var(--yu-primary); color: var(--yu-on-primary);
  box-shadow: var(--yu-shadow-green);
  transform-origin: center;
  rotate: -45deg;
}
.c-map__pin .yu-ico { rotate: 45deg; width: 15px; height: 15px; }
.c-map__label {
  position: absolute; left: 10px; bottom: 8px;
  padding: 3px 8px; border-radius: var(--yu-radius-pill);
  background: rgba(255, 255, 255, .9); color: var(--yu-text-2);
  font-size: var(--yu-fs-micro); box-shadow: var(--yu-shadow-xs);
}

/* ---------- 二维码 ---------- */
.yu-qr-box {
  display: inline-block; padding: 10px;
  background: var(--yu-white);
  border: 1px solid var(--yu-border);
  border-radius: var(--yu-radius-lg);
  box-shadow: var(--yu-shadow-xs);
}
.yu-qr-box canvas,
.yu-qr-box img { display: block; width: 190px; height: 190px; border-radius: var(--yu-radius-xs); }
.yu-qr-box--sm canvas, .yu-qr-box--sm img { width: 64px; height: 64px; }
.yu-qr-box--sm { padding: 5px; border-radius: var(--yu-radius-sm); }
.c-qr-hint { margin-top: 10px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }

/* ---------- 结算 ---------- */
.c-mode-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--yu-border); }
.c-addr { display: flex; align-items: flex-start; gap: 10px; }
.c-addr__icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
}
.c-addr__main { flex: 1; min-width: 0; }
.c-addr__line { display: flex; align-items: center; gap: 8px; font-size: var(--yu-fs-sm); font-weight: 700; }
.c-addr__line small { font-size: var(--yu-fs-micro); color: var(--yu-text-3); font-weight: 400; }
.c-addr__text { margin-top: 3px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); line-height: 1.5; }
.c-addr__edit { flex-shrink: 0; font-size: var(--yu-fs-caption); color: var(--yu-primary-strong); font-weight: 600; }
.c-hint-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-hint-row .yu-ico { width: 13px; height: 13px; color: var(--yu-primary); }
.c-items { margin-top: 4px; }
.c-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--yu-border); }
.c-item-row:first-child { border-top: 0; padding-top: 0; }
.c-item-row:last-child { padding-bottom: 0; }
.c-item-row__img { width: 54px; height: 54px; border-radius: var(--yu-radius-sm); object-fit: cover; flex-shrink: 0; background: var(--yu-cream-deep); }
.c-item-row__main { flex: 1; min-width: 0; }
.c-item-row__name { font-size: var(--yu-fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-item-row__meta { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-item-row__price { font-size: var(--yu-fs-sm); font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.c-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.c-fee-row b { color: var(--yu-text); font-size: var(--yu-fs-sm); font-variant-numeric: tabular-nums; }
.c-fee-row--total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--yu-border); font-size: var(--yu-fs-sm); color: var(--yu-text); }
.c-fee-row--total b { color: var(--yu-danger); font-size: var(--yu-fs-h3); }
.c-fee-row--total b small { font-size: var(--yu-fs-micro); }
.c-free { color: var(--yu-primary-strong); font-weight: 600; }
.c-remark-input { display: flex; align-items: center; gap: 8px; }
.c-remark-input .yu-input { height: 42px; font-size: var(--yu-fs-caption); }
.c-coupon-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; text-align: left; }
.c-coupon-row + .c-coupon-row { border-top: 1px solid var(--yu-border); }
.c-coupon-row__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--yu-radius-sm); background: var(--yu-orange-soft); color: var(--yu-orange-700); flex-shrink: 0; }
.c-coupon-row__main { flex: 1; min-width: 0; text-align: left; }
.c-coupon-row__title { font-size: var(--yu-fs-sm); font-weight: 600; }
.c-coupon-row__sub { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-coupon-row__value { flex-shrink: 0; font-size: var(--yu-fs-sm); font-weight: 700; color: var(--yu-danger); }
.c-coupon-row__value--muted { color: var(--yu-text-3); font-weight: 500; }
.c-coupon-row__arrow { flex-shrink: 0; width: 16px; height: 16px; color: var(--yu-ink-3); }
.c-coupon-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--yu-border); border-radius: var(--yu-radius-md); }
.c-coupon-option + .c-coupon-option { margin-top: 10px; }
.c-coupon-option.is-active { border-color: var(--yu-primary); background: var(--yu-primary-soft); }
.c-coupon-option[disabled], .c-coupon-option.is-off { opacity: .6; }
.c-coupon-option__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--yu-line-strong); flex-shrink: 0; display: grid; place-items: center; }
.c-coupon-option.is-active .c-coupon-option__radio { border-color: var(--yu-primary); }
.c-coupon-option.is-active .c-coupon-option__radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yu-primary); }
.c-coupon-option__main { flex: 1; min-width: 0; }
.c-coupon-option__name { font-size: var(--yu-fs-sm); font-weight: 600; }
.c-coupon-option__meta { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-coupon-option__amt { flex-shrink: 0; font-size: var(--yu-fs-sm); font-weight: 700; color: var(--yu-danger); }

/* ---------- 券卡 ---------- */
.yu-coupon {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  background: linear-gradient(90deg, var(--yu-surface) 0%, var(--yu-surface) 70%, var(--yu-orange-soft) 70%);
  border: 1px solid var(--yu-border);
  border-radius: var(--yu-radius-xl);
  box-shadow: var(--yu-shadow-sm);
}
.yu-coupon::before, .yu-coupon::after {
  content: ""; position: absolute; left: 70%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yu-bg); transform: translateX(-50%); z-index: 1;
}
.yu-coupon::before { top: -7px; }
.yu-coupon::after { bottom: -7px; }
.yu-coupon__main { flex: 1; min-width: 0; padding: 14px; display: flex; align-items: center; gap: 12px; }
.yu-coupon__amt { width: 64px; flex-shrink: 0; text-align: center; }
.yu-coupon__amt b { font-size: var(--yu-fs-h1); line-height: 1; color: var(--yu-danger); font-variant-numeric: tabular-nums; }
.yu-coupon__amt b small { font-size: var(--yu-fs-caption); vertical-align: top; }
.yu-coupon__amt span { display: block; margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.yu-coupon__body { flex: 1; min-width: 0; }
.yu-coupon__name { font-size: var(--yu-fs-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-coupon__meta { margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-coupon__side {
  width: 86px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0 8px; border-left: 1px dashed var(--yu-line-strong);
}
.yu-coupon--off { filter: grayscale(.9); opacity: .62; }
.yu-coupon--off .yu-coupon__amt b { color: var(--yu-text-3); }

/* ---------- 券包 ---------- */
.c-coupon-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: var(--yu-radius-xl);
  background: var(--yu-gradient-hero);
  color: var(--yu-on-primary);
  box-shadow: var(--yu-shadow-green);
}
.c-coupon-hero::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -60px; bottom: -80px;
  border: 22px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.c-coupon-hero__main { flex: 1; min-width: 0; position: relative; z-index: 2; }
.c-coupon-hero__label { font-size: var(--yu-fs-caption); opacity: .85; }
.c-coupon-hero__num { margin-top: 2px; font-family: var(--yu-font-display); font-size: var(--yu-fs-number); line-height: 1.1; font-weight: 800; }
.c-coupon-hero__num small { font-size: var(--yu-fs-caption); font-weight: 600; margin-left: 2px; opacity: .9; }
.c-coupon-hero__sub { margin-top: 4px; font-size: var(--yu-fs-micro); opacity: .82; }
.c-coupon-hero .yu-btn { position: relative; z-index: 2; flex-shrink: 0; }
.c-qr-entry { display: flex; align-items: center; gap: 12px; }
.c-qr-entry__ic {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--yu-radius-md);
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  flex-shrink: 0;
}
.c-qr-entry__ic .yu-ico { width: 22px; height: 22px; }
.c-qr-entry__main { flex: 1; min-width: 0; }
.c-qr-entry__title { font-size: var(--yu-fs-sm); font-weight: 700; }
.c-qr-entry__sub { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-qr-entry__arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--yu-ink-3); }
.c-coupon-list { display: flex; flex-direction: column; gap: 12px; }
.c-coupon-list .yu-coupon__meta + .yu-coupon__meta { margin-top: 2px; }
.c-coupon-reason { margin-top: 6px; font-size: var(--yu-fs-micro); color: var(--yu-danger); }

/* ---------- 订单状态 ---------- */
.c-status-hero {
  position: relative; overflow: hidden;
  padding: 16px;
  border-radius: var(--yu-radius-xl);
  background: var(--yu-gradient-hero);
  color: var(--yu-on-primary);
  box-shadow: var(--yu-shadow-green);
}
.c-status-hero::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -90px;
  border: 24px solid rgba(255, 255, 255, .07); border-radius: 50%;
}
.c-status-hero__label { position: relative; z-index: 2; font-size: var(--yu-fs-caption); opacity: .85; }
.c-status-hero__title { position: relative; z-index: 2; margin-top: 2px; font-family: var(--yu-font-display); font-size: var(--yu-fs-h1); line-height: 1.25; font-weight: 800; }
.c-status-hero__sub { position: relative; z-index: 2; margin-top: 4px; font-size: var(--yu-fs-caption); opacity: .9; }
.c-steps { position: relative; z-index: 2; display: flex; align-items: flex-start; margin-top: 18px; }
.c-step { flex: 1; position: relative; text-align: center; font-size: var(--yu-fs-micro); opacity: .62; }
.c-step::before {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: rgba(255, 255, 255, .28);
}
.c-step:first-child::before { display: none; }
.c-step__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 16px; height: 16px; margin: 0 auto 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}
.c-step__dot .yu-ico { width: 11px; height: 11px; }
.c-step.is-done { opacity: 1; }
.c-step.is-done .c-step__dot { background: var(--yu-white); color: var(--yu-primary-strong); }
.c-step.is-done::before { background: rgba(255, 255, 255, .8); }
.c-step.is-now .c-step__dot { background: var(--yu-orange); color: var(--yu-text); box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.c-step.is-now { opacity: 1; font-weight: 700; }
.c-code-card { display: flex; align-items: center; gap: 12px; }
.c-code-card__main { flex: 1; min-width: 0; }
.c-code-card__label { font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-code-card__code { margin-top: 2px; font-size: var(--yu-fs-h1); font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: var(--yu-primary-strong); }
.c-code-card__sub { margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.c-code-card__side { flex-shrink: 0; text-align: center; }
.c-code-card__side span { display: block; margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-primary-strong); font-weight: 600; }

/* ---------- 我的订单 ---------- */
.c-status-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.c-status-tabs::-webkit-scrollbar { display: none; }
.c-status-tabs button {
  flex: 0 0 auto; height: 32px; padding: 0 12px;
  border-radius: var(--yu-radius-pill);
  background: var(--yu-surface); border: 1px solid var(--yu-border);
  color: var(--yu-text-2); font-size: var(--yu-fs-caption);
}
.c-status-tabs button.is-active { background: var(--yu-primary-strong); border-color: var(--yu-primary-strong); color: var(--yu-on-primary); font-weight: 600; }
.c-orders-summary { display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.c-orders-summary b { color: var(--yu-orange-700); }
.c-order { padding: 12px 14px; }
.c-order__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-order__shop { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--yu-fs-sm); font-weight: 700; }
.c-order__shop .yu-ico { width: 16px; height: 16px; color: var(--yu-primary); flex-shrink: 0; }
.c-order__shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-order__status { flex-shrink: 0; font-size: var(--yu-fs-caption); font-weight: 600; color: var(--yu-primary-strong); }
.c-order__status--warn { color: var(--yu-orange-700); }
.c-order__status--muted { color: var(--yu-text-3); }
.c-order__items { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.c-order__thumb { width: 56px; height: 56px; border-radius: var(--yu-radius-sm); object-fit: cover; flex-shrink: 0; background: var(--yu-cream-deep); }
.c-order__thumb--txt { display: grid; place-items: center; font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-order__summary { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.c-order__desc { font-size: var(--yu-fs-caption); color: var(--yu-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-order__total { margin-top: 3px; font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.c-order__total b { color: var(--yu-text); font-size: var(--yu-fs-sm); font-variant-numeric: tabular-nums; }
.c-order__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--yu-border); }
.c-end-note { padding: 18px 0 4px; text-align: center; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }

/* ---------- 时间线 ---------- */
.c-timeline { margin-top: 8px; }
.c-timeline__row { display: flex; gap: 10px; padding: 7px 0; font-size: var(--yu-fs-caption); }
.c-timeline__at { flex-shrink: 0; color: var(--yu-text-3); font-variant-numeric: tabular-nums; }
.c-timeline__text { color: var(--yu-text); }

/* ---------- 页面底部说明 ---------- */
.c-footer-note { margin-top: var(--yu-section-gap); text-align: center; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.7; }
.c-footer-note .yu-ico { width: 12px; height: 12px; vertical-align: -0.2em; margin-right: 3px; }

/* ---------- 兼容既有弹层写法（app.js 使用 .show） ---------- */
.yu-mask.show { opacity: 1; visibility: visible; }
.yu-dialog.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.yu-sheet.show { transform: translate(-50%, 0); }
/* 既有标签配色别名 */
.yu-tag--error { background: var(--yu-danger-soft); color: var(--yu-danger); }
.yu-tag--gray { background: #F4EFE8; color: var(--yu-text-3); }
