@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Sans+TC:wght@100..900&display=swap");
/* ============================================================
   貼紙字外框 mixin
   在字周圍疊出「描邊環」：16 個方向、以 $r 為半徑放一圈同色副本。
   sticker() 疊兩層 —— 白框（上）＋彩色框（下，可再往下位移 $offset）：
     @include sticker;                        // 白框 + 紫框，紫框在白框下方 4px
     @include sticker($r: 5px);               // 外框更粗
     @include sticker($offset: 6px);          // 紫框再往下露出更多
     @include sticker($shadow: #000);         // 換底層外框顏色
     @include sticker($shadow: false);        // 只要白框、不要底層
============================================================ */
/* header 高度：.navbar 與錨點位移 (scroll-margin-top) 共用，改這裡兩邊一起變 */
:root {
  --header-h: 60px;
}
@media (max-width: 1024px) {
  :root {
    --header-h: 53px;
  }
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", sans-serif;
}
body.active {
  overflow: hidden;
}

section {
  padding: 60px 0;
  /* header 是 position: fixed，錨點跳過來時要讓出它的高度，標題才不會被蓋住 */
  scroll-margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.red {
  color: #D70C18 !important;
}

.purple {
  color: #008BD3 !important;
}

.tab-link {
  display: none !important;
  max-width: 1000px;
  margin: 0 auto;
}
.tab-link.active {
  display: inline-flex !important;
}

small {
  font-size: 85%;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 8px !important;
}

.mb-2 {
  margin-bottom: 16px !important;
}

.mb-3 {
  margin-bottom: 32px !important;
}

.section-2-swiper {
  overflow: hidden;
  position: relative;
  margin-top: auto;
}

.bottom {
  width: 100%;
  margin-bottom: 48px;
}

.swiper-1-out {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.side-btn {
  /* 換色只要改這三個變數 */
  --sb-bg: #F6A01E;
  --sb-line: #2B62C4;
  --sb-bg-hover: #FFB13C;
  color: #FFF;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  width: 62px;
  padding: 22px 14px;
  display: inline-block;
  position: fixed;
  right: 0;
  bottom: 120px;
  z-index: 9;
  text-align: center;
  text-decoration: none;
  background-color: var(--sb-bg);
  border-right: 0;
  box-shadow: -6px 6px rgba(0, 139, 211, 0.8);
  transition: background-color 0.3s;
  /* 白字外圈藍描邊，再往右下疊一圈做立體擠出；用 em 讓厚度隨字級等比 */
  text-shadow: 0.085em 0em 0 var(--sb-line), 0.079em 0.033em 0 var(--sb-line), 0.06em 0.06em 0 var(--sb-line), 0.033em 0.079em 0 var(--sb-line), 0em 0.085em 0 var(--sb-line), -0.033em 0.079em 0 var(--sb-line), -0.06em 0.06em 0 var(--sb-line), -0.079em 0.033em 0 var(--sb-line), -0.085em 0em 0 var(--sb-line), -0.079em -0.033em 0 var(--sb-line), -0.06em -0.06em 0 var(--sb-line), -0.033em -0.079em 0 var(--sb-line), 0em -0.085em 0 var(--sb-line), 0.033em -0.079em 0 var(--sb-line), 0.06em -0.06em 0 var(--sb-line), 0.079em -0.033em 0 var(--sb-line), 0.14em 0.075em 0 var(--sb-line), 0.134em 0.108em 0 var(--sb-line), 0.115em 0.135em 0 var(--sb-line), 0.088em 0.154em 0 var(--sb-line), 0.055em 0.16em 0 var(--sb-line), 0.022em 0.154em 0 var(--sb-line), -0.005em 0.135em 0 var(--sb-line), -0.024em 0.108em 0 var(--sb-line), -0.03em 0.075em 0 var(--sb-line), -0.024em 0.042em 0 var(--sb-line), -0.005em 0.015em 0 var(--sb-line), 0.022em -0.004em 0 var(--sb-line), 0.055em -0.01em 0 var(--sb-line), 0.088em -0.004em 0 var(--sb-line), 0.115em 0.015em 0 var(--sb-line), 0.134em 0.042em 0 var(--sb-line);
}
.side-btn:hover {
  background-color: var(--sb-bg-hover);
}
.side-btn.fix {
  --sb-bg: #FF6AB1;
  --sb-bg-hover: #FF87C2;
  padding: 34px 14px;
  bottom: 272px;
}
@media (max-width: 540px) {
  .side-btn {
    /* 手機版改成底部通欄綠色長條 */
    --sb-bg: #329E4A;
    --sb-bg-hover: #3BB456;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 68px;
    padding: 0;
    letter-spacing: 0.3em;
    border: 0;
    border-radius: 24px 24px 0 0;
    bottom: 0;
    box-shadow: 0;
  }
  .side-btn::after {
    content: "→";
    /* -0.3em 抵銷「卡」後面多出的字距，讓文字＋箭頭整體真正置中 */
    margin-left: -0.3em;
    padding-left: 0.55em;
    letter-spacing: 0;
    font-weight: 700;
  }
  .side-btn.fix {
    right: auto;
    left: 0;
    padding: 0;
    bottom: 0;
  }
}

.to-top {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  border-radius: 60px;
  border: 1px solid #949494;
  background-image: url(../images/top.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 24px;
  position: fixed;
  z-index: 9;
  right: 30px;
  bottom: 30px;
}
@media (max-width: 540px) {
  .to-top {
    width: 48px;
    height: 48px;
    right: 10px;
    bottom: 60px;
  }
}

/* ===== Hero：全家Richart聯名卡 ===== */
/* ===== Hero 輪播（banner-swiper）樣式 ===== */
/* 首頁 banner 分頁：移到左側、直向排列（與 .scroll 同樣 left: 40px） */
/* 直向膠囊：作用中的點改為「上下長」而非「左右長」 */
.banner-swiper {
  overflow: hidden;
  position: relative;
}
.banner-swiper .swiper-wrapper {
  align-items: stretch;
}
.banner-swiper .swiper-slide {
  height: auto;
  position: relative;
}
.banner-swiper .swiper-pagination {
  left: 40px;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.banner-swiper .swiper-pagination .swiper-pagination-bullet {
  margin: 0;
  display: block;
}
.banner-swiper .swiper-pagination .swiper-pagination-bullet-active {
  width: 8px;
  height: 26px;
  border-radius: 8px;
}
@media (max-width: 1024px) {
  .banner-swiper {
    /* 非桌機（含平板/手機）隱藏首頁 banner 分頁 */
  }
  .banner-swiper .swiper-pagination {
    display: none;
  }
}

.banner {
  position: relative;
  height: 708px;
  overflow: hidden;
  /* 白底＝三色塊之間留出的斜向分隔線 */
  background-color: #fff;
}
@media (max-width: 1024px) {
  .banner {
    height: 600px;
  }
}
@media (max-width: 767px) {
  .banner {
    /* 手機改用整張設計稿背景 hero-bg.png（已含三色塊＋星芒，750x1200 直式）；
       底色設黃綠，圖還沒載入時不會一片白 */
    background: #E9EF81 url(../images/hero-bg.png) center/cover no-repeat;
  }
}

/* 背景三色斜切塊：三塊共用頂邊 48% 附近的交會點，
   彼此各退 ~1% 讓底下的白色露出來當分隔線 */
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 手機版背景改由 .banner 的 hero-bg.png 負責 */
}
@media (max-width: 767px) {
  .banner-bg {
    display: none;
  }
}
.banner-bg span {
  position: absolute;
  inset: 0;
  display: block;
}

.bg-orange {
  background-color: #FFA827;
  clip-path: polygon(125% 0%, 25% 0, 77% 70%);
}
@media (max-width: 1024px) {
  .bg-orange {
    /* 直式稿：背景改為上橘／中黃綠／下青藍的水平斜切 */
    clip-path: polygon(-22.5% 0, 100% 0, 100% 46.5%);
  }
}

.bg-lime {
  background-color: #E9EF81;
  clip-path: polygon(0 0, 25% 0, 100% 78%, 25% 100%, 0 100%);
}
@media (max-width: 1024px) {
  .bg-lime {
    clip-path: polygon(0% 0%, -13% 4%, 125% 50%, 0% 100%);
  }
}

.bg-cyan {
  background-color: #19EAFE;
  clip-path: polygon(100% 30%, 100% 100%, 0 123%);
}
@media (max-width: 1024px) {
  .bg-cyan {
    clip-path: polygon(0 91.1%, 125% 50.6%, 100% 100%, 0 100%);
  }
}

/* 白色星芒裝飾 */
.spark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  /* 手機版的星芒已經畫在 hero-bg.png 裡 */
}
@media (max-width: 767px) {
  .spark {
    display: none;
  }
}

.spark-1 {
  width: 260px;
  top: -5%;
  left: -3%;
}
@media (max-width: 1024px) {
  .spark-1 {
    width: 144px;
    top: 20%;
    left: -10%;
  }
}

.spark-2 {
  width: 178px;
  bottom: -5%;
  left: 10%;
}
@media (max-width: 1024px) {
  .spark-2 {
    display: none;
  }
}

.spark-3 {
  width: 152px;
  top: 5%;
  right: -2%;
}
@media (max-width: 1024px) {
  .spark-3 {
    width: 120px;
    top: -10%;
    right: -15%;
  }
}

.spark-4 {
  width: 257px;
  bottom: -6%;
  right: -2%;
}
@media (max-width: 1024px) {
  .spark-4 {
    width: 119px;
    bottom: -5%;
    right: -10%;
  }
}

.banner-section {
  margin-top: 60px;
  position: relative;
}
@media (max-width: 1024px) {
  .banner-section {
    margin-top: 53px;
    /* 手機 navbar 53px，搜尋列已移除 */
  }
}

.banner-container {
  width: 100%;
  height: 100%;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) {
  .banner-container {
    max-width: 600px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }
}
@media (max-width: 540px) {
  .banner-container {
    padding: 0 20px;
  }
}

.banner-info {
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (max-width: 1024px) {
  .banner-info {
    width: 100%;
    height: auto;
    padding-top: 24px;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }
}
@media (max-width: 540px) {
  .banner-info {
    padding-top: 24px;
    max-width: 320px;
    margin: 0 auto;
  }
}

.hero-text-1 {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.2s;
}
@media (max-width: 1024px) {
  .hero-text-1 {
    width: 70%;
    max-width: 260px;
  }
}
@media (max-width: 540px) {
  .hero-text-1 {
    width: 80%;
  }
}

.hero-text-2 {
  width: 88%;
  max-width: 420px;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.4s;
}
@media (max-width: 1024px) {
  .hero-text-2 {
    width: 72%;
    max-width: 270px;
  }
}
@media (max-width: 540px) {
  .hero-text-2 {
    width: 82%;
  }
}

.banner-visual {
  width: 54%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
@media (max-width: 1024px) {
  .banner-visual {
    /* 卡片與賣點泡泡維持左右並排 */
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
    gap: 3%;
    padding: 12px 2% 24px;
  }
}

.hero-card {
  width: 40%;
  max-width: 275px;
  opacity: 0;
  animation: fadeInRight 1s forwards 0.5s;
}
@media (max-width: 1024px) {
  .hero-card {
    width: 40%;
    max-width: 190px;
  }
}

.hero-text-3 {
  width: 39%;
  max-width: 270px;
  opacity: 0;
  animation: fadeInRight 1s forwards 0.7s;
}
@media (max-width: 1024px) {
  .hero-text-3 {
    width: 50%;
    max-width: 240px;
  }
}

.scroll {
  height: 120px;
  width: 22px;
  position: absolute;
  bottom: 34px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  text-decoration: none;
}
.scroll i {
  display: inline-block;
  color: #1E1E1E;
  font-family: "Albert Sans";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  transform: rotate(90deg);
}
.scroll span {
  display: inline-block;
  width: 1px;
  height: 68px;
  background-color: #1E1E1E;
}
@media (max-width: 540px) {
  .scroll {
    height: 110px;
    bottom: 20px;
    left: 10px;
  }
  .scroll i {
    font-size: 12px;
  }
}

.text-center {
  text-align: center !important;
}

.tables {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  margin-bottom: 8px;
}
.tables td {
  padding: 8px 16px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.tables td span {
  color: #D02025;
}
.tables th {
  padding: 8px 16px;
  color: #FFF;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  background-color: #333;
  border-right: solid 1px #fff;
  width: 33.3%;
  vertical-align: middle;
}
.tables th:last-child {
  border-right: none;
}
.tables .bg-gray {
  background-color: #F5F5F5;
}

.popup-mask {
  width: 100%;
  height: 100dvh;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
.popup-mask.active {
  display: flex;
}
.popup-mask.active .popup-body {
  animation: popup 0.5s forwards 0.1s;
}

.popup-body {
  width: calc(100% - 60px);
  max-width: 680px;
  border-radius: 20px;
  background: #FFF;
  border-top: solid 24px #008BD3;
  padding: 20px 40px;
  opacity: 0;
}
@media (max-width: 540px) {
  .popup-body {
    width: calc(100% - 40px);
    padding: 20px;
  }
}

@keyframes popup {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.popup-head {
  color: #333;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding-right: 36px;
  position: relative;
  padding-bottom: 20px;
}
@media (max-width: 540px) {
  .popup-head {
    font-size: 20px;
    padding-right: 0;
  }
}

.close {
  display: inline-block;
  width: 36px;
  position: absolute;
  right: 0;
  top: 0;
}
.close img {
  width: 100%;
}
@media (max-width: 540px) {
  .close {
    display: inline-block;
    width: 36px;
    position: absolute;
    right: 0;
    top: 0;
    position: absolute;
    top: -90px;
    background-color: #fff;
    right: -20px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    padding: 6px;
  }
}

/* .popup-content ol>li>ol.bracket-list {
    list-style-type: none;
    counter-reset: item;
  padding-left: 0;
}
.bracket-list li {
  counter-increment: item;
  margin: 0.5em 0;
}

.bracket-list li::before {
  content: "(" counter(item) ") ";
} */
.popup-content {
  width: 100%;
  max-height: calc(80svh - 120px);
  overflow: auto;
  color: #1B1B1B;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.popup-content h5 {
  color: #008BD3;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.popup-content ol {
  list-style-type: decimal;
  padding-left: 1.6em;
  margin-bottom: 8px;
}
.popup-content a {
  color: #008BD3;
}
.popup-content ol > li > ol {
  list-style-type: lower-alpha;
}
.popup-content ul {
  list-style-type: disc;
  padding-left: 1.6em;
  margin-bottom: 8px;
}
@media (max-width: 540px) {
  .popup-content {
    max-height: calc(80svh - 165px);
  }
  .popup-content h5 {
    font-size: 16px;
  }
}

.pop-note {
  color: #6B6B6B;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.item-col-title {
  color: #004264;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.item-col-title span {
  color: #FFA827;
  font-family: "Albert Sans";
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 1.5px 1.5px 2px #004264;
}
@media (max-width: 540px) {
  .item-col-title span {
    letter-spacing: 0.01em;
  }
}

.item-col-text {
  color: #4D4D4D;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.item-col-text span {
  display: inline-block;
}
.item-col-text a {
  color: #008BD3;
  text-decoration: none;
}

.info {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url(../images/info.svg);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0 4px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.info.fix {
  transform: translateY(-4px);
}
@media (max-width: 540px) {
  .info.fix {
    margin-left: 2px;
  }
}

.plan-tag {
  display: inline-flex;
  border-radius: 8px;
  background: #008BD3;
  height: 50px;
  padding: 0 28px;
  align-items: center;
  color: #FFF;
  text-shadow: 0.778px 3.113px 0 rgba(0, 0, 0, 0.25);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.plan-tag span {
  display: inline-block;
  color: #E1F44B;
  text-shadow: 0.778px 3.113px 0 rgba(0, 0, 0, 0.25);
  font-family: "Albert Sans";
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 4px;
}
.plan-tag i {
  font-size: 20px;
}
@media (max-width: 540px) {
  .plan-tag {
    padding: 0 18px;
    font-size: 20px;
  }
}

.item-row {
  display: flex;
  flex-wrap: wrap;
}

.item-col {
  width: 50%;
  padding-right: 40px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .item-col {
    width: 100%;
    padding-right: 0;
  }
}

.item-col-full {
  width: 100%;
  margin-bottom: 12px;
}

.seven-plan {
  padding: 24px 30px;
  border-radius: 16px;
  background: #FFF;
  margin-bottom: 32px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1019607843);
}
@media (max-width: 540px) {
  .seven-plan .plan-item:first-child {
    margin-top: 32px;
  }
}
.seven-plan .plan-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
@media (max-width: 540px) {
  .seven-plan {
    padding: 12px;
  }
}

.plan-item {
  padding: 24px 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #D2D2D2;
}
@media (max-width: 540px) {
  .plan-item {
    padding: 0 0 8px;
  }
}

.search {
  width: 100%;
  max-width: 1100px;
  height: 48px;
  border-radius: 50px;
  border: 1px solid #949494;
  background-color: #FFF;
  padding-left: 52px;
  padding-right: 24px;
  outline: none;
  color: #1B1B1B;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  background-image: url(../images/search.svg);
  background-repeat: no-repeat;
  background-position: center left 24px;
}
.search::placeholder {
  color: #949494;
}

/* 保費免切換卡片（結構照 2026-07 專案的 .card-row/.card，配色改用本專案：橘色數字 + 藍色連結） */
.card-row {
  display: flex;
  gap: 44px;
  margin-bottom: 24px;
}

.card {
  /* 與上方七大刷面板同寬 */
  width: 100%;
  padding: 44px;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1019607843);
}
@media (max-width: 1024px) {
  .card {
    padding: 32px;
  }
}
@media (max-width: 768px) {
  .card {
    padding: 24px;
  }
}

.card-title {
  margin-bottom: 4px;
  color: #004264;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .card-title {
    font-size: 20px;
  }
}

.card-text {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #004264;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.card-text span {
  color: #FFA827;
  font-family: "Albert Sans";
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 1.5px 1.5px 2px #004264;
}
.card-text small {
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .card-text {
    margin-bottom: 12px;
    font-size: 20px;
  }
  .card-text span {
    font-size: 44px;
  }
  .card-text small {
    font-size: 16px;
  }
}

.search-note {
  color: #4D4D4D;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.48px;
  margin-bottom: 32px;
}
.search-note.fix {
  color: #004264;
  text-align: justify;
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .search-note.fix {
    padding-top: 20px;
  }
}

.search-btn {
  text-align: center;
  margin-bottom: 32px;
}

.button_container {
  display: none;
}
@media (max-width: 1024px) {
  .button_container {
    display: inline-block;
    position: absolute;
    top: 17.5px;
    right: 20px;
    height: 18px;
    width: 24px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.25s ease;
  }
  .button_container.active .top {
    -webkit-transform: translateY(8px) translateX(0) rotate(45deg);
    transform: translateY(8px) translateX(0) rotate(45deg);
    width: 100%;
  }
  .button_container.active .middle {
    opacity: 0;
  }
  .button_container.active .bottom {
    -webkit-transform: translateY(-8px) translateX(0) rotate(-45deg);
    transform: translateY(-8px) translateX(0) rotate(-45deg);
    width: 100%;
  }
  .button_container span {
    border: none;
    height: 2px;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0;
    transition: all 0.35s ease;
    background-color: #fff;
  }
  .button_container span:nth-of-type(2) {
    top: 8px;
    width: 100%;
  }
  .button_container span:nth-of-type(3) {
    top: 16px;
  }
}

.container-box {
  width: 100%;
  max-width: 1160px;
  padding: 0 30px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) {
  .container-box {
    padding: 0 20px;
  }
}

.section-4-swiper,
.section-6-swiper {
  padding-bottom: 42px;
}

.button-next {
  position: absolute;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #1B1B1B;
  background-image: url(../images/next.svg);
  background-repeat: no-repeat;
  background-position: center center;
  top: 50%;
  right: -74px;
  margin-top: -46px;
  cursor: pointer;
  z-index: 9;
}
@media (max-width: 1240px) {
  .button-next {
    right: -25px;
  }
}

.button-next:hover,
.button-prev:hover {
  background-color: #008BD3;
}

.button-prev {
  position: absolute;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #1B1B1B;
  background-image: url(../images/prev.svg);
  background-repeat: no-repeat;
  background-position: center center;
  top: 50%;
  left: -74px;
  margin-top: -46px;
  cursor: pointer;
  z-index: 9;
}
@media (max-width: 1240px) {
  .button-prev {
    left: -25px;
  }
}

.button-next.swiper-button-disabled,
.button-prev.swiper-button-disabled {
  cursor: default;
  background-color: rgba(27, 27, 27, 0.5);
  pointer-events: none;
}

.button-prev.fix,
.button-next.fix {
  display: none;
}

/* 替下方的分頁圓點留位置（pagination 是 absolute、bottom:10px、高 16px）
   用 .app-box .swiper 而不逐一列出 class，之後新增分頁才不會漏掉 */
.app-box .swiper {
  padding-bottom: 40px;
}

.swiper-pagination-bullet-active {
  background: #008BD3;
  width: 26px;
  border-radius: 8px;
}

.swiper-box {
  padding: 0 12%;
}
.swiper-box p {
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
  font-weight: 500;
  line-height: 1.8;
  color: #1E1E1E;
}
@media (max-width: 540px) {
  .swiper-box p {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .swiper-box {
    width: 100%;
    max-width: var(--shot-w);
    padding: 0;
    margin: 0 auto;
  }
}

.tab-box {
  position: relative;
  padding-bottom: 60px;
}
@media (max-width: 767px) {
  .tab-box {
    /* Swiper 在 768 以上才切成 3 欄；768 以下是 1 欄，
    原本沿用 padding:0 12% 會讓手機/平板的 App 截圖膨脹到視窗的 7 成 */
    /* ---- 手機版 App 教學區：尺寸的單一來源，改這三個變數即可 ---- */
    --shot-w: clamp(220px, 60vw, 290px);
  }
}

.tab-content,
.tab-table {
  display: none;
  position: relative;
}

/* 如何查 / 兌點只有兩張：桌機一頁顯示 2 張，寬度縮成 2/3 置中，讓截圖尺寸與其他 tab（一頁 3 張）一致 */
@media (min-width: 768px) {
  .tab-3-swiper {
    width: 66.666%;
    margin: 0 auto;
  }
}

.tab-content.active,
.tab-table.active {
  display: block;
}

.app-img {
  width: 100%;
  margin-bottom: 16px;
}

.tab-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #c9c9c9;
  margin-bottom: 48px;
}
.tab-menu li a {
  position: relative;
  padding-bottom: 16px;
  padding-left: 0.1em;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.1em;
  color: #b3b3b3;
  transition: color 0.3s;
  text-decoration: none;
}
.tab-menu li a.active:after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-size: 50%;
  background-image: linear-gradient(90deg, #b492fe 0%, #b492fe 30%, #008BD3 55%, #008BD3 85%, #b492fe 100%);
  background-repeat: repeat;
  animation: bg_move 1s infinite linear;
}
@media (max-width: 540px) {
  .tab-menu {
    padding: 0 10px;
    margin-bottom: 32px;
  }
}

.tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #c9c9c9;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.tabs-nav li a {
  display: block;
  width: 100%;
  position: relative;
  padding: 20px 10px 24px 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.1em;
  color: #b3b3b3;
  transition: color 0.3s;
  text-decoration: none;
}
.tabs-nav li a.active::after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-size: 50%;
  background-color: #D02025;
}
@media (max-width: 540px) {
  .tabs-nav li a {
    padding: 10px 10px 14px;
    font-size: 14px;
  }
}

.tab-menu li,
.tabs-nav li {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 1px;
}

.tab-menu li a.active,
.tabs-nav li a.active {
  color: #1E1E1E;
}

@keyframes bg_move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}
#section-2-1 {
  background: rgba(0, 139, 211, 0.1019607843);
}
#section-2-1::before {
  /* 右上角三色楔形裝飾：壓在內容之上（.container-box 是 z-index:1） */
  content: "";
  position: absolute;
  z-index: 2;
  top: 3%;
  right: 0;
  width: 207px;
  height: 240px;
  background: url("../images/bg-deco-2.svg") no-repeat right top/contain;
  /* 純裝飾，不能擋住底下的連結與按鈕 */
  pointer-events: none;
}
@media (max-width: 540px) {
  #section-2-1::before {
    width: 90px;
    height: 133px;
  }
}

#section-4,
#section-5 {
  background-color: rgba(50, 158, 74, 0.1019607843);
}

.level-btn {
  text-align: center;
}

.level-card {
  border-radius: 16px;
  background: #FFF;
  position: relative;
  z-index: 1;
  padding: 16px 24px 0 24px;
  margin-bottom: 32px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1019607843);
}
@media (max-width: 768px) {
  .level-card {
    padding: 20px 20px 0 20px;
  }
}

.level-ball {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #E1F44B;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1E1E1E;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.level-ball.fix {
  background-color: #0A8FD6;
  color: #fff;
}
@media (max-width: 768px) {
  .level-ball {
    width: 48px;
    height: 48px;
    font-size: 10px;
    margin-bottom: 8px;
  }
}

.num {
  font-family: "Albert Sans";
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .num {
    font-size: 20px;
    margin-top: 2px;
  }
}

.level-text {
  color: #4D4D4D;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .level-text {
    font-size: 14px;
    white-space: nowrap;
  }
}

.level-title {
  color: #1E1E1E;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.level-title span {
  color: #0A8FD6;
  font-family: "Albert Sans";
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 768px) {
  .level-title {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .level-title span {
    font-size: 28px;
  }
}

.tri {
  width: 20px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .tri {
    width: 15px;
    margin-bottom: 8px;
  }
}

.level-box {
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 auto;
}

.level-left,
.level-right {
  width: calc(50% - 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.check-card {
  border-radius: 16px 16px 0 0;
  background: #004264;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  padding: 12px 24px;
}
.check-card.fix {
  border-radius: 0;
}
.check-card.fix-1 {
  background: #0A8FD6;
}
@media (max-width: 768px) {
  .check-card {
    padding: 12px;
  }
}

.check-card-info {
  display: flex;
}
.check-card-info span:nth-child(1) {
  width: 24px;
}
.check-card-info span:nth-child(2) {
  padding-left: 8px;
  flex: 1;
  color: #FFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .check-card-info span:nth-child(1) {
    width: 18px;
  }
  .check-card-info span:nth-child(1) img {
    width: 18px;
  }
  .check-card-info span:nth-child(2) {
    padding-left: 6px;
    font-size: 14px;
  }
}

.bar-box {
  border-radius: 50px;
  background-color: #FFF;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1019607843);
}
@media (max-width: 768px) {
  .bar-box {
    border-radius: 20px;
    padding: 16px 8px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.bar-left {
  display: inline-flex;
}
.bar-left h5 {
  color: #004264;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
}
.bar-left h5 span {
  color: #008BD3;
  font-family: "Albert Sans";
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .bar-left {
    display: flex;
    margin-bottom: 8px;
  }
  .bar-left h5 {
    font-size: 16px;
    padding-left: 4px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }
  .bar-left h5 span {
    font-size: 17px;
  }
}

.bar-icon {
  width: 35px;
  margin-right: 12px;
}
@media (max-width: 768px) {
  .bar-icon {
    width: 28px;
    margin-right: 0;
  }
}

.bar-right {
  display: inline-block;
}
@media (max-width: 768px) {
  .bar-right {
    width: 100%;
    display: block;
    padding: 0;
    text-align: right;
  }
}

/* ============================================================
   chill 刷 標頭（search-area 上方）
   star.svg 是白色 → 需要桃紅底才浮得出來
============================================================ */
.chill-head {
  text-align: center;
  padding: 28px 20px 24px;
  background: #FF6AB1;
  border-radius: 64px 64px 0 0;
  height: 120px;
  position: relative;
  border: 4px solid #FF6AB1;
}
@media (max-width: 1024px) {
  .chill-head {
    margin-top: 60px;
    height: 100px;
  }
}

.chill-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chill-logo {
  display: block;
  width: 247px;
  height: auto;
  position: absolute;
  top: -44px;
}
@media (max-width: 1024px) {
  .chill-logo {
    width: 200px;
  }
}

.chill-star {
  width: 30px;
  height: auto;
  position: absolute;
  right: -30px;
  top: -28px;
}

.chill-star--r {
  align-self: flex-end;
}

.chill-date {
  display: inline-block;
  margin-top: 44px;
  padding: 6px 18px;
  background: white;
  color: #008BD3;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transform: rotate(-4deg);
  position: relative;
}
@media (max-width: 1024px) {
  .chill-date {
    margin-top: 22px;
  }
}

/* chill 刷 分類表：沿用 .seven-plan / .plan-item 結構，改成桃紅主題 */
.chill-plan {
  border-radius: 0 0 16px 16px;
  border: 6px solid #FF6AB1;
  padding: 0 24px;
  box-shadow: none;
}
.chill-plan .plan-tag {
  background: #FF6AB1;
}
.chill-plan .item-col-title {
  color: #1E1E1E;
}
.chill-plan .item-col-title span {
  color: #FF3D9C;
  text-shadow: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

footer {
  background-color: #EBEBEB;
  text-align: center;
}

.footer-box {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  text-align: left;
}
.footer-box h5 {
  display: inline-block;
  color: #343434;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
@media (max-width: 540px) {
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px;
  }
  .footer-box h5 {
    width: 100%;
    display: block;
    text-align: center;
  }
}

.footer-text {
  display: inline-block;
  color: #343434;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding-left: 24px;
}
@media (max-width: 540px) {
  .footer-text {
    padding-left: 0;
    padding-top: 24px;
  }
}

.copy-right {
  background: #D70C18;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .copy-right {
    background: #D70C18;
    overflow: hidden;
  }
}
@media (max-width: 540px) {
  .copy-right {
    padding: 10px 10px 60px;
  }
}

.footer-row {
  width: 100%;
  max-width: 1260px;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 30px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .footer-row {
    height: auto;
    padding: 10px;
    margin: 0 auto;
  }
}

.footer-left {
  flex: 1;
  padding-right: 30px;
  text-align: left;
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .footer-left {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
}

.footer-right {
  height: 56px;
  padding-left: 35px;
  width: 423px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-right::after {
  content: "";
  height: 100%;
  width: 400%;
  background: #DEDEDE;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.footer-right img {
  width: 148px;
}
@media (max-width: 1024px) {
  .footer-right {
    display: none;
  }
}

header {
  width: 100%;
  background-color: #D70C18;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}

.navbar {
  height: var(--header-h);
  padding: 0 40px;
  max-width: 1280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
@media (max-width: 1440px) {
  .navbar {
    padding: 0 32px;
  }
}
@media (max-width: 1024px) {
  .navbar {
    padding: 0 20px;
    justify-content: center;
  }
}

.logo {
  display: inline-block;
}
.logo img {
  width: auto;
  height: 24px;
}

.menu {
  display: inline-flex;
}
.menu li {
  display: inline-block;
  padding: 0 16px;
  position: relative;
}
.menu li::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.menu li:last-child {
  padding-right: 0;
}
.menu li:last-child:after {
  display: none;
}
.menu li a {
  display: block;
  color: #FFF;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 26px;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .menu {
    display: flex;
    flex-direction: column;
    padding-top: 44px;
    width: 100%;
  }
  .menu li {
    display: block;
    padding: 0;
    margin: 0;
  }
  .menu li::after {
    display: none;
  }
  .menu li a {
    width: 100%;
    text-align: center;
    display: block;
    color: #888;
    font-size: 16px;
    line-height: 1.1;
    padding: 24px;
    border-bottom: none;
    text-align: center;
  }
  .menu li a.active {
    color: #D02025;
  }
}

sm {
  font-size: 18px !important;
}

@media (max-width: 1024px) {
  .menu-box span {
    margin-top: 20px;
    display: block;
    padding: 20px 0;
    background-color: #eeeeee;
    text-align: center;
    width: 100%;
  }
  .menu-box {
    width: 100%;
    height: calc(100dvh - 53px);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
  }
  .menu-box.active {
    max-height: 100vh;
  }
}

@media (max-width: 768px) {
  .level-left,
  .level-right {
    width: calc(50% - 7px);
  }
}
/* ============================================================
   section-1：全家店內權益一覽表（tab + 三張權益卡）
   ※ 此區直接寫在 css/style.css，style.scss 目前已與此檔脫鉤
   ============================================================ */
.fami-panel {
  position: relative;
  overflow: hidden;
  padding-bottom: 25px;
}
@media (max-width: 540px) {
  .fami-panel::before {
    width: 172px;
    height: 99px;
  }
  .fami-panel {
    padding: 24px 0 48px;
    border-radius: 16px;
  }
}
@media (max-width: 1024px) {
  .fami-panel {
    padding: 28px 0 48px;
  }
}

@media (max-width: 540px) {
  .section-4-swiper,
  .section-6-swiper {
    margin: 0 auto;
    width: 240px;
  }
}
@media (max-width: 540px) {
  .search-note,
  .search-btn {
    margin-bottom: 20px;
  }
}
#section-1::before {
  /* 左下角裝飾：bg-deco-1.svg（面板 overflow:hidden 會順著圓角裁切） */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 277px;
  height: 160px;
  background: url("../images/bg-deco-1.svg") no-repeat left bottom/contain;
  pointer-events: none;
}

.fami-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  font-size: 0;
  line-height: 0;
}
.fami-title img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .fami-title img {
    height: 44px;
  }
}
@media (max-width: 540px) {
  .fami-title img {
    height: 36px;
  }
}

.fami-tabs {
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 40px;
  border-bottom: 1px solid #E0E0E0;
}
.fami-tabs li {
  position: relative;
  top: 1px;
  display: flex;
  justify-content: center;
  width: 280px;
}
.fami-tabs li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 14px;
  color: #8DB9D8;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s;
}
.fami-tabs li a img {
  width: 22px;
  height: 22px;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.fami-tabs li a.active {
  color: #0D5D9C;
  font-weight: 700;
}
.fami-tabs li a.active img {
  opacity: 1;
}
.fami-tabs li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: #008AD2;
}
@media (max-width: 768px) {
  .fami-tabs {
    margin-bottom: 36px;
  }
  .fami-tabs li a {
    gap: 6px;
    padding: 8px 6px 12px;
    font-size: 15px;
    letter-spacing: 0.02em;
  }
  .fami-tabs li a img {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 540px) {
  .fami-tabs {
    margin-bottom: 28px;
  }
  .fami-tabs li a {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 6px 2px 10px;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
    text-align: center;
  }
  .fami-tabs li a img {
    width: 22px;
    height: 22px;
  }
}

.fami-br {
  display: none;
}
@media (max-width: 540px) {
  .fami-br {
    display: inline;
  }
}

/* section-1 tab 切換進場：沿用 animate.css 的 fadeInUp，三張卡錯落 0.1s */
.fami-pane {
  display: none;
}
.fami-pane.active {
  display: block;
  padding-top: 40px;
}
.fami-pane .animated {
  animation-duration: 0.55s;
  animation-fill-mode: both;
}
.fami-pane .fami-card:nth-child(2).animated {
  animation-delay: 0.1s;
}
.fami-pane .fami-card:nth-child(3).animated {
  animation-delay: 0.2s;
}
.fami-pane .coupon:nth-child(2).animated {
  animation-delay: 0.1s;
}
.fami-pane .coupon-guide.animated {
  animation-delay: 0.2s;
}
.fami-pane .coupon-note-link.animated,
.fami-pane .tier-note-link.animated {
  animation-delay: 0.3s;
}
.fami-pane .tier-bar.animated {
  animation-delay: 0.08s;
}
.fami-pane .tier-item:nth-child(2).animated {
  animation-delay: 0.16s;
}
.fami-pane .tier-item:nth-child(3).animated {
  animation-delay: 0.24s;
}

.fami-empty {
  padding: 40px 0;
  color: #949494;
  font-size: 16px;
  text-align: center;
}

.fami-cards {
  display: flex;
  justify-content: center;
  gap: 48px;
}
@media (max-width: 1024px) {
  .fami-cards {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .fami-cards {
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 20px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fami-cards::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 540px) {
  .fami-cards {
    margin-left: 0;
    margin-right: 0;
  }
}

.fami-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 325px;
  min-width: 325px;
  min-height: 280px;
  background: #fff;
  border: 1px solid #309C48;
  padding: 8px;
  border-radius: 14px;
}
@media (max-width: 1024px) {
  .fami-card {
    width: calc(33.333% - 14px);
    min-width: 0;
    max-width: 325px;
  }
}
@media (max-width: 768px) {
  .fami-card {
    flex: 0 0 min(86%, 325px);
    width: auto;
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
  }
}

.fami-card-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border-radius: 999px;
  background: #309C48;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.fami-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 104px;
  padding: 26px 16px 0;
}
.fami-card-logo img {
  width: auto;
  max-height: 60px;
}
.fami-card-logo .logo-taishinpay {
  max-height: 72px;
}
.fami-card-logo .logo-card {
  max-height: 84px;
}
.fami-card-logo .logo-text {
  color: #309C48;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.fami-card-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
  padding: 34px 14px 20px;
  border-radius: 0 0 13px 13px;
  text-align: center;
  overflow: hidden;
}
.fami-card-body::before {
  /* 斜切的淡黃底 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #F7F9D3;
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
}
.fami-card-body > * {
  position: relative;
  z-index: 1;
}

.fami-card-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: #008AD2;
  font-family: "Albert Sans", "Noto Sans TC", sans-serif;
  font-weight: 700;
  line-height: 1;
}
.fami-card-num b {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0A8FD6;
  /* 硬邊實心擠出：每 0.02em 疊一層深藍、往右下，厚度隨字級等比 */
  text-shadow: 0.02em 0.02em 0 #fff, 0.04em 0.04em 0 #0A8FD6;
}
@media (max-width: 768px) {
  .fami-card-num b {
    font-size: 64px;
  }
}
.fami-card-num small {
  color: #004264;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .fami-card-num small {
    font-size: 20px;
  }
}

.fami-card-text {
  margin: 8px 0 12px;
  color: #1E1E1E;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================================
   section-1 / tab 2：卡友專屬優惠券（票券式卡片）
   ============================================================ */
.coupon-wrap {
  /* 寬度縮到票券列的實際寬度，說明文字自然對齊第一張券的左緣 */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .coupon-wrap {
    /* ============================================================
    section-1 tab2 / tab3 的斷點覆寫
    ※ 必須放在對應的根層規則「之後」，否則同權重會被根層蓋掉
    ============================================================ */
    width: 100%;
  }
}

.fami-coupons {
  display: flex;
  justify-content: center;
  gap: 24px;
}
@media (max-width: 768px) {
  .fami-coupons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 14px;
  }
}

.coupon {
  /* 票根寬度：撕線、缺口、條碼共用這一個數值 */
  --stub: 72px;
  position: relative;
  display: flex;
  align-items: stretch;
  width: 480px;
  min-height: 180px;
  border-radius: 14px;
  /* 票券缺口：上下各挖一個透明半圓，所以不必配合背後底色 */
  background: radial-gradient(circle at calc(100% - var(--stub)) 0, transparent 10px, rgba(229, 236, 107, 0.5) 10.5px) top/100% 50% no-repeat, radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent 10px, rgba(229, 236, 107, 0.5) 10.5px) bottom/100% 50% no-repeat;
}
@media (max-width: 768px) {
  .coupon {
    width: 100%;
    max-width: 480px;
  }
}
@media (max-width: 540px) {
  .coupon {
    --stub: 60px;
  }
}

.coupon-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px;
}
@media (max-width: 540px) {
  .coupon-main {
    gap: 6px;
    padding: 16px 8px 16px 16px;
  }
}

.coupon-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-badge {
  /* 每月／每季徽章圖（208x112，等比縮放，高度為準） */
  flex: 0 0 auto;
  display: block;
  width: auto;
  height: 56px;
}
@media (max-width: 540px) {
  .coupon-badge {
    height: 30px;
  }
}

.coupon-sub {
  color: rgb(0, 66, 100);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .coupon-sub {
    font-size: 14px;
  }
}

.coupon-title {
  display: flex;
  align-items: baseline;
  color: #309C48;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.coupon-title em {
  font-style: normal;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: rgb(0, 66, 100);
}
.coupon-title b {
  padding: 0 3px;
  color: #0A8FD6;
  font-family: "Albert Sans", "Noto Sans TC", sans-serif;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0.02em 0.02em 0 #fff, 0.04em 0.04em 0 #0A8FD6;
}
.coupon-title .blue {
  color: #0A8FD6;
  font-size: 40px;
  letter-spacing: 0.2em;
  text-shadow: 0.02em 0.02em 0 #fff, 0.04em 0.04em 0 #383838;
}
@media (max-width: 540px) {
  .coupon-title em {
    font-size: 23px;
  }
  .coupon-title b {
    font-size: 34px;
  }
  .coupon-title .blue {
    font-size: 29px;
  }
}

.coupon-side {
  --bar-d: rgba(48, 156, 72, 0.8);
  --bar-l: rgba(48, 156, 72, 0.45);
  position: relative;
  flex: 0 0 var(--stub);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 22px 0;
}
.coupon-side::before {
  /* 票券撕線 */
  content: "";
  position: absolute;
  left: -1px;
  top: 13px;
  bottom: 13px;
  border-left: 2px dashed #fff;
}
.coupon-side::after {
  /* 條碼：粗細不一的橫條，一個 35px 週期反覆平鋪 */
  content: "";
  width: 60%;
  background-image: repeating-linear-gradient(to bottom, var(--bar-d) 0 2px, transparent 2px 5px, var(--bar-l) 5px 9px, transparent 9px 11px, var(--bar-d) 11px 12px, transparent 12px 15px, var(--bar-d) 15px 21px, transparent 21px 23px, var(--bar-l) 23px 25px, transparent 25px 29px, var(--bar-d) 29px 33px, transparent 33px 35px);
}

.coupon-guide {
  /* 左緣由 .coupon-wrap 決定，不再自己置中，也不用寫死寬度 */
  margin: 28px 0 0;
  color: rgb(0, 66, 100);
}
.coupon-guide h4 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.coupon-guide ol {
  padding-left: 24px;
  list-style: decimal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
}
@media (max-width: 768px) {
  .coupon-guide {
    margin-top: 24px;
    padding: 0 14px;
  }
}

.coupon-note-link,
.tier-note-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 24px;
  color: #0A8FD6;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.3s;
}

.coupon-note-link::after,
.tier-note-link::after {
  /* 用 border 折出細箭頭，不吃字型 */
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.coupon-note-link:hover,
.tier-note-link:hover {
  opacity: 0.65;
}

/* ============================================================
   section-1 / tab 3：卡友累積消費優惠（門檻進度條 + 贈品卡）
   ============================================================ */
.tier-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .tier-wrap {
    width: 100%;
  }
}

.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .tier-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 14px;
  }
}

.tier-head-label {
  color: #004264;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.tier-head-note {
  color: #004264;
  font-size: 12px;
  font-weight: 400;
}

.tier-bar {
  /* 外框綠邊膠囊；內部三顆膠囊互相重疊，靠白色外環做出交界 */
  display: flex;
  height: 36px;
  margin-bottom: 40px;
  padding: 3px;
  border: 1px solid #4BAF52;
  border-radius: 999px;
  background: #fff;
}
@media (max-width: 768px) {
  .tier-bar {
    height: 30px;
    margin: 0 14px 28px;
  }
}

/* 左邊的段疊在右邊的段上面（DOM 順序預設相反，要自己指定） */
.tier-step {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* 門檻標籤靠右：標的是「累積到這裡」的終點 */
  padding-right: 18px;
  border-radius: 999px;
  background: #E7F3E5;
  /* 白色外環不佔空間，重疊時就是段與段的分隔線 */
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tier-step + .tier-step {
  /* 往左咬進前一段，形成重疊 */
  margin-left: -22px;
}
.tier-step:nth-child(1) {
  z-index: 3;
}
.tier-step:nth-child(2) {
  z-index: 2;
}
.tier-step:nth-child(3) {
  z-index: 1;
}
.tier-step {
  /* 綠色漸層放在 ::before 用 opacity 淡入（gradient 本身無法 transition）；
     .tier-step 有 z-index 會建立 stacking context，z-index:-1 會落在文字下方、底色上方 */
}
.tier-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #37A54F 0%, #6DC469 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tier-step {
  /* 已達成的門檻；滑到第 N 張 tier-item 時，第 1~N 段會掛 is-on（見 index.html 的 hover 邏輯） */
}
.tier-step.is-on::before {
  opacity: 1;
}
@media (max-width: 768px) {
  .tier-step {
    font-size: 13px;
  }
}
@media (max-width: 540px) {
  .tier-step {
    font-size: 12px;
  }
}

.tier-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
}
@media (max-width: 768px) {
  .tier-cards {
    justify-content: flex-start;
    gap: 16px;
    /* 上方留空間給卡片上浮，否則 overflow 會把浮起的部分裁掉 */
    padding: 12px 14px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tier-cards::-webkit-scrollbar {
    display: none;
  }
}

.tier-item {
  display: flex;
  flex-direction: column;
  width: 325px;
  transition: transform 0.3s ease;
  /* 桌機用 hover、手機用 scroll-snap 停在哪張就掛 is-active（見 index.html） */
}
.tier-item:hover, .tier-item.is-active {
  transform: translateY(-10px);
}
@media (max-width: 768px) {
  .tier-item {
    flex: 0 0 min(86%, 325px);
    width: auto;
    scroll-snap-align: start;
  }
}

.tier-pic {
  /* 贈品圖：置底對齊，三張圖高度不同也不會影響卡片起始位置 */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 128px;
}
.tier-pic img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.tier-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid #309C48;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  min-height: 243px;
}

.tier-card-head {
  /* 給固定高度，讓沒有副標的卡片 1 黃色區塊仍與卡片 2、3 齊高 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 12px 12px 20px;
  text-align: center;
}

.tier-title {
  color: #004264;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tier-title b {
  font-size: 20px;
  font-weight: 800;
  color: #0A8FD6;
}

.tier-sub {
  margin-top: 4px;
  color: #329E4A;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.tier-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px 18px;
  border-radius: 8px;
  background: #F7F9D3;
  min-height: 147px;
}

.tier-gift {
  /* 上下 auto margin 吃掉剩餘空間：贈品置中、按鈕被推到底部對齊 */
  margin: auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #004264;
  line-height: 1.15;
}
.tier-gift em {
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
}
.tier-gift b {
  color: #0A8FD6;
  font-family: "Albert Sans", "Noto Sans TC", sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0.02em 0.02em 0 #fff, 0.04em 0.04em 0 #0A8FD6;
}
.tier-gift b.two-line {
  font-size: 26px;
  line-height: 1.25;
  text-align: center;
}
.tier-gift small {
  font-size: 24px;
  font-weight: 700;
}
@media (max-width: 540px) {
  .tier-gift b {
    font-size: 30px;
  }
  .tier-gift b.two-line {
    font-size: 23px;
  }
}

/* ============================================================
   全家區塊的「注意事項」彈窗（深綠外框 + 白底內容 + 綠色標籤）
   ※ 只作用在 .popup-fami，其餘 46 個原本的彈窗不受影響
   ============================================================ */
.popup-fami .popup-body {
  position: relative;
  max-width: 760px;
  padding: 15px;
  border-top: none;
  /* 外框直角；圓角只留給裡面的白底 */
  border-radius: 0;
  background: #1B7A44;
}
.popup-fami .popup-inner {
  padding: 30px 32px 32px;
  background: #fff;
}
.popup-fami .close {
  /* 白底綠叉圓鈕，浮在彈窗右上角外側 */
  position: absolute;
  z-index: 2;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}
.popup-fami .close img {
  display: none;
}
.popup-fami .close::before,
.popup-fami .close::after {
  /* 用兩條線畫叉，顏色可控（原本的 close.svg 是深色，無法直接染綠） */
  content: "";
  position: absolute;
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: #309C48;
}
.popup-fami .close::before {
  transform: rotate(45deg);
}
.popup-fami .close::after {
  transform: rotate(-45deg);
}
.popup-fami .popup-content {
  max-height: calc(80svh - 160px);
  color: #1E1E1E;
  font-size: 15px;
  line-height: 1.75;
}
.popup-fami .popup-content ol {
  padding-left: 1.9em;
  margin-bottom: 0;
}
.popup-fami .popup-content li {
  margin-bottom: 8px;
}
.popup-fami .popup-content li:last-child {
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .popup-fami .popup-body {
    width: calc(100% - 32px);
    padding: 8px;
  }
  .popup-fami .popup-inner {
    padding: 24px 18px 22px;
    border-radius: 12px;
  }
  .popup-fami .close {
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
  }
  .popup-fami .close::before,
  .popup-fami .close::after {
    width: 14px;
  }
  .popup-fami .popup-content {
    max-height: calc(80svh - 150px);
    font-size: 14px;
  }
}

.popup-fami-title {
  margin-bottom: 22px;
  padding: 0 40px;
  color: #14365E;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}
.popup-fami-title em {
  font-style: normal;
  color: #309C48;
}
@media (max-width: 540px) {
  .popup-fami-title {
    margin-bottom: 18px;
    padding: 0 32px;
    font-size: 18px;
  }
}

.fami-sec {
  margin-bottom: 20px;
  color: #004264;
}
.fami-sec:last-child {
  margin-bottom: 0;
}
.fami-sec > p,
.fami-sec > ol {
  margin-top: 10px;
}
.fami-sec > ul {
  margin-top: 10px;
}

.fami-sec-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #004264;
}
.fami-sec-inline > p {
  margin-top: 0;
}

.fami-sec-tag {
  display: inline-block;
  flex: 0 0 auto;
  padding: 5px 14px;
  background: #309C48;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
@media (max-width: 540px) {
  .fami-sec-tag {
    padding: 4px 11px;
    font-size: 14px;
  }
}

/* 活動說明表格 */
.fami-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.fami-table th,
.fami-table td {
  padding: 12px 14px;
  border: 1px solid #309C48;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
.fami-table b {
  /* 全域 reset 把 b 打回 400，這裡補回來 */
  font-weight: 700;
}
.fami-table th {
  background: rgba(229, 236, 107, 0.2);
  color: #1B7A44;
  font-weight: 700;
}
.fami-table td {
  background: #fff;
  color: #004264;
}
@media (max-width: 540px) {
  .fami-table {
    font-size: 12.5px;
  }
  .fami-table th,
  .fami-table td {
    padding: 8px 6px;
  }
}

/* ============================================================
   section-2-2：優惠快訊（2 欄卡片，左右各 3 / 2 張）
   ============================================================ */
#section-2 {
  /* 直條紋疊在「左綠右藍」各半的底色上（硬邊，非漸層） */
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 7px, rgba(255, 255, 255, 0) 7px 15px), linear-gradient(90deg, #DCEFD7 0 50%, #D7EAF6 50% 100%);
  padding: 64px 0;
}
@media (max-width: 768px) {
  #section-2 {
    padding: 40px 0 44px;
  }
}

.news-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 768px) {
  .news-wrap {
    padding: 0 16px;
  }
}

.news-title-img {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 34px;
  font-size: 0;
  line-height: 0;
}
.news-title-img img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .news-title-img img {
    height: 40px;
  }
}
@media (max-width: 540px) {
  .news-title-img {
    margin-bottom: 24px;
  }
  .news-title-img img {
    height: 34px;
  }
}

.news-grid {
  /* 依序填格：1、3、5 在左欄，2、4 在右欄 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
}
@media (max-width: 1024px) {
  .news-grid {
    /* 兩欄需要視窗約 1030px 以上，之後改單欄避免卡片被裁切 */
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.news-grid {
  /* 預設收合：桌機（兩欄）先顯示前 4 張、手機先顯示前 3 張，點 .news-more 掛上 is-open 後全部顯示；
     動畫只做在被收起的卡片：展開淡入上滑、收合淡出（收合時 JS 先掛 is-closing 等動畫跑完才 display:none） */
}
.news-grid:not(.is-open) .news-card:nth-child(n+5) {
  display: none;
}
.news-grid.is-open .news-card:nth-child(n+5) {
  animation: newsCardIn 0.4s ease both;
}
.news-grid.is-closing .news-card:nth-child(n+5) {
  animation: newsCardOut 0.3s ease both;
}
@media (max-width: 768px) {
  .news-grid:not(.is-open) .news-card:nth-child(n+4) {
    display: none;
  }
  .news-grid.is-open .news-card:nth-child(n+4) {
    animation: newsCardIn 0.4s ease both;
  }
  .news-grid.is-open .news-card:nth-child(5) {
    animation-delay: 0.08s;
  }
  .news-grid.is-closing .news-card:nth-child(n+4) {
    animation: newsCardOut 0.3s ease both;
  }
}

@keyframes newsCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes newsCardOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* 展開／收合鈕：UI 參照 .app-box .button-next（76x38 藍框膠囊 + chevron），
   但這裡在 .app-box 外面拿不到那組樣式，所以重寫一份；改為靜態置中、箭頭朝下，展開後朝上。桌機與手機都顯示 */
.news-more {
  display: flex;
  position: static;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 38px;
  margin: 20px auto 0;
  border: 1.5px solid #008BD3;
  border-radius: 999px;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  z-index: auto;
}
.news-more::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1.8px solid #008BD3;
  border-right: 1.8px solid #008BD3;
  /* 與 .app-box 的 chevron 同一顆，轉 135 度朝下；translateY 補償視覺重心 */
  transform: translateY(-2px) rotate(135deg);
  transition: transform 0.25s ease;
}
.news-more:hover {
  background-color: #EAF6FD;
}
.news-more.is-open::before {
  transform: translateY(2px) rotate(-45deg);
}
@media (max-width: 400px) {
  .news-more {
    width: 50px;
  }
}

.news-card {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 24px;
  background: #fff;
  min-height: 210px;
}
@media (max-width: 768px) {
  .news-card {
    gap: 24px;
    padding: 18px;
  }
}
@media (max-width: 1140px) {
  .news-card {
    /* 桌機（≥1141px）維持原樣；此段起縮圖片與間距，避免右下角「活動詳情」被擠到換行 */
    gap: 28px;
  }
}
@media (max-width: 540px) {
  .news-card {
    min-height: 0;
    gap: 16px;
    padding: 14px;
  }
}

.news-pic {
  flex: 0 0 200px;
  overflow: hidden;
}
.news-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .news-pic {
    flex: 0 0 150px;
  }
}
@media (max-width: 540px) {
  .news-pic {
    flex: 0 0 74px;
    flex: 0 0 96px;
  }
}
@media (max-width: 1140px) {
  .news-pic {
    flex: 0 0 150px;
  }
}

.news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: #329E4A;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .news-date {
    font-size: 13px;
  }
}

.news-title {
  margin-top: 4px;
  color: #004264;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 540px) {
  .news-title {
    font-size: 14px;
    font-size: 15px;
  }
}

.news-foot {
  display: flex;
  flex-wrap: wrap;
  /* 空間不足時讓「活動詳情」換行，卡片才不會有硬性最小寬度 */
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.news-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #0A8FD6;
  line-height: 1;
}
.news-num b {
  font-family: "Albert Sans", "Noto Sans TC", sans-serif;
  font-size: 56px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0.02em 0.02em 0 #fff, 0.04em 0.04em 0 #0A8FD6;
}
.news-num small {
  color: #004264;
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .news-num b {
    font-size: 44px;
  }
}
@media (max-width: 540px) {
  .news-num b {
    font-size: 30px;
  }
  .news-num b {
    font-size: 34px;
  }
  .news-num small {
    font-size: 15px;
  }
}

.news-link {
  flex: 0 0 auto;
  color: #329E4A;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.news-link::before {
  content: "+";
  margin-right: 3px;
  font-weight: 700;
}
.news-link:hover {
  opacity: 0.65;
}
@media (max-width: 540px) {
  .news-link {
    font-size: 13px;
  }
}

/* ============================================================
   section-5：Richart Life App 教學
   ※ 全部限定 .app-box，.button-prev/next 與分頁點是 section-4/6 共用的
   ============================================================ */
/* 左右箭頭：白底、淡藍圓框、藍色箭頭（用 border 畫，顏色可控） */
.app-box .container {
  position: relative;
  /* 不設 z-index：一設就變成 stacking context，裡面 .button-prev/next 的 z-index:9
     會被關在容器內，永遠壓不過 .app-box::after（z-index:2）的裝飾圖 */
}
.app-box {
  background-color: #fff;
  border-radius: 20px;
  /* 永遠保留左右間距，否則 1300px 以下會貼齊視窗、圓角被切在螢幕邊緣 */
  width: calc(100% - 40px);
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.app-box .tab-menu {
  max-width: 900px;
  margin: 0 auto 44px;
  border-bottom: 1px solid #E0E0E0;
}
.app-box .tab-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 14px;
  color: #8DB9D8;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.app-box .tab-menu li a img {
  width: 28px;
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.app-box .tab-menu li a.active {
  color: #0A8FD6;
  font-weight: 700;
}
.app-box .tab-menu li a.active img {
  opacity: 1;
}
.app-box .tab-menu li a.active:after {
  /* 蓋掉共用的漸層跑馬燈底線，改為實心藍 */
  height: 3px;
  background: #0A8FD6;
  animation: none;
}
.app-box .swiper-box p {
  color: #004264;
  font-weight: 700;
}
.app-box .button-prev,
.app-box .button-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 38px;
  /* 蓋掉基礎樣式的 border-radius:50%，寬高不等時 50% 會變成橢圓 */
  border-radius: 999px;
  /* 基礎是 50px 高配 margin-top:-46px，換算後維持同一個垂直中心 */
  margin-top: -40px;
  border: 1.5px solid #008BD3;
  background-color: transparent;
  background-image: none;
}
@media (max-width: 400px) {
  .app-box .button-prev,
  .app-box .button-next {
    width: 50px;
  }
}
.app-box .button-prev::before,
.app-box .button-next::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1.8px solid #008BD3;
  border-right: 1.8px solid #008BD3;
}
.app-box .button-next::before {
  transform: translateX(-2px) rotate(45deg);
}
.app-box .button-prev::before {
  transform: translateX(2px) rotate(-135deg);
}
.app-box .button-prev:hover,
.app-box .button-next:hover {
  background-color: #EAF6FD;
}
.app-box .button-prev.swiper-button-disabled,
.app-box .button-next.swiper-button-disabled {
  background-color: #fff;
  opacity: 0.4;
}
.app-box .swiper-pagination-bullet {
  background: #D5D5D5;
  opacity: 1;
}
.app-box .swiper-pagination-bullet-active {
  background: #0A8FD6;
}
@media (max-width: 768px) {
  .app-box .tab-menu {
    margin-bottom: 32px;
  }
  .app-box .tab-menu li a {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 4px 12px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
  }
  .app-box .tab-menu li a img {
    width: 24px;
    height: 24px;
  }
  .app-box::before {
    width: 90px;
    height: 133px;
  }
  .app-box::after {
    width: 74px;
    height: 171px;
  }
  .app-box {
    /* 手機版：標題與 tab 在白底，tab 底線以下的內容區才是淡綠底（上白下綠水平分割） */
    width: 100%;
    background-color: #fff;
    border-radius: 0;
    /* 拿掉間距，讓綠底緊接在 tab 底線下方 */
  }
  .app-box .tab-menu {
    margin-bottom: 0;
  }
  .app-box .tab-box {
    /* 與 #section-4 / #section-5 的 background-color 同色 */
    background-color: rgba(50, 158, 74, 0.1);
    /* padding-top 就是 tab 底線到 App 截圖的間距 */
    padding: 30px 8px 20px;
  }
}
@media (max-width: 767px) {
  .app-box {
    /* 桌機是 76x38 膠囊；手機寬高相等 + 根層的 border-radius:999px = 正圓 */
  }
  .app-box .button-prev,
  .app-box .button-next {
    /* 基礎是 50px 高配 margin-top:-46px，換算後維持同一垂直中心 */
    margin-top: -41px;
  }
  .app-box {
    /* 以截圖寬度定位，改 --shot-w 箭頭會自動跟著移動 */
  }
  .app-box .button-prev {
    left: -5px;
  }
}
@media (max-width: 767px) and (max-width: 400px) {
  .app-box .button-prev {
    left: 5px;
  }
}
@media (max-width: 767px) {
  .app-box .button-next {
    right: -5px;
  }
}
@media (max-width: 767px) and (max-width: 400px) {
  .app-box .button-next {
    right: 5px;
  }
}

.app-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  font-size: 0;
  line-height: 0;
}
.app-title img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  position: relative;
  transform: translateY(-50%);
}
@media (max-width: 768px) {
  .app-title {
    padding-top: 56px;
  }
  .app-title img {
    height: 40px;
    /* 桌機用 translateY(-50%) 讓標題壓住白卡上緣；
    手機沒有卡片邊界，位移只會造成上方空隙不一致 */
    transform: none;
  }
}
@media (max-width: 540px) {
  .app-title img {
    height: 32px;
  }
}

/* section-4 角落裝飾：放在 section 上而非 .app-box，
   否則會被白色面板的 border-radius + overflow:hidden 裁掉 */
#section-4,
#section-5 {
  position: relative;
  /* 只擋水平溢出、垂直不裁切，偽元素才能露出區塊上下緣。
   不能寫 overflow-x:hidden + overflow-y:visible —— 規範會把 visible
   強制算成 auto，照樣裁切；只有 clip 允許另一軸維持 visible */
  overflow-x: clip;
  overflow-y: visible;
}

/* 右側裝飾黏著白色面板：掛在 .app-box 上，右緣就會跟著面板走
   （面板在 1300px 以下是 calc(100% - 40px)，位置會隨斷點改變） */
#section-5::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* 固定 px：原本 top:-10% 會隨區塊高度換算，切 tab 高度一變就位移 */
  top: -104px;
  left: 0;
  width: 362px;
  height: 534px;
  background: url("../images/bg-deco-4.svg") no-repeat left top/contain;
}
#section-5 .app-box::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  /* 固定 px：原本 top:50% 會隨面板高度換算，切 tab 就位移 */
  top: 190px;
  right: -90px;
  width: 408px;
  height: 303px;
  background: url("../images/bg-deco-5.svg") no-repeat right center/contain;
}
@media (max-width: 768px) {
  #section-5::before {
    width: 90px;
    height: 133px;
  }
  #section-5::after {
    width: 74px;
    height: 171px;
  }
  #section-5 .app-box::after {
    top: 140px;
    right: -20px;
    width: 74px;
    height: 171px;
  }
  #section-5::before {
    top: -40px;
    width: 90px;
    height: 133px;
  }
}

/* section-4 左上角裝飾 */
#section-4::before {
  content: "";
  position: absolute;
  /* 與 #section-5::before 一致：壓在 .app-box(z-index:1) 底下，從邊角露出 */
  z-index: 0;
  top: 0;
  left: 0;
  width: 247px;
  height: 293px;
  background: url("../images/bg-deco-3.svg") no-repeat left top/contain;
  pointer-events: none;
}
@media (max-width: 768px) {
  #section-4::before {
    width: 124px;
    height: 147px;
  }
}

/* section-4 標題下方的說明句 */
.app-lead {
  /* 往上吃掉 .app-title 部分下邊距，讓標題與說明成為一組 */
  max-width: 900px;
  margin: -18px auto 12px;
  color: #0A8FD6;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  /* 只有「全家Fa點」「200點」強調成綠色 */
}
.app-lead span {
  color: #309C48;
}
@media (max-width: 768px) {
  .app-lead {
    margin: -12px auto 10px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* 兌點趣說明下方的小字備註 */
.app-note {
  max-width: 900px;
  margin: 0 auto 30px;
  color: #004264;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}
@media (max-width: 768px) {
  .app-note {
    margin-bottom: 24px;
    padding: 0 16px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  #section-4,
  #section-5 {
    padding-top: 0;
  }
}
@media (min-width: 768px) {
  #tab-4-2 {
    /* tab-4-2 只有 2 張、填不滿 3 欄版型 → 置中。
    只在 768 以上生效：手機是 1 欄、內容會溢出，
    那時 justify-content:center 會把第一張推到可視範圍外且捲不回來 */
  }
  #tab-4-2 .swiper-wrapper {
    justify-content: center;
  }
}

/* ============================================================
   section-3：卡友身分升級
   ============================================================ */
#section-3 {
  padding: 56px 0 64px;
  /* 直條紋疊在「左綠右藍」各半的底色上，與 #section-2 同一套視覺 */
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 7px, rgba(255, 255, 255, 0) 7px 15px), linear-gradient(90deg, #DCEFD7 0 50%, #D7EAF6 50% 100%);
}
@media (max-width: 768px) {
  #section-3 {
    padding: 40px 0 44px;
  }
}

/* 綠色緞帶標題（沒有對應的 title-*.png，先用 CSS 做出同一套造型） */
.section-title {
  position: relative;
  width: fit-content;
  height: 46px;
  margin: 0 auto 20px;
  padding: 0 40px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.12em;
  background: #309C48;
  transform: skewX(-14deg);
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 13px;
  background: #0A8FD6;
}
.section-title span {
  display: inline-block;
  transform: skewX(14deg);
}
@media (max-width: 768px) {
  .section-title {
    height: 40px;
    padding: 0 26px;
    font-size: 20px;
    line-height: 40px;
  }
}

.section-sub-title {
  margin-bottom: 22px;
  color: #004264;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}
.section-sub-title span {
  color: #008BD3;
  font-family: "Albert Sans", "Noto Sans TC", sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.section-sub-title small {
  color: #0A8FD6;
  font-size: 18px;
  font-weight: 800;
}
@media (max-width: 768px) {
  .section-sub-title {
    font-size: 15px;
  }
  .section-sub-title span {
    font-size: 23px;
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0A8FD6;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.link-btn span {
  width: 6px;
  height: 6px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: translateX(1px) rotate(45deg);
}
.link-btn:hover {
  opacity: 0.65;
}

/* 手機版：隱藏角落裝飾（空間不足會壓到內容） */
.tab-br {
  display: none;
}
@media (max-width: 768px) {
  .tab-br {
    /* tab 文字斷成兩行，與設計稿一致 */
    display: inline;
  }
}

@media (max-width: 768px) {
  #section-4::before,
  #section-5::before,
  #section-5 .app-box::after {
    display: none;
  }
}
