/* 方案比較頁專屬樣式。選單、頁尾、右側浮動按鈕等共用元件沿用 ../pro/css/style.css */

/* ==========================================================================
topbanner
========================================================================== */
.plan-topbanner {
  /* 避開 fixed 選單（桌機 70px、手機 58px） */
  margin-top: 70px;
  min-height: 300px;
  padding: 58px 20px 0;
  box-sizing: border-box;
  background: #ecf9f7 url(../images/topbanner_bg.webp) center / cover no-repeat;
  color: #292929;
  text-align: center;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

.plan-topbanner-inner {
  max-width: 631px;
  margin: 0 auto;
}

.plan-topbanner-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.plan-topbanner-subtitle {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.38;
}

/* 手機版副標在「，」後換行，桌機不換 */
.plan-topbanner-br {
  display: none;
}

.plan-topbanner-desc {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

@media screen and (max-width: 959px) {
  .plan-topbanner {
    margin-top: 58px;
  }
}

@media screen and (max-width: 768px) {
  /* 手機版（360px）：H1 32px 在「與」後換行、副標 22px 在「，」後換行、沒有說明段落 */
  .plan-topbanner {
    min-height: 330px;
    padding-top: 91px;
  }

  .plan-topbanner-inner {
    max-width: 298px;
  }

  .plan-topbanner-title {
    font-size: 32px;
    line-height: 1.22;
  }

  .plan-topbanner-subtitle {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
  }

  .plan-topbanner-br {
    display: inline;
  }

  .plan-topbanner-desc {
    display: none;
  }
}

/* ==========================================================================
方案卡：標準版／專業版
========================================================================== */
.plan-overview {
  position: relative;
  z-index: 1;
  /* 白底外框蓋住 topbanner 底部 */
  margin-top: -60px;
  padding: 0 20px;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: rgba(0, 0, 0, 0.9);
}

.plan-overview-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 50px 60px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 30px;
}

.plan-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 41px;
  /* 卡片上方留 7.3px */
  padding-top: 7.3px;
}

.plan-card {
  flex: 0 1 490px;
  min-width: 0;
  min-height: 738px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 31px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid;
  border-radius: 20px;
}

.plan-card--standard {
  border-color: #d8d8d8;
}

.plan-card--pro {
  border-color: #ffa759;
}

/* 卡片標頭 */
.plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.plan-card-head-main {
  min-height: 72px;
}

.plan-card-title {
  margin: 0;
  height: 37px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36.59px;
  letter-spacing: -0.6861px;
  color: #000;
}

.plan-card-tagline {
  margin: 0;
  height: 29px;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: -0.6861px;
  color: #686868;
}

.plan-card-price {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 36.59px;
  letter-spacing: -0.6861px;
  color: #000;
  white-space: nowrap;
}

.plan-card-icon {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
}

/* 三個向量疊成日曆圖示，位置與尺寸用 % 才能隨手機版縮放 */
.plan-card-icon img {
  position: absolute;
  display: block;
  max-width: none;
}

/* 容量（單一數據） */
.plan-stats {
  margin: 0;
  padding: 9px 0;
  border-radius: 7px;
  text-align: center;
}

.plan-card--standard .plan-stats {
  background: rgba(192, 233, 233, 0.3);
}

.plan-card--pro .plan-stats {
  background: #ffebda;
}

.plan-stat dt {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

.plan-stat dd {
  position: relative;
  top: -2px;
  height: 26px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 25.613px;
}

.plan-card--standard .plan-stat dd {
  color: #00afb8;
}

.plan-card--pro .plan-stat dd {
  color: #ff7800;
}

/* 區塊小標：適合對象／核心功能 */
.plan-block-title {
  min-height: 26px;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 25.613px;
  letter-spacing: -0.2287px;
  color: #000;
}

/* 適合對象 */
.plan-suit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-suit-list li {
  display: flex;
  align-items: flex-start;
}

.plan-check-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  padding-top: 1.281px;
  box-sizing: border-box;
}

.plan-check {
  display: block;
}

.plan-suit-text {
  padding: 3px 0;
  font-size: 16px;
  line-height: 20px;
}

/* CTA 按鈕 */
.plan-card-btn {
  display: block;
  box-sizing: border-box;
  align-self: center;
  width: 230px;
  max-width: 100%;
  padding: 8px 30px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.plan-card--standard .plan-card-btn {
  background: #00afb8;
}

.plan-card--pro .plan-card-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* 玻璃光的 ::after 墊在文字後面 */
  background: #ff7800;
}

.plan-card-btn:hover,
.plan-card-btn:focus,
.plan-card-btn:active,
.plan-card-btn:visited {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

/* 核心功能：單欄，每項 38px（短列 32px），補充說明接在名稱後面 */
.plan-features {
  padding: 1px 0;
}

.plan-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  min-height: 38px;
}

.plan-feature--short {
  min-height: 32px;
}

.plan-feature-icon {
  flex: 0 0 20px;
  display: block;
  width: 20px;
  height: 26px;
}

.plan-feature-text {
  min-width: 0;
  padding: 3px 0;
  font-size: 18px;
  line-height: 20px;
}

.plan-feature-name {
  font-weight: 700;
}

.plan-card--standard .plan-feature-name {
  color: #00afb8;
}

.plan-card--pro .plan-feature-name,
.plan-card--pro .plan-feature-sub {
  color: #ff7800;
}

/* 「包含所有標準版功能」是深灰色，不是橘色 */
.plan-card--pro .plan-feature--base .plan-feature-name {
  color: #40454f;
}

.plan-feature-sub {
  font-size: 15px;
  font-weight: 400;
}

.plan-footnote {
  margin: 24px 0 0;
  padding: 3px 0;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

/* ==========================================================================
動畫：進場（topbanner 純 CSS、方案卡／比較表用 wow.js）與專業版 CTA 玻璃光。
停用動態效果的使用者一律不播放（見最後的 prefers-reduced-motion）
========================================================================== */
@keyframes plan-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* topbanner 文字依序淡入上滑；只動文字、不動背景圖（LCP 元素） */
.plan-topbanner-title,
.plan-topbanner-subtitle,
.plan-topbanner-desc {
  animation: plan-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.plan-topbanner-subtitle {
  animation-delay: 0.15s;
}

.plan-topbanner-desc {
  animation-delay: 0.3s;
}

/* wow.js 用（HTML 的 wow plan-reveal）：和 topbanner 同一組 24px 位移。
 * 不用 animate.css 的 fadeInUp，它位移 100% 高度，整組表格會從很遠的下方滑進來 */
.plan-reveal {
  animation-name: plan-fade-up;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 專業版「預約專人諮詢」玻璃光：斜白色高光由左掃到右，卡片進場完成後（1.4s）開始，每 3 秒一次、共 3 次 */
@keyframes plan-btn-shine {
  0% {
    transform: translateX(-130%) skewX(-20deg);
  }

  35%,
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

.plan-card--pro .plan-card-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 60%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-20deg);
  pointer-events: none;
  animation: plan-btn-shine 3s ease-in-out 1.4s 3;
}

@media (prefers-reduced-motion: reduce) {
  .plan-topbanner-title,
  .plan-topbanner-subtitle,
  .plan-topbanner-desc,
  .plan-card--pro .plan-card-btn::after {
    animation: none;
  }

  .plan-card.wow,
  .plan-reveal.wow {
    visibility: visible !important;
    animation: none !important;
  }
}

/* 平板／手機：兩張方案卡改為橫向左右滑動，並露出下一張卡的邊提示可滑 */
@media screen and (max-width: 959px) {
  /* 左右內距改給捲動區，卡片才能一路滑到畫面右緣（設計稿為滿版） */
  .plan-overview-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .plan-cards {
    justify-content: flex-start;
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
    overflow-x: auto;
    /* wow 的位移動畫會讓 overflow-y: auto 閃出直向捲軸 */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .plan-cards::-webkit-scrollbar {
    display: none;
  }

  .plan-card {
    flex: 0 0 min(490px, 86%);
    scroll-snap-align: start;
  }
}

/* 手機版方案卡不蓋住 topbanner */
@media screen and (max-width: 768px) {
  .plan-overview {
    margin-top: 0;
  }
}

/* 手機版：兩張卡各 220px 寬、高 485px，字級約為桌機的 0.6 倍 */
@media screen and (max-width: 576px) {
  .plan-overview {
    padding: 0;
  }

  .plan-overview-wrapper {
    padding: 16px 0 40px;
    border-radius: 20px;
  }

  .plan-cards {
    gap: 24.6px;
    padding: 0 24px;
  }

  .plan-card {
    flex: 0 0 220px;
    min-height: 485px;
    gap: 9.6px;
    padding: 18.6px 15px;
    border-width: 1px;
    border-radius: 12px;
  }

  .plan-card-head {
    position: relative;
    display: block;
    min-height: 43px;
  }

  .plan-card-head-main {
    min-height: 43px;
  }

  .plan-card-title {
    height: auto;
    font-size: 18px;
    line-height: 21.954px;
    letter-spacing: -0.4116px;
  }

  .plan-card-tagline {
    height: 17.4px;
    font-size: 9.6px;
    line-height: 17.4px;
    letter-spacing: -0.4116px;
    white-space: nowrap;
  }

  .plan-card-price {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    line-height: 21.954px;
    letter-spacing: -0.4116px;
  }

  .plan-card-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
  }

  .plan-stats {
    padding: 5.4px 0;
    border-radius: 4.2px;
  }

  .plan-stat dt {
    font-size: 8.4px;
    line-height: 16.8px;
  }

  .plan-stat dd {
    top: -1.2px;
    height: 15.6px;
    font-size: 9.6px;
    line-height: 15.368px;
  }

  .plan-block-title {
    min-height: 0;
    margin-bottom: 3.6px;
    font-size: 12px;
    line-height: 15.368px;
    letter-spacing: -0.1372px;
  }

  .plan-suit-list li + li {
    margin-top: 2px;
  }

  .plan-check-box {
    flex-basis: 10.8px;
    width: 10.8px;
    height: 10.8px;
    margin-top: 2.4px;
    padding-top: 0.768px;
  }

  .plan-check {
    width: 9.219px;
    height: 9.219px;
  }

  .plan-suit-text {
    padding: 1.8px 0;
    font-size: 9.6px;
    line-height: 12px;
  }

  .plan-card-btn {
    width: 138px;
    padding: 4.8px 18px;
    border-radius: 2.4px;
    font-size: 10.8px;
    line-height: 14.4px;
  }

  .plan-features {
    padding: 0.6px 0;
  }

  .plan-feature {
    min-height: 23px;
  }

  .plan-feature--short {
    min-height: 20px;
  }

  .plan-feature--sub {
    min-height: 30px;
  }

  .plan-feature-icon {
    flex-basis: 12px;
    width: 12px;
    height: 15.6px;
  }

  .plan-feature-text {
    padding: 1.8px 0;
    font-size: 10.8px;
    line-height: 12px;
  }

  /* 補充說明在手機版換到名稱下一行 */
  .plan-feature-sub {
    display: block;
    font-size: 9px;
  }

  .plan-footnote {
    margin-top: 16px;
    font-size: 12px;
    line-height: 18px;
  }
}

/* ==========================================================================
完整功能比較；標題沿用 FAQ 的 .plan-faq-title-wrap
========================================================================== */
.plan-compare {
  /* 上方不留內距：方案卡外框已有 60px 下內距 */
  padding: 0 20px 40px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: #40454f;
}

.plan-compare .plan-faq-title-wrap {
  margin-bottom: 40px;
}

/* thead／各組 tbody／tfoot 用 3 欄 grid（項目 242／標準版 402／專業版 375），tr 不佔版面，
 * 儲存格直接排進 grid 才能跨列合併；table 語意靠 HTML 的 role 保留 */
.plan-table {
  display: block;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.plan-table thead,
.plan-table-group,
.plan-table tfoot {
  display: grid;
  grid-template-columns: 242fr 402fr 375fr;
}

.plan-table tr {
  display: contents;
}

/* 表頭：白底 50px */
.plan-table thead {
  background: #fff;
}

.plan-table thead th {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28.6px;
}

.plan-th-std {
  color: #00afb8;
}

.plan-th-pro {
  color: #ff7800;
}

/* 每一組是一個白底、1px #dcdcdc 外框的區塊，組間距 20px（表頭下方緊接第一組） */
.plan-table-group {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dcdcdc;
}

.plan-table thead + .plan-table-group {
  margin-top: 0;
}

.plan-table-section th {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 10px;
  background: #f2f2f2;
  border-bottom: 1px solid #d8d8d8;
  font-size: 18px;
  font-weight: 700;
  line-height: 27.9px;
  text-align: left;
}

/* 一般儲存格：最低 32px（含底線）、底線 #d8d8d8 */
.plan-table-group th[scope="row"],
.plan-table-group td {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 16px;
  font-weight: 400;
  line-height: 27.9px;
}

.plan-table-group th[scope="row"] {
  border-right: 1px solid #d8d8d8;
  text-align: left;
}

.plan-table-group td {
  justify-content: center;
  text-align: center;
}

/* 標準版／專業版兩欄之間的直線；合併儲存格（橫跨兩欄）沒有 */
.plan-table-val:not(:last-child) {
  border-right: 1px solid #d8d8d8;
}

/* 每組最後一列的底線由外框取代 */
.plan-table-group tr:last-child > th,
.plan-table-group tr:last-child > td {
  border-bottom: 0;
}

.plan-table-merge {
  grid-column: span 2;
}

/* 員工資料／組織圖共用一個跨兩列的合併儲存格；第二列的複本只在手機版（兩列各自顯示）出現 */
.plan-table-merge--rows {
  grid-row: span 2;
}

.plan-table-group .plan-table-merge--dup {
  display: none;
}

.plan-row--tall > th,
.plan-row--tall > td {
  min-height: 58px;
  line-height: 22px;
}

.plan-row--taller > th,
.plan-row--taller > td {
  min-height: 65px;
  line-height: 22px;
}

.plan-cell {
  display: block;
}

/* 只在手機版斷行 */
.plan-table-br {
  display: none;
}

.plan-tick {
  display: block;
}

.plan-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff7800;
}

/* 「ⓘ」靠項目欄右側；說明泡泡預設隱藏，hover／鍵盤 focus／點擊（aria-expanded）時顯示在 ⓘ 正下方 */
.plan-info-wrap {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
}

.plan-info {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}

.plan-info img {
  display: block;
  width: 100%;
  height: 100%;
}

.plan-info:focus-visible {
  outline: 2px solid #00afb8;
  outline-offset: 2px;
  border-radius: 50%;
}

.plan-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 5;
  box-sizing: border-box;
  width: max-content;
  max-width: min(494px, calc(100vw - 32px));
  /* plan.js 靠近畫面邊緣時用 --plan-tip-shift 往內推 */
  transform: translateX(calc(-50% + var(--plan-tip-shift, 0px)));
  padding: 8px 30px;
  border-radius: 3px;
  background: #5c5c5c;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}

.plan-info[aria-expanded="true"] ~ .plan-tip,
.plan-info:focus-visible ~ .plan-tip {
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) {
  .plan-info:hover ~ .plan-tip {
    visibility: visible;
    opacity: 1;
  }
}

/* 底部 CTA：白底 77px 的最後一列，按鈕置中在標準版／專業版欄 */
.plan-table tfoot {
  background: #fff;
}

.plan-table tfoot td {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 77px;
}

.plan-compare-btn {
  margin: 0;
  max-width: none;
  width: 200px;
}

.plan-compare-btn--std {
  background: #00afb8;
}

.plan-compare-btn--pro {
  background: #ff7800;
  width: 214px;
}

/* 手機版：標準版／專業版變欄籤，每個項目名稱獨佔一行，下面一列為 空／標準版／專業版（合併格佔後兩格），CTA 上下堆疊 */
@media screen and (max-width: 768px) {
  .plan-compare {
    padding: 0 16px 40px;
  }

  .plan-compare .plan-faq-title-wrap {
    margin-bottom: 24px;
  }

  .plan-table thead,
  .plan-table tfoot {
    display: block;
  }

  /* 欄籤與下方內容共用 空／標準版／專業版 的欄寬，並置中在各自的欄，寬度變大時勾勾才不會和欄籤錯位 */
  .plan-table thead tr {
    display: grid;
    grid-template-columns: 112px repeat(2, minmax(0, 1fr));
    padding-top: 10px;
  }

  .plan-table thead th {
    box-sizing: border-box;
    justify-self: center;
    width: min(110px, calc(100% - 6px));
    height: auto;
    padding: 12px;
    border-radius: 4px;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
    font-size: 14px;
    line-height: normal;
  }

  .plan-th-std {
    background: #f1feff;
  }

  .plan-th-pro {
    background: #fff7ed;
  }

  .plan-table-group {
    display: block;
    margin-top: 10px;
    background: none;
    border: 0;
  }

  .plan-table thead + .plan-table-group {
    margin-top: 10px;
  }

  .plan-table-section {
    display: block;
  }

  .plan-table-section th {
    justify-content: center;
    padding: 0;
    border-bottom: 0;
    font-size: 16px;
    line-height: normal;
  }

  .plan-table-group tr {
    display: grid;
    grid-template-columns: 112px repeat(2, minmax(0, 1fr));
    align-items: center;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
  }

  .plan-table-group tr.plan-table-section {
    display: block;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .plan-table-group tr:last-child {
    border-bottom: 0;
  }

  .plan-table-group th[scope="row"],
  .plan-table-group td,
  .plan-row--tall > th,
  .plan-row--tall > td,
  .plan-row--taller > th,
  .plan-row--taller > td {
    min-height: 20px;
    padding: 0;
    border: 0;
    line-height: normal;
  }

  .plan-table-group th[scope="row"] {
    grid-column: 1;
    font-size: 14px;
    color: #686868;
  }

  .plan-row-label {
    min-width: 91px;
  }

  .plan-table-group td {
    font-size: 12px;
  }

  /* 手機版標準版／專業版之間沒有直線（權重要高過桌機的 :not(:last-child) 規則） */
  .plan-table-group .plan-table-val:not(:last-child) {
    grid-column: 2;
    border-right: 0;
  }

  .plan-table-val:last-child {
    grid-column: 3;
  }

  .plan-table-merge {
    grid-column: 2 / 4;
  }

  .plan-table-merge--rows {
    grid-row: auto;
  }

  .plan-table-group .plan-table-merge--dup {
    display: flex;
  }

  .plan-table-br {
    display: inline;
  }

  .plan-tick {
    width: 18px;
    height: auto;
  }

  /* 手機版 ⓘ 緊跟在項目名稱後（距左緣 91px） */
  .plan-info-wrap {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 0;
  }

  .plan-tip {
    padding: 8px 16px;
  }

  .plan-table tfoot tr {
    display: block;
    padding-top: 12px;
  }

  .plan-table tfoot td:first-child {
    display: none;
  }

  .plan-table tfoot td {
    display: block;
    height: auto;
    margin-top: 12px;
    padding: 0;
  }

  .plan-compare-btn,
  .plan-compare-btn--pro {
    width: 100%;
    padding: 5px 15px 6px;
    font-size: 14px;
    line-height: normal;
  }
}

/* ==========================================================================
FAQ：<details> 手風琴，答案在 DOM 內供搜尋引擎讀取
========================================================================== */
.plan-faq {
  padding: 60px 20px;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: #292929;
}

.plan-faq-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
}

.plan-faq-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: #292929;
}

.plan-faq-title-bar {
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 3px;
  background: #39c8d0;
}

.plan-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-faq-item {
  box-sizing: border-box;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

.plan-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

/* 隱藏瀏覽器預設的展開三角 */
.plan-faq-q::-webkit-details-marker {
  display: none;
}

.plan-faq-item[open] .plan-faq-q {
  align-items: flex-start;
}

.plan-faq-q-main {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 20px;
}

.plan-faq-num {
  flex: 0 0 27px;
  width: 27px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 700;
  line-height: normal;
  color: #00afb8; /* 不支援 background-clip:text 時的備援色 */
  background: linear-gradient(78.33deg, #75e2f0 1.24%, #00afb8 96.16%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-faq-num--wide {
  flex-basis: 39px;
  width: 39px;
}

.plan-faq-q-text {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: normal;
  color: #292929;
}

.plan-faq-icon {
  position: relative;
  flex: 0 0 18.223px;
  width: 18.223px;
  height: 18.223px;
}

.plan-faq-icon img {
  position: absolute;
  top: -0.585px;
  left: -0.585px;
  display: block;
  max-width: none;
}

/* 展開 ›、收合 ⌄（依設計稿） */
.plan-faq-item[open] .plan-faq-icon-closed,
.plan-faq-item:not([open]) .plan-faq-icon-open {
  display: none;
}

.plan-faq-a {
  padding-left: 36px;
  margin-top: 9.372px;
}

.plan-faq-a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #616161;
}

.plan-faq-a a,
.plan-faq-a a:visited {
  color: #00afb8;
  text-decoration: underline;
}

@media screen and (max-width: 576px) {
  .plan-faq {
    padding: 40px 12px;
  }

  .plan-faq-title-wrap {
    margin-bottom: 32px;
  }

  .plan-faq-title {
    font-size: 28px;
  }

  .plan-faq-item {
    padding: 16px;
  }

  .plan-faq-q-main {
    align-items: flex-start;
    font-size: 17px;
  }

  .plan-faq-a {
    padding-left: 0;
  }
}

/* ==========================================================================
立即啟用 CTA（#bottom）：沿用專業版頁（../pro/css/style.css），
本頁標題較長，≥769px 把文字欄放寬到 553px 避免折行
========================================================================== */
@media screen and (min-width: 769px) {
  #bottom .bottom-content .proCta-row {
    max-width: 1018px; /* 440 插圖 + 25 間距 + 553 文字欄 */
  }

  #bottom .bottom-content .proCta-content {
    flex: 0 1 553px;
    max-width: 553px;
  }
}
