/* 基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei", sans-serif;
}
body {
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  line-height: 160%;
}
/* MENU */
.navbar {
  background-color: #e84117;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo img {
  height: 40px;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li a {
  display: block;
  padding: 0 20px;
  color: white;
  text-decoration: none;
  line-height: 70px;
  transition: 0.3s;
}
.nav-menu li a:hover {
  background-color: #76bb2a;
  color: white;
}
/* SECTION 1: 主視覺 */
.hero-content {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 確保內容從頂部開始 */
  height: 100%; /* 確保容器有高度 */
}
.section0 {
  height: 700px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.floating-img {
  width: 60%;
  animation: slideDown 2s ease-out forwards;
  opacity: 0;
}
@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* SECTION 2 & 通用樣式 */
.section0 {
  background-size: 100% auto;
  background-position: top center;
}
.section0 {
  height: 1000px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('../img/main.jpg');
}
/* 基礎共用設定 */
.section1, .section2, .section3, .section4, .section5 {
  padding: 80px 0;
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
}
.q-title {
  font-weight: bolder;
}
/* 各別背景路徑 */
.section1 {
  background-image: url('../img/section_01.jpg');
}
.section2 {
  background-image: url('../img/section_02.jpg');
}


.section3 {
  background-image: url('../img/section_03.jpg');
  background-position: bottom center;
  background-repeat: no-repeat;
  
  /* 預設狀態（大於 820px）：維持原始大小 */
  background-size: auto;
}

/* 只有在螢幕寬度 820px (含) 以下時，才執行 cover */
@media (max-width: 820px) {
  .section3 {
    background-size: cover;
  }
}
.section4 {
  background-image: url('../img/section_04.jpg');
  background-position: bottom center;
  background-repeat: no-repeat;
  
  /* 預設狀態（大於 820px）：維持原始大小 */
  background-size: auto;
}

/* 只有在螢幕寬度 820px (含) 以下時，才執行 cover */
@media (max-width: 820px) {
  .section4 {
    background-size: cover;
  }
}
.section5 {
  background-image: url('../img/section_05.jpg');
}
.section-title {
  text-align: center;
  margin-bottom: 30px;
}
.section-title img {
  display: block; /* 轉為區塊元素可徹底消除下方間隙 */
  margin: 0 auto; /* 若需要置中 */
}
.content-box-white {
  background: white;
  border-radius: 20px;
  padding: 30px;
}
.flex-row {
  display: flex;
  gap: 20px;
}
.flex-row img {
  max-width: 100%;
}
/* SECTION 3: 書籍介紹 */
.book-item {
  display: flex;
  margin-bottom: 40px;
  align-items: center;
}
.book-cover {
  flex: 0 0 30%;
  padding: 20px;
}
.book-info {
  flex: 0 0 70%;
  background: white;
  border-radius: 20px;
  padding: 30px;
}
.bg-blue-label {
  background: #00a7df;
  color: white;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.b-label {
  display: block;
  text-align: left;
}
.bg-green-label {
  background: #76bb2a;
  color: white;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.text-blue {
  color: #00a7df;
  font-size: 1rem;
  margin-bottom: 10px;
}
.text-green {
  color: #76bb2a;
  font-size: 1rem;
  margin-bottom: 10px;
}
.text-dark {
  color: #111111;
  font-size: 1rem;
}
/* SECTION 4: FAQ */
.arrow {
  display: inline-block;
  transition: transform 0.3s ease; /* 讓箭頭旋轉變順暢 */
}
.accordion-content.is-hidden {
  display: none;
}
.arrow.is-active {
  transform: rotate(-90deg);
}
.title-img {
  margin: 0 auto 30px;
  display: block;
  max-width: 400px;
}
.accordion-item {
  background: white;
  border: 2px solid #e95233;
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}
.accordion-header {
  background: white;
  color: #e95233;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: bold;
}
.accordion-content {
  padding: 20px;
  color: #111111;
  font-size: 1rem;
}
.accordion-content p {
  color: #111111;
  font-size: 1rem;
  text-align: left;
  font-weight: bold;
}
/* SECTION 5: 方案卡片 */
.card-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.plan-card, .gift-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
}
.border-orange {
  border: 2px solid #e95233;
}
.bg-orange {
  background: #e95233;
  color: white;
  padding: 15px;
}
.price-red {
  font-weight: bold;
  font-size: 2.2rem;
}
.btn-blue {
  background: #00a7df;
  color: white;
  padding: 5px 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin: 5px 0;
}
.btn-green {
  background: #76bb2a;
  color: white;
  padding: 5px 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin: 5px 0;
}
.divider-orange {
  height: 1px;
  background: #efefef;
  margin: 15px 0;
}
.price-line {
  font-weight: bold;
  font-size: 1.5rem;
}
/* SECTION 6 & CTA */
.border-green {
  border: 2px solid #76bb2a;
  padding: 20px;
}
.small-grey {
  color: #888;
  font-size: 0.8rem;
}
.final-cta {
  text-align: center;
  margin-top: 50px;
}
.text-orange {
  color: #e95233;
  font-size: 1.5rem;
  font-weight: bold;
}
.text-large-green {
  color: #14a670;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0;
}
.btn-3d-green {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(to bottom, #76bb2a, #14a670);
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 0 #0d6d4a;
  transition: 0.2s;
}
.btn-3d-green:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0d6d4a;
}
/* FOOTER */
.main-footer {
  background: #e84117;
  color: white;
  padding: 30px 0;
  font-size: 1.1rem;
}
.copyright {
  background: #555;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}
/* 手機版響應式 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #e84117;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }
  .nav-menu.active {
    left: 0;
  }
  .menu-toggle {
    cursor: pointer;
    display: block;
  }
  .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    display: block;
  }
  .flex-row, .book-item, .card-wrapper {
    flex-direction: column;
  }
  .book-cover, .book-info {
    flex: 0 0 100%;
  }
  .section1 {
    height: 400px;
  }
  .floating-img {
    width: 90%;
  }
} /* 基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei", sans-serif;
}
body {
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
img {
  max-width: 100%;
  height: auto;
}
/* MENU */
.navbar {
  background-color: #e84117;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 52px;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo img {
  height: 40px;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li a {
  display: block;
  padding: 0 20px;
  color: white;
  text-decoration: none;
  line-height: 35px;
  transition: 0.3s;
  font-weight: bold;
  font-size: 1.2rem;
  height: 35px;
}
.nav-menu li a:hover {
  background-color: #76bb2a;
  color: white;
  border-radius: 100px;
}
/* SECTION 1: 主視覺 */
.floating-img {
  margin-top: 0;
  width: 100%;
  animation: slideDown 2s ease-out forwards;
  opacity: 0;
}
@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* SECTION 2 & 通用樣式 */
.section1, .section2, .section3, .section4, .section5, .section6 {
  padding: 30px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 0px;
}
.content-box-white {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 5px solid #e95233;
  margin-bottom: 30px;
}
.flex-row {
  display: flex;
  gap: 20px;
}
.flex-row img {
  max-width: 100%;
}
/* SECTION 3: 書籍介紹 */
.book-item {
  display: flex;
  margin-bottom: 0px;
  align-items: center;
}
.book-cover {
  flex: 0 0 30%;
  padding: 10px;
}
.book-info {
  flex: 0 0 70%;
  background: white;
  border-radius: 20px;
  padding: 30px;
}
.bg-blue-label {
  background: #00a7df;
  color: white;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.bg-green-label {
  background: #76bb2a;
  color: white;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.text-blue {
  color: #00a7df;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: left;
}
.text-green {
  color: #76bb2a;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: bold;
}
.text-dark {
  color: #111111;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
}
.text-center {
  color: #111111;
  font-weight: bold;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.3;
}
/* SECTION 4: FAQ */
.title-img {
  margin: 0 auto 0px;
  display: block;
  max-width: 650px;
}
.accordion-item {
  background: white;
  border: 2px solid #e95233;
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}
.accordion-header {
  background: white;
  color: #e95233;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid #efefef;
  margin-bottom: 15px;
}
.accordion-content {
  padding: 20px;
  color: #111111;
  font-size: 1rem;
  padding: 0 20px 20px 20px;
}
.title_name {
  padding: 0px;
  color: #111111;
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}
.gift-text {
  color: #111111;
  font-size: 1.3rem;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
  padding-bottom: 20px;
}
/* SECTION 5: 方案卡片 */
.card-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.plan-card, .gift-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
}
.border-orange {
  border: 5px solid #e95233;
}
.bg-orange {
  background: #e95233;
  color: white;
  padding: 10px;
  font-weight: bold;
  font-size: 1.7rem;
}
.bg-yellow {
  background: #fff100;
  color: white;
  padding: 10px;
  font-weight: bold;
  font-size: 1.7rem;
}
.price-red {
  font-weight: bold;
  font-size: 2.2rem;
}
.btn-blue {
  background: #00a7df;
  color: white;
  padding: 5px 15px;
  text-decoration: none;
  border-radius: 100px;
  display: inline-block;
  margin: 5px 0;
  font-weight: bold;
}
.btn-green {
  background: #76bb2a;
  color: white;
  padding: 5px 15px;
  text-decoration: none;
  border-radius: 100px;
  display: inline-block;
  margin: 5px 0;
  font-weight: bold;
}
.gift-card {
  border: 5px solid #e95233;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  background: white;
}
.arrow {
  display: inline-block; /* 必須是 block 或 inline-block 才能旋轉 */
  transition: transform 0.3s ease; /* 增加平滑動畫 */
}
.responsive {
  max-width: 100%;
  height: auto;
}
/* SECTION 6 & CTA */
.border-blue {
  border: 5px solid #00a7df;
  padding: 20px;
}
.border-green {
  border: 5px solid #76bb2a;
  padding: 20px;
}
.small-grey {
  color: #888;
  font-size: 0.8rem;
  text-align: right;
}
.final-cta {
  text-align: center;
  margin-top: 50px;
}
.text-orange {
  color: #e95233;
  font-size: 1.5rem;
  font-weight: bold;
}
.text-large-green {
  color: #14a670;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0;
}
.btn-3d-green {
  display: inline-block;
  padding: 10px 40px;
  background: linear-gradient(to bottom, #76bb2a, #14a670);
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 5px 0 #0d6d4a;
  transition: 0.2s;
  font-weight: bold;
}
.btn-3d-green:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #0d6d4a;
}
.gray_text {
  color: #1111111;
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
  text-align: center;
}
.g_text {
  color: #14a670;
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
}
.o_text {
  color: #e95233;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
  margin: 10px 0;
}
.o_text::before {
  content: "✔"; /* 或者使用 FontAwesome 類型的 icon */
  color: #e95233; /* 橘色 */
  margin-right: 8px;
  font-weight: bold;
}
.o_text_left {
  color: #e95233;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 10px 0;
  text-align: left;
}
/* FOOTER */
.footer-text {
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: .9rem;
  line-height: 1.7;
}
.main-footer {
  background: #e84117;
  color: white;
  padding: 30px 0;
  font-size: 1.1rem;
}
.copyright {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.8rem;
}
/* 手機版響應式 */
@media (max-width: 768px) {
  .title_name {
    padding: 0px;
    color: #111111;
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
  }
  .section2 {
    background-image: url('../img/section_02_m.jpg');
  }
  .section3 {
    background-image: url('../img/section_03_m.jpg');
  }
  .section4 {
    background-image: url('../img/section_04_m.jpg');
    background-position: bottom center;
  }
  .section5 {
    background-image: url('../img/section_05_m.jpg');
  }
  .q-title {
    font-weight: bolder;
    text-align: left;
    font-size: 1.3rem;
  }
  .section0 {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../img/main_m.jpg');
  }
  .nav-menu li a {
    display: block;
    padding: 0 20px;
    color: white;
    text-decoration: none;
    line-height: 45px;
    transition: 0.3s;
    font-weight: bold;
    font-size: 1.2rem;
    height: 45px;
  }
  .g_text {
    color: #14a670;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
  }
  .nav-menu {
    position: fixed;
    right: -100%;
    top: 50px;
    flex-direction: column;
    background-color: #e84117;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }
  .nav-menu.active {
    left: 0;
  }
  .menu-toggle {
    cursor: pointer;
    display: block;
  }
  .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    display: block;
  }
  .flex-row, .book-item, .card-wrapper {
    flex-direction: column;
  }
  .book-cover, .book-info {
    flex: 0 0 100%;
  }
  .section1 {
    height: auto;
    background-image: url('../img/section_01_m.jpg') !important;
  }
  .floating-img {
    width: 90%;
  }
} /* 1. 確保卡片容器等高 */
.card-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch; /* 強制所有卡片拉伸到相同高度 */
}
.plan-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}
/* 2. 固定標題高度，解決單/雙行標題不齊 */
.card-head {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  text-align: center;
}
.card-body {
  flex: 1; /* 佔滿剩餘空間 */
  display: flex;
  flex-direction: column;
  padding: 20px;
}
/* 3. 價格與按鈕左右排列且置中 (Section 3) */
.price-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px; /* 固定價格區高度 */
}
.price-row {
  display: flex;
  flex-direction: row; /* 強制左右排列 */
  align-items: center;
  justify-content: center;
  gap: 15px; /* 價格與按鈕的間距 */
}
/* Section 3 的大價格 */
.price-red {
  font-weight: bold;
  font-size: 2.2rem; /* Section 3 的基準大小 */
}
.price-line {
  margin-bottom: 0 !important; /* 移除原本可能的下間距 */
}
/* 4. 分隔線與底部資訊對齊 */
.divider-orange {
  height: 1px;
  background: #e95233;
  margin: 15px 0;
}
.info-footer {
  min-height: 70px; /* 固定底部資訊高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sub-text {
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
  margin-top: 5px;
  text-align: center;
}
/* --- Section 4 專用修正區 --- */
/* 統一標題高度 (解決方案三換行問題) */
.section4 .card-head {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  line-height: 1.4;
}
.highlight-yellow {
  color: #fff100;
}
/* 方案內容區域排版 */
.price-box.multi-line {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  min-height: 160px; /* 稍微增加高度以容納大字體 */
}
/* 每行方案的對齊：名稱靠左，(價格+按鈕)靠右 */
/* 這裡修正為對應 HTML 的 price-row-flex */
.section4 .price-row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.brand-name {
  font-size: 1.3rem;
  font-weight: bold;
}
/* 價格與按鈕的組合 */
.price-group {
  display: flex;
  align-items: center;
  gap: 15px; /* 增加間距 */
}
/* 關鍵修正：將 Section 4 價格調大至與 Section 3 一致 */
.price-value {
  font-size: 2.2rem;
  font-weight: bold;
}
/* 顏色定義 */
.color-blue {
  color: #00a7df;
}
.color-green {
  color: #76bb2a;
}
/* 底部文字區域固定高度 */
.section4 .info-footer {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section4 .gift-text {
  
  padding-bottom: 0;
}
/* --- Section 4 手機版排版優化 (強制一行顯示) --- */
/* 1. 調整方案內容容器 */
.price-box.multi-line {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  min-height: auto; /* 手機版讓高度隨內容撐開 */
}
/* 2. 強制「名稱、價格、按鈕」在同一行且不換行 */
.section4 .price-row-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap !important; /* 強制不換行 */
}
/* 3. 名稱設定：確保不被壓縮 */
.brand-name {
  font-size: 1.6rem;
  font-weight: bold;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 5px;
}
/* 4. 價格與按鈕的組合容器 */
.price-group {
  display: flex;
  align-items: center;
  gap: 8px; /* 縮小元素間距 */
  flex-shrink: 0;
}
/* 5. 價格字體：統一大小並防止「元」掉下來 */
.price-value {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap; /* 確保數字與元永遠在一起 */
}
/* 6. 訂閱按鈕：微調寬度以騰出空間 */
.section4 .btn-blue, .section4 .btn-green {
  padding: 5px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
/* 針對小螢幕手機特別優化 (如螢幕寬度小於 380px) */
@media (max-width: 380px) {
  .price-value {
    font-size: 2.2rem;
  }
  .brand-name {
    font-size: 1.4rem;
  }
  .price-group {
    gap: 4px;
  }
}
/* --- Section 5 贈品卡片標題優化 --- */
/* 1. 確保卡片本身溢出隱藏，讓標題的圓角能配合卡片 */
.gift-card {
  padding: 0 !important; /* 移除原本的內距，由內部元素控制 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 2. 橘底白字標題樣式 */
.gift-head {
  background-color: #e95233; /* 網頁統一橘色 */
  color: #ffffff; /* 純白字 */
  padding: 15px;
  font-size: 1.8rem; /* 字體大小 */
  font-weight: bold;
  text-align: center;
  width: 100%;
}
/* 3. 調整卡片內部內容的間距 (因為外層 padding 移除了) */
.gift-card img {
  padding: 0 20px;
}
.gift-card .small-grey, .gift-card .o_text_left, .gift-card .text-dark {
  padding-left: 20px;
  padding-right: 20px;
}
.gift-card .divider-orange {
  margin: 15px 20px;
}
.gift-card .text-dark {
  padding-bottom: 25px; /* 底部留白 */
}
/* 手機版微調 */
@media (max-width: 768px) {
  .gift-head {
    font-size: 1.5rem;
    padding: 10px;
  }
}