/* ============================================================
   小榆校园 · 商家后台 / 社团工作台 · admin.css
   两套管理端共用同一套组件，只补 base.css 没有的「管理端」布局。
   颜色、字号、圆角、阴影全部引用 --yu-* 变量，不另立色板。
   依赖：同目录 yu-base.css（即 ui-shell 的 base.css）
   图标：./assets/icons/*.svg（路径已按站点目录调整）
   ============================================================ */

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

/* ---------- 页面级 ---------- */
[hidden] { display: none !important; }
.ad-page { padding-bottom: calc(var(--yu-tabbar-h) + 26px + var(--yu-safe-bottom)); }
.ad-page--action { padding-bottom: calc(88px + var(--yu-safe-bottom)); }
.ad-section { margin-top: var(--yu-section-gap); }
.ad-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 2px 10px; }
.ad-section__title { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-h3); font-weight: 700; }
.ad-section__sub { font-size: var(--yu-fs-micro); color: var(--yu-text-3); font-weight: 400; }
.ad-section__link { display: inline-flex; align-items: center; gap: 2px; font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.ad-muted { color: var(--yu-text-3); }
.ad-strong { font-weight: 700; }
.ad-num { font-variant-numeric: tabular-nums; }

/* ---------- 管理端头部 ---------- */
.ad-appbar {
  position: relative; overflow: hidden;
  padding: calc(10px + var(--yu-safe-top)) var(--yu-gutter) 16px;
  background: var(--yu-gradient-hero);
  color: #fff;
  border-radius: 0 0 var(--yu-radius-xl) var(--yu-radius-xl);
  box-shadow: 0 10px 26px rgba(31, 107, 74, .16);
}
.ad-appbar::before {
  content: ""; position: absolute; width: 200px; height: 200px; right: -96px; top: -110px;
  border: 26px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none;
}
.ad-appbar::after {
  content: ""; position: absolute; left: 18px; bottom: 14px; width: 66px; height: 26px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 2px, transparent 2.5px);
  background-size: 13px 13px; transform: rotate(-10deg); pointer-events: none;
}
.ad-appbar__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-appbar__brand { display: flex; align-items: center; gap: 7px; font-size: var(--yu-fs-caption); opacity: .9; min-width: 0; }
.ad-appbar__brand img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .18); padding: 2px; }
.ad-appbar__acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ad-appbar__btn {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
}
.ad-appbar__btn:active { background: rgba(255, 255, 255, .26); }
.ad-appbar__btn .yu-badge { position: absolute; top: -4px; right: -5px; box-shadow: 0 0 0 2px #2E8B63; }
.ad-appbar__title {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
  font-family: var(--yu-font-display);
  font-size: 23px; line-height: 1.26; font-weight: 800; letter-spacing: .01em;
}
.ad-appbar__title .yu-tag { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .26); }
.ad-appbar__sub { position: relative; z-index: 2; margin-top: 4px; font-size: var(--yu-fs-caption); opacity: .86; }

/* 头部内嵌的三格数据 */
.ad-appbar__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 14px;
  border-radius: var(--yu-radius-md);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  overflow: hidden;
}
.ad-appbar__stat { padding: 9px 10px; background: rgba(23, 82, 57, .16); }
.ad-appbar__stat b { display: block; font-size: 20px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-appbar__stat span { display: block; margin-top: 2px; font-size: var(--yu-fs-micro); opacity: .82; }
.ad-appbar__stat em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .9; }

/* 营业状态条 */
.ad-openbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 12px;
  border-radius: var(--yu-radius-md);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
}
.ad-openbar__txt { flex: 1; min-width: 0; }
.ad-openbar__t { font-size: var(--yu-fs-sm); font-weight: 700; }
.ad-openbar__s { margin-top: 1px; font-size: var(--yu-fs-micro); opacity: .82; }
.ad-openbar .yu-switch__track { background: rgba(255, 255, 255, .34); }
.ad-openbar .yu-switch input:checked + .yu-switch__track { background: var(--yu-orange); }

/* ---------- 顶部下划线 tab（社团后台 5 tab） ---------- */
.ad-tabs {
  position: sticky; top: 0; z-index: 25;
  display: flex; gap: 18px;
  margin: 0 calc(-1 * var(--yu-gutter));
  padding: 0 var(--yu-gutter);
  background: rgba(255, 248, 240, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yu-border);
  overflow-x: auto; scrollbar-width: none;
}
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs__item {
  position: relative; flex-shrink: 0;
  padding: 12px 0 10px;
  font-size: var(--yu-fs-sm); color: var(--yu-text-2); white-space: nowrap;
}
.ad-tabs__item.is-active { color: var(--yu-primary-strong); font-weight: 700; }
.ad-tabs__item.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--yu-primary); transform: translateX(-50%);
}
.ad-tabs__item .yu-badge { margin-left: 4px; vertical-align: 1px; }

/* 底部 tab 适配 3/4 项 */
.ad-tabbar--3 .yu-tabbar__inner { grid-auto-columns: 1fr; }

/* ---------- 吸顶筛选 ---------- */
.ad-filterbar {
  position: sticky; top: 0; z-index: 24;
  margin: 0 calc(-1 * var(--yu-gutter));
  padding: 9px var(--yu-gutter) 7px;
  background: rgba(255, 248, 240, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yu-border);
}
.ad-filterbar .yu-chips { padding-bottom: 0; }
.ad-filterbar__note { margin-top: 5px; font-size: 10px; color: var(--yu-text-3); }

/* ---------- 数据卡 ---------- */
.ad-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ad-stat {
  background: var(--yu-surface);
  border: 1px solid var(--yu-border);
  border-radius: var(--yu-radius-lg);
  box-shadow: var(--yu-shadow-xs);
  padding: 11px 12px;
}
.ad-stat__label { font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-stat__value { margin-top: 3px; font-size: 22px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-stat__value small { font-size: 12px; font-weight: 600; color: var(--yu-text-3); }
.ad-stat__foot { margin-top: 3px; font-size: 10px; color: var(--yu-text-3); }
.ad-stat__foot b { color: var(--yu-success); font-weight: 700; }
.ad-stat--accent { background: var(--yu-gradient-warm); border-color: #F6E3CE; }
.ad-stat--leaf { background: var(--yu-gradient-leaf); border-color: #DDEEE4; }
.ad-stats--4 .ad-stat { padding: 10px 8px; text-align: center; }
.ad-stats--4 .ad-stat__value { font-size: 19px; }

/* 小图标块 */
.ad-icbox {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: var(--yu-radius-md);
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
}
.ad-icbox .yu-ico { width: 20px; height: 20px; }
.ad-icbox--sm { width: 32px; height: 32px; border-radius: var(--yu-radius-sm); }
.ad-icbox--sm .yu-ico { width: 17px; height: 17px; }
.ad-icbox--orange { background: var(--yu-orange-soft); color: var(--yu-orange-700); }
.ad-icbox--warm { background: #FFF6EA; color: #B27A3E; }
.ad-icbox--danger { background: var(--yu-danger-soft); color: var(--yu-danger); }
.ad-icbox--neutral { background: var(--yu-bg-sub); color: var(--yu-text-2); }

/* 待办行 */
.ad-todo { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.ad-todo + .ad-todo { border-top: 1px solid var(--yu-border); }
.ad-todo__body { flex: 1; min-width: 0; }
.ad-todo__t { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-sm); font-weight: 600; }
.ad-todo__s { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-todo__go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: var(--yu-fs-caption); color: var(--yu-primary-strong); font-weight: 600; }

/* 大扫码入口 */
.ad-scan {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: var(--yu-radius-lg);
  background: var(--yu-gradient-hero);
  color: #fff;
  box-shadow: var(--yu-shadow-green);
}
.ad-scan:active { transform: scale(.99); }
.ad-scan__ic {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--yu-radius-md);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
}
.ad-scan__ic .yu-ico { width: 24px; height: 24px; }
.ad-scan__body { flex: 1; min-width: 0; }
.ad-scan__t { font-size: var(--yu-fs-body); font-weight: 700; }
.ad-scan__s { margin-top: 2px; font-size: var(--yu-fs-micro); opacity: .84; }

/* ---------- 订单 ---------- */
.ad-order { padding: 12px 14px; }
.ad-order__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-order__no { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-order__no span { font-size: var(--yu-fs-micro); font-weight: 400; color: var(--yu-text-3); }
.ad-order__items { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--yu-border); display: grid; gap: 4px; }
.ad-order__item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.ad-order__item b { font-weight: 600; color: var(--yu-text); }
.ad-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--yu-border); }
.ad-order__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ad-order__fee { font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-order--new { border-color: var(--yu-green-200); }
.ad-order__timeline { margin-top: 10px; padding: 9px 10px; border-radius: var(--yu-radius-md); background: var(--yu-bg-sub); font-size: var(--yu-fs-micro); color: var(--yu-text-2); line-height: 1.7; }
.ad-order__timeline b { color: var(--yu-primary-strong); }

/* ---------- 菜品 ---------- */
.ad-dish { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.ad-dish + .ad-dish { border-top: 1px solid var(--yu-border); }
.ad-dish__img { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--yu-radius-md); object-fit: cover; background: var(--yu-cream-deep); }
.ad-dish__body { flex: 1; min-width: 0; }
.ad-dish__name { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-sm); font-weight: 600; min-width: 0; }
.ad-dish__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-dish__meta { margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-dish__price { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.ad-dish__price b { color: var(--yu-danger); font-size: var(--yu-fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-dish__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ad-dish--off .ad-dish__img { filter: grayscale(.85); opacity: .7; }
.ad-dish--off .ad-dish__name { color: var(--yu-text-2); }
.ad-dish__switchrow { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--yu-text-3); }

/* 菜单照片墙 */
.ad-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-photo {
  position: relative; overflow: hidden;
  border-radius: var(--yu-radius-md);
  border: 1px solid var(--yu-border);
  background: var(--yu-surface);
  box-shadow: var(--yu-shadow-xs);
}
.ad-photo__img { width: 100%; height: 112px; object-fit: cover; display: block; }
.ad-photo__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; }
.ad-photo__name { font-size: var(--yu-fs-micro); color: var(--yu-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-photo__acts { display: flex; align-items: center; gap: 2px; color: var(--yu-text-3); flex-shrink: 0; }
.ad-photo__acts .yu-ico { width: 15px; height: 15px; }
.ad-photo__tag { position: absolute; top: 7px; left: 7px; }
.ad-photo__cover { position: absolute; top: 7px; right: 7px; }
.ad-photo--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 148px;
  border-style: dashed; border-color: var(--yu-border-strong);
  background: var(--yu-bg-sub);
  color: var(--yu-text-3); font-size: var(--yu-fs-micro);
}

/* ---------- 券 ---------- */
.ad-coupon { display: flex; overflow: hidden; border-radius: var(--yu-radius-lg); background: var(--yu-surface); border: 1px solid var(--yu-border); box-shadow: var(--yu-shadow-sm); }
.ad-coupon__left {
  position: relative; flex-shrink: 0;
  width: 94px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--yu-gradient-leaf);
  border-right: 1px dashed var(--yu-line-strong);
  text-align: center;
}
.ad-coupon__left::before, .ad-coupon__left::after {
  content: ""; position: absolute; right: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yu-bg);
}
.ad-coupon__left::before { top: -5px; }
.ad-coupon__left::after { bottom: -5px; }
.ad-coupon__amt { font-size: 23px; line-height: 1.1; font-weight: 800; color: var(--yu-primary-strong); font-variant-numeric: tabular-nums; }
.ad-coupon__amt small { font-size: 12px; font-weight: 700; }
.ad-coupon__cond { margin-top: 3px; font-size: 10px; color: var(--yu-text-3); }
.ad-coupon__right { flex: 1; min-width: 0; padding: 11px 12px; }
.ad-coupon__name { display: flex; align-items: center; gap: 5px; font-size: var(--yu-fs-sm); font-weight: 600; min-width: 0; }
.ad-coupon__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-coupon__desc { margin-top: 3px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.5; }
.ad-coupon__use { margin-top: 7px; }
.ad-coupon__usebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--yu-text-3); margin-bottom: 4px; }
.ad-coupon__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ad-coupon--off { opacity: .72; }
.ad-coupon--off .ad-coupon__left { background: var(--yu-bg-sub); }
.ad-coupon--off .ad-coupon__amt { color: var(--yu-text-3); }

.ad-progress { height: 6px; border-radius: var(--yu-radius-pill); background: var(--yu-cream-deep); overflow: hidden; }
.ad-progress__bar { height: 100%; border-radius: inherit; background: var(--yu-gradient-primary); }
.ad-progress__bar--accent { background: var(--yu-gradient-accent); }
.ad-progress__bar--danger { background: var(--yu-danger); }

/* ---------- 扫码核销 ---------- */
.ad-scanbox {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  height: 226px;
  border-radius: var(--yu-radius-lg);
  background: radial-gradient(circle at 50% 40%, #1F6B4A 0%, #175239 62%, #0F3827 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ad-scanbox__frame { position: relative; width: 164px; height: 164px; border-radius: 18px; }
.ad-scanbox__frame::before, .ad-scanbox__frame::after {
  content: ""; position: absolute; width: 30px; height: 30px;
  border: 3px solid var(--yu-orange); border-radius: 6px;
}
.ad-scanbox__frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.ad-scanbox__frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.ad-scanbox__corner { position: absolute; width: 30px; height: 30px; border: 3px solid var(--yu-orange); border-radius: 6px; }
.ad-scanbox__corner--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.ad-scanbox__corner--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.ad-scanbox__line {
  position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--yu-orange), transparent);
  box-shadow: 0 0 12px rgba(255, 157, 60, .8);
  animation: ad-scanline 2.4s var(--yu-ease) infinite;
}
@keyframes ad-scanline { 0%, 100% { top: 12px; } 50% { top: 148px; } }
.ad-scanbox__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: var(--yu-fs-micro); color: rgba(255, 255, 255, .78); }
.ad-scanbox__tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ad-scanbox__tools button {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
}

/* 核销结果卡 */
.ad-result { position: relative; padding: 14px; border-radius: var(--yu-radius-lg); border: 1px solid var(--yu-green-200); background: var(--yu-gradient-leaf); }
.ad-result--done { border-color: var(--yu-warning-soft); background: var(--yu-warning-soft); }
.ad-result--invalid { border-color: #F3CFCD; background: var(--yu-danger-soft); }
.ad-result__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-result__t { font-size: var(--yu-fs-body); font-weight: 700; }
.ad-result__rows { display: grid; gap: 5px; margin-top: 9px; }
.ad-result__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.ad-result__row b { font-weight: 700; color: var(--yu-text); font-variant-numeric: tabular-nums; }

/* 二维码 */
.ad-qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px; border-radius: var(--yu-radius-md);
  background: #fff; border: 1px solid var(--yu-border);
  box-shadow: var(--yu-shadow-xs);
}
.ad-qr canvas { width: 156px; height: 156px; display: block; border-radius: 4px; }
.ad-qr__cap { font-size: 10px; color: var(--yu-text-3); }
.ad-qrcard { text-align: center; padding: 16px 14px; }
.ad-qrcard__hint { margin-top: 10px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.6; }
.ad-qrcard__acts { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- 表单 / 资料 ---------- */
.ad-cover { position: relative; height: 132px; overflow: hidden; border-radius: var(--yu-radius-lg); }
.ad-cover img { width: 100%; height: 100%; object-fit: cover; }
.ad-cover__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 56, 39, 0) 40%, rgba(15, 56, 39, .55) 100%); }
.ad-cover__btn {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px; border-radius: var(--yu-radius-pill);
  background: rgba(255, 255, 255, .92); color: var(--yu-text);
  font-size: var(--yu-fs-micro); font-weight: 600;
}
.ad-cover__badge { position: absolute; left: 10px; top: 10px; }
.ad-fieldgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.ad-inline-note { margin-top: 6px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.6; }
.ad-license {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--yu-radius-md);
  background: var(--yu-bg-sub); border: 1px solid var(--yu-border);
}
.ad-license__thumb { width: 54px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--yu-cream-deep); border: 1px solid var(--yu-border); }
.ad-license__body { flex: 1; min-width: 0; }
.ad-license__t { font-size: var(--yu-fs-caption); font-weight: 600; }
.ad-license__s { margin-top: 2px; font-size: 10px; color: var(--yu-text-3); }

/* 时段行 */
.ad-slot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0; }
.ad-slot + .ad-slot { border-top: 1px dashed var(--yu-border); }
.ad-slot__day { width: 76px; flex-shrink: 0; font-size: var(--yu-fs-caption); color: var(--yu-text-2); }
.ad-slot__time { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: var(--yu-radius-sm); background: var(--yu-bg-sub); font-size: var(--yu-fs-caption); font-variant-numeric: tabular-nums; }
.ad-slot__del { margin-left: auto; color: var(--yu-text-3); }

/* ---------- 社团：成员 / 权限 ---------- */
.ad-person { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.ad-person + .ad-person { border-top: 1px solid var(--yu-border); }
.ad-face {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: var(--yu-fs-caption); font-weight: 700;
}
.ad-face--orange { background: var(--yu-orange-soft); color: var(--yu-orange-700); }
.ad-face--warm { background: #FFF6EA; color: #B27A3E; }
.ad-person__body { flex: 1; min-width: 0; }
.ad-person__t { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-sm); font-weight: 600; min-width: 0; }
.ad-person__t span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-person__s { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-person__acts { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.ad-checkslot { flex-shrink: 0; width: 20px; }
.ad-select-slot { flex-shrink: 0; display: flex; align-items: center; }

/* 权限说明 */
.ad-perm { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; }
.ad-perm + .ad-perm { border-top: 1px dashed var(--yu-border); }
.ad-perm__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; background: var(--yu-primary); }
.ad-perm__dot--orange { background: var(--yu-orange); }
.ad-perm__dot--neutral { background: var(--yu-ink-3); }
.ad-perm__t { font-size: var(--yu-fs-caption); font-weight: 600; }
.ad-perm__s { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.6; }

/* ---------- 社团：活动 ---------- */
.ad-act { padding: 0; overflow: hidden; }
.ad-act__cover { position: relative; height: 104px; overflow: hidden; }
.ad-act__cover img { width: 100%; height: 100%; object-fit: cover; }
.ad-act__cover--poster {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; color: #fff;
  background: var(--yu-gradient-hero);
}
.ad-act__cover--poster::before {
  content: ""; position: absolute; right: -46px; bottom: -64px; width: 150px; height: 150px;
  border: 22px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.ad-act__poster-t { position: relative; z-index: 1; font-family: var(--yu-font-display); font-size: 18px; font-weight: 800; line-height: 1.3; }
.ad-act__poster-s { position: relative; z-index: 1; margin-top: 4px; font-size: 10px; opacity: .82; }
.ad-act__cover--poster .yu-ico { position: relative; z-index: 1; width: 42px; height: 42px; opacity: .55; }
.ad-act__status { position: absolute; right: 10px; top: 10px; }
.ad-act__body { padding: 11px 14px 13px; }
.ad-act__title { display: flex; align-items: center; gap: 6px; font-size: var(--yu-fs-sm); font-weight: 700; }
.ad-act__meta { margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-act__meta span { display: inline-flex; align-items: center; gap: 3px; }
.ad-act__meta .yu-ico { width: 12px; height: 12px; }
.ad-act__stat { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--yu-border); font-size: var(--yu-fs-micro); color: var(--yu-text-2); }
.ad-act__acts { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- 社团：签到 ---------- */
.ad-count { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 2px; }
.ad-count__num { font-size: 40px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--yu-primary-strong); }
.ad-count__unit { font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.ad-ring { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--yu-orange) 0 62%, var(--yu-cream-deep) 62% 100%); }
.ad-ring__in { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yu-surface); font-size: 12px; font-weight: 800; color: var(--yu-orange-700); font-variant-numeric: tabular-nums; }
.ad-signstat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- 社团：抽奖 ---------- */
.ad-prize { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ad-prize + .ad-prize { border-top: 1px dashed var(--yu-border); }
.ad-prize__rank {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: var(--yu-radius-md);
  background: var(--yu-accent-soft); color: var(--yu-accent-strong);
  font-size: var(--yu-fs-caption); font-weight: 800;
}
.ad-prize__rank--2 { background: var(--yu-primary-soft); color: var(--yu-primary-strong); }
.ad-prize__rank--3 { background: var(--yu-bg-sub); color: var(--yu-text-2); }
.ad-prize__body { flex: 1; min-width: 0; }
.ad-prize__t { font-size: var(--yu-fs-caption); font-weight: 600; }
.ad-prize__s { margin-top: 2px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); }
.ad-roll {
  display: grid; place-items: center; gap: 4px;
  min-height: 86px; margin-top: 10px; padding: 12px;
  border-radius: var(--yu-radius-md);
  background: var(--yu-gradient-warm);
  border: 1px dashed #F0D6BA;
}
.ad-roll__label { font-size: 10px; color: var(--yu-text-3); letter-spacing: .08em; }
.ad-roll__name { font-family: var(--yu-font-display); font-size: 21px; font-weight: 800; color: var(--yu-accent-strong); }
.ad-winner { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.ad-winner + .ad-winner { border-top: 1px dashed var(--yu-border); }
.ad-winner__no { width: 20px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); font-variant-numeric: tabular-nums; }

/* ---------- 社团：券额度 ---------- */
.ad-quota { position: relative; padding: 14px; border-radius: var(--yu-radius-lg); background: var(--yu-gradient-leaf); border: 1px solid #DDEEE4; }
.ad-quota__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ad-quota__t { font-size: var(--yu-fs-caption); font-weight: 600; color: var(--yu-primary-strong); }
.ad-quota__num { margin-top: 2px; font-size: 26px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--yu-primary-strong); }
.ad-quota__num small { font-size: 12px; font-weight: 600; color: var(--yu-text-3); }
.ad-quota__bar { margin-top: 10px; height: 8px; }
.ad-quota__foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--yu-text-3); }

/* ---------- 零散 ---------- */
.ad-rows { display: grid; gap: 0; }
.ad-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: var(--yu-fs-sm); }
.ad-row + .ad-row { border-top: 1px solid var(--yu-border); }
.ad-row__label { flex: 1; min-width: 0; }
.ad-row__value { font-size: var(--yu-fs-caption); color: var(--yu-text-3); text-align: right; }
.ad-empty { padding: 34px 20px; text-align: center; }
.ad-empty__t { font-size: var(--yu-fs-sm); font-weight: 600; color: var(--yu-text-2); }
.ad-empty__s { margin-top: 4px; font-size: var(--yu-fs-micro); color: var(--yu-text-3); line-height: 1.6; }
.ad-devnote { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; border-radius: var(--yu-radius-sm); background: var(--yu-bg-sub); font-size: 10px; line-height: 1.65; color: var(--yu-text-3); }
.ad-devnote .yu-ico { width: 13px; height: 13px; margin-top: 1px; color: var(--yu-text-3); }
.ad-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding-top: 6px; }
.ad-chart__col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.ad-chart__bar { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--yu-gradient-primary); }
.ad-chart__bar--accent { background: var(--yu-gradient-accent); }
.ad-chart__x { font-size: 9px; color: var(--yu-text-3); }
.ad-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: var(--yu-fs-caption); }
.ad-kv + .ad-kv { margin-top: 6px; }
.ad-kv span { color: var(--yu-text-2); }
.ad-kv b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-seg-4 .yu-segmented { grid-auto-columns: 1fr; }
.ad-scroll-x { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--yu-gutter)); padding: 0 var(--yu-gutter); }
.ad-scroll-x::-webkit-scrollbar { display: none; }

/* 管理端底部 tab 文案更小一点，避免 4 项挤 */
.ad-tabbar .yu-tabbar__item { font-size: 10px; }

/* ============================================================
   平台后台（桌面侧栏 + 内容区）
   来源：2026-11-18/ui-lines/admin/outputs/admin.css
   全部规则以 .ad-app 作用域收口，避免影响商家后台 / 社团工作台。
   ============================================================ */
.ad-body { background: var(--yu-bg); }

.ad-app { display: flex; min-height: 100vh; background: var(--yu-bg); }
.ad-app .ad-side {
  position: sticky; top: 0; z-index: 40;
  width: 224px; flex-shrink: 0;
  height: 100vh; height: 100dvh;
  padding: 16px 10px 20px;
  overflow-y: auto; overscroll-behavior: contain;
  color: #fff;
  background: linear-gradient(168deg, #339967 0%, #267A57 26%, #1F6B4A 58%, #175239 100%);
  box-shadow: 8px 0 28px rgba(23, 82, 57, .12);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .24) transparent;
}
.ad-app .ad-side::-webkit-scrollbar { width: 6px; }
.ad-app .ad-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 3px; }

.ad-app .ad-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 15px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ad-app .ad-brand__logo {
  width: 40px; height: 40px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  border-radius: var(--yu-radius-md);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
}
.ad-app .ad-brand__logo img { width: 36px; height: auto; }
.ad-app .ad-brand__name { font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.ad-app .ad-brand__sub { margin-top: 3px; font-size: 11px; color: rgba(255, 255, 255, .62); }

.ad-app .ad-nav { margin-top: 12px; }
.ad-app .ad-nav__group + .ad-nav__group { margin-top: 4px; }
.ad-app .ad-nav__title {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 10px 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; color: rgba(255, 255, 255, .54);
}
.ad-app .ad-nav__title .yu-ico { width: 15px; height: 15px; opacity: .9; }
.ad-app .ad-nav__link {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 8px 10px 8px 30px;
  border-radius: var(--yu-radius-sm);
  font-size: 13px; color: rgba(255, 255, 255, .8);
  transition: background var(--yu-dur-fast) var(--yu-ease), color var(--yu-dur-fast) var(--yu-ease);
}
.ad-app .ad-nav__link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ad-app .ad-nav__link::before {
  content: ""; position: absolute; left: 15px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: rgba(255, 255, 255, .32);
}
.ad-app .ad-nav__link.is-active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ad-app .ad-nav__link.is-active::before { background: var(--yu-accent); box-shadow: 0 0 0 4px rgba(255, 157, 60, .16); }
.ad-app .ad-nav__badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--yu-radius-pill);
  background: var(--yu-accent); color: #5C2E05;
  font-size: 10px; line-height: 18px; font-weight: 700; text-align: center;
}
.ad-app .ad-side__foot { margin-top: 16px; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 11px; color: rgba(255, 255, 255, .56); line-height: 1.9; }
.ad-app .ad-side__foot a { color: rgba(255, 255, 255, .82); font-weight: 600; }
.ad-app .ad-side__foot a:hover { color: #fff; }

.ad-app .ad-scrim { display: none; }
.ad-app .ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ad-app .ad-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 24px;
  background: rgba(255, 248, 240, .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yu-border);
}
.ad-app .ad-burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: -6px;
  border-radius: 50%; color: var(--yu-text);
}
.ad-app .ad-burger:active { background: var(--yu-cream-deep); }
.ad-app .ad-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--yu-text-3); }
.ad-app .ad-crumb span { white-space: nowrap; }
.ad-app .ad-crumb i { font-style: normal; color: var(--yu-line-strong); }
.ad-app .ad-crumb b { color: var(--yu-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-app .ad-topacts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ad-app .ad-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--yu-text-2); background: var(--yu-white); border: 1px solid var(--yu-border);
}
.ad-app .ad-iconbtn:hover { color: var(--yu-primary-strong); border-color: var(--yu-green-200); }
.ad-app .ad-who { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.ad-app .ad-who__avatar {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: 12px; font-weight: 700; border: 1px solid var(--yu-green-200);
}
.ad-app .ad-who__name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.ad-app .ad-who__role { font-size: 10px; color: var(--yu-text-3); margin-top: 2px; }

.ad-app .ad-content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 24px 56px; }
.ad-app .ad-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ad-app .ad-pagehead h1 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.ad-app .ad-pagehead p { margin-top: 5px; font-size: 12px; color: var(--yu-text-2); }
.ad-app .ad-pageacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ad-app .ad-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ad-app .ad-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-app .ad-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-app .ad-stat { background: var(--yu-surface); border: 1px solid var(--yu-border); border-radius: var(--yu-radius-lg); box-shadow: var(--yu-shadow-sm); padding: 14px 16px; }
.ad-app .ad-stat__label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--yu-text-3); }
.ad-app .ad-stat__num { margin-top: 7px; font-size: 26px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-app .ad-stat__num small { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--yu-text-3); }
.ad-app .ad-stat__sub { margin-top: 4px; font-size: 11px; color: var(--yu-text-3); }
.ad-app .ad-stat--warn .ad-stat__num { color: var(--yu-warning); }
.ad-app .ad-stat--danger .ad-stat__num { color: var(--yu-danger); }
.ad-app .ad-stat--ok .ad-stat__num { color: var(--yu-primary-strong); }

.ad-app .ad-grid { display: grid; gap: 14px; }
.ad-app .ad-grid > *, .ad-app .ad-split > * { min-width: 0; }
.ad-app .ad-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-app .ad-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-app .ad-grid--sidebar { grid-template-columns: minmax(0, 1fr) 322px; align-items: start; }
.ad-app .ad-grid--detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.ad-app .ad-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ad-app .ad-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ad-app .ad-stack > * { min-width: 0; }
.ad-app .ad-sticky { position: sticky; top: 72px; }

.ad-app .ad-card { min-width: 0; background: var(--yu-surface); border: 1px solid var(--yu-border); border-radius: var(--yu-radius-lg); box-shadow: var(--yu-shadow-sm); }
.ad-app .ad-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--yu-border); }
.ad-app .ad-card__title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.ad-app .ad-card__sub { font-size: 11px; color: var(--yu-text-3); }
.ad-app .ad-card__body { padding: 14px 16px; }
.ad-app .ad-card__body--flush { padding: 0; }
.ad-app .ad-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--yu-border); }
.ad-app .ad-card--warm { background: var(--yu-gradient-warm); border-color: #F6E3CE; }
.ad-app .ad-card--leaf { background: var(--yu-gradient-leaf); border-color: #DDEEE4; }

.ad-app .ad-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--yu-border); background: var(--yu-paper); }
.ad-app .ad-toolbar__grow { flex: 1; min-width: 160px; }
.ad-app .ad-toolbar .yu-chips { padding: 0; }
.ad-app .ad-filter { height: 34px; padding: 0 12px; border: 1px solid var(--yu-border-strong); border-radius: var(--yu-radius-sm); background: var(--yu-white); font-size: 12px; color: var(--yu-text); }
.ad-app .ad-search { height: 34px; font-size: 12px; }
.ad-app .ad-search .yu-ico { left: 11px; width: 16px; height: 16px; }
.ad-app .ad-search input { font-size: 12px; }

.ad-app .ad-tablewrap { width: 100%; overflow-x: auto; }
.ad-app .ad-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.ad-app .ad-table th { padding: 10px 12px; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--yu-text-3); background: #FCF7EF; border-bottom: 1px solid var(--yu-border); }
.ad-app .ad-table td { padding: 11px 12px; font-size: 12.5px; line-height: 1.55; border-bottom: 1px solid var(--yu-border); vertical-align: middle; }
.ad-app .ad-table tbody tr { transition: background var(--yu-dur-fast) var(--yu-ease); }
.ad-app .ad-table tbody tr:hover { background: #FFFBF5; }
.ad-app .ad-table tbody tr.is-active { background: var(--yu-primary-soft); }
.ad-app .ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-app .ad-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-app .ad-table .nowrap { white-space: nowrap; }
.ad-app .ad-table--dense td { padding: 9px 12px; }
.ad-app .ad-cellmain { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-app .ad-thumb { width: 38px; height: 38px; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: var(--yu-primary-soft); }
.ad-app .ad-thumb--lg { width: 52px; height: 52px; border-radius: 12px; }
.ad-app .ad-rowtitle { font-size: 12.5px; font-weight: 600; color: var(--yu-text); }
.ad-app .ad-rowsub { margin-top: 2px; font-size: 11px; color: var(--yu-text-3); }
.ad-app .ad-acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ad-app .ad-link { padding: 4px 7px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--yu-primary-strong); white-space: nowrap; }
.ad-app .ad-link:hover { background: var(--yu-primary-soft); }
.ad-app .ad-link--danger { color: var(--yu-danger); }
.ad-app .ad-link--danger:hover { background: var(--yu-danger-soft); }
.ad-app .ad-link--muted { color: var(--yu-text-2); font-weight: 500; }

.ad-app .ad-kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 9px 12px; font-size: 12.5px; }
.ad-app .ad-kv dt { color: var(--yu-text-3); }
.ad-app .ad-kv dd { margin: 0; color: var(--yu-text); word-break: break-word; }
.ad-app .ad-kv--wide { grid-template-columns: 110px minmax(0, 1fr); }
.ad-app .ad-timeline { margin: 0; padding: 0; list-style: none; }
.ad-app .ad-timeline li { position: relative; margin-left: 5px; padding: 0 0 16px 18px; border-left: 2px solid var(--yu-line); }
.ad-app .ad-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.ad-app .ad-timeline li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--yu-primary); box-shadow: 0 0 0 3px var(--yu-primary-soft); }
.ad-app .ad-timeline li.is-warn::before { background: var(--yu-warning); box-shadow: 0 0 0 3px var(--yu-warning-soft); }
.ad-app .ad-timeline li.is-danger::before { background: var(--yu-danger); box-shadow: 0 0 0 3px var(--yu-danger-soft); }
.ad-app .ad-timeline__time { font-size: 11px; color: var(--yu-text-3); }
.ad-app .ad-timeline__text { margin-top: 3px; font-size: 12.5px; line-height: 1.6; }
.ad-app .ad-meter { height: 6px; border-radius: 3px; background: var(--yu-cream-deep); overflow: hidden; }
.ad-app .ad-meter__fill { height: 100%; border-radius: 3px; background: var(--yu-gradient-primary); }
.ad-app .ad-meter__fill--warn { background: linear-gradient(90deg, #F2A44C, #E8892F); }
.ad-app .ad-meter__fill--danger { background: linear-gradient(90deg, #E2746F, #D9534F); }

.ad-app .ad-bars { display: flex; align-items: flex-end; gap: 10px; height: 128px; padding-top: 10px; }
.ad-app .ad-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ad-app .ad-bar__fill { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #5CB68A, #2E8B63); }
.ad-app .ad-bar__fill--warn { background: linear-gradient(180deg, #F6B369, #E8892F); }
.ad-app .ad-bar__label { font-size: 10px; color: var(--yu-text-3); white-space: nowrap; }
.ad-app .ad-bar__val { font-size: 10px; font-weight: 600; color: var(--yu-text-2); font-variant-numeric: tabular-nums; }

.ad-app .ad-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ad-app .ad-photo { overflow: hidden; border: 1px solid var(--yu-border); border-radius: var(--yu-radius-md); background: var(--yu-white); }
.ad-app .ad-photo img { width: 100%; height: 118px; object-fit: cover; background: var(--yu-cream-deep); }
.ad-app .ad-photo__body { padding: 9px 10px; }
.ad-app .ad-photo__name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-app .ad-photo__meta { margin-top: 3px; font-size: 10.5px; color: var(--yu-text-3); }
.ad-app .ad-photo__acts { display: flex; gap: 4px; margin-top: 7px; }
.ad-app .ad-photo__acts .yu-btn { flex: 1; }
.ad-app .ad-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-app .ad-thumbs img, .ad-app .ad-thumbs a { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--yu-radius-sm); border: 1px solid var(--yu-border); background: var(--yu-cream-deep); display: block; }

.ad-app .ad-preview-phone { width: 270px; margin: 0 auto; padding: 12px; border: 1px solid var(--yu-border-strong); border-radius: 26px; background: var(--yu-white); box-shadow: var(--yu-shadow-md); }
.ad-app .ad-preview-phone__screen { padding: 14px 12px; border-radius: 18px; background: var(--yu-bg); }
.ad-app .ad-preview-phone__bar { display: flex; justify-content: space-between; font-size: 10px; color: var(--yu-text-3); margin-bottom: 12px; }
.ad-app .ad-preview-phone__title { font-size: 13px; font-weight: 700; }
.ad-app .ad-preview-phone__text { margin-top: 6px; font-size: 12px; color: var(--yu-text-2); line-height: 1.6; }
.ad-app .ad-preview-phone__banner { margin-top: 12px; padding: 10px 12px; border-radius: var(--yu-radius-md); background: var(--yu-warning-soft); color: #9A5A17; font-size: 11px; line-height: 1.6; }

.ad-app .ad-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-app .ad-diff__col { padding: 9px 10px; border-radius: var(--yu-radius-sm); font-size: 12px; line-height: 1.6; }
.ad-app .ad-diff__col b { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.ad-app .ad-diff__before { background: var(--yu-danger-soft); color: #8F3A36; }
.ad-app .ad-diff__after { background: var(--yu-success-soft); color: #266E49; }

.ad-app .ad-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-app .ad-flow__node { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--yu-radius-pill); background: var(--yu-primary-soft); color: var(--yu-primary-strong); font-size: 12px; font-weight: 600; }
.ad-app .ad-flow__node--accent { background: var(--yu-orange-soft); color: var(--yu-orange-700); }
.ad-app .ad-flow__node--neutral { background: var(--yu-bg-sub); color: var(--yu-text-2); }
.ad-app .ad-flow__arrow { color: var(--yu-text-3); font-size: 12px; }
.ad-app .ad-coupon { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--yu-border); border-radius: var(--yu-radius-md); background: var(--yu-white); }
.ad-app .ad-coupon__amt { text-align: center; padding-right: 12px; border-right: 1px dashed var(--yu-line-strong); }
.ad-app .ad-coupon__amt b { display: block; font-size: 22px; line-height: 1.1; color: var(--yu-danger); font-variant-numeric: tabular-nums; }
.ad-app .ad-coupon__amt b small { font-size: 11px; }
.ad-app .ad-coupon__amt span { display: block; margin-top: 3px; font-size: 10px; color: var(--yu-text-3); }

.ad-app .ad-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--yu-primary); vertical-align: 1px; }
.ad-app .ad-dot--warn { background: var(--yu-warning); }
.ad-app .ad-dot--danger { background: var(--yu-danger); }
.ad-app .ad-dot--muted { background: var(--yu-ink-3); }
.ad-app .ad-muted { color: var(--yu-text-3); }
.ad-app .ad-small { font-size: 11px; }
.ad-app .ad-strong { font-weight: 700; }
.ad-app .ad-nowrap { white-space: nowrap; }
.ad-app .ad-mt { margin-top: 12px; }
.ad-app .ad-mt-lg { margin-top: 18px; }
.ad-app .ad-hr { height: 1px; background: var(--yu-border); margin: 14px 0; }
.ad-app .ad-empty-line { padding: 26px 16px; text-align: center; font-size: 12px; color: var(--yu-text-3); }
.ad-app .ad-tagrow { display: flex; flex-wrap: wrap; gap: 6px; }

.ad-app .ad-prose {
  margin-top: 8px; padding: 10px 12px;
  border-radius: var(--yu-radius-md);
  background: var(--yu-bg-sub);
  font-size: 12.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
  max-height: 260px; overflow: auto;
}
.ad-app .ad-fieldgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ad-app .ad-formacts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ad-app .ad-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 899px) {
  .ad-app .ad-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 120;
    width: 258px; height: 100dvh;
    transform: translateX(-104%);
    transition: transform var(--yu-dur-slow) var(--yu-ease);
    box-shadow: var(--yu-shadow-lg);
  }
  .ad-app .ad-side.is-open { transform: translateX(0); }
  .ad-app .ad-scrim {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(35, 30, 24, .44);
    opacity: 0; visibility: hidden;
    transition: opacity var(--yu-dur) var(--yu-ease), visibility var(--yu-dur);
  }
  .ad-app .ad-scrim.is-open { opacity: 1; visibility: visible; }
  .ad-app .ad-burger { display: inline-flex; }
  .ad-app .ad-topbar { padding: 0 14px; min-height: 52px; }
  .ad-app .ad-content { padding: 16px 14px 44px; }
  .ad-app .ad-pagehead h1 { font-size: 19px; }
  .ad-app .ad-stats, .ad-app .ad-stats--4, .ad-app .ad-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-app .ad-grid--2, .ad-app .ad-grid--3, .ad-app .ad-grid--sidebar, .ad-app .ad-grid--detail, .ad-app .ad-split { grid-template-columns: 1fr; }
  .ad-app .ad-sticky { position: static; }
  .ad-app .ad-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-app .ad-who__name, .ad-app .ad-who__role { display: none; }
  .ad-app .ad-card__body { padding: 12px 14px; }
  .ad-app .ad-card__head, .ad-app .ad-card__foot, .ad-app .ad-toolbar { padding-left: 14px; padding-right: 14px; }
  .ad-app .ad-coupon { grid-template-columns: 78px minmax(0, 1fr); }
  .ad-app .ad-coupon > .ad-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .ad-app .ad-fieldgrid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .ad-app .ad-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .ad-app .ad-content { max-width: 1240px; }
}

/* ---------- 管理端真实页面补充（商家 / 社团） ---------- */
.yu-card__title { font-family: var(--yu-font-display); font-size: var(--yu-fs-sm); font-weight: 800; color: var(--yu-text); }
.yu-card__desc { margin: 3px 0 12px; font-size: var(--yu-fs-caption); color: var(--yu-text-3); line-height: 1.6; }

/* 扫码框视频层 */
.ad-scanbox__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.ad-scanbox__frame, .ad-scanbox__hint { z-index: 2; }

/* 封面 / logo */
.ad-cover__mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 56, 39, 0) 38%, rgba(15, 56, 39, .62) 100%);
}
.ad-cover__body {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  display: flex; flex-direction: column; gap: 2px; color: #fff;
}
.ad-cover__body b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ad-cover__body span { font-size: 11px; opacity: .86; }
.ad-cover__logo { position: absolute; left: 12px; bottom: 48px; }
.ad-logo {
  display: grid; place-items: center; overflow: hidden;
  border-radius: 14px; background: var(--yu-primary-soft);
  color: var(--yu-primary-strong); font-weight: 700;
}
.ad-logo img { width: 100%; height: 100%; object-fit: cover; }
.ad-logo--md { width: 48px; height: 48px; font-size: 22px; }
.ad-logo--lg { width: 54px; height: 54px; font-size: 26px; border: 2px solid rgba(255, 255, 255, .92); background: #fff; }

.ad-cover-edit {
  position: relative; height: 118px; border-radius: var(--yu-radius-md);
  overflow: hidden; background: var(--yu-bg-sub);
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--yu-border-strong);
}
.ad-cover-edit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-cover-edit__empty { font-size: var(--yu-fs-caption); color: var(--yu-text-3); }
.ad-cover-edit__btn { position: absolute; right: 8px; bottom: 8px; z-index: 2; }

/* 相册 */
.ad-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ad-gallery__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--yu-bg-sub); }
.ad-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.ad-gallery__ops {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 2px; padding: 3px;
  background: rgba(0, 0, 0, .48);
}
.ad-gallery__ops button { color: #fff; font-size: 10px; line-height: 1.6; padding: 0 4px; }

/* 营业时间行 */
.ad-slot input[type="time"] {
  width: 96px; height: 30px; padding: 0 6px;
  border: 1px solid var(--yu-border); border-radius: 8px;
  background: #fff; color: var(--yu-text); font-size: var(--yu-fs-caption);
  font-variant-numeric: tabular-nums;
}
.ad-slot__sep { font-size: 11px; color: var(--yu-text-3); }
.ad-slot__rest {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--yu-fs-micro); color: var(--yu-text-2);
}

/* 活动置顶徽标 */
.ad-act__pin {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .93); color: var(--yu-primary-strong);
  font-size: 10px; font-weight: 700;
}
.ad-act__pin .yu-ico { width: 11px; height: 11px; }

/* 数据概览 */
.ad-bigcard {
  padding: 18px 16px 14px; color: #fff;
  border-radius: var(--yu-radius-lg);
  background: radial-gradient(120% 120% at 100% 0%, #3F9A74 0%, #2E8B63 46%, #226B4C 100%);
  box-shadow: var(--yu-shadow-md);
}
.ad-bigcard__label { font-size: var(--yu-fs-caption); opacity: .82; }
.ad-bigcard__num { margin-top: 4px; display: flex; align-items: baseline; gap: 4px; font-family: var(--yu-font-display); }
.ad-bigcard__num span { font-size: 38px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-bigcard__num small { font-size: 13px; font-weight: 600; opacity: .86; }
.ad-bigcard__pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ad-bigcard__pill { padding: 8px 9px; border-radius: var(--yu-radius-sm); background: rgba(255, 255, 255, .14); }
.ad-bigcard__pill b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-bigcard__pill span { display: block; margin-top: 2px; font-size: 10px; opacity: .8; }
.ad-bigcard .ad-inline-note { color: rgba(255, 255, 255, .72); margin-top: 10px; }

.ad-bars { display: flex; align-items: flex-end; gap: 10px; height: 138px; padding-top: 14px; }
.ad-bars__col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px;
}
.ad-bars__v { font-size: 9px; color: var(--yu-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-vbar {
  width: 100%; max-width: 30px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #5CB68A, #2E8B63);
}
.ad-bars__axis { display: flex; gap: 10px; margin-top: 6px; }
.ad-bars__axis span { flex: 1; text-align: center; font-size: 9px; color: var(--yu-text-3); }

.ad-rankrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.ad-rankrow + .ad-rankrow { border-top: 1px dashed var(--yu-border); }
.ad-rankrow__no {
  width: 22px; height: 22px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--yu-bg-sub); color: var(--yu-text-2);
  font-size: 11px; font-weight: 800;
}
.ad-rankrow__no.is-first { background: var(--yu-gradient-accent); color: #5C2E05; }
.ad-rankrow__no.is-second { background: var(--yu-primary-soft); color: var(--yu-primary-strong); }
.ad-rankrow__dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 999px; }
.ad-rankrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ad-rankrow__name {
  font-size: var(--yu-fs-caption); color: var(--yu-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-rankrow__val { font-size: var(--yu-fs-caption); color: var(--yu-text); text-align: right; font-variant-numeric: tabular-nums; }

/* 点评 */
.ad-review { padding: 14px; }
.ad-review__head { display: flex; align-items: center; gap: 9px; }
.ad-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: 14px; font-weight: 800;
}
.ad-review__who { flex: 1; min-width: 0; }
.ad-review__who b { display: block; font-size: var(--yu-fs-caption); font-weight: 700; }
.ad-review__who span { display: block; margin-top: 2px; font-size: 10px; color: var(--yu-text-3); }
.ad-review__like { font-size: 11px; color: var(--yu-orange-600); }
.ad-stars { color: var(--yu-orange); letter-spacing: 1px; }
.ad-review__text { margin-top: 9px; font-size: var(--yu-fs-caption); color: var(--yu-text-2); line-height: 1.7; }
.ad-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.ad-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--yu-bg-sub); }
.ad-reply {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--yu-radius-sm);
  background: var(--yu-primary-soft); color: var(--yu-primary-strong);
  font-size: var(--yu-fs-caption); line-height: 1.65;
}
.ad-reply.is-pending { background: var(--yu-warning-soft); color: #8A5A13; }
.ad-reply b { font-weight: 700; }
.ad-review__foot { margin-top: 8px; display: flex; justify-content: flex-end; }

/* 抽奖彩带 */
@keyframes lotteryPop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.06); opacity: 1 } 100% { transform: scale(1) } }
@keyframes lotteryRise { from { transform: translateY(14px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes confettiFall { to { transform: translateY(120px) rotate(300deg); opacity: 0 } }
.lottery-pop { animation: lotteryPop .5s ease-out both; }
.lottery-rise { animation: lotteryRise .45s ease-out both; }
.confetti { position: absolute; width: 7px; height: 11px; border-radius: 2px; animation: confettiFall 1.1s ease-in forwards; }

/* 头像色系 */
.ad-face--danger { background: var(--yu-danger-soft); color: var(--yu-danger); }

