/* ===== 用户端样式 ===== */

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(135deg, #1a3d2e 0%, #2d6a4f 55%, #38876a 100%);
  box-shadow: 0 2px 20px rgba(15,35,22,0.35);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.logo-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.logo-text {
  color: #fff;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-text h1 {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  background: linear-gradient(90deg, #fff 60%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text p {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: rgba(255,255,255,0.75);
}

.header-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.header-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.header-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.header-btn .badge-count {
  background: #ff4757; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.header-username {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
  padding: 0 4px; white-space: nowrap; max-width: 80px;
  overflow: hidden; text-overflow: ellipsis;
}
.header-logout-btn {
  background: rgba(220,53,69,0.85);
  border-color: rgba(220,53,69,0.6);
  font-size: 13px;
}
.header-logout-btn:hover { background: #c82333; border-color: transparent; transform: translateY(-1px); }

/* ===== 英雄区 ===== */
.hero {
  background: var(--green-dark);
  padding: 0;
  position: relative; overflow: hidden;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 240px;
  gap: 3px;
}
.hero-img-item {
  overflow: hidden;
  position: relative;
}
.hero-img-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-img-item:hover img { transform: scale(1.06); }
.hero-img-item span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-mid));
}

/* ===== 快捷功能区 ===== */
.quick-actions {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 20px 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px 8px;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quick-action-btn:hover {
  border-color: var(--green-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.quick-action-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.quick-action-icon.green { background: var(--green-bg); }
.quick-action-icon.gold { background: var(--warm-gold-light); }
.quick-action-icon.blue { background: var(--blue-light); }
.quick-action-icon.red { background: var(--red-light); }
.quick-action-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-align: center; line-height: 1.3;
}
.quick-action-badge {
  position: absolute; top: 10px; right: 10px;
  background: #ff4757; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 主内容区 ===== */
.main { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* ===== 返回按钮区 ===== */
.page-back-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 0;
  max-width: 1200px; margin: 0 auto;
}
.page-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--green-bg); color: var(--green-primary);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--green-pale);
  transition: all var(--transition);
}
.page-back-btn:hover { background: var(--green-pale); transform: translateX(-2px); }

/* ===== 分类导航 ===== */
.category-nav {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-btn {
  flex-shrink: 0;
  padding: 8px 20px; border-radius: var(--radius-full);
  background: #fff; border: 1.5px solid var(--warm-border);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.category-btn.active {
  background: linear-gradient(135deg, var(--green-mid), var(--green-primary));
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(45,106,79,0.3);
}
.category-btn:hover:not(.active) { border-color: var(--green-pale); background: var(--green-ultra); }

/* ===== 菜品网格 ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.menu-item-card {
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-border);
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.menu-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-pale);
}
.menu-item-img {
  width: 100%; height: 185px; object-fit: cover;
  background: var(--green-bg);
}
.menu-item-img-placeholder {
  width: 100%; height: 185px;
  background: linear-gradient(135deg, var(--green-bg), var(--warm-bg));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.menu-item-body { padding: 16px; }
.menu-item-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.menu-item-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.menu-item-tag {
  padding: 3px 9px; border-radius: var(--radius-full);
  background: var(--green-bg); color: var(--green-primary);
  font-size: 11px; font-weight: 600;
}
.menu-item-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.menu-item-price { font-size: 20px; font-weight: 800; color: var(--warm-gold); }
.menu-item-price::before { content: '¥'; font-size: 13px; font-weight: 600; }
.add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; transition: all var(--transition);
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,106,79,0.3);
}
.add-btn:hover { background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); transform: scale(1.12); }

/* ===== 营养信息 ===== */
.nutrition-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 12px;
}
.nutrition-item {
  background: var(--green-ultra); border-radius: var(--radius-sm);
  padding: 10px 6px; text-align: center;
}
.nutrition-item .label { font-size: 11px; color: var(--text-muted); }
.nutrition-item .value { font-size: 13px; font-weight: 700; color: var(--green-primary); margin-top: 3px; }

/* ===== 购物车浮钮 ===== */
.cart-fab {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff; border-radius: var(--radius-full);
  padding: 14px 30px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 24px rgba(27,67,50,0.45);
  cursor: pointer; transition: all var(--transition);
  z-index: 100; min-width: 250px;
  border: none;
}
.cart-fab:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 10px 32px rgba(27,67,50,0.5); }
.cart-fab-left { display: flex; align-items: center; gap: 10px; }
.cart-count-badge {
  background: #ff4757; color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(255,71,87,0.4);
}
.cart-fab-text { font-size: 14px; font-weight: 700; }
.cart-fab-price { margin-left: auto; font-size: 17px; font-weight: 800; }

/* ===== 购物车侧边栏 ===== */
.cart-sidebar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  z-index: 500; max-height: 80vh;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  overflow-y: auto;
}
.cart-sidebar.open { transform: translateY(0); }
.cart-sidebar-header {
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--warm-border); position: sticky; top: 0; background: #fff;
}
.cart-sidebar-title { font-size: 16px; font-weight: 800; }
.cart-items { padding: 12px 22px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--warm-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 58px; height: 58px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--green-bg); flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--warm-gold); font-weight: 700; }
.cart-footer {
  padding: 18px 22px; border-top: 1px solid var(--warm-border);
  position: sticky; bottom: 0; background: #fff;
}
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-label { font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.cart-total-price { font-size: 24px; font-weight: 800; color: var(--warm-gold); }
.cart-total-price::before { content: '¥'; font-size: 15px; font-weight: 600; }

/* ===== 结账流程 ===== */
.checkout-section { margin-bottom: 22px; }
.checkout-section h4 {
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.address-card {
  padding: 16px; border: 1.5px solid var(--warm-border);
  border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition);
  position: relative;
}
.address-card.selected { border-color: var(--green-primary); background: var(--green-ultra); }
.address-card:hover:not(.selected) { border-color: var(--green-pale); }
.address-card-name { font-size: 14px; font-weight: 700; }
.address-card-info { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.address-add-btn {
  padding: 14px; border: 2px dashed var(--green-pale);
  border-radius: var(--radius-md); text-align: center;
  cursor: pointer; color: var(--green-primary);
  font-size: 14px; font-weight: 600; transition: all var(--transition);
  background: none; width: 100%;
}
.address-add-btn:hover { background: var(--green-ultra); border-color: var(--green-primary); }

/* ===== 时段选择 ===== */
.slot-date-group { margin-bottom: 18px; }
.slot-date-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 9px 18px; border-radius: var(--radius-md);
  border: 1.5px solid var(--warm-border);
  background: #fff; font-size: 13px; cursor: pointer;
  transition: all var(--transition); color: var(--text-primary);
  font-weight: 500;
}
.slot-btn:hover:not(.selected):not(.full):not(.expired) { border-color: var(--green-pale); background: var(--green-ultra); }
.slot-btn.selected { border-color: var(--green-primary); background: var(--green-bg); color: var(--green-primary); font-weight: 700; }
.slot-btn.full { opacity: 0.4; cursor: not-allowed; background: #f5f5f5; }
.slot-btn.expired { opacity: 0.4; cursor: not-allowed; background: #f5f5f5; color: var(--text-muted); }
.slot-remain { font-size: 11px; color: var(--text-muted); display: block; }

/* ===== 订单列表 ===== */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  background: var(--warm-card); border-radius: var(--radius-lg);
  border: 1px solid var(--warm-border); padding: 18px; cursor: pointer;
  transition: all var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-pale); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-no { font-size: 12px; color: var(--text-muted); }
.order-card-items { font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; }
.order-card-total { font-size: 17px; font-weight: 800; color: var(--warm-gold); }
.order-card-date { font-size: 12px; color: var(--text-muted); }

/* ===== 底部导航（移动端）===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--warm-border);
  display: flex; z-index: 99;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px; cursor: pointer;
  color: var(--text-muted); font-size: 10px; font-weight: 600;
  transition: color var(--transition); border: none; background: none;
  gap: 3px;
}
.bottom-nav-item .nav-icon { font-size: 22px; }
.bottom-nav-item.active { color: var(--green-primary); }
.bottom-nav-item .notif-dot { position: relative; }
.bottom-nav-item .notif-dot::after {
  content: ''; position: absolute; top: 0; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
}

/* ===== 通知列表 ===== */
.notif-item {
  padding: 14px 0; border-bottom: 1px solid var(--warm-border);
  cursor: pointer; transition: background var(--transition);
  border-radius: var(--radius-sm);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-header { display: flex; justify-content: space-between; align-items: center; }
.notif-title { font-size: 14px; color: var(--text-primary); }
.notif-time { font-size: 11px; color: var(--text-muted); }
.notif-content { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-primary); flex-shrink: 0;
}

/* ===== 遮罩（购物车背景）===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 499; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

/* ===== 用户信息区 ===== */
.profile-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius-xl); padding: 26px; margin-bottom: 22px; color: #fff;
  box-shadow: 0 6px 24px rgba(27,67,50,0.3);
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 14px;
}
.profile-name { font-size: 20px; font-weight: 800; }
.profile-phone { font-size: 13px; opacity: 0.75; margin-top: 2px; }

/* ===== 底部店铺信息 ===== */
.store-footer {
  background: linear-gradient(135deg, #1a3d2e 0%, #162f23 100%);
  padding: 36px 20px 30px;
  margin-top: 32px;
}
.store-footer-inner {
  max-width: 1200px; margin: 0 auto;
}
.store-footer-title {
  font-size: 15px; font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.store-footer-title::before {
  content: ''; display: block;
  width: 3px; height: 16px;
  background: var(--green-light);
  border-radius: 2px;
}
.store-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.store-footer-item {
  display: flex; align-items: flex-start; gap: 10px;
}
.store-footer-icon {
  font-size: 18px; flex-shrink: 0; margin-top: 1px;
  opacity: 0.7;
}
.store-footer-text {
  display: flex; flex-direction: column; gap: 2px;
}
.store-footer-label {
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px; font-weight: 500;
}
.store-footer-value {
  font-size: 13px; color: rgba(255,255,255,0.82);
  font-weight: 500; line-height: 1.5;
}
.store-footer-copy { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-img-grid { height: 160px; }
  .poster-slide img { height: 160px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .menu-item-img, .menu-item-img-placeholder { height: 135px; }
  .main { padding: 12px; padding-bottom: 80px; }
  .cart-fab { bottom: 74px; }
  .quick-actions { padding: 16px 12px 4px; gap: 8px; }
  .quick-action-btn { padding: 14px 6px; }
  .quick-action-icon { width: 40px; height: 40px; font-size: 18px; }
  .quick-action-label { font-size: 11px; }
  .redeem-grid { grid-template-columns: 1fr 1fr; }
  .poster-carousel { padding: 12px 12px 0; }
}
@media (max-width: 480px) {
  .hero-img-grid { grid-template-columns: repeat(2, 1fr); height: 180px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item-img, .menu-item-img-placeholder { height: 200px; }
  .logo-text p { display: none; }
  .redeem-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .cart-fab { bottom: 36px; }
  .main { padding: 24px; }
  .quick-actions { padding: 22px 24px 6px; }
}

/* ===== 海报轮播 ===== */
.poster-carousel {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 20px 0;
  position: relative;
}
.poster-track {
  display: flex;
  overflow: hidden;   /* 横版全宽，不滚动 */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.poster-slide {
  flex-shrink: 0; width: 100%;
  position: relative;
  transition: transform 0.5s ease;
}
.poster-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.poster-slide-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff; font-size: 15px; font-weight: 600;
}
.poster-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 10px;
}
.poster-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-pale); transition: all var(--transition);
  cursor: pointer; border: none;
}
.poster-dot.active { background: var(--green-primary); width: 20px; border-radius: 3px; }

/* ===== 积分/余额徽章 ===== */
.wallet-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.wallet-badge-item { display: flex; align-items: center; gap: 4px; }
.wallet-badge-item span:first-child { opacity: 0.7; font-size: 11px; }
.wallet-badge-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }

/* ===== 积分兑换页 ===== */
.redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-top: 16px;
}
.redeem-card {
  background: var(--warm-card); border-radius: var(--radius-lg);
  border: 1px solid var(--warm-border); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--transition);
}
.redeem-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-pale); }
.redeem-card-name { font-size: 15px; font-weight: 700; font-family: var(--font-display); }
.redeem-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.redeem-card-cost {
  font-size: 18px; font-weight: 800; color: var(--warm-gold);
  display: flex; align-items: center; gap: 4px;
}
.redeem-card-cost::before { content: '🌟'; font-size: 14px; }

/* ===== 余额/积分流水 ===== */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--warm-card);
  border: 1px solid var(--warm-border); border-radius: var(--radius-md);
}
.tx-item-left { display: flex; flex-direction: column; gap: 3px; }
.tx-item-note { font-size: 14px; font-weight: 500; }
.tx-item-sub { font-size: 11px; color: var(--warm-gold); }
.tx-item-time { font-size: 11px; color: var(--text-muted); }
.tx-item-amount { font-size: 16px; font-weight: 800; }
.tx-item-amount.positive { color: var(--green-primary); }
.tx-item-amount.negative { color: var(--red); }

/* ===== 支付方式选择 ===== */
.payment-options { display: flex; gap: 10px; }
.payment-option {
  flex: 1; padding: 12px; border-radius: var(--radius-md);
  border: 1.5px solid var(--warm-border); cursor: pointer;
  transition: all var(--transition); text-align: center;
  background: #fff;
}
.payment-option.selected { border-color: var(--green-primary); background: var(--green-ultra); }
.payment-option:hover:not(.selected) { border-color: var(--green-pale); }
.payment-option-icon { font-size: 22px; margin-bottom: 4px; }
.payment-option-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.payment-option-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.payment-option.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 标题字体升级 ===== */
.logo-text h1 { font-family: var(--font-display); }
.hero h2 { font-family: var(--font-display); }

@media (max-width: 768px) {
  .poster-slide { max-height: 160px; }
  .redeem-grid { grid-template-columns: 1fr 1fr; }
  .poster-carousel { padding: 12px 12px 0; }
}
@media (max-width: 480px) {
  .redeem-grid { grid-template-columns: 1fr; }
}

/* ===== 悬浮店铺介绍面板 ===== */
.shop-float-panel {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 130px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8f5e9;
}
.shop-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 6px;
  background: var(--green-primary, #2d6a4f);
  color: #fff;
  flex-shrink: 0;
  min-height: 32px;
}
.shop-float-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.shop-float-min-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 6px;
  opacity: 0.85;
  flex-shrink: 0;
}
.shop-float-min-btn:hover { opacity: 1; }

/* 图片视口：固定高度，横向溢出隐藏 */
.shop-float-viewport {
  overflow: hidden;
  flex-shrink: 0;
}
/* 横向轨道：所有 slide 并排 */
.shop-float-track {
  display: flex;
  flex-direction: row;
  will-change: transform;
}
.shop-float-slide {
  flex-shrink: 0;
  width: 130px;
}
.shop-float-slide img {
  width: 130px;
  height: 195px;   /* 2:3 竖版比例 */
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* 数字指示器 */
.shop-float-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  background: #fff;
  flex-shrink: 0;
}
.shop-float-dot {
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
  background: var(--green-pale, #d8f3dc);
  color: var(--green-primary, #2d6a4f);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 3px;
  transition: background 0.2s, color 0.2s;
  line-height: 18px;
}
.shop-float-dot.active {
  background: var(--green-primary, #2d6a4f);
  color: #fff;
}

/* 最小化后的竖向标签 */
.shop-float-tab {
  position: fixed;
  right: 0;
  bottom: 120px;
  writing-mode: vertical-rl;
  background: var(--green-primary, #2d6a4f);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 7px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 900;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
  letter-spacing: 2px;
  user-select: none;
}
.shop-float-tab:hover { background: #1b4d38; }

/* 大图预览 */
.shop-float-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-float-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.shop-float-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-float-lightbox-close:hover { background: rgba(255,255,255,0.3); }

