/* ============================================================
   校园O2O商城 v2.0 - 现代化样式（响应式）
   ============================================================ */

@import url('./tokens.css');

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: 0; background: none; font: inherit; cursor: pointer; }
input, textarea { font: inherit; outline: none; border: 0; }
ul, ol { list-style: none; }

/* ============ 工具类 ============ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.f12 { font-size: var(--font-sm); }
.f14 { font-size: var(--font-base); }
.f16 { font-size: var(--font-md); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pointer { cursor: pointer; }
.relative { position: relative; }
.hidden { display: none !important; }

/* ============ App 容器 ============ */
.app {
  max-width: var(--container-pc);
  margin: 0 auto;
  background: var(--bg-body);
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

@media (min-width: 1024px) {
  .app {
    padding-bottom: var(--s-8);
    box-shadow: 0 0 24px rgba(0,0,0,.06);
  }
}

/* ============ 顶部导航 ============ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-2);
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  padding: 0 var(--container-pad);
  gap: var(--s-3);
}

@media (min-width: 1024px) {
  .nav-bar { height: var(--header-h-pc); }
}

.nav-bar__back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 20px;
  transition: background var(--dur-fast) var(--ease);
}
.nav-bar__back:active { background: var(--bg-hover); }

.nav-bar__title {
  font-size: var(--font-md);
  font-weight: 600;
  flex: 1;
  text-align: center;
  color: var(--text-1);
}

.nav-bar__right { display: flex; gap: var(--s-2); }

/* ============ 搜索栏（吸顶）============ */
.search-bar {
  position: sticky;
  top: var(--header-h-mobile);
  z-index: calc(var(--z-sticky) - 1);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--s-3) var(--container-pad);
  color: white;
}
@media (min-width: 1024px) {
  .search-bar { top: var(--header-h-pc); }
}

.search-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-full);
  padding: 8px 16px;
  color: var(--text-3);
  font-size: var(--font-sm);
  transition: all var(--dur-base) var(--ease);
}
.search-bar__inner:hover { background: white; box-shadow: var(--shadow-md); }
.search-bar__inner i { font-size: 16px; }
.search-bar__placeholder { flex: 1; }
.search-bar__city {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--font-base);
  font-weight: 600;
  color: white;
  margin-right: var(--s-3);
}
.search-bar__city::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid white;
}

/* ============ 头图 Banner ============ */
.hero {
  position: relative;
  height: 200px;
  background: var(--primary-gradient);
  overflow: hidden;
  margin-bottom: -50px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--container-pad);
}
.hero__title {
  color: white;
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--s-2);
  text-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.hero__sub {
  color: rgba(255,255,255,0.9);
  font-size: var(--font-sm);
}

@media (min-width: 1024px) {
  .hero { height: 280px; }
  .hero__title { font-size: var(--font-3xl); }
}

/* ============ 快捷入口（图标宫格）============ */
.quick-grid {
  position: relative;
  z-index: 2;
  margin: 0 var(--container-pad);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-5) var(--s-3);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4) var(--s-2);
}

@media (min-width: 640px) {
  .quick-grid { grid-template-columns: repeat(10, 1fr); }
}
@media (min-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(10, 1fr); padding: var(--s-6); }
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease);
}
.quick-item:active { transform: scale(0.92); }

.quick-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(91, 143, 249, 0.3);
  position: relative;
}

.quick-item[data-color="pink"] .quick-item__icon { background: linear-gradient(135deg, #FF6B9D, #FF8DB4); box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3); }
.quick-item[data-color="orange"] .quick-item__icon { background: linear-gradient(135deg, #FFB84D, #FFCC80); box-shadow: 0 2px 8px rgba(255, 184, 77, 0.3); }
.quick-item[data-color="green"] .quick-item__icon { background: linear-gradient(135deg, #52C41A, #73D13D); box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3); }
.quick-item[data-color="purple"] .quick-item__icon { background: linear-gradient(135deg, #B37FEB, #D3ADF7); box-shadow: 0 2px 8px rgba(179, 127, 235, 0.3); }
.quick-item[data-color="cyan"] .quick-item__icon { background: linear-gradient(135deg, #13C2C2, #36CFC9); box-shadow: 0 2px 8px rgba(19, 194, 194, 0.3); }
.quick-item[data-color="red"] .quick-item__icon { background: linear-gradient(135deg, #FF4D4F, #FF7875); box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3); }
.quick-item[data-color="indigo"] .quick-item__icon { background: linear-gradient(135deg, #722ED1, #9254DE); box-shadow: 0 2px 8px rgba(114, 46, 209, 0.3); }
.quick-item[data-color="teal"] .quick-item__icon { background: linear-gradient(135deg, #08979C, #13C2C2); box-shadow: 0 2px 8px rgba(8, 151, 156, 0.3); }
.quick-item[data-color="gold"] .quick-item__icon { background: linear-gradient(135deg, #D48806, #FFC53D); box-shadow: 0 2px 8px rgba(212, 136, 6, 0.3); }

.quick-item__badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--r-full);
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.quick-item__label {
  font-size: var(--font-sm);
  color: var(--text-1);
  line-height: 1.2;
}

/* ============ 模块标题 ============ */
.section {
  margin: var(--s-4) var(--container-pad) 0;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4);
  border-bottom: 1px solid var(--border-2);
}

.section-hd__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-1);
}

.section-hd__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: var(--r-xs);
}

.section-hd__more {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--font-sm);
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}
.section-hd__more:hover, .section-hd__more:active { color: var(--primary); }
.section-hd__more::after { content: '›'; font-size: 16px; line-height: 1; }

/* ============ 限时秒杀 ============ */
.seckill {
  background: linear-gradient(135deg, #FFF1F0 0%, #FFE7E5 100%);
}
.seckill .section-hd { border-bottom-color: rgba(255, 77, 79, 0.1); }
.seckill .section-hd__title::before { background: linear-gradient(135deg, #FF4D4F, #FF7875); }

.seckill-timer {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  font-size: var(--font-sm);
  color: var(--text-2);
}
.seckill-timer__boxes {
  display: flex;
  gap: 2px;
  align-items: center;
}
.seckill-timer__box {
  background: #1a1a1a;
  color: white;
  font-size: var(--font-sm);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.seckill-list {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.seckill-list::-webkit-scrollbar { display: none; }
.seckill-item {
  flex: 0 0 110px;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease);
}
.seckill-item:active { transform: scale(0.96); }
.seckill-item__img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-hover);
  position: relative;
}
.seckill-item__img img { width: 100%; height: 100%; object-fit: cover; }
.seckill-item__tag {
  position: absolute;
  top: 4px; left: 4px;
  background: linear-gradient(135deg, #FF4D4F, #FF7875);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.seckill-item__info { padding: var(--s-2); }
.seckill-item__price {
  color: var(--danger);
  font-size: var(--font-md);
  font-weight: 700;
}
.seckill-item__price small { font-size: 10px; }
.seckill-item__old {
  color: var(--text-4);
  text-decoration: line-through;
  font-size: var(--font-xs);
  margin-left: 4px;
}
.seckill-item__progress {
  margin-top: var(--s-2);
  height: 14px;
  background: #FFE7E5;
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
}
.seckill-item__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.4) 50%);
  background-size: 6px 6px;
  animation: shine 1.5s linear infinite;
}
.seckill-item__bar {
  height: 100%;
  background: linear-gradient(90deg, #FF4D4F, #FF7875);
  border-radius: var(--r-full);
}
.seckill-item__ptext {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--danger);
  font-weight: 600;
  z-index: 1;
}

@keyframes shine {
  0% { background-position: 0 0; }
  100% { background-position: 12px 0; }
}

/* ============ 校园特色：跑腿/二手/社团 ============ */
.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-4);
}
@media (min-width: 1024px) {
  .campus-grid { grid-template-columns: repeat(4, 1fr); }
}

.campus-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: var(--s-3);
  color: white;
  transition: transform var(--dur-fast) var(--ease);
  background: var(--primary);
}
.campus-card:active { transform: scale(0.98); }
.campus-card[data-color="errand"] { background: linear-gradient(135deg, #FF8C42, #FFB084); }
.campus-card[data-color="second"] { background: linear-gradient(135deg, #5B8FF9, #8FB6FF); }
.campus-card[data-color="club"] { background: linear-gradient(135deg, #B37FEB, #D3ADF7); }
.campus-card[data-color="love"] { background: linear-gradient(135deg, #FF6B9D, #FF9CBA); }
.campus-card[data-color="job"] { background: linear-gradient(135deg, #13C2C2, #5CDBD3); }
.campus-card[data-color="lost"] { background: linear-gradient(135deg, #FFC53D, #FFD666); }
.campus-card[data-color="book"] { background: linear-gradient(135deg, #52C41A, #95DE64); }
.campus-card[data-color="team"] { background: linear-gradient(135deg, #722ED1, #B37FEB); }

.campus-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 60%);
}
.campus-card__bg {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 40px;
  opacity: 0.6;
}
.campus-card__title {
  position: relative;
  font-size: var(--font-md);
  font-weight: 700;
  z-index: 1;
}
.campus-card__sub {
  position: relative;
  font-size: var(--font-xs);
  opacity: 0.9;
  z-index: 1;
}

/* ============ 推荐商品瀑布流 ============ */
.goods-tabs {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-3) var(--s-4);
  overflow-x: auto;
  border-bottom: 1px solid var(--border-2);
}
.goods-tabs::-webkit-scrollbar { display: none; }
.goods-tab {
  position: relative;
  font-size: var(--font-base);
  color: var(--text-2);
  font-weight: 500;
  padding: var(--s-2) 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.goods-tab--active {
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-md);
}
.goods-tab--active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--r-full);
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  padding: var(--s-3);
}

@media (min-width: 640px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}
@media (min-width: 1024px) {
  .goods-grid { grid-template-columns: repeat(4, 1fr); padding: var(--s-4); gap: var(--s-5); }
}
@media (min-width: 1280px) {
  .goods-grid { grid-template-columns: repeat(5, 1fr); }
}

.goods-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease);
  position: relative;
}
.goods-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.goods-card__cover {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-hover);
  overflow: hidden;
}
.goods-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.goods-card:hover .goods-card__cover img { transform: scale(1.05); }

.goods-card__tag {
  position: absolute;
  top: 6px; left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.goods-card__tag-item {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  color: white;
  font-weight: 600;
  background: var(--danger);
  letter-spacing: 0.5px;
}
.goods-card__tag-item--new { background: var(--success); }
.goods-card__tag-item--hot { background: linear-gradient(135deg, #FF4D4F, #FF7875); }
.goods-card__tag-item--recom { background: var(--primary); }
.goods-card__tag-item--campus { background: linear-gradient(135deg, #FF6B9D, #FF9CBA); }
.goods-card__tag-item--seckill { background: linear-gradient(135deg, #FA8C16, #FFA940); }
.goods-card__tag-item--group { background: linear-gradient(135deg, #722ED1, #B37FEB); }

.goods-card__fav {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 14px;
  transition: all var(--dur-fast) var(--ease);
  z-index: 1;
}
.goods-card__fav--active { background: var(--danger); color: white; }

.goods-card__info { padding: var(--s-3); }
.goods-card__title {
  font-size: var(--font-base);
  color: var(--text-1);
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goods-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--s-2);
}

.goods-card__price {
  color: var(--danger);
  font-size: var(--font-lg);
  font-weight: 700;
  font-family: var(--font-mono);
}
.goods-card__price small { font-size: var(--font-sm); font-weight: 500; }
.goods-card__price-old {
  color: var(--text-4);
  font-size: var(--font-xs);
  text-decoration: line-through;
  margin-left: 4px;
}

.goods-card__sales {
  color: var(--text-3);
  font-size: var(--font-xs);
}

.goods-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--border-2);
}
.goods-card__shop {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-xs);
  color: var(--text-3);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goods-card__shop-tag {
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
}
.goods-card__btn {
  background: var(--primary);
  color: white;
  font-size: var(--font-xs);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.goods-card__btn:hover, .goods-card__btn:active { background: var(--primary-dark); transform: scale(0.95); }

/* ============ 底部 TabBar ============ */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-2);
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  max-width: var(--container-pc);
  margin: 0 auto;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.tabbar-item__icon { font-size: 22px; }
.tabbar-item__label { font-size: var(--font-xs); }
.tabbar-item--active { color: var(--primary); }
.tabbar-item--active .tabbar-item__icon {
  transform: scale(1.1);
  transition: transform var(--dur-base) var(--ease-bounce);
}

/* ============ 浮动按钮（回到顶部/客服）============ */
.fab-group {
  position: fixed;
  right: var(--s-4);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--s-4));
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 18px;
  transition: all var(--dur-fast) var(--ease);
}
.fab:hover, .fab:active { background: var(--primary); color: white; transform: scale(1.1); }
.fab--primary { background: var(--primary-gradient); color: white; }
.fab--primary:hover { box-shadow: var(--shadow-glow); }

@media (min-width: 1024px) {
  .fab-group { right: var(--s-6); }
}

/* ============ 空状态 ============ */
.empty {
  padding: var(--s-12) var(--s-4);
  text-align: center;
  color: var(--text-3);
}
.empty__icon { font-size: 48px; opacity: 0.4; margin-bottom: var(--s-3); }
.empty__text { font-size: var(--font-sm); }

/* ============ 加载更多 ============ */
.loadmore {
  text-align: center;
  padding: var(--s-5) var(--s-4);
  color: var(--text-3);
  font-size: var(--font-sm);
}
.loadmore__spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--border-1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: var(--s-2);
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 公告条 ============ */
.notice {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-4) var(--container-pad);
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: var(--font-sm);
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.notice__icon {
  flex: 0 0 auto;
  color: var(--warning);
  font-size: 16px;
}
.notice__content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notice__btn {
  flex: 0 0 auto;
  color: var(--text-3);
  font-size: var(--font-xs);
  padding: 2px 6px;
}

/* ============ 弹窗 Toast ============ */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-toast);
  background: rgba(0, 0, 0, 0.78);
  color: white;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-size: var(--font-base);
  max-width: 240px;
  text-align: center;
  animation: toastIn var(--dur-base) var(--ease-bounce);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============ 骨架屏 ============ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
