﻿/* 整體頁面背景改為純白 */
.sp-page {
    background: #ffffff;
    min-height: 100vh;
    padding: 80px 0 80px;
    color: #333;
}

/* 頂部標題：加大字距與設定金黃色 */
.sp-heading {
    margin-bottom: 2rem;
}

    .sp-heading h1 {
        color: #e49f28;
        letter-spacing: 0.8em;
        font-size: 2rem;
        font-weight: bold;
        margin-left: 0.4em; /* 平衡 letter-spacing 造成的視覺偏移 */
    }

/* 篩選按鈕 */
.sp-filter-btn {
    border-color: #ccc;
    color: #555;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
}

.sp-subtitle {
    color: #b8842a;
    font-weight: 600;
}

/* 列表容器 */
.sp-list-section {
    display: flex;
    flex-direction: column;
}

/* 單筆卡片改為無框線，僅留底部灰線分隔 */
.sp-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
}

    .sp-card:last-of-type {
        border-bottom: none; /* 最後一個不顯示底線 */
    }

/* 圖片區塊：圖片圓角及預設灰色背景(若無圖片時顯示) */
.sp-card-media {
    width: 100%;
    height: 220px;
    background-color: #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

    .sp-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 內容區塊排版 */
.sp-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 標籤：黃色小字 */
.sp-tag {
    color: #e49f28;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* 黃色短分隔線 */
.sp-divider {
    width: 35px;
    height: 2px;
    background-color: #e49f28;
    margin-bottom: 1.2rem;
}

/* 列表設定：移除預設樣式 */
.sp-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex-grow: 1; /* 將下方按鈕推到底部 */
}

.sp-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}

.sp-label {
    color: #666;
}

/* 卡片標題：寬字距 */
.sp-card h2 {
    letter-spacing: 0.25em;
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}

.sp-card ul,
.sp-plan-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .sp-card li,
    .sp-plan-list li {
        margin-bottom: .4rem;
        line-height: 1.7;
    }

/* 價格特殊標紅 */
.sp-price {
    color: #d4380d;
    font-weight: bold;
}

/* 按鈕區塊：靠右對齊 */
.sp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

    .sp-actions .btn {
        border-radius: 999px;
        min-width: 130px;
    }

/* 客製化橘色按鈕 */
.btn-custom-orange {
    background-color: #e47e25;
    color: #fff;
    border: none;
    border-radius: 6px; /* 圖片中為圓角矩形而非膠囊狀 */
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

    .btn-custom-orange:hover {
        background-color: #c96b1a;
        color: #fff;
    }

.sp-intro,
.sp-plan-card,
.sp-reminder,
.sp-terms {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    margin-top: 1.5rem;
    padding: 1.5rem;
}

    .sp-intro p {
        margin-bottom: .85rem;
        line-height: 1.9;
    }

.sp-detail-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.sp-terms h3,
.sp-reminder h3 {
    font-size: 1.5rem;
    letter-spacing: .15em;
    margin-bottom: 1rem;
}

.sp-term-grid,
.sp-reminder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

    .sp-term-grid article,
    .sp-reminder-grid article {
        background: #f8f8f8;
        border: 1px solid #ebebeb;
        border-radius: 8px;
        padding: 1rem;
    }

    .sp-term-grid h4,
    .sp-reminder-grid h4 {
        font-size: 1.05rem;
        margin-bottom: .6rem;
        color: #2d2d2f;
    }

    .sp-term-grid ul,
    .sp-reminder-grid ul {
        margin-bottom: 0;
        padding-left: 1.2rem;
    }

    .sp-term-grid li,
    .sp-reminder-grid li {
        margin-bottom: .4rem;
        line-height: 1.6;
    }

.sp-note {
    font-size: .95rem;
    color: #676767;
}

/* 分頁置右對齊 */
.sp-pagination {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
}

/* RWD 響應式設定：手機/平板版本 */
@media (max-width: 991.98px) {
    .sp-card {
        grid-template-columns: 1fr; /* 改為上下堆疊 */
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .sp-card-media {
        height: auto;
        aspect-ratio: 16 / 9; /* 維持圖片比例 */
    }

    .sp-heading h1 {
        letter-spacing: 0.4em;
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .sp-card h2 {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .sp-actions {
        justify-content: flex-start; /* 手機版按鈕靠左 */
    }
}
