/* 全局設計 */
html {
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: linear-gradient(120deg, #74ebd5, #ACB6E5);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  text-align: center;
  font-weight: bold;
}

section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* RWD 導覽列 */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1024px; /* 與主要內容寬度一致 */
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
  background: linear-gradient(135deg, #5ee7df, #b490ca);
  color: #fff;
}

/* RWD 漢堡 */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 10px;
  }
  .nav-links.active {
    display: flex;
  }
  .logo-img {
    height: 24px;
  }

  .nav-logo {
    font-size: 14px;
  }
}

/* Banner */
.banner-section {
  display: flex;
  justify-content: center;  /* 水平置中 */
  align-items: center;
  padding: 0;
  margin: 0 auto;
  background: transparent;   /* 確保背景不干擾 */
}

.banner-picture {
  max-width: 1024px;  /* 限制桌機版最大寬度 */
  width: 100%;
  display: block;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;   /* 確保置中 */
  border-radius: 0;
}

/* 手機版 BN */
@media (max-width: 768px) {
  .banner-picture {
    max-width: 800px; /* 讓手機 BN 不超過 800 */
  }
}


/* === Timeline 區塊 === */
.timeline-section {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fefefe, #f5f7fa);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 20px;
  max-width: 1024px;
}

.timeline-section h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #333;
}

/* === Timeline 標題 === */
.timeline-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.timeline-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.timeline-heading .subhead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.subhead.accent {
  color: #008a8a;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.5s ease;
}


/* === Timeline 水平列 === */
.timeline-horizontal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
}

/* === 單一時間點卡片 === */
.time-node {
  text-align: center;
  width: 120px;
  height: 100px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: transform 0.2s, background 0.3s;
  background: #f8fdfd;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.time-node:hover {
  transform: scale(1.05);
  background: #f0fbfa;
}

.time-node.active {
  background: #e0f7f5;
  box-shadow: 0 0 0 3px #b2e4df;
}

/* === 點點 === */
.time-node .dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #5ee7df, #b490ca);
  border-radius: 50%;
  margin: 0 auto 8px;
}

/* === 年份 === */
.time-node .year {
  font-weight: bold;
  font-size: 1.1rem;
  color: #008a8a;
  margin: 0;
}

/* === 卡片內短標題（桌機才顯示）=== */
.time-node .title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  color: #333;
  line-height: 1.3;
}

/* === 內容區塊（下方顯示）=== */
.timeline-content-card {
  margin-top: 30px;
  padding: 20px 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border-left: 4px solid #008a8a;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-height: 80px;
}

.timeline-content-card h3 {
  font-size: 1.8rem;
  color: #008a8a;
  margin-bottom: 8px;
}

.timeline-content-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

/* === 平板 === */
@media (max-width: 1024px) {
  .time-node {
    width: 110px;
    height: 90px;
    padding: 10px 8px;
  }

  .time-node .title {
    font-size: 0.85rem;
  }

  .timeline-content-card {
    max-width: 90%;
    padding: 18px;
  }

  .timeline-content-card h3 {
    font-size: 1.3rem;
  }

  .timeline-content-card p {
    font-size: 0.9rem;
  }
}

/* === 手機 === */
@media (max-width: 768px) {
  .timeline-heading h2 {
    font-size: 1.5rem;
  }
  .timeline-heading .subhead {
    font-size: 1rem;
  }

  .timeline-horizontal {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    gap: 12px;
  }

  .time-node {
    width: 95px;
    height: 80px;
    padding: 10px 6px;
  }

  .time-node .year {
    font-size: 1rem;
  }

  .time-node .title {
    display: none;
  }

  .timeline-content-card {
    padding: 16px;
    max-width: 92%;
  }

  .timeline-content-card h3 {
    font-size: 1.2rem;
  }

  .timeline-content-card p {
    font-size: 0.9rem;
    text-align: left;
  }
}



/* 四大活動 */
.activities-section {
  padding: 60px 20px;
  max-width: 1024px;
  margin: 0 auto;
  background: linear-gradient(160deg, #e0f7f5, #f0f0fa);
  text-align: center;
  margin-top: 0; 
  padding-top: 20px;
}

.activities-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #008a8a;
  margin-bottom: 10px;
}

.activities-subhead {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ 每列2格 */
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.activity-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 24px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.activity-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.activity-card h3 {
  color: #008a8a;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.activity-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 138, 138, 0.25);
  background: #f5fffd;
}

/* 手機版一列一格 */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Footer */
.custom-footer {
  background: linear-gradient(135deg, #d0f2f2, #b2ebe5);
  padding: 30px 20px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  color: #333;
}

.footer-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  height: 32px;
}

.footer-text {
  margin: 0;
  color: #444;
}

.footer-right a {
  display: inline-block;
  margin-left: 10px;
}

.footer-right img {
  width: 32px;
  height: 32px;
  margin: 0 8px;
  transition: transform 0.2s ease;
}

.footer-right img:hover {
  opacity: 1;
}

/* RWD for mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
  }

  .footer-right a {
    margin-left: 5px;
    margin-right: 5px;
  }
}

/* RWD */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .hero-banner {
    flex-direction: column;
  }
}

/* ==== Quiz CSS Start ==== */
.quiz-section {
  max-width: 650px;
  margin: 20px auto;
  padding: 10px;
  border-radius: 20px;
  box-sizing: border-box;
  background: #ffffff;
}

.container {
  max-width: 650px;
  padding: 30px 20px;
  animation: fadeIn 0.5s ease-in-out;
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.6rem;
}

.intro-img img {
  display: block;
  margin: 0 auto 15px;
  border-radius: 10px;
  max-width: 100%;
}

.intro-note {
  text-align: center;
  font-size: 1.3rem;
  color: #555;
}

#startPage {
  text-align: center;
  background: #ffffff;
  max-width: 600px;
  margin: 0 auto;
}

.start-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1B4E78;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

#startBtn {
  display: block;
  margin: 0 auto 15px;
  background: linear-gradient(to right, #51C2CF, #A18CFF);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 1.25rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

#startBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.question-box h3 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #c4e0e5, #cfd9df);
  color: #333;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 24px;
  margin: 2px auto;
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: left;
  transition: all 0.3s ease;
}

.options button:hover {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#quiz {
  display: none;
}

#result {
  display: none;
  text-align: center;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
  
}

.result-image {
  text-align: center;
  margin: 10px 0;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.result-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.result-type {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2C3E50;
}

.result-desc {
  font-size: 16px;
  margin: 20px auto;
  padding: 16px 24px;
  max-width: 600px;
  line-height: 1.8;
  color: #333;
  background-color: #f8faff;
  border-left: 4px solid #3c77ff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.result-quote {
  font-style: italic;
  margin-bottom: 10px;
  color: #555;
}

.recommend-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.recommend-card {
  width: 160px;
  text-align: center;
}

.recommend-card img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.recommend-card img:hover {
  transform: scale(1.05);
}

.recommend-card a {
  display: block;
  text-decoration: none;
  color: #2c3e50;
  font-size: 1rem;
  margin-top: 5px;
}

.chart-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 10px auto;
  padding: 10px;
  background: #ffebda; 
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

canvas#radarChart {
  width: 100% !important;
  height: 100% !important;
}

.action-buttons button {
  margin: 10px 5px;
  background: linear-gradient(to right, #51C2CF, #A18CFF);
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.action-buttons button:hover {
  background: linear-gradient(to right, #51C2CF, #A18CFF);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .result-image img {
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  .chart-container {
    padding: 5px;
    margin: 10px auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }

  canvas#radarChart {
    width: 100% !important;
    height: auto !important;
  }
}

/* ====  新增表單 ==== */
.entry-form {
  margin-top: 2em;
  padding: 1.5em;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.entry-form h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1em;
}
.entry-form label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}
.entry-form input {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.4em;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.entry-form button {
  margin-top: 1.5em;
  width: 100%;
  background-color: #6c91f2;
  color: white;
  padding: 0.8em;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.entry-form button:hover {
  background-color: #4c6cd9;
}

.form-control {
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 40px;
  vertical-align: middle;
  text-align: center;
}



/* ==== Mascot Page ==== */
.mascot-banner img {
  width: 100%;
  display: block;
  margin: 0 auto;
  height: auto;
}

/* 聽丸介紹 */
.mascot-intro {
  text-align: center;
  background: #fff;
  padding: 20px 20px 20px;
}

.mascot-intro h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #008a8a;
}

.mascot-main-img {
  width: 200px;
  max-width: 80%;
  margin-bottom: 20px;
}

.mascot-intro p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* 聽丸世界觀 */
.mascot-section {
  background: #fffdf8;
  padding: 20px 20px;
}

.mascot-content {
  max-width: 700px;
  margin: 0 auto;
  color: #333;
  line-height: 1.8;
}

.mascot-content h3 {
  font-size: 1.5rem;
  margin-top: 20px;
  color: #008a8a;
}

.mascot-content p {
  font-size: 1.1rem;
  margin-top: 10px;
}


/* 聽丸性格圖卡 */
.mascot-cards {
  background: #fafafa;
  padding: 20px 20px;
}
.mascot-cards h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #008a8a;
  margin-bottom: 30px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 桌機 4 欄 */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.mascot-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mascot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.mascot-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2px;
}
.mascot-card p {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
}
.mascot-card.selected {
  border: 2px solid #5ee7df;
  box-shadow: 0 0 10px rgba(94,231,223,0.8);
  transform: scale(1.02);
}
.share-btn {
  margin-top: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #5ee7df, #b490ca);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
.share-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #4dd8d1, #a47fc1);
}

/* 平板 & 手機 RWD */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr; /* 手機單欄 */
  }
}

/* 社群分享 */
.mascot-share {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #f2fcfc 0%, #e6f6f4 50%, #fefefe 100%);
}
.mascot-share h2 {
  font-size: 2rem;
  color: #0093c4;
  margin-bottom: 10px;
}
.mascot-share p {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.share-buttons button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(to right, #51C2CF, #A18CFF);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s, transform 0.2s;
}
.share-buttons button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #51C2CF, #A18CFF);
}

/* ===== 祝福牆 Banner ===== */
.blessing-banner img {
  width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 380px;
  object-fit: cover;
}

/* ===== 名人祝福區 ===== */
.celebrity-blessings {
  padding: 10px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, #f4fdfd 0%, #eaf9f6 100%);
  margin-top: 0;
}

.celebrity-blessings h2 {
  font-size: 2rem;
  color: #008a8a;
  margin-bottom: 10px;
}

.celebrity-blessings p {
  color: #333;
  font-size: 1rem;
  margin-bottom: 20px;
}

.celebrity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
}

.celebrity-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* ✅ 讓圖片區塊固定為 1:1 */
}

/* 問號遮罩 */
.image-wrapper::before {
  content: '？';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #51C2CF, #A18CFF); /* ✅ 使用漸層 */
  color: #fff;
  font-size: 60px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: opacity 0.4s ease;
  pointer-events: none; /* ✅ 確保點擊不會被 ::before 擋住 */
}

/* 點擊後讓遮罩消失 */
.celebrity-card.revealed .image-wrapper::before {
  opacity: 0;
}

.real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  position: relative;
  border-radius: 8px;
}

.custom-audio-player {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
}

.custom-audio-player.hidden {
  display: none;
}

.play-btn {
  background: rgba(94, 231, 223, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
  transform: scale(1.1);
  background: rgba(94, 231, 223, 0.9);
}

.celebrity-title-wrapper {
  margin-top: 8px;
}

.celebrity-card p,
.celebrity-card h3,
.celebrity-title,
.celebrity-name {
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.5;
}

.celebrity-title {
  font-size: clamp(12px, 3vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin: 0;
}

.extra-info {
  margin-top: 0;
  padding-top: 0;
}

.extra-info.hidden {
  display: none;
}

.celebrity-name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

@media (max-width: 480px) {
  .celebrity-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 0 6px;
  }
}

/* ===== 使用者祝福上傳區 ===== */
.text-blessing {
  text-align: center;
  padding: 40px 20px 10px;
  background: #fdfdfd;
}

.text-blessing h2 {
  font-size: 2rem;
  color: #008a8a;
  margin-bottom: 10px;
}

.text-blessing p {
  color: #555;
  margin-bottom: 30px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.form-wrapper iframe {
  width: 100%;
  height: 900px;
  border-radius: 0;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
}
.form-wrapper iframe::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ===== 優惠活動 ===== */
.promo-section {
  padding: 10px 10px;
  background-color: #e6f7f7;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #007a7a;
  margin-bottom: 4px;
}

.promo-period {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.promo-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  width: 45%;
  min-width: 300px;
  box-sizing: border-box;
}

.promo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.4rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 8px;
}

.promo-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.4;
}

.promo-checklist {
  list-style: none;
  padding: 0;
  margin: 12px auto 16px auto;
  max-width: 300px; /* 控制整體寬度，不貼太邊邊 */
  text-align: left;
}

.promo-checklist li {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #333;
  line-height: 1.5;
}

.promo-checklist li::before {
  content: "✔️";
  left: 0;
  top: 0.05em;
  font-size: 0.95rem;
}

.promo-btn-wrapper {
  text-align: center;
  margin-top: 12px;
}

.promo-card .btn {
  display: inline-block;
  background: linear-gradient(to right, #51C2CF, #A18CFF);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.promo-card .btn:hover {
  background: linear-gradient(to right, #4db8c9, #9f7fe0);
  color: #fff;
  text-decoration: none;
  transform: translateY(2px);
}

@media (max-width: 767px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

/* 外層藍色背景容器 */
.reward-section-wrapper {
  background: #d7f4f5; /* 淺藍色背景，與主頁一致 */
  padding: 60px 20px;
}

/* 白色卡片樣式 */
.reward-rules.card-style {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

/* 章節標題 */
.reward-rules.card-style h2 {
  color: #005c5c;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 24px;
  border-left: 6px solid #00aaaa;
  padding-left: 12px;
}

/* 有序/無序清單 */
.reward-rules.card-style ol,
.reward-rules.card-style ul {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.reward-rules.card-style ul {
  list-style-type: disc;
}

.reward-rules.card-style p {
  margin: 0.5rem 0;
}