/*
Theme Name: 台數科6月行銷方案
Description: 集團115年6月寬頻行銷方案專屬宣傳頁樣式
Version: 1.0
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-primary: #0055A5;
  --brand-secondary: #00AEEF;
  --brand-accent: #FF6B00;
  --brand-dark: #1A2B45;
  --brand-light: #F0F7FF;
  --success: #00B050;
  --text-main: #1A2B45;
  --text-muted: #5A6A7A;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,85,165,0.13);
  --shadow-hover: 0 16px 48px rgba(0,85,165,0.22);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ===== Hero Section ===== */
.promo-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 55%, var(--brand-secondary) 100%);
  color: var(--white);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.promo-hero .badge {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.promo-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.promo-hero h1 span {
  color: #FFD700;
}

.promo-hero .subtitle {
  font-size: clamp(15px, 2vw, 20px);
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 32px;
}

.promo-hero .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 36px;
}

.promo-hero .date-badge svg {
  width: 16px; height: 16px; flex-shrink: 0;
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 38px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(255,107,0,0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,0,0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ===== Promo Content Wrapper ===== */
.promo-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section Layout ===== */
.promo-section {
  padding: 72px 0;
}

.promo-section + .promo-section {
  border-top: 1px solid #E8F0FA;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ===== Highlight Stats Bar ===== */
.stats-bar {
  background: var(--brand-light);
  border-top: 3px solid var(--brand-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}

.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid #D0E4F5;
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: #E3F0FC; }

.stat-number {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--brand-accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Package Cards ===== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.package-card {
  background: var(--white);
  border: 2px solid #E0EDF8;
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.package-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.package-card:hover::before { transform: scaleX(1); }

.package-card.featured {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow);
}

.package-card.featured::before { transform: scaleX(1); }

.featured-badge {
  position: absolute;
  top: 16px; right: -28px;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 36px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.pkg-icon {
  width: 52px; height: 52px;
  background: var(--brand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.pkg-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.pkg-speed {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pkg-price-wrap {
  margin-bottom: 24px;
}

.pkg-price-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pkg-price {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
}

.pkg-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pkg-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.pkg-features {
  list-style: none;
  margin-bottom: 28px;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  padding: 7px 0;
  border-bottom: 1px dashed #EBF2FA;
}

.pkg-features li:last-child { border-bottom: none; }

.pkg-features li .check {
  width: 18px; height: 18px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pkg-features li .check svg { width: 10px; height: 10px; }

.pkg-cta {
  display: block;
  text-align: center;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  transition: var(--transition);
}

.package-card.featured .pkg-cta {
  background: var(--brand-accent);
}

.pkg-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ===== Gift / Incentive Section ===== */
.gift-section {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFBF5 100%);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255,107,0,0.08);
  border: 1px solid #FFE4CC;
  transition: var(--transition);
}

.gift-card:hover {
  box-shadow: 0 8px 28px rgba(255,107,0,0.15);
  transform: translateY(-3px);
}

.gift-emoji { font-size: 44px; margin-bottom: 14px; display: block; }

.gift-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.gift-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-accent);
}

.gift-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== Comparison Table ===== */
.compare-section {
  background: var(--brand-light);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

.compare-table thead tr {
  background: var(--brand-dark);
  color: var(--white);
}

.compare-table th {
  padding: 18px 16px;
  font-weight: 700;
  text-align: center;
  font-size: 15px;
}

.compare-table th:first-child { text-align: left; }

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #EBF2FA;
  text-align: center;
  vertical-align: middle;
}

.compare-table td:first-child { text-align: left; font-weight: 600; }

.compare-table tbody tr:hover { background: #F5F9FF; }

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table .highlight-col {
  background: rgba(0,85,165,0.05);
}

.compare-table .check-icon { color: var(--success); font-size: 18px; }

.compare-table .cross-icon { color: #CDD5DD; font-size: 18px; }

.win-badge {
  display: inline-block;
  background: var(--success);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 6px;
}

/* ===== Process Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0,85,165,0.3);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Notice Section ===== */
.notice-section {
  background: #F8FAFE;
}

.notice-box {
  background: var(--white);
  border-left: 4px solid var(--brand-secondary);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,85,165,0.07);
}

.notice-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-box li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Sticky CTA Footer ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(26,43,69,0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--brand-secondary);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition);
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta-text {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.sticky-cta-text small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

.sticky-cta-btn {
  flex-shrink: 0;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  white-space: nowrap;
  transition: var(--transition);
}

.sticky-cta-btn:hover { background: #e55a00; }

/* ===== Trust Badges ===== */
.trust-bar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  padding: 20px 24px;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.trust-item svg { width: 20px; height: 20px; opacity: 0.85; }

/* ===== FAQ Accordion ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid #E0EDF8;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--brand-secondary);
}

.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Urgency Banner ===== */
.urgency-banner {
  background: linear-gradient(90deg, var(--brand-accent) 0%, #FF9A3C 100%);
  color: var(--white);
  text-align: center;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.urgency-banner strong { font-size: 16px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .promo-hero { padding: 60px 20px 48px; }
  .promo-section { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid #D0E4F5; }
  .sticky-cta { flex-direction: column; text-align: center; }
  .trust-grid { gap: 18px; }
}
