/* --- 全域 --- */
html { overflow-x: clip; }

#bonus {
  overflow-x: clip;
  background: #fafafa;
  width: 100%;
}

.bonus-wrapper {
  width: 100%;
  padding-bottom: 3rem;
}

#bonus-page {
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
}

#bonus-page .page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============ HERO ============ */
#bonus-page .hero {
  padding: 3rem 0 2rem;
}

#bonus-page .hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

#bonus-page .hero h1 span {
  color: #e02a2a;
}

#bonus-page .hero p {
  margin-top: 1rem;
  font-size: 1.375rem;
  line-height: 1.75;
  color: #555;
  max-width: 42ch;
}

/* ============ WELCOME ============ */
#bonus-page .sec-welcome {
  padding: 0 0 0.5rem;
}

#bonus-page .welcome-text {
  font-size: 1.375rem;
  color: #444;
  line-height: 1.7;
  border-left: 3px solid #e02a2a;
  padding-left: 0.875rem;
}

/* ============ SECTION ============ */
#bonus-page .section {
  margin-top: 2.5rem;
}

#bonus-page .section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #eee;
}

#bonus-page .section-desc {
  font-size: 1.25rem;
  color: #777;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ============ COMMISSION FREE ============ */
#bonus-page .comm-free-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#bonus-page .comm-free-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#bonus-page .comm-free-item .comm-free-left {
  display: flex;
  flex-direction: column;
}

#bonus-page .comm-free-time {
  font-size: 1.625rem;
  font-weight: 800;
  color: #e02a2a;
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

#bonus-page .comm-free-desc {
  font-size: 1.1875rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

#bonus-page .comm-free-badge {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #e02a2a;
  background: #fef2f2;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ============ SPECIAL OFFER ============ */
#bonus-page .special-offer {
  background: #fef2f2;
  border: 2px solid #e02a2a;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

#bonus-page .offer-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e02a2a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

#bonus-page .offer-price {
  font-size: 4rem;
  font-weight: 900;
  color: #e02a2a;
  line-height: 1;
  letter-spacing: -2px;
}

#bonus-page .offer-price small {
  font-size: 1.5rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0;
}

#bonus-page .special-offer p {
  font-size: 1.375rem;
  color: #333;
  margin-top: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
}

#bonus-page .offer-badge {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: #e02a2a;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-top: 1rem;
}

/* ============ BONUS GROUPS ============ */
#bonus-page .bonus-group {
  margin-bottom: 1.5rem;
}

#bonus-page .bonus-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

#bonus-page .bonus-block {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
}

#bonus-page .bonus-block-time {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e02a2a;
  margin-bottom: 0.625rem;
  letter-spacing: 0.3px;
}

#bonus-page .bonus-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#bonus-page .bonus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
}

#bonus-page .bonus-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#bonus-page .bonus-row span {
  font-size: 1.25rem;
  color: #555;
  font-weight: 500;
}

#bonus-page .bonus-row strong {
  font-size: 1.375rem;
  font-weight: 800;
  color: #e02a2a;
}

/* ============ NOTE ============ */
#bonus-page .note {
  font-size: 1.125rem;
  color: #999;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ============ UPDATE NOTICE ============ */
#bonus-page .update-notice {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 3rem;
}

#bonus-page .update-notice h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

#bonus-page .update-notice p {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.75;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 420px) {
  #bonus-page .hero h1 {
    font-size: 2.25rem;
  }

  #bonus-page .comm-free-grid {
    grid-template-columns: 1fr;
  }

  #bonus-page .offer-price {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  #bonus-page .page {
    max-width: 640px;
    padding: 0 2rem;
  }

  #bonus-page .hero {
    padding: 4rem 0 2.5rem;
  }

  #bonus-page .hero h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1200px) {
  #bonus-page .page {
    max-width: 720px;
    padding: 0 2.5rem;
  }

  #bonus-page .hero h1 {
    font-size: 3.5rem;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#bonus-page .hero,
#bonus-page .sec-welcome,
#bonus-page .section {
  animation: fadeInUp 0.6s ease-out both;
}

#bonus-page .hero { animation-delay: 0.1s; }
#bonus-page .sec-welcome { animation-delay: 0.2s; }
#bonus-page .section:nth-of-type(1) { animation-delay: 0.3s; }
#bonus-page .section:nth-of-type(2) { animation-delay: 0.4s; }
#bonus-page .section:nth-of-type(3) { animation-delay: 0.5s; }
#bonus-page .section:nth-of-type(4) { animation-delay: 0.6s; }
#bonus-page .section:nth-of-type(5) { animation-delay: 0.7s; }

/* ============ 桌面端 ≥1024px ============ */
@media (min-width: 1024px) {
  #bonus { background: #fff; }

  #bonus-page .page {
    max-width: 1200px;
    padding: 0 40px;
  }

  #bonus-page .hero {
    margin-top: 56px;
    padding: 5rem 0 3rem;
    text-align: center;
  }

  #bonus-page .hero h1 { font-size: 3.8rem; }
  #bonus-page .hero p { margin-left: auto; margin-right: auto; font-size: 1.45rem; }

  #bonus-page .welcome-text { font-size: 1.45rem; max-width: 720px; }

  #bonus-page .section-title { font-size: 2.2rem; }

  /* 單單免傭：兩張時段卡片並排 */
  #bonus-page .comm-free-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  #bonus-page .comm-free-item { padding: 1.5rem 1.75rem; border-radius: 1rem; }
  #bonus-page .comm-free-time { font-size: 1.8rem; }

  /* 特惠單單免傭：紅色大卡置中收窄 */
  #bonus-page .special-offer {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
  }

  /* 衝單獎勵：標題在上，bonus blocks 橫排 */
  #bonus-page .bonus-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
  #bonus-page .bonus-group-title { width: 100%; flex: 0 0 100%; margin-bottom: 0; }
  #bonus-page .bonus-group .bonus-block { flex: 1; }

  /* 獎勵內容 */
  #bonus-page .update-notice { padding: 2rem 2rem; border-radius: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }

  #bonus-page .site-footer { margin-top: 0; }
}
