/* ============================================================
   促销活动页 · 北京明汉科技
   ============================================================ */

/* 页面级区块基元（与 index.css 同规范，独立页面自包含） */
#sale .section { padding: 70px 0; }
#sale .section-soft { background: var(--mh-bg-soft); }
#sale .section-content { padding: 0 20px; max-width: 1400px; margin: 0 auto; }
#sale .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
}
#sale .section-h2 {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--mh-font-display);
  color: var(--mh-text-1);
  line-height: 1.3;
  position: relative;
  padding-left: 18px;
}
#sale .section-h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: var(--mh-primary);
  border-radius: 3px;
}
#sale .section-sub {
  font-size: 15px;
  color: var(--mh-text-3);
  margin-top: 12px;
}

/* ============ 促销主视觉 ============ */
.sale-hero {
  background: var(--mh-gradient-banner);
  position: relative;
  overflow: hidden;
}
.sale-hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 118, 0.22) 0%, rgba(201, 168, 118, 0) 70%);
}
.sale-hero::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 118, 0.14) 0%, rgba(201, 168, 118, 0) 70%);
}
.sale-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 84px;
  padding-bottom: 84px;
  text-align: center;
}
.sh-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--mh-accent-light);
  border: 1px solid rgba(224, 201, 160, 0.4);
  padding: 6px 18px;
  border-radius: var(--mh-radius-pill);
  margin-bottom: 26px;
}
.sh-title {
  font-family: var(--mh-font-display);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 8px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.sh-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  margin-bottom: 34px;
}
/* 主视觉倒计时（金色方块） */
.sh-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 38px;
}
.sh-cd-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 8px;
}
.sh-cd-num {
  min-width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: rgba(201, 168, 118, 0.16);
  border: 1px solid rgba(224, 201, 160, 0.45);
  color: var(--mh-accent-light);
  font-size: 22px;
  font-weight: 700;
  border-radius: var(--mh-radius-md);
  font-variant-numeric: tabular-nums;
}
.sh-cd-colon {
  font-size: 22px;
  font-weight: 700;
  color: rgba(224, 201, 160, 0.6);
}
.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 44px;
  background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-light) 100%);
  color: var(--mh-primary-active) !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--mh-radius-pill);
  box-shadow: 0 8px 24px rgba(201, 168, 118, 0.35);
  transition: all var(--mh-dur) var(--mh-ease);
}
.sh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 118, 0.5);
}

/* ============ 优惠攻略 ============ */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rule-card {
  background: var(--mh-bg-soft);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius-lg);
  padding: 34px 30px;
  transition: all var(--mh-dur) var(--mh-ease);
}
.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mh-shadow-hover);
  border-color: var(--mh-accent);
}
.rule-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--mh-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: var(--mh-radius-pill);
  margin-bottom: 18px;
}
.rule-title {
  font-family: var(--mh-font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--mh-text-1);
  margin-bottom: 10px;
}
.rule-desc {
  font-size: 13px;
  color: var(--mh-text-3);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 44px;
}
.rule-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rule-tier {
  font-size: 13px;
  color: var(--mh-primary);
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-line);
  padding: 6px 14px;
  border-radius: var(--mh-radius-pill);
}
.rule-tier b {
  color: var(--mh-promo);
  font-size: 15px;
  margin-left: 2px;
}

/* ============ 今日闪购倒计时 ============ */
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fc-label {
  font-size: 13px;
  color: var(--mh-text-3);
  margin-right: 8px;
}
.fc-num {
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  background: var(--mh-promo);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--mh-radius-md);
  font-variant-numeric: tabular-nums;
}
.fc-colon {
  font-size: 16px;
  font-weight: 600;
  color: var(--mh-promo);
}
/* ============ 满减凑单档位标签 ============ */
.mj-tiers {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.mj-tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--mh-promo);
  background: rgba(181, 72, 47, 0.08);
  border: 1px dashed rgba(181, 72, 47, 0.5);
  padding: 7px 16px;
  border-radius: var(--mh-radius-pill);
}

/* ============ 底部 CTA ============ */
.sale-cta {
  background: var(--mh-gradient-banner);
}
.sale-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 56px;
}
.sc-title {
  font-family: var(--mh-font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.sc-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  background: transparent;
  border: 1px solid rgba(224, 201, 160, 0.6);
  color: var(--mh-accent-light) !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--mh-radius-pill);
  flex-shrink: 0;
  transition: all var(--mh-dur) var(--mh-ease);
}
.sc-btn:hover {
  background: rgba(201, 168, 118, 0.15);
  border-color: var(--mh-accent-light);
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .sh-title { font-size: 40px; letter-spacing: 4px; }
  .rule-grid { grid-template-columns: 1fr; }
  .sale-cta-inner { flex-direction: column; text-align: center; gap: 24px; }
}
@media (max-width: 768px) {
  #sale .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sh-title { font-size: 32px; }
  .sh-cd-num { min-width: 38px; height: 38px; line-height: 38px; font-size: 18px; }
}
