/* 授权站前台 - 促销活动页（页面专属 CSS） */
.promo-page {
  min-height: 400px;
}
.promo-hero {
  position: relative;
  padding: 56px 20px;
  text-align: center;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(20, 184, 166, 0.12) 100%);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 16px;
  overflow: hidden;
}
.promo-hero-mask {
  position: absolute;
  inset: 0;
  background: transparent;
}
.promo-hero-preview {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}
.promo-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}
.promo-hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: #0D9488;
  backdrop-filter: blur(4px);
  margin-bottom: 18px;
}
.promo-hero-title {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.promo-hero-sub {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 22px;
}
.promo-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 15px;
}
.cd-label {
  margin-right: 6px;
  font-weight: 500;
}
.cd-num {
  display: inline-block;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #fbbf24;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.cd-colon {
  font-weight: 700;
  color: #0f172a;
}
.promo-hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: #64748b;
}
.promo-stock {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.promo-stock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 15px;
}
.promo-stock-title { font-weight: 700; color: #0f172a; }
.promo-stock-num { font-weight: 600; color: #14b8a6; }
.promo-stock-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.promo-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  border-radius: 999px;
  transition: width .4s ease;
}
.promo-stock.is-hot .promo-stock-num { color: #ea580c; }
.promo-stock.is-hot .promo-stock-fill { background: linear-gradient(90deg, #f97316, #fb923c); }
.promo-stock.is-empty .promo-stock-title { color: #94a3b8; }
.promo-stock.is-empty .promo-stock-fill { background: #cbd5e1; }

.promo-section {
  max-width: 1200px;
  margin: 34px auto;
  padding: 0 20px;
}
.promo-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}
.promo-notice {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #14b8a6;
  border-radius: 12px;
  padding: 18px 20px;
}
.promo-notice-line {
  font-size: 14px;
  color: #475569;
  line-height: 1.9;
}
.promo-notice-line + .promo-notice-line {
  margin-top: 4px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.promo-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.promo-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}
.promo-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.badge-off {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.badge-free {
  background: linear-gradient(135deg, #10b981, #059669);
}
.badge-seckill {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  animation: seckillPulse 1.4s ease-in-out infinite;
}
@keyframes seckillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.promo-card-name code {
  font-size: 15px;
  font-weight: 700;
  color: #0D9488;
  background: #F0FDFA;
  padding: 3px 10px;
  border-radius: 6px;
}
.promo-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 10px 0 6px;
  padding-right: 70px;
}
.promo-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card-price {
  margin: 14px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-now {
  font-size: 24px;
  font-weight: 800;
  color: #ef4444;
}
.price-seckill {
  color: #dc2626;
  font-size: 26px;
}
.price-free {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}
.price-orig {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}
.promo-card-btn {
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.promo-card-btn:hover {
  opacity: 0.88;
  color: #fff !important;
}
.promo-card-btn + .promo-card-btn {
  margin-top: 8px;
}
.btn-bargain {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  font-size: 13px;
}
.btn-group {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  font-size: 13px;
}
.btn-points {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  font-size: 13px;
}
.promo-empty {
  text-align: center;
  color: #94a3b8;
  padding: 60px 20px;
  font-size: 15px;
}
/* ===== 活动列表九宫格 ===== */
.promo-page-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 10px;
  text-align: center;
}
.promo-page-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.promo-page-sub {
  font-size: 14px;
  color: #64748b;
}
.promo-act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 28px auto 60px;
  padding: 0 20px;
}
.promo-act-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.promo-act-card:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: #c7d2fe;
}
.promo-act-cover {
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 60%, #14B8A6 100%);
  background-size: cover;
  background-position: center;
}
.promo-act-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.promo-act-state {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.st-running {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.st-preview {
  background: linear-gradient(135deg, #0D9488, #2DD4BF);
}
.promo-act-body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  flex: 1;
}
.promo-act-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
}
.promo-act-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-act-time {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.promo-act-rule {
  font-size: 13px;
  color: #0D9488;
  font-weight: 600;
  margin-bottom: 14px;
}
.promo-act-enter {
  display: block;
  text-align: center;
  padding: 9px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  transition: opacity 0.2s;
}
.promo-act-card:hover .promo-act-enter {
  opacity: 0.88;
}
/* 活动详情页返回链接 */
.promo-back {
  margin-top: 18px;
}
.promo-back a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.promo-back a:hover {
  background: rgba(255, 255, 255, 0.26);
}
@media (max-width: 1024px) {
  .promo-act-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .promo-hero-title { font-size: 26px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-act-grid { grid-template-columns: 1fr; }
}
