@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@700;900&display=swap");

/* =========================================
   目錄 (Table of Contents)
   1. 變數與基礎設定 (Variables & Base)
   2. 全站通用元件 (Header, Footer, Warning, Titles)
   3. 主要區塊樣式 (Sections A-E Desktop)
   4. 功能性組件 (Slider, Steps, Promo Cards)
   5. RWD 響應式設定 (Media Queries)
   ========================================= */

/* =========================================
   1. 變數與基礎設定 (Variables & Base)
   ========================================= */
:root {
  --red: #d70c18;
  --red-hover: #f20d1b;
  --black: #353535;
  --black-light: #353535;
  --gray: #727171;
  --main-red: #b71c1c;
  --guide-text: #333333;
  --hint: rgba(53, 53, 53, 0.8);
  --box-bg: rgba(251, 241, 255, 0.4);
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  /* 建議加上這個，避免 padding 撐大寬度 */
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Albert Sans", sans-serif;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 顯示控制 helper */
.mobile-view {
  display: none !important;
}

.desktop-view {
  display: block !important;
}

.bg-container {
  background-image: url("../images/bg_m.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

/* =========================================
   2. 全站通用元件 (Header, Footer, Warning, Titles)
   ========================================= */

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  height: 72px;
  background-color: var(--red);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 24px;
}

.header-right {
  display: none;
  align-items: center;
  gap: 30px;
}

.header-right a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.header-right .share-btn {
  background-color: #fff;
  color: var(--red);
  padding: 6px 13px;
  border-radius: 5px;
  text-decoration: none;
}

/* --- Footer --- */
footer {
  background-image: linear-gradient(90deg, var(--red) 50%, #dedede 51%);
}

.footer-copyright {
  display: flex;
  height: 56px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding-left: 30px;
  width: 312px;
  background-color: #dedede;
}

.copyright {
  background-color: var(--red);
  font-size: 12px;
  font-family: "Microsoft JhengHei";
  font-weight: 500;
  line-height: 56px;
  padding-left: 30px;
  flex: 1;
  display: inline-block;
  color: #fff;
}

/* --- Warning Section (警語) --- */
.warning {
  background: linear-gradient(90deg, #ebebeb 0%, #fbfbfc 100%);
}

.w-box {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  font-family: "Albert Sans", sans-serif;
  gap: 24px;
  color: var(--black);
}

.w-left {
  font-size: 32px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.1rem;
}

.w-right {
  flex: 1;
  font-size: 16px;
  font-family: "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

/* --- 通用標題樣式 --- */
.tit {
  font-size: 32px;
  font-family: "Albert Sans", sans-serif;
  color: var(--black);
  text-align: center;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
}

.tit span {
  color: var(--main-red);
}

.decorated-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 900;
  color: #a62525;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.05em;
  margin-top: 30px;
  margin-bottom: 64px;
}

.decorated-title::before,
.decorated-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 0;
  border-top: 4px dotted #a62525;
  margin-top: 6px;
}

.decorated-title::before {
  transform: rotate(45deg);
}

.decorated-title::after {
  transform: rotate(-45deg);
}

.title {
  font-size: 24px;
  line-height: 34px;
  font-weight: bold;
  color: var(--red);
  text-align: center;
  margin-bottom: 20px;
}

.title-highlight-with-underline {
  color: var(--red);
  font-size: 30px;
  line-height: 2;
  position: relative;
  z-index: 2;
}

.title-highlight-with-underline::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("../images/title-underline.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.text-with-underline {
  position: relative;
}

.text-with-underline::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("../images/text-underline.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.desc {
  font-size: 16px;
  color: var(--black-light);
  margin-bottom: 40px;
}

.desc .heightlight {
  color: var(--red);
}

.desc .icon-tp {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("../images/icon-tp.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(5px);
}

.text-center {
  text-align: center;
}

.hint {
  font-size: 12px;
  color: var(--hint);
  margin-bottom: 15px;
}

.hint a {
  color: #0a99e6;
  opacity: 0.8;
  text-decoration: unset;
}

.box {
  background: var(--box-bg);
  padding: 40px 20px;
  border-radius: 20px;
  position: relative;
}

.box-tab {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(50vw - 50% - 15px), -100%);
  background-color: var(--box-bg);
  border-radius: 10px 10px 0 0;
  padding: 2px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.box-tab p {
  font-size: 24px;
  font-weight: bold;
  color: var(--black);
  white-space: nowrap;
}

.box .light {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 50px;
  background-image: url("../images/light.png");
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
  transform: translate(12px, -16px);
}

.box .dot {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-image: url("../images/dot.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  transform: translate(-25px, -20px);
}

.divider-container {
  position: relative;
  height: 40px;
  width: 100%;
  margin-bottom: 24px;
}

.divider-container .middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-image: url("../images/icon-divider.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.divider-container .left {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(50px, -50%);
  width: calc(50% - 60px);
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='8' height='3' rx='1.5' fill='%23d70c18'/%3E%3C/svg%3E");
  background-size: 12px 3px;
  background-repeat: repeat-x;
}

.divider-container .right {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(-50px, -50%);
  width: calc(50% - 60px);
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='8' height='3' rx='1.5' fill='%23d70c18'/%3E%3C/svg%3E");
  background-size: 12px 3px;
  background-repeat: repeat-x;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.button-primary {
  background-color: var(--red);
  color: #fff;
  padding: 16px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.button-primary:hover {
  color: var(--white);
  text-decoration: none;
}

/* =========================================
   3. 主要區塊樣式 (Sections A-E Desktop)
   ========================================= */

/* --- Section A (Banner) --- */
.sectionA {
  /* min-height: 100dvh; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 110px 1rem 40px;
  display: flex;
  align-items: center;
}

.sectionA>.container {
  height: auto;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.banner-left-title {
  font-weight: bold;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--black);
  width: 100%;
  text-align: center;
}

.banner-left-title .title-highlight {
  color: var(--red);
}

.banner-right {
  width: 90%;
}

.banner-desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px 15px;
}

.banner-desc p {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black-light);
  margin-bottom: 10px;
}

/* --- Section B (Features) --- */
.sectionB {
  padding: 80px 1rem 80px;
}

.sectionB-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  position: relative;
}

.magnifier-icon-tag {
  font-size: 16px;
  color: #400541;
  padding: 2px 18px;
  background-color: #febcff;
  border-radius: 20px;
}

.magnifier-column-divider {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 10px;
  height: calc(100% - 130px);
  background-color: #febcff;
}

.magnifier-icon {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
}

.magnifier-icon-right {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
}

.magnifier-icon-left {
  justify-content: flex-end;
  padding-right: 0;
  padding-left: 0;
}

@media (min-width: 620px) {
  .magnifier-icon-right {
    padding-left: 15%;
    padding-right: 0;
  }

  .magnifier-icon-left {
    padding-right: 15%;
    padding-left: 0;
  }
}

@keyframes glow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.magnifier-icon .img-container {
  position: relative;
  width: 40%;
  max-width: 170px;
  max-height: 170px;
}

.magnifier-icon img {
  width: 100%;
  height: 100%;
}

.magnifier-icon .img-with-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: glow 3s ease-in-out infinite;
}

.magnifier-circle {
  width: 60px;
  height: 60px;
  border: 6px solid #febcff;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magnifier-circle p {
  font-size: 14px;
}

.magnifier-circle .big-number {
  font-size: 18px;
  font-weight: bold;
}

.magnifier-handle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
}

.magnifier-handle-left-container {
  right: 50%;
  transform: translate(-24px, -50%);
}

.magnifier-handle-right-container {
  left: 50%;
  transform: translate(24px, -50%);
}

.magnifier-handle-container .top {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--black);
  width: 80%;
  height: 40px;
}

.magnifier-handle-container .top .icon-tp {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../images/icon-tp.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.magnifier-handle-container .top .heightlight {
  color: var(--red);
  font-weight: bold;
  font-size: 16px;
}

.magnifier-handle-container .bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--black);
  width: 80%;
  height: 40px;
}

.magnifier-icon .magnifier-handle {
  height: 6px;
  width: 100%;
  background: #febcff;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.magnifier-icon .magnifier-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.magnifier-icon-left .magnifier-handle::before {
  right: 0;
  transform: translate(0, -50%);
  border-right: 18px solid #febcff;
}

.magnifier-icon-right .magnifier-handle::before {
  left: 0;
  transform: translate(0, -50%);
  border-left: 18px solid #febcff;
}

.magnifier-icon .magnifier-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #febcff;
  border-radius: 50%;
}

.magnifier-icon-left .magnifier-handle::after {
  left: -12px;
  transform: translate(50%, -50%);
}

.magnifier-icon-right .magnifier-handle::after {
  right: -12px;
  transform: translate(-50%, -50%);
}

.sectionB-content .hint {
  margin-top: 20px;
}

.sectionB__swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 40px;
  cursor: unset !important
}

.sectionB__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 0px;
}

.sectionB__slide .step-badge {
  width: 106px;
  height: auto;
}

.sectionB__step-description {
  font-size: 16px;
  color: var(--black-light);
  text-align: center;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sectionB__swiper .swiper-pagination {
  bottom: 30px !important;
}

.sectionB__swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #e1e1e1;
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
  border: 1px solid var(--red);
}

.sectionB__swiper .swiper-pagination-bullet-active {
  background: var(--red);
}

/* --- Section C (Guide Steps) --- */
.sectionC-container .item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.sectionC-container .item .tag {
  background-color: var(--red);
  color: var(--white);
  font-size: 14px;
  padding: 4px 13px;
  border-radius: 6px;
  white-space: nowrap;
}

.sectionC-container .item .desc {
  margin-bottom: 0;
}

/* --- Section D (Promo) --- */
.sectionD {
  padding: 150px 1rem 120px;
}

/* Seven Plans Table */
.seven-plans-table {
  max-width: 900px;
  margin: 60px auto 40px;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.seven-plans-table .red {
  color: var(--red);
}

.table-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 3px solid #e0e0e0;
}

.table-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  letter-spacing: 2px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.table-header .big-number {
  font-size: 72px;
  font-weight: 900;
  color: var(--red);
  margin: 0 10px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
}

.plans-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.plans-table tbody tr:last-child {
  border-bottom: none;
}

.header-cell {
  display: none;
}

.category-cell {
  width: unset;
  padding: 20px 15px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #e5e5e5;
}

.category-cell .icon-wrapper {
  color: var(--red);
}

.category-cell .icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-cell .category-name {
  font-size: 16px;
  color: var(--black);
}

.rate-cell {
  width: 25%;
  padding: 15px 15px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #e5e5e5;
}

.rate-label {
  font-size: 14px;
  color: var(--black);
  margin-bottom: 5px;
}

.rate-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.rate-value .percent {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.description-cell {
  width: 50%;
  padding: 15px 15px;
  vertical-align: middle;
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
}

.insurance-row .category-cell {
  font-size: 16px;
  font-weight: bold;
}

.insurance-row .rate-cell {
  border-right: none;
}

.insurance-row .small-text {
  font-size: 14px;
  color: var(--black);
  margin-right: 8px;
}

.insurance-row .rate-value-inline {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin: 0 5px;
}

.parking-row .category-cell {
  font-size: 16px;
  font-weight: bold;
}

.big-number-inline {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin: 0 5px;
}

/* --- Section E (Recommend) --- */
.sectionE {
  position: relative;
  background-color: var(--white);
}

.sectionE-container {
  padding: 0 1rem;
  /* height: 50px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 20px;
  transition: all 0.3s ease;
}

.button-notice:hover {
  opacity: 0.8;
}

.button-notice p {
  font-size: 16px;
  color: #000000;
  margin: 0;
  font-weight: 600;
}

.button-notice img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.button-notice.active img {
  transform: rotate(180deg);
}

.notice-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 15px;
  font-size: 14px;
  color: var(--black);
}

.notice-content.active {
  max-height: 5000px;
  padding: 20px 15px;
}

.notice-content .bold {
  font-weight: bold;
}

.notice-content ul {
  list-style-type: none;
  padding-left: 0;
}

.notice-content ol {
  list-style-type: none;
  padding-left: 0;
}

/* =========================================
   4. 功能性組件 (Slider, Steps, Promo Cards)
   ========================================= */

/* --- Card Block (Section B 共用) --- */
.card-block {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subtitle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.new-tag {
  background-color: var(--main-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.highlight-title {
  color: var(--main-red);
  font-weight: 900;
  font-size: 16px;
  font-family: "Albert Sans", sans-serif;
}

.block-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 16px;
}

.block-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 16px;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

/* --- Step Guide (Section C) --- */
/* 2. 手機圖片區塊：佔據 50% 寬度 */
.phone-img-wrapper {
  flex: 1;
  /* 自動分配空間 */
  width: 50%;
  /* 明確設定寬度 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 背景線條設定 */
/* .phone-img-wrapper.right {
  background-image: url("../images/sectionC-line-right.png");
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}

.phone-img-wrapper.left {
  background-image: url("../images/sectionC-line-left.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
} */

.phone-img {
  width: 250px;
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease-in-out;
}

/* 3. 文字步驟區塊：佔據 50% 寬度 */
.guide-container {
  flex: 1;
  /* 自動分配空間 */
  width: 50%;
  /* 明確設定寬度 */
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  /* 限制文字區塊最大寬度 */
  font-family: "Noto Sans TC", sans-serif;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* 移除原本容易跑版的 margin: 20%，改用 padding 或 auto margin 微調 */
.guide-container.left {
  margin-right: 150px;
}

.guide-container.right {
  margin-right: 150px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  color: var(--main-red);
  font-weight: bold;
  font-size: 20px;
  gap: 8px;
}

.header-style-right-border {
  border-right: 5px solid var(--main-red);
  padding-right: 12px;
}

.header-style-left-border {
  justify-content: flex-start;
  border-left: 5px solid var(--main-red);
  padding-left: 12px;
}

.guide-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step-card:hover {
  background-color: #fffcfc;
}

.step-card.active .step-content {
  color: var(--main-red);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.step-card.active::before {
  opacity: 1;
}

.step-list.arrow-pointing-left .step-card.active::before {
  left: -18px;
  border-right: 12px solid var(--main-red);
  transform: translateX(-30%);
}

.step-list.arrow-pointing-right .step-card.active::before {
  right: -18px;
  border-left: 12px solid var(--main-red);
  transform: translateX(60%);
}

.step-list.arrow-pointing-left .step-card.active::before {
  left: -18px;
  border-right: 12px solid var(--main-red);
  transform: translateX(-30%);
}

.step-list.arrow-pointing-right .step-card.active::before {
  right: -18px;
  border-left: 12px solid var(--main-red);
  transform: translateX(60%);
}

.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--main-red);
  color: white;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content {
  color: var(--guide-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: bold;
}

.highlight-text {
  color: var(--main-red);
}

/* --- Promo Card (Section D) --- */
.promo-card-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.promo-card {
  position: relative;
  width: 440px;
  background-color: #fdf6eb;
  border-radius: 30px;
  padding: 40px 30px 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  flex-shrink: 0;
}

.deco-line-h,
.deco-line-v {
  position: absolute;
  background-color: transparent;
  pointer-events: none;
}

.deco-line-h {
  top: 50px;
  left: 0;
  width: 100%;
  height: 6px;
  border-top: 1px solid #c95e5e;
  border-bottom: 2px solid #c95e5e;
  opacity: 0.8;
}

.deco-line-v {
  left: 40px;
  top: 0;
  height: 100%;
  width: 6px;
  border-left: 1px solid #c95e5e;
  border-right: 2px solid #c95e5e;
  opacity: 0.8;
}

.promo-card-body {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding-left: 30px;
}

.promo-card-tag {
  color: #a62525;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.promo-card-title {
  color: #1d1e1d;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.4;
}

.promo-card-offer {
  color: #1d1e1d;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.promo-card-offer span {
  color: #a62525;
  font-size: 36px;
  font-family: "Albert Sans", sans-serif;
  line-height: 1;
  margin: 0 4px;
}

.promo-card-offer small {
  font-size: 14px;
  color: #727171;
  font-weight: 400;
  margin-left: 4px;
}

.promo-card-footer {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #1d1e1d;
  cursor: pointer;
  margin-top: 16px;
  transition: 0.3s;
}

.promo-card-footer:hover {
  color: #a62525;
}

/* --- Swiper Slider Component --- */
.swiper-component-slider {
  max-width: 1200px;
  position: relative;
  margin: 24px auto 0;
}

.swiper-component-slider-content {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateY(20px) translateX(-50%);
  align-items: center;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1d1e1d;
  opacity: 0.3;
  transition: 0.3s;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  width: 10px;
  height: 10px;
}

.swiper-component-slider-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.swiper-component-slider-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 40px;
  min-width: 100%;
  min-height: 300px;
}

.btn-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0px 0px 20px 0px #00000040;
  cursor: pointer;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
  display: flex;
  gap: 24px;
  align-items: center;
  z-index: 10;
}

.slider-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: -150px;
}

.next-btn {
  right: -150px;
}

/* =========================================
   5. RWD 響應式設定 (Media Queries)
   ========================================= */

/* --- Desktop Specific (min-width: 1025px) --- */
@media (min-width: 1025px) {
  .bg-container {
    background-image: url("../images/bg.png");
  }

  .header-right {
    display: flex;
  }

  .sectionA {
    padding: 150px 1rem 80px;
  }

  .sectionA>.container {
    height: auto;
  }

  .category-cell .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .rate-label {
    font-size: 16px;
  }

  .rate-value {
    font-size: 24px;
  }

  .rate-value .percent {
    font-size: 18px;
  }

  .description-cell {
    font-size: 16px;
  }

  .insurance-row .category-cell {
    font-size: 16px;
    font-weight: bold;
  }

  .insurance-row .small-text {
    font-size: 14px;
    color: var(--black);
    margin-right: 8px;
  }

  .insurance-row .rate-value-inline {
    font-size: 24px;
  }

  .parking-row .category-cell {
    font-size: 16px;
    font-weight: bold;
  }

  .big-number-inline {
    font-size: 24px;
  }

  .category-cell .icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .banner-left {
    width: 100%;
    margin-right: 40px;
  }

  .banner-left-title {
    font-size: 36px;
    text-align: left;
    margin-bottom: 30px;
  }

  .banner-left-title .title-highlight-with-underline {
    font-size: 36px;
  }

  .banner-desc {
    padding: 0;
  }

  .banner-desc p {
    font-size: 18px;
    line-height: 30px;
  }

  .btn-container {
    justify-content: flex-start;
    margin-top: 80px;
  }

  .banner-btn-primary {
    font-size: 26px;
    padding: 14px 40px;
  }

  .banner-button-container {
    justify-content: flex-start;
  }

  .sectionB {
    padding: 150px 1rem 80px;
  }

  .sectionC {
    padding: 100px 1rem 40px;
  }

  .sectionB .title,
  .sectionC .title,
  .sectionD .title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .box {
    border-radius: 0 20px 20px 20px;
  }

  .box-tab {
    transform: translate(0, -100%);
  }

  .desc {
    font-size: 18px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .desc .icon-tp {
    width: 32px;
    height: 32px;
    transform: translateY(8px);
  }

  .hint {
    font-size: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .sectionC-container .item {
    font-size: 18px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    gap: 12px;
  }

  .sectionC-container .item .tag {
    font-size: 18px;
    padding: 4px 13px;
  }

  .sectionC-container .item .desc {
    margin-left: 0;
  }

  .magnifier-icon-tag {
    font-size: 18px;
    padding: 5px 30px;
  }

  .magnifier-column-divider {
    top: 28px;
    width: 16px;
    height: calc(100% - 180px);
  }

  .magnifier-icon {
    height: 150px;
    display: flex;
    justify-content: center;
  }

  .magnifier-icon-left {
    padding-left: 40%;
    padding-right: 0;
  }

  .magnifier-icon-right {
    padding-right: 40%;
    padding-left: 0;
  }

  .magnifier-icon .img-container {
    width: 35%;
    max-width: unset;
    max-height: unset;
  }

  .magnifier-circle {
    width: 110px;
    height: 110px;
    border: 16px solid #febcff;
  }

  .magnifier-circle p {
    font-size: 20px;
  }

  .magnifier-circle .big-number {
    font-size: 22px;
  }

  .magnifier-handle-container {
    width: calc(50% - 20px);
  }

  .magnifier-handle-left-container {
    right: 50%;
    transform: translate(5px, -50%);
  }

  .magnifier-handle-right-container {
    left: 50%;
    transform: translate(-5px, -50%);
  }

  .magnifier-handle-container .top {
    font-size: 20px;
    width: 80%;
    height: 60px;
  }

  .magnifier-handle-container .top .icon-tp {
    width: 20px;
    height: 20px;
  }

  .magnifier-handle-container .top .heightlight {
    font-size: 22px;
  }

  .magnifier-handle-container .bottom {
    font-size: 20px;
    width: 80%;
    height: 60px;
  }

  .magnifier-icon .magnifier-handle {
    height: 10px;
    width: 80%;
  }

  .magnifier-icon .magnifier-handle::before {
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
  }

  .magnifier-icon-left .magnifier-handle::before {
    border-right: 24px solid #febcff;
  }

  .magnifier-icon-right .magnifier-handle::before {
    border-left: 24px solid #febcff;
  }

  .magnifier-icon .magnifier-handle::after {
    width: 16px;
    height: 16px;
  }

  .magnifier-icon-left .magnifier-handle::after {
    left: -16px;
  }

  .magnifier-icon-right .magnifier-handle::after {
    right: -16px;
  }

  .sectionB-content .hint {
    margin-top: 60px;
  }

  .divider-container {
    margin-bottom: 60px;
  }

  .sectionB__step-description {
    font-size: 18px;
    height: 80px;
  }

  .header-cell {
    width: 15%;
    display: table-cell;
    border-right: 1px solid #e0e0e0;
  }

  .header-cell p {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }

  .header-cell .big-number {
    font-size: 80px;
    font-weight: bold;
    color: var(--red);
  }

  .header-cell .red {
    font-size: 20px;
    font-weight: bold;
    color: var(--red);
  }

  .swiper-component-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
  }

  .swiper-component-slider-content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
  }

  .swiper-component-slider-inner {
    gap: 0;
  }

  .swiper-component-slider-item {
    min-width: 100%;
    padding: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    box-sizing: border-box;
    filter: brightness(0.4);
  }

  .swiper-component-slider-item.active {
    filter: none;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }

  .swiper-component-slider-item img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .slider-btn.prev-btn {
    left: 14%;
  }

  .slider-btn.next-btn {
    right: 14%;
  }

  .sectionB__swiper .swiper-pagination {
    display: none;
  }

  .button-notice {
    font-size: 18px;
  }

  .button-notice img {
    width: 20px;
    height: 20px;
  }

  .notice-content {
    font-size: 16px;
  }
}

/* =========================================
   Modal 彈窗樣式
   ========================================= */

/* 1. 遮罩層 (背景變暗) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* 半透明黑 */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  /* 預設隱藏 (搭配 JS 切換 opacity 達成淡入淡出) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 當 Modal 被啟動時的 class */
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 2. 彈窗本體 */
.modal-container {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  /* 避免超過手機螢幕高度 */
  overflow: hidden;
  /* 讓圓角生效 */
}

/* 關閉按鈕 (X) */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  /* 因為標題背景可能是白色，我們先設為深色，或依設計調整 */
  color: #888;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: 0.2s;
}

.modal-close-btn:hover {
  color: var(--main-red);
}

/* 3. 標頭區域 */
.modal-header {
  padding: 30px 0 0 0;
  text-align: center;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
}

.modal-header h3 {
  font-size: 32px;
  font-weight: 900;
  color: #1d1e1d;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* 紅色 Banner */
.modal-banner {
  background-color: #b71c1c;
  /* 台新紅 */
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  width: 100%;
  line-height: 1.4;
}

/* 4. 內容捲動區域 (Max 600px 邏輯) */
.modal-scroll-area {
  padding: 30px 40px 40px;
  overflow-y: auto;
  /* 垂直捲動 */
  max-height: 600px;
  /* 依照設計稿限制高度 */
}

/* 橘色左邊框線裝飾與文字設定 */
.modal-content-inner {
  padding-left: 24px;
  text-align: left;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.modal-content-inner strong {
  font-weight: 900;
  color: #000;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
}

.modal-content-inner strong:first-child {
  margin-top: 0;
}

.modal-content-inner ol {
  padding-left: 20px;
  margin: 0;
}

.modal-content-inner li {
  margin-bottom: 8px;
}

.fixed-button {
  position: fixed;
  top: 200px;
  right: 0;
  writing-mode: vertical-lr;
  padding: 13px 10px 6px 12px;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  z-index: 9999;
  letter-spacing: 8px;
  line-height: 1;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #3e454f;
  box-shadow: 0px -1px 6px rgba(0, 0, 0, 0.23);
  font-size: 20px;
  font-weight: bold;
  color: var(--red);
}

.fixed-button .icon-dog {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-25%, -50%);
  width: 50px;
  height: 40px;
  background-image: url("../images/icon-dog.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.fixed-button:hover {
  text-decoration: none;
  color: white;
  background: var(--red);
}

/* 手機版調整 */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
  }

  .modal-banner {
    font-size: 15px;
    padding: 10px 15px;
  }

  .modal-scroll-area {
    padding: 20px 20px 30px;
  }

  .modal-content-inner {
    padding-left: 15px;
  }
}

/* --- Mobile Specific (max-width: 1024px) --- */
@media (max-width: 1024px) {

  /* Helper Classes */
  .mobile-view {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .desktop-view {
    display: none !important;
  }

  /* Header & Footer */
  header {
    padding: 20px 15px;
    height: 64px;
  }

  header img {
    height: 24px;
  }

  .footer-copyright {
    height: auto;
    flex-direction: column;
  }

  .copyright {
    padding: 12px 15px;
    text-align: center;
    line-height: normal;
  }

  .copyright .ml-2 {
    display: none;
  }

  .footer-logo {
    height: auto;
    padding: 21px 15px;
    width: auto;
    justify-content: center;
  }

  /* Warning */
  .w-box {
    display: block;
    padding: 24px 15px;
  }

  .w-left {
    width: 100%;
    font-size: 24px;
    text-align: left;
    margin-bottom: 40px;
  }

  .w-right {
    width: 100%;
    font-size: 16px;
  }

  /* Titles */
  .tit {
    font-size: 24px;
  }

  .decorated-title {
    font-size: 20px;
  }

  /* Section A (Banner) */
  .sectionA {
    min-height: auto;
    padding: 104px 0px 40px 0px;
  }

  .banner {
    flex-direction: column;
    align-items: center;
    padding: 0px 15px;
    overflow: hidden;
  }

  .banner-right {
    max-width: 100%;
    max-width: -webkit-fill-available;
  }

  .marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .marquee-track {
    display: flex;
    width: fit-content;
    gap: 0;
    animation: scroll-right 13s linear infinite;
  }

  .marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 40px;
    padding-right: 40px;
    margin-bottom: -60px;
  }

  /* 圖片大小設定 */
  .marquee-content img {
    max-width: 150vw;
    display: block;
  }

  @keyframes scroll-right {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  /* Section B (Features) - 已轉為標準 CSS 寫法 */
  .sectionB {
    padding: 64px 15px 20px;
  }

  .sectionB-content {
    margin: 20px 0;
  }

  /* .magnifier-icon {
    width: 150px;
    height: 150px;
  }

  .magnifier-circle {
    width: 100px;
    height: 100px;
    border-width: 15px;
  } */

  /* .magnifier-handle {
    width: 70px;
    height: 15px;
    border-radius: 7.5px;
  }

  .magnifier-handle::after {
    width: 22px;
    height: 22px;
    right: -11px;
  } */

  .sectionB .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .sectionB .card-block {
    max-width: 100%;
    padding: 24px;
    text-align: left;
    flex-direction: column-reverse;
  }

  .sectionB .image-block {
    width: 80%;
    max-width: 300px;
    margin: 10px 0;
    order: 2;
    /* 順序：中 */
  }

  .sectionB .qr-code-info {
    order: 1;
  }

  /* 順序：上 */
  .sectionB .credit-card-info {
    order: 3;
  }

  /* 順序：下 */

  /* Section C (Guide Steps) */

  .sectionC {
    padding: 80px 15px 40px;
  }

  /* Section D (Promo) */
  .sectionD {
    padding: 20px 15px 60px;
  }

  /* Seven Plans Table Mobile */
  .seven-plans-table {
    margin: 30px auto 20px;
    border-radius: 15px;
  }

  .table-header {
    padding: 20px 15px;
    justify-content: center;
    align-items: center;
  }

  .table-header h3 {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .table-header .big-number {
    font-size: 48px;
    margin: 0 5px;
  }

  .category-cell {
    width: 30%;
    padding: 15px 8px;
  }

  .category-cell .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .category-cell .container .icon-wrapper {
    width: 23px;
    height: 23px;
  }

  .category-cell .container .icon-wrapper img {
    width: 100%;
    height: 100%;
  }

  .category-cell .container .category-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
  }

  /* .rate-cell {
    width: 25%;
    padding: 15px 8px;
  } */

  /* .insurance-row .small-text {
    font-size: 11px;
    display: block;
    margin-bottom: 5px;
  }

  .insurance-row .rate-value-inline {
    font-size: 28px;
  } */

  /* .parking-row .description-cell {
    font-size: 13px;
  } */

  /* .big-number-inline {
    font-size: 28px;
  } */

  .promo-card-container {
    flex-direction: column;
  }

  .guide-container-wrapper {
    flex-direction: column;
  }

  /* General Slider Mobile */
  .swiper-component-slider {
    margin: 24px auto 0;
  }

  .slider-btn {
    opacity: 1;
    top: 88%;
  }

  .prev-btn {
    left: 16px;
  }

  .next-btn {
    right: 16px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  .dots {
    bottom: 46px;
  }

  .swiper-component-slider-item {
    flex-direction: column;
    gap: 0;
    padding: 24px 15px 64px;
    min-height: auto;
  }

  .fixed-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    bottom: 0;
    writing-mode: horizontal-tb;
    width: 100%;
    text-align: center;
    letter-spacing: 4px;
    border-radius: 15px 15px 0 0;
    position: sticky;
    background: var(--red);
    color: white;
    padding: 20px 10px;
    border: unset;
    box-shadow: 0px -1px 6px rgba(0, 0, 0, 0.23);
  }

  .fixed-button .icon-dog {
    display: none;
  }
}

/* Extra Small Devices */
@media (max-width: 440px) {
  .promo-card {
    width: 100%;
  }
}

/* Animation */
.hot_1 {
  -webkit-animation: baloon_1 3s ease-in-out infinite;
  -moz-animation: baloon_1 3s ease-in-out infinite;
  -ms-animation: baloon_1 3s ease-in-out infinite;
  -o-animation: baloon_1 3s ease-in-out infinite;
  animation: baloon_1 3s ease-in-out infinite;
  -webkit-animation-direction: alternate;
  -moz-animation-direction: alternate;
  -ms-animation-direction: alternate;
  -o-animation-direction: alternate;
  animation-direction: alternate;

  /* 加上光暈效果 */
  /* position: relative;
  z-index: 1; */
}

/* .hot_1::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,40,0.55) 0%, rgba(255,120,40,0.12) 72%, rgba(255,120,40,0.01) 100%);
  filter: blur(8px);
  pointer-events: none;
  animation: glow-hot_1 2s infinite alternate;
} */

/* @keyframes glow-hot_1 {
  0% {
    opacity: 1;
    filter: blur(10px);
    box-shadow: 0 0 30px 15px rgba(255,120,40,0.3);
  }
  100% {
    opacity: 0.8;
    filter: blur(16px);
    box-shadow: 0 0 50px 20px rgba(255,120,40,0.35);
  }
} */

@-webkit-keyframes baloon_1 {
  0% {
    transform: translateY(-15px);
  }

  50% {
    transform: translateY(15px);
  }

  100% {
    transform: translateY(-15px);
  }
}

/* .light {
  animation: flash-effect 1s infinite alternate;
}

@keyframes flash-effect {
  0% {
    filter: brightness(1);
    opacity: 1;
  }
  50% {
    filter: brightness(2.5);
    opacity: 0.85;
  }
  100% {
    filter: brightness(1);
    opacity: 1;
  }
} */