/* ========================================
   基本樣式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', '微軟正黑體', Arial, sans-serif;
}

/* ========================================
   PayEasy Header（預設隱藏）
   ======================================== */
.header {
    display: none;
}

/* ========================================
   導覽列區塊
   ======================================== */
.navbar {
    background-color: #F9C924;
    padding: 15px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    gap: 0;
}

.nav-item {
    background-color: #FFFFFF;
    border-right: 1px solid #0053A7;
}

.nav-item:first-child {
    border-left: 1px solid #0053A7;
}

.nav-item a {
    display: block;
    padding: 10px 35px;
    color: #0053A7;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.7px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    background-color: #F5F5F5;
    color: #F9C924;
}

/* 漢堡選單按鈕（預設隱藏） */
.hamburger {
    display: none;
    flex-direction: column;
    background-color: #F9C924;
    border: none;
    cursor: pointer;
    padding: 15px;
    gap: 5px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1001;
    width: 75px;
    height: 75px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

/* 漢堡選單展開時變成 X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Logo 容器（預設隱藏） */
.navbar-logo {
    display: none;
}

/* 遮罩層（預設隱藏，僅手機版顯示） */
.nav-overlay {
    display: none;
}



/* ========================================
   Hero 區塊
   ======================================== */
.hero {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 50px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 共用：都用absolute疊在Hero上 */
.hero2{
  position:absolute;
  transform:translate(-50%,-50%);
  height:auto;
  z-index:2;
  animation:heroFlash 0.6s ease-in-out 3;
}

/* 預設：只顯示電腦版文字 */
.hero2-pc{display:block;}
.hero2-m{display:none;}

/* 電腦版位置與大小（你照你的需求調） */
.hero2-pc{
  left:37%;
  top:28%;
  width:65%;
}


@keyframes heroFlash{
  0%{
    transform:translate(-50%,-50%) scale(1);
  }
  50%{
    transform:translate(-50%,-50%) scale(1.05);
  }
  100%{
    transform:translate(-50%,-50%) scale(1);
  }
}

@media (max-width:768px){
  .hero2-pc{
    display:none !important;
  }
  .hero2-m{
    display:block !important;

    /* 手機版自己校正位置 */
    left:50%;
    top:30%;
    width:75%;
  }
}

/* ========================================
   Section 2 & 3 & 4 共用背景容器
   ======================================== */
.section23-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

/* ========================================
   Section 2 區塊
   ======================================== */
.section2 {
    width: 100%;
    overflow: visible;
    position: relative;
    background-color: #BEE28F;
    background-image: url('../src/section_bg/5.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
}


.section2-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.section2-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section2-btn {
    display: block;
    position: relative;
    z-index: 3;
    width: 80vw;
    max-width: 560px;
}

.section2-box {
    width: 80%;
    max-width: 1400px;
    background-color: #FFFFFF;
    border-radius: 67px;
    min-height: 100px;
    padding: 40px;
    padding-top: 90px;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.section2-text {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    color: #333333;
    text-align: center;
    margin-bottom: 30px;
}

.section2-text .highlight,
.section3-text .highlight {
    color: #C63942 !important;
    font-weight: bold;
}

.section2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.section2-grid-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.section2-grid-link:hover {
    transform: scale(1.05);
}

.section2-grid-item {
    width: 100%;
    height: auto;
    display: block;
}

.section2-more-link {
    text-decoration: none;
    display: block;
    width: 95%;
    margin: 0 auto;
}

.section2-more {
    color: #016D6B;
    font-size: 16px;
    text-align: right;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: underline;
    transition: font-size 0.3s ease;
}

.section2-more-link:hover .section2-more {
    font-size: 18px;
}

/* Section 2 右側裝飾 icon */
.section2-icon-right {
    position: absolute;
    top: 50%;
    right: 10px;
    width: auto;
    height: auto;
    max-width: 150px;
    transform: translateY(-50%);
    z-index: 2;
}

/* 客戶評價區塊 */
.review-title {
    display: block;
    margin-top: 40px;
    margin-bottom: 20px;
    align-self: flex-start;
    max-width: 300px;
    margin-left: 10px;
}

.review-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
    margin-left: 30px;
}

.review-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #DE185B;
    font-size: clamp(14px, 2.5vw, 18px);
    letter-spacing: 2px;
}

.review-highlight {
    color: #016D6B;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.review-text {
    color: #333333;
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.8;
    text-align: left;
    width: 75%;
    max-width: 777px;
    letter-spacing: 0.5px;
}

.review-red {
    color: #C63942;
    font-weight: bold;
}

/* ========================================
   Section 3 區塊
   ======================================== */
.section3 {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    background-color: #62C0B4;
    position: relative;
}

/* Section 3 背景5（後層） */
.section3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--section3-height, auto);
    background-image: url('../src/section_bg/5.png');
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Section 3 背景4（前層） */
.section3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--section3-height, auto);
    background-image: url('../src/section_bg/4.png');
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.section3-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 3;
}

.section3-btn {
    display: block;
    position: relative;
    z-index: 3;
    width: 80vw;
    max-width: 560px;
}

.section3-box {
    width: 80%;
    max-width: 1400px;
    background-color: #FFFFFF;
    border-radius: 67px;
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.section3-content-wrapper {
    position: relative;
    padding-top: 50px;
}

.section3-text {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    color: #333333;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.section3-add-btn {
    width: clamp(36px, 8vw, 72px);
    height: clamp(36px, 8vw, 72px);
    background-color: #006C6A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    left: calc(50% + 300px + 15px);
    top: 50px;
}

.section3-add-btn:hover {
    transform: scale(1.05);
}

.plus-icon {
    color: #FFFFFF;
    font-size: clamp(20px, 4.5vw, 40px);
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Section 3 展開內容 */
.section3-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    position: relative;
    z-index: 2;
}

.section3-expanded.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 30px;
}

/* Section 3 底部裝飾 icon */
.section3-icon-left {
    position: absolute;
    top: var(--icon-top-position, calc(100% - 10px));
    left: 20px;
    width: auto;
    height: auto;
    max-width: 150px;
    z-index: 1;
    transform: translateY(-100%);
}

.section3-icon-right {
    position: absolute;
    top: var(--icon-top-position, calc(100% - 10px));
    right: 20px;
    width: auto;
    height: auto;
    max-width: 150px;
    z-index: 3;
    transform: translateY(-100%);
}

.section3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.section3-grid-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.section3-grid-link:hover {
    transform: scale(1.05);
}

.section3-grid-item {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Section 4 區塊
   ======================================== */
.section4 {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 170px;
    background-color: #62C0B4;
}

.section4-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section4-btn {
    display: block;
    position: relative;
    width: 80vw;
    max-width: 520px;
}

.section4-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
    margin-top: 30px;
    width: 100%;
}

.section4-box {
    width: 60%;
    max-width: 1400px;
    background-color: #FFFFFF;
    border: 7px solid #50A5DB;
    border-radius: 15px;
    padding: 15px 30px;
    min-height: 100px;
}

.section4-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.task-number {
    background-color: #0053A7;
    color: #FFFFFF;
    padding: 11px 32px;
    border-radius: 80px;
    letter-spacing: 1.8px;
    font-size: clamp(20px, 4.5vw, 36px);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.separator {
    color: #0053A7;
    font-size: clamp(20px, 4.5vw, 36px);
    font-weight: bold;
}

.task-name {
    color: #0053A7;
    font-size: clamp(20px, 4.5vw, 36px);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.task-icon {
    height: clamp(20px, 4.5vw, 36px);
    width: auto;
}

.section4-content {
    color: #534741;
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.8;
    text-align: center;
}

/* Section 4 左下角裝飾 icon */
.section4-icon-left {
    position: absolute;
    bottom: 25px;
    left: 20px;
    width: auto;
    height: auto;
    max-width: 300px;
    z-index: 2;
}

/* ========================================
   Section 5 區塊
   ======================================== */
.section5 {
    width: 100%;
    background-color: #BEE28F;
    padding: 50px 0 80px 0;
    display: flex;
    justify-content: center;
}

.section5-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section5-btn {
    display: block;
    position: relative;
    z-index: 3;
    margin-bottom: 40px;
    width: 80vw;
    max-width: 560px;
}

.section5-table-container {
    width: 70%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

.section5-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #FFFFFF;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section5-table tr {
    border-bottom: none;
}

.section5-left {
    background-color: #0053A7;
    color: #FFFFFF;
    width: 40%;
    padding: 30px 40px;
    position: relative;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #FFFFFF;
}

.section5-table tr:last-child .section5-left {
    border-bottom: none;
}

.section5-left-content {
    position: relative;
}

.section5-title {
    font-size: clamp(12px, 3vw, 24px);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.section5-subtitle-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.section5-subtitle {
    font-size: clamp(10px, 2vw, 20px);
    line-height: 1.6;
    font-weight: bold;
    margin: 0;
}

.crown-icon {
    height: clamp(12px, 2vw, 22px);
    width: auto;
    vertical-align: baseline;
    margin-left: 10px;
}

.section5-right {
    background-color: #F5F5F5;
    color: #333333;
    width: 60%;
    padding: 30px 40px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #333333;
}

.section5-table tr:last-child .section5-right {
    border-bottom: none;
}

.section5-description {
    font-size: clamp(12px, 2.5vw, 20px);
    line-height: 1.8;
    margin: 0;
    display: inline-block;
    text-align: left;
    max-width: 800px;
    width: 80%;
}

.highlight-red {
    color: #C63942;
    font-weight: bold;
}

/* ========================================
   Section 6 區塊
   ======================================== */
.section6 {
    width: 100%;
    background-color: #AAE5F7;
    padding: 50px 0 80px 0;
    display: flex;
    justify-content: center;
}

.section6-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section6-btn {
    display: block;
    position: relative;
    margin-bottom: 40px;
    width: 80vw;
    max-width: 560px;
}

.section6-box {
    width: 80%;
    max-width: 1400px;
    background-color: #FFFFFF;
    border-radius: 25px;
    padding: 50px 80px;
    position: relative;
}

.section6-intro {
    color: #0053A7;
    font-size: clamp(18px, 3.5vw, 28px);
    font-weight: bold;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.5px;
}

.section6-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-badge {
    background-color: #0053A7;
    color: #FFFFFF;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: bold;
    padding: 8px 30px;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
    letter-spacing: 1px;
}

.step-description {
    color: #333333;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    margin: 0 0 0 50px;
}

.step-image-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 0 40px;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ========================================
   Section 7 區塊
   ======================================== */
.section7 {
    width: 100%;
    overflow: visible;
}

.section7-container {
    position: relative;
    width: 100%;
}

.section7-image {
    width: 100%;
    display: block;
}

.section7-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section7-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: block;
    height: auto;
    width: clamp(200px, 80%, 400px);
    max-width: 320px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.section7-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* ========================================
   Section 8 區塊
   ======================================== */
.section8 {
    width: 100%;
    background-color: #ABE5F7;
    padding: 50px 0 80px 0;
    display: flex;
    justify-content: center;
}

.section8-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section8-btn {
    display: block;
    position: relative;
    margin-bottom: 40px;
    width: 40vw;
    max-width: 900px;
}

.section8-boxes {
    width: 80%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section8-box {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section8-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 15px;
}

.section8-title {
    color: #0053A7;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: bold;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.section8-toggle {
    background-color: #50A5DB;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    line-height: 1;
}

.section8-toggle:hover {
    background-color: #3d8ec7;
}

.section8-box.active .section8-toggle {
    background-color: #FFFFFF;
    color: #50A5DB;
    border: 2px solid #50A5DB;
}

.section8-box.active .section8-toggle:hover {
    background-color: #f0f0f0;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.section8-box.active .toggle-icon {
    transform: rotate(180deg);
    color: #50A5DB;
}

.section8-box.active .toggle-text {
    color: #50A5DB;
}

.section8-preview {
    text-align: center;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.section8-box.active .section8-preview {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.section8-preview-text {
    color: #333333;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    margin: 0;
}

.section8-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.section8-box.active .section8-content {
    max-height: 3000px;
    opacity: 1;
    margin-top: 20px;
}

.section8-details {
    text-align: left;
}

.detail-item {
    display: flex;
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
}

.detail-item table {
    clear: both;
    margin-top: 0.5em;
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

.prize-table th,
.prize-table td {
    border: 1px solid #999999;
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

.prize-table th {
    background-color: #F5F5F5;
    font-weight: bold;
    color: #333333;
}

.prize-table td {
    color: #333333;
}

.terms-title {
    color: #0053A7;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 15px 0;
}

.section8-subtitle {
    color: #534741;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px 0;
}

.terms-list {
    text-align: left;
}

.term-item {
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 2em;
    text-indent: -2em;
}

.term-subitem {
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 4em;
    text-indent: -1em;
}

.section8-text {
    color: #333333;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   其他區塊
   ======================================== */

/* 手機版樣式 */
@media (max-width: 768px) {

    .section7-btn{
        width: clamp(130px, 45%, 150px);
        max-width: 150px;
    }

    /* 手機版：顯示 PayEasy Header */
    .header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .header .hd_pc {
        display: none;
    }

    .header .hd_m {
        display: block;
    }

    /* 手機版：調整 navbar */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: auto;
        height: 50px;
        padding: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        background-color: transparent;
    }

    /* 隱藏 navbar 的 logo */
    .navbar-logo {
        display: none;
    }

    /* 顯示漢堡按鈕 */
    .hamburger {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        padding: 0;
        background-color: #FFCC13;
        position: relative;
        border: none;
        cursor: pointer;
    }

    .hamburger-icon,
    .close-icon {
        color: #FFFFFF;
        font-size: 32px;
        position: absolute;
        transition: opacity 0.2s ease;
    }

    /* 預設顯示漢堡圖標，隱藏叉叉 */
    .hamburger-icon {
        opacity: 1;
    }

    .close-icon {
        opacity: 0;
    }

    /* 展開時隱藏漢堡圖標，顯示叉叉 */
    .hamburger.active .hamburger-icon {
        opacity: 0;
    }

    .hamburger.active .close-icon {
        opacity: 1;
    }


    /* 遮罩層樣式 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        pointer-events: auto;
        opacity: 1;
    }

    /* 選單樣式 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background-color: #FFFFFF;
        width: 80%;
        max-width: 180px;
        height: auto;
        max-height: calc(100vh - 50px);
        padding: 0;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        justify-content: flex-start;
        z-index: 1000;
    }

    /* 選單展開 */
    .nav-menu.active {
        left: 0;
    }

    /* 選單項目 */
    .nav-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #0053A7;
        background-color: #FFFFFF;
    }

    .nav-item:first-child {
        border-left: none;
        border-top: 1px solid #0053A7;
    }

    .nav-item:last-child {
        border-bottom: 1px solid #0053A7;
    }

    .nav-item a {
        padding: 20px 30px;
        font-size: 20px;
        color: #0053A7;
        font-weight: bold;
        width: 100%;
        text-align: center;
        display: block;
    }

    .nav-item a:hover {
        background-color: #F0F0F0;
    }

    /* Hero 區塊調整（避免被固定 header 遮住） */
    .hero {
        margin-top: 50px;
    }

    /* 手機版：移除容器背景 */
    .section23-container {
        background-image: none;
        background-color: transparent;
        min-height: 100%;
    }

    /* 手機版：Section 2 背景 */
    .section2 {
        background-color: #BEE28F;
        background-image: url('../src/section_bg/5.png');
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
    }

    /* 手機版：隱藏 Section 2 右側裝飾 icon */
    .section2-icon-right {
        display: none;
    }

    /* 手機版：Section 3 保持電腦版的背景設定 */
    .section3 {
        background-color: #62C0B4;
    }

    .section3::before,
    .section3::after {
        display: block;
        height: calc(var(--section3-height, 500px) / 2);
    }

    /* 手機版：Section 4 背景 */
    .section4 {
        background-color: #62C0B4;
    }

    /* 手機版：Section 3 左側 icon 調整 */
    .section3-icon-left {
        max-width: 120px;
        transform: rotate(22.5deg) translateY(-100%) !important;
        z-index: 0;
        left: 0px;
    }

    /* 手機版：Section 3 右側 icon 調整 */
    .section3-icon-right {
        z-index: 0;
        max-width: 120px;
    }

    /* 手機版：確保展開內容在 icon 之上 */
    .section3-box {
        position: relative;
        z-index: 2;
    }

    /* 手機版：Section 4 左下角 icon 調整為水平置中 */
    .section4-icon-left {
        left: 50%;
        transform: translateX(-50%);
        max-width: 120px;
    }

    .section2-box{
        width: 90%;
        padding: 23px;
        padding-top: 90px;
        border-radius: 24px;
    }

    .section3-box{
        width: 90%;
        padding: 23px;
        border-radius: 24px;
    }

    /* 小螢幕：一排一個 */
    .section2-grid {
        grid-template-columns: 1fr;
    }

    /* 客戶評價區塊調整 */
    .review-title {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        max-width:250px; 
    }

    .review-container {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        max-width: 270px;
        margin-left: auto;
        margin-right: auto;
    }

    .review-avatar {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    /* 讓 review-content 的子元素提升到 review-container */
    .review-content {
        display: contents;
    }

    .review-rating {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 0;
    }

    .review-text {
        flex-basis: 100%;
        width: 100%;
        margin-top: 10px;
        width: 100%;
        
    }

    /* 手機版：連結水平置中 */
    .section2-more {
        text-align: center;
    }

    /* 手機版：加號按鈕移動到描述下方 */
    .section3-content-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section3-add-btn {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 20px;
        width: 36px;
        height: 36px;
    }

    .plus-icon {
        font-size: 20px;
    }

    /* 手機版：移除換行符號 */
    .section3-text br {
        display: none;
    }

    /* Section 3 展開內容：手機版一排一張 */
    .section3-grid {
        grid-template-columns: 1fr;
    }


    /* 手機版：section4-box 寬度調整 */
    .section4-box {
        width: 90%;
        padding: 15px;
    }

    .section4{
        padding-bottom: 100px;
    }

    .section5-table-container{
        width: 90%;
    }

    
    .section5-right{
        padding: 15px 12px;
    }

    .section5-left{
        padding: 15px 10px;
    }

    .section5-description{
        width: 100%;
    }

    /* 手機版：皇冠移到標題上方，標題在 subtitle 上方 */
    .section5-left-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 使用伪元素在顶部显示皇冠图标 */
    .section5-left-content::before {
        content: '';
        order: 1;
        display: block;
        background-image: url('../src/web/section5.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: clamp(19px, 4vw, 40px);
        height: clamp(12px, 2.5vw, 25px);
    }

    .section5-title {
        order: 2;
        margin: 10px 0;
        text-align: center;
    }

    .section5-subtitle-row {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section5-subtitle {
        text-align: center;
        margin: 0;
    }

    /* 隐藏原来的皇冠图标 */
    .crown-icon {
        display: none;
    }

    /* Section 6 手機版樣式 */
    .section6-box {
        width: 90%;
        padding: 30px 20px;
        border-radius: 15px;
    }

    .section6-intro {
        margin-bottom: 30px;
    }

    .section6-steps {
        gap: 20px;
    }

    .step-item {
        gap: 10px;
    }

    .step-badge {
        padding: 6px 20px;
        align-self: center;
    }

    .step-description {
        margin: 0;
        text-align: center;
    }

    .step-image-container {
        margin: 10px 0 0 0;
    }

    /* Section 8 手機版樣式 */
    .section8-btn {
        width: 80vw;
        max-width: 560px;
    }

    .section8-boxes {
        width: 90%;
    }

    .section8-box {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .section8-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .section8-title {
        font-size: clamp(16px, 3vw, 24px);
    }

    .section8-toggle {
        padding: 6px 15px;
        font-size: clamp(12px, 2vw, 16px);
    }

    .section8-preview-text {
        font-size: clamp(12px, 2vw, 18px);
    }

    .detail-item {
        font-size: clamp(12px, 2vw, 16px);
    }

    .terms-title {
        font-size: clamp(16px, 2.5vw, 18px);
    }

    .term-item {
        font-size: clamp(12px, 2vw, 16px);
    }

    .term-subitem {
        font-size: clamp(11px, 1.8vw, 16px);
    }

    /* 表格容器：添加横向滚动 */
    .detail-item {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prize-table {
        font-size: clamp(10px, 2vw, 16px);
        min-width: 100%;
        width: max-content;
    }

    .prize-table th,
    .prize-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    .prize-table th {
        font-size: clamp(10px, 2vw, 16px);
    }

    .prize-table td {
        font-size: clamp(9px, 1.8vw, 13px);
    }

    .task-number{
        padding: 11px 25px;
    }

}

/* 中螢幕（平板）：一排兩個 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 導覽列字體大小調整 */
    .nav-item a {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* 平板：隱藏 Section 2 右側裝飾 icon */
    .section2-icon-right {
        display: none;
    }

    /* 平板：Section 3 icon 位置調整 */
    .section3-icon-left {
        left: 10px;
        max-width: 120px;
        z-index: 3;
        transform: rotate(22.5deg) translateY(-100%);
    }

    .section3-icon-right {
        right: 10px;
        max-width: 120px;
    }


    /* 區塊2的圓角和grid布局 */
    .section2-box {
        border-radius: 24px;
    }

    .section2-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 區塊3的圓角和grid布局 */
    .section3-box {
        border-radius: 24px;
    }

    /* 區塊3加號按鈕移到文字下方 */
    .section3-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section3-add-btn {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 20px;
        width: 48px;
        height: 48px;
    }

    .section3-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 客戶評價區塊間距調整 */
    .review-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 區塊4寬度調整 */
    .section4-box {
        width: 80%;
    }

    /* 區塊5表格容器寬度調整 */
    .section5-table-container {
        width: 80%;
    }

    /* 區塊七按鈕大小和位置調整 */
    .section7-btn {
        bottom: 20px;
        width: clamp(150px, 45%, 300px);
        max-width: 45%;
    }
}

/* ========================================
   懸浮按鈕
   ======================================== */
.floating-buttons {
    position: fixed;
    right: 0px;
    bottom: 40px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn picture,
.floating-btn img {
    width: auto;
    height: auto;
    display: block;
    max-width: 120px;
}

.floating-btn picture img {
    width: auto;
    height: auto;
    display: block;
}

.floating-btn-1 picture,
.floating-btn-1 img {
    max-width: 150px;
}

.floating-btn-2 picture,
.floating-btn-2 img {
    max-width: 100px;
    margin: 0 auto;
}

/* 手機版：懸浮按鈕縮小 */
@media (max-width: 768px) {
    .floating-btn-1 picture,
    .floating-btn-1 img {
        max-width: 120px;
    }

    .floating-btn-2 picture,
    .floating-btn-2 img {
        max-width: 48px;
    }
}
