
/*优惠活动*/
.promotions-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 16px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f0e6d2);
    margin: 20px auto;
}

/* 优惠卡片样式 */
.promotions-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* 移除flex-wrap: wrap，防止换行 */
    width: 100%;
    overflow: hidden; /* 防止溢出容器 */
}

.promotion-card {
    /* 使用min-width和max-width结合，允许卡片在一定范围内缩放 */
    min-width: 280px;
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    /* 不自訂固定比例，讓圖片在框內完整自適應顯示並置中 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 580px;
    width: 100%;
}

.card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 580px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.promotion-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px 56px 30px 30px; /* 右側留足，避免最後一字被裁 */
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.card-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #222;
}

.card-description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere; /* 提早換行，避免右側被裁 */
    max-width: 100%;
    box-sizing: border-box;
}

.card-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4af37, #f0e6d2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
}

.card-button:hover {
    background: linear-gradient(135deg, #c19b2e, #e0d6c0);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 尊享限時優惠 - 輪播樣式 */
.promotions-carousel-outer {
    max-width: 1200px;
    margin: 0 auto;
}

.promotions-carousel-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promotions-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.promotions-carousel-outer.has-carousel .promotions-wrapper {
    overflow: hidden;
}

.promotions-wrapper.has-carousel .promotions-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start !important; /* 左對齊，避免 center 導致只顯示中間兩張 */
    transition: transform 0.4s ease;
    gap: 24px; /* 卡片間距 */
    transform-origin: left center; /* 確保從左側開始位移 */
}

.promotions-wrapper.has-carousel .promotion-card {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: none;
}

.promotions-carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d4af37;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: none;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.promotions-carousel-nav:hover {
    background: #c19b2e;
    color: white;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* 箭頭圖標：白色、類似大於小於號樣式 ‹ › */
.promotions-carousel-nav .promotions-arrow {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    display: block;
    color: white;
}

.promotions-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.promotions-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.promotions-dot:hover,
.promotions-dot.active {
    background: #d4af37;
}

/* 無輪播時隱藏箭頭與圓點 */
.promotions-carousel-outer:not(.has-carousel) .promotions-carousel-nav,
.promotions-carousel-outer:not(.has-carousel) .promotions-dots {
    display: none;
}

/* 手機：尊享限時優惠改為上下堆疊，取消輪播 */
@media (max-width: 768px) {
    .promotions-section {
        padding: 40px 12px 50px;
        overflow: visible;
    }
    .promotions-carousel-outer {
        overflow: visible;
    }
    .promotions-carousel-outer .promotions-carousel-nav,
    .promotions-carousel-outer .promotions-dots {
        display: none !important;
    }
    .promotions-carousel-row {
        flex-direction: column;
        gap: 0;
    }
    .promotions-wrapper {
        overflow: visible !important;
        min-width: 0;
    }
    .promotions-wrapper.has-carousel .promotions-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        transform: none !important;
        gap: 20px;
        padding: 0;
    }
    .promotions-wrapper.has-carousel .promotion-card {
        flex: none !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .section-header p {
        font-size: 14px;
    }
    .card-title {
        font-size: 18px;
    }
    .card-content {
        padding: 16px 28px 16px 16px; /* 右側留足，避免最後一字被裁 */
    }
    .card-image {
        min-height: 260px;
        max-height: 420px;
        width: 100%;
    }
    .card-image img {
        max-height: 420px;
        margin: 0 auto;
    }
}
