/* ============================================================
   小榆生活站 · 统一应用样式
   设计 token 与基础组件沿用原 common.css，新增统一组件层
   ============================================================ */

:root {
  /* 品牌色：保留校园绿，以猫小榆的奶橘色作为 IP 点缀 */
  --yu-green: #2E8B63;
  --yu-green-dark: #1F6B4A;
  --yu-cream: #FFF8F0;
  --yu-orange: #FF9D3C;
  --yu-orange-dark: #D96B1F;
  --yu-orange-soft: #FFF0DC;
  --yu-peach: #FFD7B0;
  --yu-ink: #3F3A34;
  --yu-ink-secondary: #746E66;
  --yu-ink-tertiary: #9C958C;
  --yu-line: #F1E7DB;
  --yu-white: #FFFFFF;

  /* 头部渐变断点 */
  --yu-gradient-start: #49A57D;
  --yu-gradient-mid: #2E8B63;
  --yu-gradient-end: #1F6B4A;

  /* 语义主题 token */
  --yu-background: var(--yu-cream);
  --yu-foreground: var(--yu-ink);
  --yu-card: var(--yu-white);
  --yu-card-foreground: var(--yu-ink);
  --yu-popover: var(--yu-white);
  --yu-popover-foreground: var(--yu-ink);
  --yu-primary: var(--yu-green);
  --yu-primary-foreground: var(--yu-white);
  --yu-muted: #EAF5EE;
  --yu-muted-foreground: var(--yu-ink-secondary);
  --yu-border: var(--yu-line);
  --yu-input: #E9DDCF;
  --yu-ring: var(--yu-orange);

  /* 状态色（允许的语义强调色） */
  --yu-state-info: #EAF5EE;
  --yu-state-info-hover: #DDEEE4;
  --yu-state-info-foreground: #1F6B4A;
  --yu-state-warning: #FF8C42;
  --yu-state-warning-foreground: #FFFFFF;
  --yu-state-success: #6BCB77;
  --yu-state-error: #FF6B6B;
  --yu-state-star: #FFB400;

  /* 更圆润的组件刻度 */
  --yu-radius-sm: 8px;
  --yu-radius-md: 12px;
  --yu-radius-lg: 18px;
  --yu-radius-xl: 24px;
  --yu-radius-pill: 999px;

  /* 字体 */
  --yu-font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --yu-font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  /* 安全区与布局 */
  --yu-tab-h: 78px;
  --yu-wrap: 480px;
  --yu-shadow: 0 2px 3px rgba(102, 72, 37, .03), 0 10px 26px rgba(102, 72, 37, .07);
  --yu-shadow-soft: 0 5px 16px rgba(102, 72, 37, .055);
}

/* ===== 基础 ===== */
* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--yu-background); color: var(--yu-foreground); font-family: var(--yu-font-sans); }
td, th { word-break: break-all; }
th { white-space: nowrap; }
img { -webkit-user-drag: none; user-select: none; }
a { text-decoration: none; color: inherit; }
input, textarea, button, select { font-family: inherit; }
button { border: none; background: none; padding: 0; color: inherit; cursor: pointer; }

/* ===== 应用容器 ===== */
.app-shell {
  width: 100%;
  max-width: var(--yu-wrap);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--yu-background);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .04);
}
@media (min-width: 768px) {
  .app-shell { max-width: 420px; }
}
.page-pad { padding-bottom: calc(var(--yu-tab-h) + 12px); }
.page-pad.no-tab { padding-bottom: 12px; }

/* ===== 语义工具类（与 Tailwind 语义类同名） ===== */
.bg-background { background-color: var(--yu-background); }
.text-background { color: var(--yu-background); }
.bg-foreground { background-color: var(--yu-foreground); }
.text-foreground { color: var(--yu-foreground); }
.bg-card { background-color: var(--yu-card); }
.text-card { color: var(--yu-card); }
.text-card-foreground { color: var(--yu-card-foreground); }
.bg-popover { background-color: var(--yu-popover); }
.text-popover-foreground { color: var(--yu-popover-foreground); }
.bg-primary { background-color: var(--yu-primary); }
.text-primary { color: var(--yu-primary); }
.border-primary { border-color: var(--yu-primary); }
.bg-primary-foreground { background-color: var(--yu-primary-foreground); }
.text-primary-foreground { color: var(--yu-primary-foreground); }
.bg-muted { background-color: var(--yu-muted); }
.text-muted { color: var(--yu-muted); }
.text-muted-foreground { color: var(--yu-muted-foreground); }
.bg-border { background-color: var(--yu-border); }
.border-border { border-color: var(--yu-border); }
.bg-input { background-color: var(--yu-input); }
.border-input { border-color: var(--yu-input); }
.bg-ring { background-color: var(--yu-ring); }

/* 状态色工具类 */
.bg-state-info { background-color: var(--yu-state-info); }
.hover\:bg-state-info-hover:hover { background-color: var(--yu-state-info-hover); }
.text-state-info-foreground { color: var(--yu-state-info-foreground); }
.bg-state-warning { background-color: var(--yu-state-warning); }
.text-state-warning-foreground { color: var(--yu-state-warning-foreground); }
.bg-state-error { background-color: var(--yu-state-error); }
.bg-state-success { background-color: var(--yu-state-success); }
.text-state-star { color: var(--yu-state-star); }
.text-state-error { color: var(--yu-state-error); }
.text-state-success { color: var(--yu-state-success); }

/* ===== 通用工具类 ===== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hairline-top { box-shadow: inset 0 1px 0 var(--yu-line); }
.tap-scale { transition: transform .15s ease; }
.tap-scale:active { transform: scale(.97); }
.tap-card { transition: transform .15s ease; }
.tap-card:active { transform: scale(.98); }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 顶部导航栏 ===== */
.nav-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 12px;
  background: var(--yu-card);
  border-bottom: 1px solid var(--yu-line);
}
.nav-bar .nav-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  font-size: 22px; line-height: 1; color: var(--yu-foreground);
}
.nav-bar .nav-title { font-size: 16px; font-weight: 600; color: var(--yu-foreground); }
.nav-bar .nav-title.center { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-bar .nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ===== 底部 TabBar ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--yu-white);
  border-top: 1px solid var(--yu-line);
}
.tabbar-inner {
  width: 100%; max-width: var(--yu-wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--yu-tab-h);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) {
  .tabbar-inner { max-width: 420px; }
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 0 4px; color: var(--yu-ink-tertiary); min-width: 0;
}
.tabbar a .tt-ic { width: 24px; height: 24px; flex-shrink: 0; }
.tabbar a .tt-tx { font-size: 11px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a.active { color: var(--yu-primary); font-weight: 600; }

/* ===== Toast ===== */
.toast-wrap { position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.toast-item {
  background: rgba(31, 107, 74, .92); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  animation: toastIn .2s ease, toastOut .2s ease 1.5s forwards; max-width: 260px;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ===== 评分星 ===== */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--yu-state-star); }
.stars i { width: 12px; height: 12px; }

/* ===== 空状态 ===== */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px; color: var(--yu-ink-tertiary); text-align: center; }
.empty-state .es-ic { width: 72px; height: 72px; margin-bottom: 12px; opacity: .5; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--yu-primary); color: #fff; font-weight: 600; font-size: 14px;
  border: none; border-radius: var(--yu-radius-pill); padding: 12px 20px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:active { transform: scale(.97); background: var(--yu-green-dark); }
.btn-primary:disabled { background: var(--yu-ink-tertiary); cursor: not-allowed; }
.btn-primary.block { display: flex; width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--yu-white); color: var(--yu-primary); font-weight: 600; font-size: 14px;
  border: 1px solid var(--yu-primary); border-radius: var(--yu-radius-pill); padding: 11px 20px; cursor: pointer;
  transition: transform .15s ease;
}
.btn-ghost:active { transform: scale(.97); }
.btn-ghost.block { display: flex; width: 100%; }
.btn-text { color: var(--yu-primary); font-size: 13px; font-weight: 600; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ===== 占位底色 ===== */
.ph-food { background: linear-gradient(135deg, #E7F2EC, #DDECE5); }
.ph-warm { background: linear-gradient(135deg, #FFF3E6, #FFE6D1); }

/* ============================================================
   新增统一组件层（学生端必须使用）
   ============================================================ */

/* 卡片 */
.yu-card {
  background: var(--yu-card);
  border-radius: var(--yu-radius-lg);
  box-shadow: var(--yu-shadow);
  padding: 14px;
}
.yu-card--flat { box-shadow: none; border: 1px solid var(--yu-border); }
.yu-card + .yu-card { margin-top: 12px; }

/* 区块标题 */
.yu-section { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.yu-section h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--yu-foreground); display: flex; align-items: center; gap: 6px; }
.yu-section .yu-section-sub { font-size: 10px; font-weight: 500; color: var(--yu-muted-foreground); }
.yu-section a { font-size: 12px; color: var(--yu-ink-tertiary); }

/* 列表行 */
.yu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; min-width: 0;
}
.yu-row + .yu-row { border-top: 1px solid var(--yu-line); }
.yu-row__thumb { width: 56px; height: 56px; border-radius: var(--yu-radius-md); object-fit: cover; flex-shrink: 0; background: var(--yu-state-info); }
.yu-row__body { flex: 1; min-width: 0; }
.yu-row__title { font-size: 13px; font-weight: 600; color: var(--yu-card-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-row__desc { font-size: 11px; color: var(--yu-muted-foreground); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-row__meta { font-size: 10px; color: var(--yu-ink-tertiary); margin-top: 4px; }
.yu-row__side { flex-shrink: 0; text-align: right; }

/* 设置型单元格 */
.yu-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; font-size: 14px; color: var(--yu-foreground);
}
.yu-cell + .yu-cell { border-top: 1px solid var(--yu-line); }
.yu-cell__label { flex: 1; min-width: 0; }
.yu-cell__value { color: var(--yu-ink-tertiary); font-size: 13px; }
.yu-cell__arrow { color: var(--yu-ink-tertiary); width: 16px; height: 16px; flex-shrink: 0; }

/* 标签 */
.yu-tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px; border-radius: var(--yu-radius-sm);
  font-size: 10px; font-weight: 600; line-height: 1.4;
  background: var(--yu-muted); color: var(--yu-state-info-foreground);
}
.yu-tag--warn { background: rgba(255, 140, 66, .12); color: #D96B1F; }
.yu-tag--error { background: rgba(255, 107, 107, .12); color: var(--yu-state-error); }
.yu-tag--gray { background: #F2F2F2; color: var(--yu-ink-tertiary); }

/* 输入 */
.yu-input {
  width: 100%; box-sizing: border-box;
  height: 44px; padding: 0 12px;
  border: 1px solid var(--yu-input); border-radius: var(--yu-radius-lg);
  background: var(--yu-white); color: var(--yu-foreground);
  font-size: 14px; outline: none; transition: border-color .15s ease;
}
.yu-input::placeholder { color: var(--yu-ink-tertiary); }
.yu-input:focus { border-color: var(--yu-ring); }
textarea.yu-input { height: auto; padding: 10px 12px; line-height: 1.5; resize: none; }
.yu-field { margin-bottom: 12px; }
.yu-field__label { display: block; font-size: 12px; color: var(--yu-muted-foreground); margin-bottom: 6px; }

/* 分段筛选 */
.yu-seg {
  display: flex; gap: 18px; align-items: center;
  padding: 0 4px; border-bottom: 1px solid var(--yu-line);
  overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.yu-seg::-webkit-scrollbar { display: none; }
.yu-seg button {
  position: relative; padding: 10px 0; font-size: 13px;
  color: var(--yu-muted-foreground); white-space: nowrap;
}
.yu-seg button.active { color: var(--yu-primary); font-weight: 700; }
.yu-seg button.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px; background: var(--yu-primary);
}

/* 宫格入口 */
.yu-grid { display: grid; gap: 2px; }
.yu-grid--4 { grid-template-columns: repeat(4, 1fr); }
.yu-grid--5 { grid-template-columns: repeat(5, 1fr); }
.yu-entry {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 2px; text-align: center; min-width: 0;
}
.yu-entry__ic {
  width: 44px; height: 44px; border-radius: var(--yu-radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--yu-state-info); font-size: 20px; line-height: 1;
}
.yu-entry__tx { font-size: 11px; color: var(--yu-card-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* 数据概览 */
.yu-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.yu-stats b { display: block; font-size: 17px; font-weight: 700; color: var(--yu-foreground); }
.yu-stats span { display: block; font-size: 11px; color: var(--yu-muted-foreground); margin-top: 2px; }

/* 头像 */
.yu-avatar { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; background: var(--yu-muted); flex-shrink: 0; }
.yu-avatar--lg { width: 60px; height: 60px; }

/* 价格 */
.yu-price { color: var(--yu-state-error); font-weight: 700; }
.yu-price small { font-size: 10px; font-weight: 600; }
.yu-price--muted { color: var(--yu-ink-tertiary); font-weight: 500; text-decoration: line-through; }

/* 骨架屏 */
.yu-skeleton { border-radius: var(--yu-radius-md); background: linear-gradient(90deg, #F1F1F1 25%, #F8F8F8 37%, #F1F1F1 63%); background-size: 400% 100%; animation: yuShine 1.2s ease infinite; }
@keyframes yuShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.yu-skeleton--row { height: 64px; margin-bottom: 10px; }
.yu-skeleton--card { height: 120px; margin-bottom: 12px; }

/* 底部抽屉 */
.yu-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 100; opacity: 0; transition: opacity .2s ease; }
.yu-mask.show { opacity: 1; }
.yu-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  background: var(--yu-white); border-radius: var(--yu-radius-xl) var(--yu-radius-xl) 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s ease;
  max-width: var(--yu-wrap); margin: 0 auto;
}
.yu-sheet.show { transform: none; }
.yu-sheet__title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* 确认对话框 */
.yu-dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: 260px; z-index: 101; background: var(--yu-white);
  border-radius: var(--yu-radius-xl); padding: 18px 16px 12px; opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.yu-dialog.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.yu-dialog__text { font-size: 14px; line-height: 1.5; text-align: center; color: var(--yu-foreground); }
.yu-dialog__acts { display: flex; gap: 10px; margin-top: 16px; }
.yu-dialog__acts button { flex: 1; }

/* 底部操作面板 */
.yu-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  background: var(--yu-card); border-radius: 18px 18px 0 0;
  padding: 10px 0 0; transform: translateY(100%);
  transition: transform .22s ease;
}
.yu-sheet.show { transform: translateY(0); }
.yu-sheet__title { padding: 10px 16px 6px; font-size: 12px; color: var(--yu-muted-foreground); text-align: center; }
.yu-sheet__body { max-height: 60vh; overflow-y: auto; }
.yu-sheet__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 15px; color: var(--yu-foreground);
  border-top: 1px solid var(--yu-border); cursor: pointer;
}
.yu-sheet__body .yu-sheet__item:first-child { border-top: none; }
.yu-sheet__item:active { background: var(--yu-state-info); }
.yu-sheet__check { color: var(--yu-primary); font-weight: bold; }
.yu-sheet__cancel {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--yu-card); border: none; border-top: 1px solid var(--yu-border);
  font-size: 15px; color: var(--yu-muted-foreground); cursor: pointer;
}

/* 分享卡片 */
.yu-share-card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: 280px; z-index: 101; opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.yu-share-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.yu-share-card__inner {
  background: var(--yu-card); border-radius: 18px; padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15); text-align: center;
}
.yu-share-card__cover {
  width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 10px;
}
.yu-share-card__title {
  font-size: 15px; font-weight: 600; color: var(--yu-foreground);
  margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yu-share-card__qr { width: 150px; height: 150px; margin: 4px auto; }
.yu-share-card__hint { font-size: 12px; color: var(--yu-muted-foreground); margin-bottom: 8px; }
.yu-share-card__url {
  font-size: 11px; color: var(--yu-muted-foreground); word-break: break-all;
  background: var(--yu-state-info); padding: 6px 8px; border-radius: 8px; margin-bottom: 12px;
}
.yu-share-card__acts { display: flex; gap: 8px; }
.yu-share-card__acts button { flex: 1; }

/* 搜索框 */
.yu-search {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: var(--yu-state-info); border-radius: var(--yu-radius-lg);
  font-size: 13px; color: var(--yu-muted-foreground);
}
.yu-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 13px; color: var(--yu-foreground); }

/* 品牌头部 */
.yu-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--yu-gradient-start) 0%, var(--yu-gradient-mid) 55%, var(--yu-gradient-end) 100%);
  border-radius: 0 0 26px 26px;
}
.yu-hero__title { font-size: 22px; font-weight: 700; letter-spacing: -.2px; margin: 0; }
.yu-hero__sub { font-size: 11px; opacity: .85; margin-top: 3px; }

/* 模块入口大卡 */
.yu-module-entry {
  display: block; border-radius: var(--yu-radius-xl); padding: 12px;
  box-shadow: var(--yu-shadow); transition: transform .15s ease;
}
.yu-module-entry:active { transform: scale(.98); }
.yu-module-entry--service { background: linear-gradient(135deg, #EAF6EF, #DCEFE4); }
.yu-module-entry--circle { background: linear-gradient(135deg, #FFF3EA, #FFE4D1); }

/* 分隔 */
.yu-divider { height: 8px; background: var(--yu-background); margin: 12px -16px; }

/* ==================== 券卡 ==================== */
.yu-coupon {
  display: flex; align-items: stretch; overflow: hidden;
  background: linear-gradient(90deg, var(--yu-white) 0%, var(--yu-white) 70%, #FDF1E8 70%);
  border-radius: var(--yu-radius-xl); box-shadow: var(--yu-shadow);
}
.yu-coupon--off { filter: grayscale(.85); opacity: .62; }
.yu-coupon__main { flex: 1; min-width: 0; padding: 14px; display: flex; align-items: center; gap: 12px; }
.yu-coupon__amt { width: 60px; flex-shrink: 0; text-align: center; }
.yu-coupon__amt b { font-size: 24px; line-height: 1; color: var(--yu-state-error); }
.yu-coupon__amt b small { font-size: 13px; vertical-align: top; }
.yu-coupon__amt span { display: block; font-size: 10px; color: var(--yu-muted-foreground); margin-top: 3px; }
.yu-coupon--off .yu-coupon__amt b { color: var(--yu-ink-tertiary); }
.yu-coupon__body { flex: 1; min-width: 0; }
.yu-coupon__name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yu-coupon__meta { font-size: 10px; color: var(--yu-muted-foreground); margin-top: 3px; }
.yu-coupon__side {
  width: 82px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 6px; border-left: 1px dashed var(--yu-border);
}

/* ==================== 抽奖九宫格 ==================== */
.yu-lottery-frame {
  background: linear-gradient(160deg, #FFE8A8 0%, #FFD06A 60%, #F7B43E 100%);
  border-radius: 24px; padding: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.yu-lottery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yu-lottery-cell {
  aspect-ratio: 1 / 1; border-radius: 14px; background: #FFFDF4;
  border: 2px solid #FFD06A; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.yu-lottery-cell .ic { font-size: 28px; line-height: 1; }
.yu-lottery-cell .nm { font-size: 11px; font-weight: 600; color: #5C3D00; text-align: center; padding: 0 4px; line-height: 1.25; }
.yu-lottery-cell.active {
  background: linear-gradient(160deg, #FFF2C4, #FFD76A); border-color: var(--yu-state-warning);
  box-shadow: 0 0 0 3px var(--yu-state-warning), 0 4px 14px rgba(255, 140, 66, .55);
  transform: scale(1.05);
}
.yu-lottery-center {
  aspect-ratio: 1 / 1; border-radius: 14px; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #FFD06A 0%, #F7B43E 70%, #D8921F 100%);
  border: 2px dashed #fff; box-shadow: 0 6px 18px rgba(216, 146, 31, .55);
  color: #fff; font-weight: 800; text-align: center;
}
.yu-lottery-center:active { transform: scale(.96); }
.yu-lottery-center.disabled { filter: grayscale(.6); cursor: not-allowed; }
.yu-lottery-center b { display: block; font-size: 20px; line-height: 1.1; }
.yu-lottery-center span { display: block; font-size: 10px; opacity: .95; margin-top: 2px; }

/* ==================== 扫码取景框 ==================== */
.yu-scan-frame {
  width: 240px; height: 240px; margin: 0 auto; position: relative; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .3); border-radius: var(--yu-radius-xl);
}
.yu-scan-frame::before, .yu-scan-frame::after {
  content: ''; position: absolute; width: 24px; height: 24px;
  border: 3px solid var(--yu-primary); border-radius: 4px; z-index: 2;
}
.yu-scan-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.yu-scan-frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.yu-scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yu-scan-line {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--yu-primary), transparent);
  animation: yuScanMove 2s ease-in-out infinite;
}
@keyframes yuScanMove {
  0% { top: 10%; opacity: .8; }
  50% { top: 90%; opacity: 1; }
  100% { top: 10%; opacity: .8; }
}

/* 二维码白底容器 */
.yu-qr-box { background: #fff; border: 1px solid var(--yu-border); border-radius: var(--yu-radius-lg); padding: 10px; }

/* M14 平台维护提示条 */
.yu-maint-bar {
  position: fixed; top: 52px; left: 0; right: 0; z-index: 900;
  padding: 8px 14px; text-align: center;
  font-size: 12px; line-height: 1.5;
  color: #8a4b00; background: #fff4e5; border-bottom: 1px solid #ffe0b2;
}

/* ============================================================
   猫小榆 IP · 全站圆润皮肤
   仅覆盖视觉，不改变页面结构、业务类名与交互状态。
   ============================================================ */
body {
  background: #F4EDE4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.app-shell {
  background: var(--yu-cream);
  box-shadow: 0 0 44px rgba(91, 65, 36, .07);
}
.page-pad { padding-bottom: calc(var(--yu-tab-h) + 24px); }
.page-pad.no-tab { padding-bottom: 20px; }

/* 顶部导航 */
.nav-bar {
  height: 58px;
  padding: 0 14px;
  background: #FFFDF9;
  border-bottom: 1px solid rgba(241, 231, 219, .8);
  box-shadow: 0 3px 14px rgba(102, 72, 37, .035);
}
.nav-bar .nav-back {
  width: 36px;
  height: 36px;
  background: var(--yu-orange-soft);
  border: 1px solid #F6E7D3;
  color: var(--yu-orange-dark);
  font-size: 24px;
  transition: transform .16s ease, background .16s ease;
}
.nav-bar .nav-back:active { transform: scale(.92); }
.nav-bar .nav-title { font-size: 17px; font-weight: 800; letter-spacing: .02em; }

/* 五个主导航保持原顺序，视觉升级为悬浮胶囊 */
.tabbar {
  left: 50%;
  right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 456px);
  transform: translateX(-50%);
  background: #FFFDF9;
  border: 1px solid #EFE3D5;
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(83, 57, 29, .14), 0 2px 6px rgba(83, 57, 29, .05);
  overflow: hidden;
}
.tabbar-inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 66px;
  padding-bottom: 0;
}
.tabbar a {
  position: relative;
  gap: 3px;
  color: #9B938A;
  transition: color .18s ease, transform .18s ease;
}
.tabbar a::before {
  content: '';
  position: absolute;
  top: 6px;
  width: 42px;
  height: 31px;
  border-radius: 13px;
  background: transparent;
  transition: background .18s ease, transform .18s ease;
}
.tabbar a .tt-ic,
.tabbar a .tt-tx { position: relative; z-index: 1; }
.tabbar a .tt-ic { width: 22px; height: 22px; transition: transform .18s ease; }
.tabbar a .tt-tx { font-size: 10px; font-weight: 600; }
.tabbar a.active { color: var(--yu-green-dark); }
.tabbar a.active::before { background: var(--yu-orange-soft); }
.tabbar a.active .tt-ic { transform: translateY(-1px); }
.tabbar a:active { transform: scale(.94); }
@media (min-width: 768px) {
  .tabbar { width: 396px; }
  .tabbar-inner { max-width: none; }
}

/* 卡片与现有 Tailwind 卡片统一，不改动态渲染类名 */
.yu-card,
.yu-module-entry,
.yu-coupon {
  border: 1px solid #F2E7DA;
  box-shadow: var(--yu-shadow);
}
.yu-card { border-radius: 22px; }
.app-shell .rounded-2xl { border-radius: 22px; }
.app-shell .rounded-xl { border-radius: 16px; }
.app-shell .shadow-sm { box-shadow: var(--yu-shadow-soft); }
.app-shell .bg-card.rounded-2xl,
.app-shell .bg-white.rounded-2xl { border: 1px solid rgba(239, 227, 213, .8); }
.yu-row + .yu-row,
.yu-cell + .yu-cell { border-color: var(--yu-line); }
.yu-row__thumb { border-radius: 15px; }
.yu-section h2 { font-size: 16px; font-weight: 800; }
.yu-entry__ic {
  border-radius: 16px;
  background: var(--yu-orange-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 157, 60, .08);
}
.yu-entry:nth-child(odd) .yu-entry__ic { background: var(--yu-state-info); }
.yu-avatar { box-shadow: 0 0 0 3px #FFF, 0 0 0 4px var(--yu-line); }
.yu-tag {
  padding: 3px 8px;
  border-radius: var(--yu-radius-pill);
  background: var(--yu-orange-soft);
  color: var(--yu-orange-dark);
}
.yu-stats b { color: var(--yu-green-dark); font-size: 19px; }

/* 按钮、输入与筛选 */
.btn-primary {
  background: var(--yu-green);
  box-shadow: 0 5px 13px rgba(46, 139, 99, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn-primary:active { background: var(--yu-green-dark); box-shadow: none; }
.btn-primary:disabled { box-shadow: none; opacity: .55; }
.btn-ghost { border-color: #B9D9C8; background: #FFFDF9; }
.btn-sm { border-radius: 12px; }
.yu-input {
  height: 46px;
  border-radius: 16px;
  background: #FFFDF9;
  border-color: var(--yu-input);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.yu-input:focus {
  border-color: var(--yu-orange);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(255, 157, 60, .12);
}
.yu-search { border-radius: 16px; background: #EDF5EF; }
.yu-seg {
  gap: 5px;
  padding: 4px;
  border: 0;
  border-radius: 17px;
  background: #F1E9DF;
}
.yu-seg button {
  padding: 8px 13px;
  border-radius: 13px;
  transition: color .16s ease, background .16s ease;
}
.yu-seg button.active { color: #FFF; background: var(--yu-green); }
.yu-seg button.active::after { display: none; }

/* 弹层、提示与状态页 */
.empty-state .es-ic {
  padding: 13px;
  border-radius: 24px;
  background: var(--yu-orange-soft);
  opacity: .72;
}
.yu-mask { background: rgba(55, 43, 31, .46); }
.yu-sheet {
  border-radius: 28px 28px 0 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid #F0E4D6;
  border-bottom: 0;
}
.yu-sheet::before {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 99px;
  background: #E6D8C8;
}
.yu-sheet__title { color: var(--yu-foreground); font-size: 16px; font-weight: 800; }
.yu-dialog,
.yu-share-card__inner { border: 1px solid #F0E4D6; border-radius: 24px; }
.toast-item { border-radius: 16px; background: rgba(63, 58, 52, .94); }
.yu-hero {
  border-radius: 0 0 34px 34px;
  box-shadow: 0 12px 28px rgba(31, 107, 74, .15);
}
.yu-module-entry--service { background: linear-gradient(135deg, #EFF8F1, #DDF0E4); }
.yu-module-entry--circle { background: linear-gradient(135deg, #FFF5E8, #FFE3C2); }

/* 键盘可达性与减少动态效果 */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(255, 157, 60, .58);
  outline-offset: 3px;
}
@media (hover: hover) {
  .btn-primary:hover { background: var(--yu-green-dark); transform: translateY(-1px); }
  .yu-card.tap-card:hover,
  .yu-module-entry:hover { transform: translateY(-2px); }
  .tabbar a:hover { color: var(--yu-green-dark); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

