/*
 * Campus Ordering — Mature Food-Delivery Student UI System (Meituan / Ele.me Grade)
 * Supports both Aurora (Blue-White) and Bistro (White-Yellow) themes seamlessly.
 */

/* ── 1. Design Tokens ─────────────────────────────────────────────────────── */
html[data-food-design=aurora],
html:not([data-food-design=bistro]) {
  --sp-brand: #1677ff;
  --sp-brand-dark: #0958d9;
  --sp-brand-soft: #eef5ff;
  --sp-brand-border: #c9dfff;
  --sp-brand-ink: #ffffff;
  --sp-masthead-from: #1677ff;
  --sp-masthead-mid: #4a96ff;
  --sp-masthead-text: #ffffff;
  --sp-masthead-sub: rgba(255, 255, 255, 0.86);
  --sp-masthead-pill-bg: rgba(255, 255, 255, 0.18);
  --sp-masthead-pill-ink: #ffffff;
  --sp-price: #ff4d2e;
  --sp-ink: #1f2329;
  --sp-ink-2: #57606a;
  --sp-ink-3: #8c959f;
  --sp-line: #eef0f4;
  --sp-bg: #f4f5f7;
  --sp-card: #ffffff;
  --sp-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
  --sp-shadow-dock: 0 8px 24px rgba(15, 23, 42, 0.16);
}

html[data-food-design=bistro] {
  --sp-brand: #ffd100;
  --sp-brand-dark: #8c6200;
  --sp-brand-soft: #fff8d6;
  --sp-brand-border: #f3dc7a;
  --sp-brand-ink: #222222;
  --sp-masthead-from: #ffd100;
  --sp-masthead-mid: #ffe047;
  --sp-masthead-text: #222222;
  --sp-masthead-sub: rgba(34, 34, 34, 0.72);
  --sp-masthead-pill-bg: rgba(34, 34, 34, 0.08);
  --sp-masthead-pill-ink: #222222;
  --sp-price: #ff4d2e;
  --sp-ink: #222222;
  --sp-ink-2: #595959;
  --sp-ink-3: #8c8c8c;
  --sp-line: #f0eee6;
  --sp-bg: #f5f5f5;
  --sp-card: #ffffff;
  --sp-shadow: 0 2px 10px rgba(34, 34, 34, 0.045);
  --sp-shadow-dock: 0 8px 24px rgba(34, 34, 34, 0.14);
}

html:is([data-food-design=aurora],[data-food-design=bistro]) body {
  background: #e9ecf1;
  color: var(--sp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html:is([data-food-design=aurora],[data-food-design=bistro]) .app-shell {
  background: var(--sp-bg);
  border-inline: 1px solid #e2e6ec;
  box-shadow: 0 0 32px rgba(15, 23, 42, 0.06);
}

html:is([data-food-design=aurora],[data-food-design=bistro]) #app.food-channel {
  background: var(--sp-bg);
  color: var(--sp-ink);
  font-size: 14px;
  line-height: 1.45;
}

html:is([data-food-design=aurora],[data-food-design=bistro]) .native-bar {
  height: 46px;
  background: #ffffff;
  border-bottom: 1px solid var(--sp-line);
  font-size: 16px;
  font-weight: 600;
  color: var(--sp-ink);
}

/* ── 2. Home Masthead & Discovery (Above-the-fold optimized) ──────────────── */
html[data-food-design] #app.food-channel .f-home.dining-market {
  padding: 0 12px calc(92px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, var(--sp-masthead-from) 0px, var(--sp-masthead-mid) 96px, var(--sp-bg) 156px, var(--sp-bg) 100%);
}

/* Hide redundant giant "校园点餐" h1 on home; campus selector IS the masthead */
html[data-food-design] #app.food-channel .dining-market .f-heading {
  padding: 10px 0 6px;
  margin: 0;
}
html[data-food-design] #app.food-channel .dining-market .f-heading > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}

/* Single-row campus trigger + compact locate pill */
html[data-food-design] #app.food-channel .dining-market .f-region-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 0;
}

html[data-food-design] #app.food-channel .dining-market .f-campus-trigger {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 2px 0;
  gap: 5px;
  color: var(--sp-masthead-text);
  background: transparent;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-trigger > .student-icon {
  width: 18px;
  height: 18px;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
html[data-food-design] #app.food-channel .dining-market .f-campus-current {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-current strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-masthead-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-current small {
  font-size: 12px;
  color: var(--sp-masthead-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-trigger-arrow {
  margin-left: 2px;
  padding: 0;
  color: var(--sp-masthead-text);
  display: inline-flex;
  align-items: center;
}

html[data-food-design] #app.food-channel .dining-market .f-region-status {
  border: 0;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
html[data-food-design] #app.food-channel .dining-market .f-region-status > span {
  display: none;
}
html[data-food-design] #app.food-channel .dining-market .f-region-status button {
  min-width: 0;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 15px;
  background: var(--sp-masthead-pill-bg) !important;
  color: var(--sp-masthead-pill-ink);
  font-size: 12px;
  font-weight: 500;
  gap: 4px;
}
html[data-food-design] #app.food-channel .dining-market .f-region-status button .student-icon {
  width: 14px;
  height: 14px;
}

/* Delivery availability — sleek single-line status micro-strip */
html[data-food-design] #app.food-channel .dining-market [data-delivery-availability] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--sp-masthead-sub);
  background: transparent;
}
html[data-food-design] #app.food-channel .dining-market [data-delivery-availability]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38d989;
  flex: none;
}

/* Crisp pill search bar */
html[data-food-design] #app.food-channel .dining-market .f-search {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 3px 4px 3px 14px;
  margin: 0 0 10px;
  background: #ffffff;
  border: 0;
  border-radius: 19px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
html[data-food-design] #app.food-channel .dining-market .f-search input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--sp-ink);
  padding: 0 6px 0 0;
  border: 0;
  background: transparent;
}
html[data-food-design] #app.food-channel .dining-market .f-search input:focus {
  outline: none;
}
html[data-food-design] #app.food-channel .dining-market .f-search button {
  min-height: 30px;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--sp-brand);
  color: var(--sp-brand-ink) !important;
  font-size: 13px;
  font-weight: 600;
  border: 0;
}

/* Compact horizontal featured dish cards (104px tall so 2-3 shops fit above fold) */
html[data-food-design] #app.food-channel .market-picks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(146px, 47%);
  gap: 8px;
  padding: 0 0 2px;
  margin: 0 0 8px;
  scrollbar-width: none;
}
html[data-food-design] #app.food-channel .market-picks::-webkit-scrollbar { display: none; }
html[data-food-design] #app.food-channel .market-pick {
  min-height: 102px;
  height: 102px;
  border-radius: 12px;
  box-shadow: var(--sp-shadow);
  background: #2b2623;
}
html[data-food-design] #app.food-channel .market-caption {
  padding: 8px 10px;
  gap: 1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(16, 18, 24, 0.78) 100%);
}
html[data-food-design] #app.food-channel .market-caption small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
html[data-food-design] #app.food-channel .market-caption strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}
html[data-food-design] #app.food-channel .market-caption b {
  font-size: 12px;
  font-weight: 700;
  color: #ffd666;
}

/* Announcement strip */
html[data-food-design] #app.food-channel .dining-market .f-announcement {
  background: #ffffff !important;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px !important;
  margin: 0 0 10px;
  box-shadow: var(--sp-shadow);
  font-size: 12px;
  color: var(--sp-ink-2);
}
html[data-food-design] #app.food-channel .dining-market .f-announcement b {
  background: var(--sp-brand-soft);
  color: var(--sp-brand-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Section header & floor filter bar */
html[data-food-design] #app.food-channel .dining-market .f-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 2px 6px;
}
html[data-food-design] #app.food-channel .dining-market .f-section-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-ink);
}
html[data-food-design] #app.food-channel .dining-market .f-section-title > small {
  display: inline;
  font-size: 12px;
  color: var(--sp-ink-3);
}

html[data-food-design] #app.food-channel .dining-market .f-canteens {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 6px;
  scrollbar-width: none;
}
html[data-food-design] #app.food-channel .dining-market .f-canteens button {
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 15px;
  background: #ffffff;
  color: var(--sp-ink-2);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
html[data-food-design] #app.food-channel .dining-market .f-canteens button.active {
  background: var(--sp-brand);
  color: var(--sp-brand-ink);
  font-weight: 600;
}

html[data-food-design] #app.food-channel .market-floor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
html[data-food-design] #app.food-channel .market-floor-row .f-floors {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  border: 0;
  scrollbar-width: none;
}
html[data-food-design] #app.food-channel .market-floor-row .f-floors::-webkit-scrollbar { display: none; }
html[data-food-design] #app.food-channel .market-floor-row .f-floors button {
  min-height: 30px;
  height: 30px;
  padding: 0 11px !important;
  border-radius: 15px;
  background: #ffffff;
  color: var(--sp-ink-2);
  font-size: 12px;
  font-weight: 500;
  border: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
html[data-food-design] #app.food-channel .market-floor-row .f-floors button.active {
  background: var(--sp-brand-soft);
  color: var(--sp-brand-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--sp-brand-border);
}
html[data-food-design] #app.food-channel .market-floor-row .meal-filter button {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  color: var(--sp-ink-2);
  border: 1px solid #e3e6ec;
  white-space: nowrap;
}
html[data-food-design] #app.food-channel .market-floor-row .meal-filter button[aria-pressed=true] {
  background: var(--sp-brand);
  color: var(--sp-brand-ink);
  border-color: var(--sp-brand);
  font-weight: 600;
}

/* Meituan / Ele.me Style Shop Cards */
html[data-food-design] #app.food-channel .dining-market .f-shop-list {
  display: grid;
  gap: 9px;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 11px 12px !important;
  margin: 0;
  min-height: 100px;
  background: var(--sp-card) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: var(--sp-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-card:active {
  transform: scale(0.99);
}
html[data-food-design] #app.food-channel .dining-market .f-shop-photo {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #f0f2f5;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-copy {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-name-line strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-food-design] #app.food-channel .dining-market .f-business-status {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f1f4;
  color: #8c959f;
}
html[data-food-design] #app.food-channel .dining-market .f-business-status.open {
  background: #e8f8f0;
  color: #0e8a55;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-location {
  font-size: 12px;
  color: var(--sp-ink-2);
  margin: 0;
  line-height: 1.35;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-description {
  font-size: 12px;
  color: var(--sp-ink-3);
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-fee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-fee-tags > span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff5f2;
  border: 1px solid #ffd8ce;
  color: #d94326;
}
html[data-food-design] #app.food-channel .dining-market .f-shop-fee-tags > span:last-child {
  background: var(--sp-brand-soft);
  border-color: var(--sp-brand-border);
  color: var(--sp-brand-dark);
}

/* ── 3. Shop Detail & Two-Column Menu ─────────────────────────────────────── */
html[data-food-design] #app.food-channel .f-shop-header {
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, var(--sp-brand-soft) 0%, #ffffff 72%);
  border-bottom: 1px solid var(--sp-line);
}
html[data-food-design] #app.food-channel .f-shop-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0 0 8px;
}
html[data-food-design] #app.food-channel .f-shop-intro > img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex: none;
}
html[data-food-design] #app.food-channel .f-shop-intro h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 3px;
  color: var(--sp-ink);
}
html[data-food-design] #app.food-channel .f-shop-intro p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--sp-ink-2);
  margin: 1px 0 0;
}
html[data-food-design] #app.food-channel .f-shop-trust {
  display: flex;
  gap: 6px;
  margin: 0 0 6px;
}
html[data-food-design] #app.food-channel .f-shop-trust button {
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 13px;
  background: #f4f6f9;
  color: var(--sp-ink-2);
  font-size: 11px;
}
html[data-food-design] #app.food-channel .f-shop-announcement {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f7f8fa;
  font-size: 11px;
  color: var(--sp-ink-2);
}

html[data-food-design] #app.food-channel .f-shop-tabs {
  position: sticky;
  top: 46px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 14px;
  height: 42px;
  background: #ffffff;
  border-bottom: 1px solid var(--sp-line);
}
html[data-food-design] #app.food-channel .f-shop-tabs > button {
  position: relative;
  min-height: 42px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sp-ink-2);
  background: transparent;
  border: 0;
}
html[data-food-design] #app.food-channel .f-shop-tabs > button.active {
  color: var(--sp-ink);
  font-weight: 700;
  border: 0;
}
html[data-food-design] #app.food-channel .f-shop-tabs > button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sp-brand);
}
html[data-food-design] #app.food-channel .f-shop-tabs .f-shop-favorite {
  margin-left: auto;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--sp-brand-border);
  background: var(--sp-brand-soft);
  color: var(--sp-brand-dark) !important;
  font-size: 12px;
  font-weight: 600;
}

/* Two-column menu rail + dish list */
html[data-food-design] #app.food-channel .f-menu-layout {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  background: #ffffff;
  min-height: calc(100dvh - 200px);
  padding-bottom: 96px;
}
html[data-food-design] #app.food-channel .f-categories {
  position: sticky;
  top: 88px;
  width: 82px;
  max-height: calc(100dvh - 160px);
  background: #f5f6f8;
  padding: 0;
}
html[data-food-design] #app.food-channel .f-categories button {
  min-height: 48px;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--sp-ink-2);
  text-align: center;
  border-radius: 0;
}
html[data-food-design] #app.food-channel .f-categories button.active {
  background: #ffffff;
  color: var(--sp-ink);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--sp-brand);
}

html[data-food-design] #app.food-channel .f-products {
  padding: 8px 12px 16px;
  background: #ffffff;
}
html[data-food-design] #app.food-channel .f-products > h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-ink);
  margin: 0 0 4px;
  padding: 4px 0;
}
html[data-food-design] #app.food-channel .f-product-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sp-line);
}
html[data-food-design] #app.food-channel .f-product-row:last-child { border-bottom: 0; }
html[data-food-design] #app.food-channel .f-product-photo {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #f3f4f6;
}
html[data-food-design] #app.food-channel .f-product-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}
html[data-food-design] #app.food-channel .f-product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-ink);
}
html[data-food-design] #app.food-channel .f-product-copy p {
  font-size: 11px;
  color: var(--sp-ink-3);
  margin: 2px 0 4px;
  line-height: 1.35;
}
html[data-food-design] #app.food-channel .f-product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
html[data-food-design] #app.food-channel .f-product-bottom .f-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-price);
  font-variant-numeric: tabular-nums;
}

/* Crisp circular Meituan stepper & pill spec button */
html[data-food-design] #app.food-channel .f-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[data-food-design] #app.food-channel .f-stepper button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: #ffffff;
  border: 1.5px solid var(--sp-brand);
  color: var(--sp-brand-dark);
}
html[data-food-design] #app.food-channel .f-stepper button:last-child {
  background: var(--sp-brand);
  border-color: var(--sp-brand);
  color: var(--sp-brand-ink);
}
html[data-food-design] #app.food-channel .f-stepper > span {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-ink);
  font-variant-numeric: tabular-nums;
}
html[data-food-design] #app.food-channel .f-options-button {
  min-height: 26px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-size: 11px;
  font-weight: 600;
  border: 0;
}

/* ── 4. Floating Meituan-Style Cart Dock & Global Cart ────────────────────── */
html[data-food-design] #app.food-channel .f-cart-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: calc(min(100%, 430px) - 24px);
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 0 7px 0 10px !important;
  border: 0;
  border-radius: 27px;
  background: #222429;
  color: #ffffff;
  box-shadow: var(--sp-shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 90;
}
html[data-food-design] #app.food-channel .f-cart-toggle {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #ffffff;
  text-align: left;
  padding: 0 !important;
}
html[data-food-design] #app.food-channel .f-cart-bag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sp-brand);
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  margin-top: -10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
html[data-food-design] #app.food-channel .f-cart-bag > .student-icon {
  width: 22px;
  height: 22px;
  color: var(--sp-brand-ink);
}
html[data-food-design] #app.food-channel .f-cart-bag > b {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff4d2e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 1.5px solid #222429;
}
html[data-food-design] #app.food-channel .f-cart-dock-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
html[data-food-design] #app.food-channel .f-cart-dock-copy small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}
html[data-food-design] #app.food-channel .f-cart-dock .f-checkout {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 20px !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
html[data-food-design] #app.food-channel .f-cart-dock .f-checkout:disabled {
  background: #484b54 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Global floating cart bar on Home/Orders */
html[data-food-design] #app.food-channel .f-global-cart {
  border-radius: 26px;
  height: 52px;
  padding: 0 6px 0 12px;
  background: #222429;
  border: 0;
  box-shadow: var(--sp-shadow-dock);
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
html[data-food-design] #app.food-channel .f-global-cart strong { color: #ffffff; font-size: 16px; }
html[data-food-design] #app.food-channel .f-global-cart small { color: rgba(255, 255, 255, 0.75); font-size: 12px; }
html[data-food-design] #app.food-channel .f-global-cart .f-cart-symbol {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sp-brand);
}
html[data-food-design] #app.food-channel .f-global-cart .f-cart-symbol > .student-icon {
  width: 20px;
  height: 20px;
  color: var(--sp-brand-ink);
}
html[data-food-design] #app.food-channel .f-global-cart > button:last-child {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 20px !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-weight: 700;
}

/* Cart Sheet Drawer — flush to screen bottom behind floating cart pill (Meituan/Ele.me style) */
html[data-food-design] #app.food-channel .f-cart-sheet {
  bottom: 0 !important;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.16);
}

/* ── 5. Product Detail / Spec Selection ───────────────────────────────────── */
html[data-food-design] #app.food-channel .f-product-hero {
  height: 220px;
}
html[data-food-design] #app.food-channel .f-product-detail .f-product-summary {
  border-top: 0;
  margin: -16px 0 10px;
  border-radius: 16px 16px 12px 12px;
  padding: 16px 14px 14px;
  box-shadow: var(--sp-shadow);
}
html[data-food-design] #app.food-channel .f-detail-heading h1 {
  font-size: 19px;
  font-weight: 700;
}
html[data-food-design] #app.food-channel .f-detail-price {
  font-size: 22px;
  color: var(--sp-price);
}
html[data-food-design] #app.food-channel .f-option-group {
  border: 0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--sp-shadow);
}
html[data-food-design] #app.food-channel .f-product-options button {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f5f6f8;
  border: 1px solid transparent;
  color: var(--sp-ink);
  font-size: 13px;
}
html[data-food-design] #app.food-channel .f-product-options button.active {
  background: var(--sp-brand-soft);
  border-color: var(--sp-brand);
  color: var(--sp-brand-dark);
  font-weight: 600;
}
html[data-food-design] #app.food-channel .f-product-dock {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
html[data-food-design] #app.food-channel .f-product-dock .f-action {
  height: 44px;
  border-radius: 22px !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-weight: 700;
}

/* ── 6. Checkout & Basket ─────────────────────────────────────────────────── */
html[data-food-design] #app.food-channel .f-checkout-page {
  padding: 12px 12px 104px;
}
html[data-food-design] #app.food-channel .f-card {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--sp-shadow);
}
html[data-food-design] #app.food-channel .f-switch {
  background: #f0f2f5;
  border-radius: 18px;
  padding: 3px;
}
html[data-food-design] #app.food-channel .f-switch button {
  min-height: 30px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-ink-2);
}
html[data-food-design] #app.food-channel .f-switch button.active {
  background: #ffffff !important;
  color: var(--sp-ink) !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
html[data-food-design] #app.food-channel .f-checkout-footer {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
html[data-food-design] #app.food-channel .f-checkout-footer strong {
  font-size: 20px;
  color: var(--sp-price);
}
html[data-food-design] #app.food-channel .f-checkout-footer .f-action {
  height: 42px;
  padding: 0 24px;
  border-radius: 21px !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-weight: 700;
}

/* ── 7. Bottom TabBar ─────────────────────────────────────────────────────── */
html[data-food-design] #app.food-channel .f-channel-nav {
  height: calc(54px + env(safe-area-inset-bottom, 0px));
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sp-line);
}
html[data-food-design] #app.food-channel .f-channel-nav > button {
  font-size: 12px;
  gap: 2px;
  color: #8c959f;
}
html[data-food-design] #app.food-channel .f-channel-nav > button .student-icon {
  width: 22px;
  height: 22px;
}
html[data-food-design] #app.food-channel .f-channel-nav > button.active {
  color: var(--sp-brand-dark);
  font-weight: 700;
}

/* ── 8. Student "Me" Page — Clean Badges & Hierarchy ──────────────────────── */
html[data-food-design] #app.food-channel .fa-view-me {
  background: var(--sp-bg);
}
html[data-food-design] #app.food-channel .sm-profile {
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, var(--sp-brand-soft) 0%, var(--sp-bg) 100%);
  border-bottom: 0;
}
html[data-food-design] #app.food-channel .sm-profile h1 {
  font-size: 20px;
  margin-bottom: 10px;
}
html[data-food-design] #app.food-channel .sm-order-now {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 18px;
  background: var(--sp-brand);
  color: var(--sp-brand-ink);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html[data-food-design] #app.food-channel .sm-panel,
html[data-food-design] #app.food-channel .sm-services {
  border: 0;
  border-radius: 12px;
  box-shadow: var(--sp-shadow);
  margin-bottom: 10px;
}
/* Muted neutral badge for completed/cancelled; urgent red badge ONLY for unpaid/active */
html[data-food-design] #app.food-channel .sm-status-symbol > b {
  background: #ff4d2e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
html[data-food-design] #app.food-channel [data-value=completed] .sm-status-symbol > b,
html[data-food-design] #app.food-channel [data-value=cancelled] .sm-status-symbol > b {
  background: #e6e9ef;
  color: #57606a;
  border-color: #ffffff;
  font-weight: 600;
}

/* Orders page tabs & cards */
html[data-food-design] #app.food-channel .fa-order {
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--sp-shadow);
}
html[data-food-design] #app.food-channel .fa-filters button.selected {
  color: var(--sp-ink);
  border-bottom: 3px solid var(--sp-brand);
}

/* 320px narrow screen safety */
@media (max-width: 350px) {
  html[data-food-design] #app.food-channel .f-home.dining-market { padding-inline: 10px; }
  html[data-food-design] #app.food-channel .dining-market .f-shop-photo { width: 68px; height: 68px; }
  html[data-food-design] #app.food-channel .f-menu-layout { grid-template-columns: 70px minmax(0, 1fr); }
  html[data-food-design] #app.food-channel .f-categories { width: 70px; }
  html[data-food-design] #app.food-channel .f-product-photo { width: 72px; height: 72px; }
}


/* ── 9. Brand 3D Logo & Micro-Motion System ───────────────────────────────── */
@keyframes sp-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 217, 137, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 5px rgba(56, 217, 137, 0); transform: scale(1.1); }
}

@keyframes sp-prism-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sp-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-food-design] #app.food-channel .f-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

html[data-food-design] #app.food-channel .dining-market [data-delivery-availability]::before {
  animation: sp-live-pulse 2.2s ease-in-out infinite;
}

html[data-food-design] #app.food-channel .dining-market .f-shop-card {
  animation: sp-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 4-theme swatch previews in "我的 -> 界面风格" */
.sm-theme-glass {
  background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 48%, #dbeafe 72%, #fff5cc 100%) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(22, 119, 255, 0.16);
}
.sm-theme-prism {
  background: linear-gradient(135deg, #1677ff 0%, #38bdf8 50%, #ffd100 100%) !important;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
}

/* ── 10. Theme 3: Apple Liquid Glass (Bright Frosted Glassmorphism) ───────── */
html[data-food-design=glass] {
  --student-accent: #1677ff;
  --student-strong: #0c53c4;
  --student-action: #1677ff;
  --student-action-ink: #ffffff;
  --student-tint: rgba(22, 119, 255, 0.11);
  --sp-brand: #1677ff;
  --sp-brand-dark: #0c53c4;
  --sp-brand-soft: rgba(22, 119, 255, 0.1);
  --sp-brand-border: rgba(22, 119, 255, 0.28);
  --sp-brand-ink: #ffffff;
  --sp-masthead-text: #10203a;
  --sp-masthead-sub: rgba(16, 32, 58, 0.68);
  --sp-masthead-pill-bg: rgba(255, 255, 255, 0.68);
  --sp-masthead-pill-ink: #1677ff;
  --sp-ink: #10203a;
  --sp-ink-2: #465770;
  --sp-ink-3: #76859b;
  --sp-bg: #eef5ff;
}

html[data-food-design=glass] body {
  background: linear-gradient(135deg, #dcecff 0%, #f4f8ff 50%, #fff7df 100%);
}

html[data-food-design=glass] .app-shell,
html[data-food-design=glass] #app.food-channel {
  background:
    radial-gradient(circle at 12% 4%, rgba(96, 178, 255, 0.42) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 214, 74, 0.36) 0%, transparent 40%),
    radial-gradient(circle at 78% 48%, rgba(125, 198, 255, 0.22) 0%, transparent 48%),
    linear-gradient(180deg, #eaf3ff 0%, #f5f8fd 48%, #f8f7f2 100%) !important;
}

html[data-food-design=glass] #app.food-channel .f-home.dining-market {
  background: transparent !important;
}

html[data-food-design=glass] #app.food-channel .dining-market .f-region-status button {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-food-design=glass] #app.food-channel .dining-market .f-search,
html[data-food-design=glass] #app.food-channel .dining-market .f-announcement,
html[data-food-design=glass] #app.food-channel .dining-market .f-shop-card,
html[data-food-design=glass] #app.food-channel .f-card,
html[data-food-design=glass] #app.food-channel .sm-panel,
html[data-food-design=glass] #app.food-channel .sm-services,
html[data-food-design=glass] #app.food-channel .fa-order {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%) !important;
  backdrop-filter: blur(24px) saturate(195%);
  -webkit-backdrop-filter: blur(24px) saturate(195%);
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 10px 28px rgba(22, 74, 158, 0.08),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
    inset 0 -1px 1px rgba(22, 119, 255, 0.07) !important;
}

/* Tactile specular Liquid Glass primary pills (inspired by iOS Liquid Glass kit) */
html[data-food-design=glass] #app.food-channel .dining-market .f-search button,
html[data-food-design=glass] #app.food-channel .f-options-button,
html[data-food-design=glass] #app.food-channel .f-cart-dock .f-checkout:not(:disabled),
html[data-food-design=glass] #app.food-channel .f-product-dock .f-action:not(:disabled),
html[data-food-design=glass] #app.food-channel .f-checkout-footer .f-action:not(:disabled),
html[data-food-design=glass] #app.food-channel .sm-order-now {
  background: linear-gradient(180deg, #3b93ff 0%, #1677ff 100%) !important;
  box-shadow:
    0 6px 16px rgba(22, 119, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

html[data-food-design=glass] #app.food-channel .f-switch {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 3px rgba(16, 48, 112, 0.07);
}
html[data-food-design=glass] #app.food-channel .f-switch button.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.9)) !important;
  box-shadow: 0 3px 10px rgba(22, 74, 158, 0.12), inset 0 1px 0 #ffffff;
}

html[data-food-design=glass] #app.food-channel .market-floor-row .f-floors button,
html[data-food-design=glass] #app.food-channel .market-floor-row .meal-filter button {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
html[data-food-design=glass] #app.food-channel .market-floor-row .f-floors button.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.16), rgba(56, 189, 248, 0.18));
  border-color: rgba(22, 119, 255, 0.38);
  color: #0c53c4;
}

/* Apple iOS 26 floating Liquid Glass TabBar */
html[data-food-design=glass] #app.food-channel .f-channel-nav {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: calc(min(100%, 430px) - 24px);
  height: 56px;
  padding: 4px 6px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(16, 48, 112, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-food-design=glass] #app.food-channel .f-channel-nav > button.active {
  background: rgba(22, 119, 255, 0.11);
  border-radius: 22px;
}

/* Liquid Glass floating cart dock (bright frosted glass instead of heavy black!) */
html[data-food-design=glass] #app.food-channel .f-cart-dock,
html[data-food-design=glass] #app.food-channel .f-global-cart {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 32px rgba(22, 74, 158, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #10203a;
}
html[data-food-design=glass] #app.food-channel .f-cart-toggle,
html[data-food-design=glass] #app.food-channel .f-cart-dock-copy strong,
html[data-food-design=glass] #app.food-channel .f-global-cart strong {
  color: #10203a !important;
}
html[data-food-design=glass] #app.food-channel .f-cart-dock-copy small,
html[data-food-design=glass] #app.food-channel .f-global-cart small {
  color: #546680 !important;
}
html[data-food-design=glass] #app.food-channel .f-cart-dock .f-checkout:disabled {
  background: rgba(16, 32, 58, 0.12) !important;
  color: rgba(16, 32, 58, 0.45) !important;
}

/* ── 11. Theme 4: Google Prism Flow (Luminous Blue-Gold Flowing Tech) ─────── */
html[data-food-design=prism] {
  --student-accent: #1a73e8;
  --student-strong: #1557b0;
  --student-action: #1a73e8;
  --student-action-ink: #ffffff;
  --student-tint: #eaf3ff;
  --sp-brand: #1a73e8;
  --sp-brand-dark: #1557b0;
  --sp-brand-soft: #eaf3ff;
  --sp-brand-border: #bdd7ff;
  --sp-brand-ink: #ffffff;
  --sp-masthead-text: #ffffff;
  --sp-masthead-sub: rgba(255, 255, 255, 0.9);
  --sp-masthead-pill-bg: rgba(255, 255, 255, 0.22);
  --sp-masthead-pill-ink: #ffffff;
  --sp-bg: #f3f6fc;
}

html[data-food-design=prism] #app.food-channel .f-home.dining-market {
  background:
    linear-gradient(125deg, #1a73e8 0%, #29a3ff 42%, #ffcf36 86%, #4285f4 100%) top / 220% 148px no-repeat,
    linear-gradient(180deg, rgba(243, 246, 252, 0) 92px, #f3f6fc 150px) top / 100% 156px no-repeat,
    #f3f6fc !important;
  animation: sp-prism-flow 12s ease infinite;
}

html[data-food-design=prism] #app.food-channel .dining-market .f-search button,
html[data-food-design=prism] #app.food-channel .f-options-button,
html[data-food-design=prism] #app.food-channel .f-cart-dock .f-checkout:not(:disabled),
html[data-food-design=prism] #app.food-channel .f-product-dock .f-action:not(:disabled),
html[data-food-design=prism] #app.food-channel .f-checkout-footer .f-action:not(:disabled),
html[data-food-design=prism] #app.food-channel .sm-order-now {
  background: linear-gradient(135deg, #1a73e8 0%, #38bdf8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
}

html[data-food-design=prism] #app.food-channel .dining-market .f-shop-card {
  border: 1px solid rgba(26, 115, 232, 0.08) !important;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.06);
}

html[data-food-design=prism] #app.food-channel .sm-profile {
  background: linear-gradient(135deg, #eaf3ff 0%, #fff8dc 100%);
}

@media (prefers-reduced-motion: reduce) {
  html[data-food-design] #app.food-channel * {
    animation: none !important;
  }
}


/* ── 12. Student Home Theme Pill & Profile Avatar/Nickname Editor ─────────── */
html[data-food-design] #app.food-channel .dining-market .f-home-theme-cycle {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 15px;
  background: var(--sp-masthead-pill-bg) !important;
  color: var(--sp-masthead-pill-ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
html[data-food-design] #app.food-channel .sm-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
html[data-food-design] #app.food-channel .sm-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 2px 0;
  text-align: left;
  min-width: 0;
}
html[data-food-design] #app.food-channel .sm-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  flex: none;
}
html[data-food-design] #app.food-channel .sm-user-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
html[data-food-design] #app.food-channel .sm-user-meta strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-ink);
  line-height: 1.25;
}
html[data-food-design] #app.food-channel .sm-user-meta small {
  font-size: 11.5px;
  color: var(--sp-ink-2);
}
.f-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.f-profile-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6edf7;
}
.f-profile-upload-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: #edf4ff;
  color: #1677ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.f-profile-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #57606a;
}
.f-profile-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  font-size: 15px;
}
.f-profile-save {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  background: #1677ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}


/* ── 13. True Multi-Layout Architecture & Motion Upgrade (Not Just Color Swaps!) ── */

/* Shared refined tactile motion (inspired by design-to-motion & micro-interaction libraries) */
@keyframes sp-card-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-food-design] #app.food-channel .dining-market .f-shop-card:nth-child(1) { animation: sp-card-enter .26s cubic-bezier(.22,1,.36,1) .02s both; }
html[data-food-design] #app.food-channel .dining-market .f-shop-card:nth-child(2) { animation: sp-card-enter .26s cubic-bezier(.22,1,.36,1) .07s both; }
html[data-food-design] #app.food-channel .dining-market .f-shop-card:nth-child(3) { animation: sp-card-enter .26s cubic-bezier(.22,1,.36,1) .12s both; }
html[data-food-design] #app.food-channel .dining-market .f-shop-card:nth-child(n+4) { animation: sp-card-enter .26s cubic-bezier(.22,1,.36,1) .16s both; }
html[data-food-design] #app.food-channel button { transition: transform .14s cubic-bezier(.22,1,.36,1), background .16s ease, box-shadow .16s ease; }
html[data-food-design] #app.food-channel button:active:not(:disabled) { transform: scale(0.96); }

/* ── LAYOUT 2: Bistro — Warm Oat-Cream 2-Column Editorial Grid (Pinterest Cappuccino-inspired) ── */
html[data-food-design=bistro] {
  --student-accent: #b8661c;
  --student-strong: #874710;
  --student-action: #c97324;
  --student-action-ink: #ffffff;
  --student-tint: #f9efe4;
  --sp-brand: #c97324;
  --sp-brand-dark: #874710;
  --sp-brand-soft: #f9efe4;
  --sp-brand-border: #edd7be;
  --sp-brand-ink: #ffffff;
  --sp-masthead-text: #2a1c14;
  --sp-masthead-sub: #7a6456;
  --sp-masthead-pill-bg: #ffffff;
  --sp-masthead-pill-ink: #874710;
  --sp-ink: #2a1c14;
  --sp-ink-2: #695548;
  --sp-ink-3: #9b887b;
  --sp-bg: #f8f4ee;
  --sp-card: #ffffff;
  --sp-shadow: 0 4px 16px rgba(68, 42, 22, 0.06);
}
html[data-food-design=bistro] body { background: #ede6dc; }
html[data-food-design=bistro] #app.food-channel .f-home.dining-market {
  background: linear-gradient(180deg, #fffaf3 0px, #f8f4ee 140px) !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-region-status button {
  border: 1px solid #eadfce;
  box-shadow: 0 2px 6px rgba(68, 42, 22, 0.05);
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-search {
  border: 1px solid #eadfce;
  box-shadow: 0 3px 12px rgba(68, 42, 22, 0.05);
}
/* Featured picks: sleek wide banner strip */
html[data-food-design=bistro] #app.food-channel .market-picks {
  grid-auto-columns: 78%;
  gap: 10px;
}
html[data-food-design=bistro] #app.food-channel .market-pick {
  height: 116px;
  min-height: 116px;
  border-radius: 16px;
}
/* STRUCTURAL LAYOUT CHANGE: 2-Column Visual Large-Photo Shop Grid! */
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-card {
  position: relative;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  min-height: 214px;
  border: 1px solid #efe6da !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-photo {
  width: 100% !important;
  height: 114px !important;
  border-radius: 0 !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-copy {
  padding: 9px 10px 11px !important;
  gap: 4px !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-business-status {
  position: absolute;
  top: 8px;
  right: 8px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-name-line strong {
  font-size: 14.5px;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-description {
  display: none !important;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-fee-tags {
  margin-top: 2px;
}
html[data-food-design=bistro] #app.food-channel .dining-market .f-shop-fee-tags > span:nth-child(2) {
  display: none;
}
html[data-food-design=bistro] #app.food-channel .f-channel-nav {
  background: #fffcf8;
  border-top: 1px solid #efe6da;
}
html[data-food-design=bistro] #app.food-channel .f-channel-nav > button.active {
  color: #b8661c;
}
html[data-food-design=bistro] #app.food-channel .f-channel-nav > button.active .student-icon {
  background: #f9efe4;
}
.sm-theme-yellow {
  background: linear-gradient(135deg, #c97324 0%, #f5cfa0 52%, #fffaf3 100%) !important;
}

/* ── LAYOUT 4: Prism — Fresh Mint-Emerald Bento + Dark Floating Pill Nav (Pinterest Mint-inspired) ── */
html[data-food-design=prism] {
  --student-accent: #0d9f6e;
  --student-strong: #067a54;
  --student-action: #0d9f6e;
  --student-action-ink: #ffffff;
  --student-tint: #e8faf3;
  --sp-brand: #0d9f6e;
  --sp-brand-dark: #067a54;
  --sp-brand-soft: #e8faf3;
  --sp-brand-border: #a7e8cf;
  --sp-brand-ink: #ffffff;
  --sp-masthead-text: #ffffff;
  --sp-masthead-sub: rgba(255, 255, 255, 0.88);
  --sp-masthead-pill-bg: rgba(255, 255, 255, 0.2);
  --sp-masthead-pill-ink: #ffffff;
  --sp-ink: #111b17;
  --sp-ink-2: #4b6158;
  --sp-ink-3: #80968c;
  --sp-bg: #f1f8f5;
}
html[data-food-design=prism] body { background: #e3f0ea; }
html[data-food-design=prism] #app.food-channel .f-home.dining-market {
  background:
    linear-gradient(135deg, #067a54 0%, #0d9f6e 50%, #24c68e 100%) top / 100% 136px no-repeat,
    #f1f8f5 !important;
  animation: none !important;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
html[data-food-design=prism] #app.food-channel .dining-market .f-search {
  border-radius: 14px;
  height: 40px;
}
html[data-food-design=prism] #app.food-channel .dining-market .f-search button,
html[data-food-design=prism] #app.food-channel .f-options-button,
html[data-food-design=prism] #app.food-channel .f-cart-dock .f-checkout:not(:disabled),
html[data-food-design=prism] #app.food-channel .f-product-dock .f-action:not(:disabled),
html[data-food-design=prism] #app.food-channel .f-checkout-footer .f-action:not(:disabled),
html[data-food-design=prism] #app.food-channel .sm-order-now {
  background: linear-gradient(135deg, #0d9f6e 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(13, 159, 110, 0.25);
}
/* STRUCTURAL LAYOUT CHANGE: Compact horizontal Bento mini-pill picks (66px) */
html[data-food-design=prism] #app.food-channel .market-picks {
  grid-auto-columns: minmax(170px, 56%);
  gap: 8px;
}
html[data-food-design=prism] #app.food-channel .market-pick {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  height: 68px;
  padding: 6px 10px 6px 6px !important;
  background: #ffffff !important;
  border: 1px solid #d9efe6 !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 10px rgba(6, 122, 84, 0.06);
}
html[data-food-design=prism] #app.food-channel .market-pick img {
  position: static !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 10px;
  flex: none;
}
html[data-food-design=prism] #app.food-channel .market-caption {
  position: static !important;
  background: none !important;
  padding: 0 !important;
  color: #111b17 !important;
  min-width: 0;
}
html[data-food-design=prism] #app.food-channel .market-caption small { color: #668075 !important; font-size: 12px; }
html[data-food-design=prism] #app.food-channel .market-caption strong { color: #111b17 !important; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-food-design=prism] #app.food-channel .market-caption b { color: #0d9f6e !important; font-size: 12px; }

/* Crisp Bento shop cards with subtle left mint bar */
html[data-food-design=prism] #app.food-channel .dining-market .f-shop-card {
  border-radius: 16px !important;
  border: 1px solid #dceee7 !important;
  box-shadow: 0 4px 14px rgba(6, 122, 84, 0.05);
}
/* Dark floating capsule TabBar (inspired directly by Pinterest bottom-center mint app!) */
html[data-food-design=prism] #app.food-channel .f-channel-nav {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: calc(min(100%, 430px) - 28px);
  height: 56px;
  padding: 4px 8px;
  border-radius: 28px;
  background: #141c19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(10, 28, 22, 0.28);
}
html[data-food-design=prism] #app.food-channel .f-channel-nav > button { color: #8da39a; }
html[data-food-design=prism] #app.food-channel .f-channel-nav > button.active {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-radius: 22px;
}
html[data-food-design=prism] #app.food-channel .sm-profile {
  background: linear-gradient(135deg, #e4faf1 0%, #f1f8f5 100%);
}
.sm-theme-prism {
  background: linear-gradient(135deg, #0d9f6e 0%, #34d399 55%, #141c19 100%) !important;
}

/* === WeChat JSAPI Pay Bar on Unpaid Server Orders === */
.f-wxpay-bar {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  box-shadow: 0 6px 18px rgba(7, 193, 96, .10);
}
.f-wxpay-meta { display: grid; gap: 3px; }
.f-wxpay-meta strong { font-size: 16px; font-weight: 800; color: #065f46; }
.f-wxpay-meta small { font-size: 12px; color: #047857; }
.f-wxpay-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.f-wxpay-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #07c160 0%, #059669 100%) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.f-wxpay-sync {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #6ee7b7;
  background: #fff;
  color: #065f46;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. ALL-LEVELS UNIFICATION (Level 1 + Level 2 + Level 3 + Modals + Steppers)
   Fixes:
   - Pixel-perfect geometric −/+ circular stepper (zero font-baseline drift)
   - Unified native back bar, card spacing, badges, borders & buttons on every
     subpage (售后中心 / 订单列表与详情 / 菜品详情 / 结算页 / 地址簿 / 资质公示 / 优惠积分)
   ═══════════════════════════════════════════════════════════════════════════ */

/* 14.1 Pixel-Perfect Geometric Stepper (− / count / +) across ALL views */
html[data-food-design] #app.food-channel .f-stepper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
html[data-food-design] #app.food-channel .f-stepper button,
html[data-food-design] #app.food-channel .f-basket-lines .f-stepper button,
html[data-food-design] #app.food-channel .f-product-dock .f-stepper button,
html[data-food-design] #app.food-channel .option-minus {
  position: relative !important;
  box-sizing: border-box !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-decoration: none !important;
  flex: none !important;
  vertical-align: middle !important;
  overflow: hidden !important;
}
/* Minus button (hollow circle with crisp centered horizontal bar) */
html[data-food-design] #app.food-channel .f-stepper button:first-child:not(:last-child),
html[data-food-design] #app.food-channel .option-minus {
  background: #ffffff !important;
  border: 1.5px solid var(--sp-brand) !important;
  box-shadow: none !important;
}
html[data-food-design] #app.food-channel .f-stepper button:first-child:not(:last-child)::before,
html[data-food-design] #app.food-channel .option-minus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--sp-brand);
  transform: translate(-50%, -50%);
}
/* Plus button (solid brand circle with crisp centered horizontal + vertical bars) */
html[data-food-design] #app.food-channel .f-stepper button:last-child,
html[data-food-design] #app.food-channel .f-stepper button.plus {
  background: var(--sp-brand) !important;
  border: 1.5px solid var(--sp-brand) !important;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.22) !important;
}
html[data-food-design] #app.food-channel .f-stepper button:last-child::before,
html[data-food-design] #app.food-channel .f-stepper button.plus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--sp-brand-ink);
  transform: translate(-50%, -50%);
}
html[data-food-design] #app.food-channel .f-stepper button:last-child::after,
html[data-food-design] #app.food-channel .f-stepper button.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.8px;
  height: 10px;
  border-radius: 2px;
  background: var(--sp-brand-ink);
  transform: translate(-50%, -50%);
}
html[data-food-design] #app.food-channel .f-stepper > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 26px !important;
  line-height: 1 !important;
  padding: 0 2px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--sp-ink) !important;
  font-variant-numeric: tabular-nums !important;
}
/* Larger touch comfort on Product Detail bottom dock */
html[data-food-design] #app.food-channel .f-product-dock-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
html[data-food-design] #app.food-channel .f-product-dock .f-stepper {
  gap: 10px !important;
}
html[data-food-design] #app.food-channel .f-product-dock .f-stepper button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
}
html[data-food-design] #app.food-channel .f-product-dock .f-stepper > span {
  height: 30px !important;
  min-width: 24px !important;
  font-size: 15px !important;
}

/* 14.2 Unified Native Top Bar for Level 2 & Level 3 Subpages (Hidden on Home & Me like native apps!) */
html[data-food-design] body[data-food-view="home"] .native-bar,
html[data-food-design] body:not([data-food-view]) .native-bar {
  display: none !important;
}
html[data-food-design] .native-bar {
  position: sticky !important;
  top: 0;
  z-index: 40;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #edf1f7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html[data-food-design] .native-bar #back {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #e8edf5 !important;
  background: #f5f7fb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html[data-food-design] .native-bar #back[hidden] {
  display: none !important;
}
html[data-food-design] .native-bar #back img {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.82;
}
html[data-food-design] .native-bar #native-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--sp-ink) !important;
  letter-spacing: -0.01em;
}
/* Seamless full-bleed top masthead on Home with safe-area breathing room */
html[data-food-design] #app.food-channel .f-home.dining-market {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}

/* 14.3 Unified Level 2 / Level 3 Page Canvas, Cards, Links & Typography */
html[data-food-design] #app.food-channel .fa-page,
html[data-food-design] #app.food-channel .f-checkout-page,
html[data-food-design] #app.food-channel .f-product-detail,
html[data-food-design] #app.food-channel .f-shop-about {
  background: var(--sp-bg) !important;
  color: var(--sp-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}
html[data-food-design] #app.food-channel .fa-page:not(.fa-view-me) {
  padding: 14px 12px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(100dvh - 52px);
}
html[data-food-design] #app.food-channel .f-card,
html[data-food-design] #app.food-channel .fa-order,
html[data-food-design] #app.food-channel .fq-shop,
html[data-food-design] #app.food-channel .fa-coupon,
html[data-food-design] #app.food-channel .fa-link,
html[data-food-design] #app.food-channel .fa-stats {
  background: var(--sp-card, #ffffff) !important;
  border: 1px solid #edf1f7 !important;
  border-radius: 14px !important;
  box-shadow: var(--sp-shadow) !important;
  padding: 14px 15px !important;
  margin-bottom: 12px !important;
}
html[data-food-design] #app.food-channel .f-card h2,
html[data-food-design] #app.food-channel .fa-heading h1,
html[data-food-design] #app.food-channel .fa-section {
  color: var(--sp-ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
html[data-food-design] #app.food-channel .f-card h2 {
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
}

/* Remove ALL raw underlined link styles on buttons & secondary actions */
html[data-food-design] #app.food-channel button,
html[data-food-design] #app.food-channel a,
html[data-food-design] #app.food-channel button *,
html[data-food-design] #app.food-channel a * {
  text-decoration: none !important;
}
html[data-food-design] #app.food-channel .fq-enter {
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: var(--sp-brand-soft) !important;
  color: var(--sp-brand-dark) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  gap: 3px !important;
}
html[data-food-design] #app.food-channel .fq-enter b {
  font-size: 15px !important;
  line-height: 1 !important;
}
html[data-food-design] #app.food-channel .f-back-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  margin-top: 10px !important;
  border-radius: 10px !important;
  border: 1px solid #e3eaf4 !important;
  background: #f6f9fe !important;
  color: var(--sp-brand-dark) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html[data-food-design] #app.food-channel .f-back-link:hover {
  background: var(--sp-brand-soft) !important;
  border-color: var(--sp-brand-border) !important;
}
html[data-food-design] #app.food-channel .fa-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid var(--sp-brand-border) !important;
  background: var(--sp-brand-soft) !important;
  color: var(--sp-brand-dark) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
html[data-food-design] #app.food-channel .f-action {
  min-height: 44px !important;
  border-radius: 22px !important;
  border: 0 !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.22);
}
html[data-food-design] #app.food-channel .f-action:disabled {
  background: #e5e9f0 !important;
  color: #8c959f !important;
  box-shadow: none !important;
}

/* 14.4 After-Sales Support Center (售后中心 & 发起售后表单) */
html[data-food-design] #app.food-channel .fs-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
html[data-food-design] #app.food-channel .fs-hero-head h2 {
  margin: 0 0 4px !important;
}
html[data-food-design] #app.food-channel .fs-hero-head .fa-note {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html[data-food-design] #app.food-channel .fs-case {
  display: grid;
  gap: 8px;
}
html[data-food-design] #app.food-channel .fs-case header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
html[data-food-design] #app.food-channel .fs-case header h2 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--sp-ink) !important;
}
html[data-food-design] #app.food-channel .fs-case .fs-status,
html[data-food-design] #app.food-channel .fs-case header > span {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.3;
  background: var(--sp-brand-soft);
  color: var(--sp-brand-dark);
  border: 1px solid var(--sp-brand-border);
}
html[data-food-design] #app.food-channel .fs-case .fs-status[data-status="open"] {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
html[data-food-design] #app.food-channel .fs-case .fs-status[data-status="resolved"] {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
html[data-food-design] #app.food-channel .fs-case > small {
  display: block;
  font-size: 12px !important;
  color: var(--sp-ink-3) !important;
  font-variant-numeric: tabular-nums;
}
html[data-food-design] #app.food-channel .fs-case .fs-detail,
html[data-food-design] #app.food-channel .fs-case > p {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: var(--sp-ink-2) !important;
  margin: 0 !important;
}
html[data-food-design] #app.food-channel .fs-reply {
  padding: 12px 13px !important;
  margin: 4px 0 2px !important;
  border-radius: 10px !important;
  background: var(--sp-brand-soft) !important;
  border: 1px solid var(--sp-brand-border) !important;
  border-left: 3px solid var(--sp-brand) !important;
}
html[data-food-design] #app.food-channel .fs-reply strong {
  display: block;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--sp-brand-dark) !important;
  margin-bottom: 4px;
}
html[data-food-design] #app.food-channel .fs-reply p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--sp-ink) !important;
}
html[data-food-design] #app.food-channel .fs-waiting {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #d8e1ee;
  color: var(--sp-ink-3) !important;
  font-size: 12.5px !important;
  margin: 2px 0 !important;
}
html[data-food-design] #app.food-channel .fs-foot {
  padding-top: 6px;
  border-top: 1px solid #f0f3f8;
}
html[data-food-design] #app.food-channel .fs-foot .f-back-link {
  margin-top: 4px !important;
}

/* 14.5 Unified Form Inputs, Selects, Textareas, Details & Order Subpages */
html[data-food-design] #app.food-channel input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=search]),
html[data-food-design] #app.food-channel select,
html[data-food-design] #app.food-channel textarea {
  box-sizing: border-box;
  border: 1px solid #dbe3ee !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--sp-ink) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-food-design] #app.food-channel .f-search input:not([type=checkbox]):not([type=radio]):not([type=file]) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 6px !important;
}
html[data-food-design] #app.food-channel .f-region-status button strong,
html[data-food-design] #app.food-channel .f-campus-trigger strong {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
html[data-food-design] #app.food-channel input:focus,
html[data-food-design] #app.food-channel select:focus,
html[data-food-design] #app.food-channel textarea:focus {
  border-color: var(--sp-brand) !important;
  box-shadow: 0 0 0 3px var(--sp-brand-soft) !important;
  outline: none !important;
}
html[data-food-design] #app.food-channel .fa-filters {
  display: flex !important;
  gap: 6px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  background: #edf1f7 !important;
  margin: 0 0 12px !important;
}
html[data-food-design] #app.food-channel .fa-filters button {
  flex: 1;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border-radius: 9px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--sp-ink-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
html[data-food-design] #app.food-channel .fa-filters button.selected {
  background: #ffffff !important;
  color: var(--sp-brand-dark) !important;
  font-weight: 700 !important;
  border-bottom: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}
html[data-food-design] #app.food-channel .fa-order-head small {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sp-brand-soft);
  color: var(--sp-brand-dark) !important;
  font-weight: 600 !important;
}
html[data-food-design] #app.food-channel .fa-order-foot > span {
  border-radius: 999px !important;
  padding: 5px 12px !important;
  border: 1px solid #dbe3ee !important;
  background: #f8fafc !important;
  color: var(--sp-ink-2) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
html[data-food-design] #app.food-channel .f-product-explain,
html[data-food-design] #app.food-channel .f-user-notice,
html[data-food-design] #app.food-channel .f-product-note-entry {
  border: 1px solid #edf1f7 !important;
  border-radius: 12px !important;
}
html[data-food-design] #app.food-channel .f-product-explain > summary,
html[data-food-design] #app.food-channel .f-user-notice > summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-ink);
  cursor: pointer;
}
html[data-food-design] #app.food-channel .f-empty {
  background: #ffffff !important;
  border: 1px dashed #d8e1ee !important;
  border-radius: 14px !important;
  padding: 32px 16px !important;
  color: var(--sp-ink-3) !important;
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  text-align: center !important;
}
html[data-food-design] #app.food-channel .f-empty .student-icon,
html[data-food-design] #app.food-channel .fq-empty .student-icon {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 4px !important;
}
html[data-food-design] dialog#detail-dialog {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}
html[data-food-design] dialog#detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}
html[data-food-design] dialog#detail-dialog h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-ink);
}
html[data-food-design] dialog#detail-dialog p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}
html[data-food-design] dialog#detail-dialog button.primary {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 21px;
  background: var(--sp-brand);
  color: var(--sp-brand-ink);
  font-size: 14px;
  font-weight: 700;
}

/* 14.6 Clean Production Shell — Hide dev preview ribbon & "预览" badge, prevent sticky overlap */
.design-preview-tools,
.native-bar .preview-label,
.f-demo,
.sm-receipt-note {
  display: none !important;
}
/* 14.7 Auto-Playing Homepage Promo & Merchant Ad Carousel + Real-Phone 360px Header Lock */
html[data-food-design] #app.food-channel .f-home.dining-market {
  padding-top: 6px !important;
}
@media (display-mode: standalone) {
  html[data-food-design] #app.food-channel .f-home.dining-market {
    padding-top: calc(6px + env(safe-area-inset-top, 0px)) !important;
  }
}
html[data-food-design] #app.food-channel .dining-market .f-heading {
  padding: 2px 0 4px !important;
  margin: 0 !important;
}
html[data-food-design=aurora] #app.food-channel .f-home.dining-market {
  background:
    linear-gradient(180deg, #1677ff 0px, #3b93ff 56px, var(--sp-bg) 112px, var(--sp-bg) 100%) no-repeat,
    var(--sp-bg) !important;
}
html[data-food-design=prism] #app.food-channel .f-home.dining-market {
  background:
    linear-gradient(135deg, #067a54 0%, #0d9f6e 50%, #24c68e 100%) top / 100% 106px no-repeat,
    #f1f8f5 !important;
}
html[data-food-design] #app.food-channel .dining-market .f-region-controls {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 0 4px !important;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-trigger {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 0 !important;
  overflow: hidden !important;
  gap: 5px !important;
}
html[data-food-design] #app.food-channel .f-brand-logo {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}
html[data-food-design] #app.food-channel .dining-market .f-campus-current strong {
  font-size: 15px !important;
}
html[data-food-design] #app.food-channel .dining-market .f-region-status {
  flex: none !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
}
html[data-food-design] #app.food-channel .dining-market .f-region-status button {
  min-height: 27px !important;
  height: 27px !important;
  padding: 0 9px !important;
  border-radius: 14px !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
}
@media (max-width: 390px) {
  html[data-food-design] #app.food-channel .dining-market .f-campus-current small {
    display: none !important;
  }
}
/* High-contrast delivery status pill inside masthead (WCAG AAA on all 4 themes) */
html[data-food-design] #app.food-channel .dining-market [data-delivery-availability] {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 2px 0 8px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.18) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  backdrop-filter: blur(6px);
}
html[data-food-design=bistro] #app.food-channel .dining-market [data-delivery-availability],
html[data-food-design=glass] #app.food-channel .dining-market [data-delivery-availability] {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--sp-ink-2) !important;
}
html[data-food-design] #app.food-channel .dining-market .f-search {
  margin: 0 0 10px !important;
}

html[data-food-design] #app.food-channel .f-promo-carousel {
  position: relative;
  margin: 0 0 10px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}
html[data-food-design] #app.food-channel .f-promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
html[data-food-design] #app.food-channel .f-promo-track::-webkit-scrollbar { display: none; }
html[data-food-design] #app.food-channel .f-promo-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px 28px;
  min-height: 138px;
  box-sizing: border-box;
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.24) 0%, transparent 50%),
    linear-gradient(135deg, #1677ff 0%, #2f8cff 60%, #4da3ff 100%);
}
html[data-food-design] #app.food-channel .f-promo-slide.tone-emerald {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.24) 0%, transparent 50%),
    linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%);
}
html[data-food-design] #app.food-channel .f-promo-slide.tone-amber {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.26) 0%, transparent 50%),
    linear-gradient(135deg, #d97706 0%, #f59e0b 60%, #fbbf24 100%);
}
html[data-food-design] #app.food-channel .f-promo-slide.tone-rose {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.24) 0%, transparent 50%),
    linear-gradient(135deg, #e11d48 0%, #f43f5e 60%, #fb7185 100%);
}
html[data-food-design] #app.food-channel .f-promo-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
html[data-food-design] #app.food-channel .f-promo-tag {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
html[data-food-design] #app.food-channel .f-promo-copy strong {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}
html[data-food-design] #app.food-channel .f-promo-copy small {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
html[data-food-design] #app.food-channel .f-promo-slide > img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
html[data-food-design] #app.food-channel .f-promo-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
html[data-food-design] #app.food-channel .f-promo-dots button {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width .2s ease, background .2s ease;
}
html[data-food-design] #app.food-channel .f-promo-dots button[aria-current="true"] {
  width: 20px;
  background: #ffffff;
}
html[data-food-design] .app-shell {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html[data-food-design] #app.food-channel .f-shop {
  height: calc(100dvh - 52px) !important;
}
html[data-food-design] #app.food-channel .f-checkout-page {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
}
html[data-food-design] #app.food-channel .f-product-detail {
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 14.8 Accessibility (Skip-Link, >=12px Legible Typography) & Commercial Auth/Empty Guides */
.f-skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1677ff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.35);
}
.f-skip-link:focus,
.f-skip-link:focus-visible {
  left: 12px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
html[data-food-design] #app.food-channel .dining-market [data-delivery-availability],
html[data-food-design] #app.food-channel .dining-market .f-region-status button,
html[data-food-design] #app.food-channel .f-promo-tag,
html[data-food-design] #app.food-channel .f-promo-copy small,
html[data-food-design] #app.food-channel .f-shop-copy > small,
html[data-food-design] #app.food-channel .f-tabbar span,
html[data-food-design] #app.food-channel .sm-user-meta small,
html[data-food-design] #app.food-channel .f-cart-dock-copy small,
html[data-food-design] #app.food-channel .f-global-cart small {
  font-size: 12px !important;
}
html[data-food-design] #app.food-channel .f-auth-guide,
html[data-food-design] #app.food-channel .f-empty-commercial {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 14px 0;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px solid var(--sp-line);
  background: #ffffff;
  box-shadow: var(--sp-shadow);
}
html[data-food-design] #app.food-channel .f-auth-guide h3,
html[data-food-design] #app.food-channel .f-empty-commercial strong {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-ink);
}
html[data-food-design] #app.food-channel .f-auth-guide p,
html[data-food-design] #app.food-channel .f-empty-commercial p {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}
html[data-food-design] #app.food-channel .f-auth-guide .f-action,
html[data-food-design] #app.food-channel .f-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  min-height: 40px;
  padding: 0 22px;
  width: auto !important;
  border-radius: 20px !important;
  background: var(--sp-brand) !important;
  color: var(--sp-brand-ink) !important;
  font-size: 13.5px !important;
  font-weight: 700;
  text-decoration: none;
}
html[data-food-design] #app.food-channel .f-legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
  font-size: 12px;
  color: var(--sp-ink-3);
}
html[data-food-design] #app.food-channel .f-legal-footer a {
  color: var(--sp-ink-2);
  text-decoration: none;
}

/* 14.9 Standalone Student Login & Native WeChat QR Payment Modals */
.f-auth-fields {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}
.f-auth-error {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
}
.f-auth-terms {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.f-auth-terms a {
  color: var(--sp-brand, #1677ff);
  text-decoration: none;
}
.f-logout-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
}
.f-wxpay-qr-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 6px;
  text-align: center;
}
.f-wxpay-qr-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.f-wxpay-qr-amount span {
  font-size: 13px;
  color: #64748b;
}
.f-wxpay-qr-amount strong {
  font-size: 26px;
  font-weight: 800;
  color: #07c160;
}
.f-wxpay-qr-box {
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #07c160;
  box-shadow: 0 10px 28px rgba(7, 193, 96, 0.14);
}
.f-wxpay-qr-box img {
  display: block;
  width: 204px;
  height: 204px;
  image-rendering: pixelated;
}
.f-wxpay-qr-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.f-wxpay-qr-trade {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}
.f-wxpay-qr-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.f-wxpay-qr-actions .f-action {
  background: #07c160 !important;
  color: #ffffff !important;
  border-radius: 22px !important;
}
.f-wxpay-qr-actions .f-wxpay-sync {
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.f-wxpay-bar {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #86efac;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.12);
}
.f-wxpay-meta {
  display: grid;
  gap: 4px;
}
.f-wxpay-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.f-wxpay-meta strong {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
}
.f-wxpay-meta small {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}
.f-wxpay-countdown {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.f-wxpay-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.f-wxpay-btn {
  margin: 0 !important;
  min-height: 42px !important;
  background: #07c160 !important;
  color: #ffffff !important;
  border-radius: 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.f-wxpay-bar .f-wxpay-sync {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.f-wxpay-qr-countdown {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fa-order-pay-pill {
  padding: 3px 10px !important;
  border-radius: 999px;
  background: #07c160 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.fa-order-countdown {
  color: #b45309 !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}
.f-order-no-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #475569;
}
.f-delivery-proof-card {
  display: grid;
  gap: 8px;
  border: 1.5px solid #a7f3d0 !important;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
}
.f-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.f-proof-head strong {
  font-size: 15px;
  font-weight: 700;
  color: #065f46;
}
.f-proof-head small {
  font-size: 12px;
  color: #64748b;
}
.f-proof-note {
  margin: 0;
  font-size: 13.5px;
  color: #1e293b;
}
.f-proof-note b {
  color: #0f172a;
}
.f-proof-photo-wrap img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d1fae5;
}
.f-proof-tip {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

/* === 2026-12-03 UI Polish: Crisp Native Back Button, Flagship Notice Bar, Self-Pickup Hint & Brand Logo === */
html[data-food-design] .native-bar #back {
  left: 6px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #1f2329 !important;
  box-shadow: none !important;
  transition: background 0.14s ease, transform 0.12s ease;
}
html[data-food-design] .native-bar #back:active {
  background: rgba(15, 23, 42, 0.07) !important;
  transform: translateY(-50%) scale(0.92) !important;
}
html[data-food-design] .native-bar #back svg {
  width: 21px !important;
  height: 21px !important;
  display: block;
}

/* Flagship Announcement Bar (Shop & Home) — Warm Amber Pill + Crisp Ellipsis (Never Cuts Characters) */
html[data-food-design] #app.food-channel .f-shop-announcement,
html[data-food-design] #app.food-channel .dining-market .f-announcement {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
  background: linear-gradient(90deg, #fff8eb 0%, #fffbf2 100%) !important;
  border: 1px solid #fde3b3 !important;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.06) !important;
  text-align: left !important;
}
html[data-food-design] #app.food-channel .f-shop-announcement b,
html[data-food-design] #app.food-channel .dining-market .f-announcement b {
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  background: linear-gradient(135deg, #ff7a18 0%, #ff5500 100%) !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.03em;
}
html[data-food-design] #app.food-channel .f-shop-announcement .f-notice-window,
html[data-food-design] #app.food-channel .dining-market .f-announcement .f-notice-window {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
html[data-food-design] #app.food-channel .f-shop-announcement .f-notice-track,
html[data-food-design] #app.food-channel .dining-market .f-announcement .f-notice-track {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  animation: none !important;
  color: #7c4a12 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}
html[data-food-design] #app.food-channel .f-shop-announcement .f-notice-track > span,
html[data-food-design] #app.food-channel .dining-market .f-announcement .f-notice-track > span {
  display: inline !important;
}
html[data-food-design] #app.food-channel .f-shop-announcement .f-notice-track > span + span,
html[data-food-design] #app.food-channel .dining-market .f-announcement .f-notice-track > span + span {
  display: none !important;
}
html[data-food-design] #app.food-channel .f-shop-announcement i,
html[data-food-design] #app.food-channel .dining-market .f-announcement i {
  flex: none !important;
  margin-left: 2px !important;
  font-style: normal !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #d97706 !important;
}

/* Self-Pickup Checkout Verification Hint */
.f-pickup-verify-tip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: #166534;
}
.f-pickup-verify-tip b {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  background: #16a34a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}

/* Brand Logo Emblem on Student H5 Masthead */
.f-brand-logo-emblem {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}
html[data-food-design] #app.food-channel .dining-market .f-campus-trigger:has(.f-brand-logo-emblem) > .student-icon {
  display: none !important;
}
