/* ============================================================
   Promotion 促銷活動頁 · 暗色風格
   ============================================================ */

/* ===== Hero Banner ===== */
.promoHero {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 65% 65% at 50% 0%, rgba(50, 240, 140, .12), transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 100%, rgba(16, 185, 129, .07), transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 100%, rgba(50, 240, 140, .05), transparent 60%),
    #0a0d0b;
  overflow: hidden;
}
.promoHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.promoHero .sectionInner {
  padding-block: 88px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.promoHeroLayout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}
.promoHeroMain { flex: 1; min-width: 0; }
.promoHeroBadge {
  flex: 0 0 auto;
  width: clamp(160px, 20vw, 220px);
  filter: drop-shadow(0 8px 24px rgba(50, 240, 140, .18));
  animation: promoBadgeFloat 4s ease-in-out infinite;
}
.promoHeroBadge img { width: 100%; height: auto; display: block; }
@keyframes promoBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-8px) rotate(4deg); }
}
@media (max-width: 744px) {
  .promoHeroLayout { flex-direction: column-reverse; text-align: center; gap: 24px; }
  .promoHeroBadge { width: 140px; }
  .promoHeroTags { justify-content: center; }
  .promoHeroDesc { margin: 0 auto 28px; }
}
.promoHeroTag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(50, 240, 140, .4);
  border-radius: 2px;
  color: #32f08c;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(50, 240, 140, .06);
}
.promoHeroTitle {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -.02em;
}
.promoHeroTitle .accent {
  background: linear-gradient(120deg, #a0fde7 0%, #32f08c 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promoHeroDesc {
  max-width: 780px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
}
.promoHeroTags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.promoHeroTagChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.promoHeroTagChip.isHot {
  background: linear-gradient(135deg, rgba(50, 240, 140, .18), rgba(16, 185, 129, .12));
  border-color: rgba(50, 240, 140, .5);
  color: #32f08c;
}
.promoHeroTagChip.isHot i,
.promoHeroTagChip i {
  font-size: 11px;
}

/* ===== Promo Section (Cards) ===== */
.promoSection {
  background: #0a0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.promoSection .sectionInner {
  padding-block: 64px;
}
.promoCardsWrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== Promo Card ===== */
.promoCard {
  position: relative;
  padding: 26px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .015) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.promoCard:hover {
  border-color: rgba(50, 240, 140, .32);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(50, 240, 140, .2);
}
.promoCardTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.promoCardInfo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}
.promoFlag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  flex-shrink: 0;
  margin-top: 2px;
}
.promoCardTitle {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.promoCardSubtitle {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  line-height: 1.55;
}
.promoCardNote {
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: 12.5px;
  line-height: 1.5;
}
.promoCardActions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.promoCode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(50, 240, 140, .08);
  border: 1px dashed rgba(50, 240, 140, .4);
  border-radius: 6px;
  color: #32f08c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.promoCode strong {
  display: inline-block;
  padding: 3px 8px;
  background: linear-gradient(135deg, #32f08c 0%, #10b981 100%);
  color: #0a0d0b;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.promoCode.isEmpty {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  border-style: solid;
  color: rgba(255, 255, 255, .55);
}
.promoBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #32f08c 0%, #10b981 100%);
  color: #0a0d0b;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 4px 14px -4px rgba(50, 240, 140, .5);
  white-space: nowrap;
}
.promoBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(50, 240, 140, .6);
  filter: brightness(1.06);
}

/* ===== Promo Table ===== */
.promoTableWrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
}
.promoTableWrap::-webkit-scrollbar { height: 6px; }
.promoTableWrap::-webkit-scrollbar-thumb { background: rgba(50, 240, 140, .3); border-radius: 3px; }
.promoTable {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.promoTable th {
  padding: 12px 14px;
  color: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  white-space: nowrap;
}
.promoTable td {
  padding: 14px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  white-space: nowrap;
}
.promoTable tbody tr:last-child td { border-bottom: none; }
.promoTable tbody tr {
  transition: background-color .2s ease;
}
.promoTable tbody tr:hover {
  background: rgba(50, 240, 140, .04);
}
.promoPrice {
  color: #32f08c;
  font-weight: 700;
  font-size: 14.5px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== Mini Grid (Global + CDN) ===== */
.promoMiniGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.promoMiniCard {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .015) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.promoMiniCard:hover {
  border-color: rgba(50, 240, 140, .32);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(50, 240, 140, .2);
}
.promoMiniTitle {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.promoMiniTitle i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 240, 140, .12);
  border-radius: 8px;
  color: #32f08c;
  font-size: 14px;
}
.promoMiniDesc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .6);
  font-size: 13.5px;
  line-height: 1.7;
}
.promoMiniList {
  margin: 0 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promoMiniItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 13.5px;
  transition: border-color .2s ease;
}
.promoMiniItem:hover {
  border-color: rgba(50, 240, 140, .25);
}
.promoMiniItem strong {
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  font-size: 13.5px;
}
.promoMiniItem span {
  color: #32f08c;
  font-weight: 700;
  font-size: 14px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.promoMiniFoot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Promo CTA ===== */
.promoCTA {
  position: relative;
  padding: 48px 40px;
  margin-top: 40px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(50, 240, 140, .18), transparent 65%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(16, 185, 129, .1), transparent 60%),
    linear-gradient(135deg, #0a0d0b 0%, #101512 100%);
  border: 1px solid rgba(50, 240, 140, .25);
  text-align: center;
  box-shadow: 0 20px 60px -30px rgba(50, 240, 140, .35);
}
.promoCTATitle {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.promoCTADesc {
  margin: 0 auto 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, .65);
  font-size: 15px;
  line-height: 1.7;
}
.promoCTABtns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.promoCTAPrimary,
.promoCTAGhost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.promoCTAPrimary {
  background: linear-gradient(135deg, #32f08c 0%, #10b981 100%);
  color: #0a0d0b;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px -6px rgba(50, 240, 140, .5);
}
.promoCTAPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(50, 240, 140, .65);
}
.promoCTAGhost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
.promoCTAGhost:hover {
  border-color: #32f08c;
  color: #32f08c;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .promoMiniGrid { grid-template-columns: 1fr; }
  .promoCardTop { flex-direction: column; align-items: stretch; }
  .promoCardActions { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .promoHero .sectionInner { padding-block: 56px; }
  .promoSection .sectionInner { padding-block: 48px; }
  .promoCard { padding: 20px; }
  .promoMiniCard { padding: 22px; }
  .promoCTA { padding: 36px 22px; }
  .promoCode { font-size: 12px; }
}
