/* ============================================================
   服務項目頁專屬樣式（BEM 命名）
   ============================================================ */

/* ===== Hero ===== */
.hero--services {
    background: linear-gradient(135deg, var(--hero-dark) 30%, #1e3a8a);
    color: #fff;
    text-align: center;
}
.hero--services .hero__title {
    color: var(--hero-text-light);
    font-size: 38px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.hero--services .hero__title i {
    color: #60a5fa;
    margin-right: 10px;
}
.hero--services .hero__desc {
    color: #cbd5e1;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 服務項目主容器 ===== */
.service-list {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ===== 區塊標題列 ===== */
.service-list__header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.service-list__header h2 {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 700;
}
.service-list__header h2 i {
    color: var(--primary-blue);
    margin-right: 10px;
}
.service-list__header-link {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.service-list__header-link:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* ===== 案例跑馬燈 ===== */
.service-list__scroll {
    overflow: hidden;
    position: relative;
    padding: 8px 0 20px 0;
    margin-bottom: 10px;
}
.service-list__row {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== 案例卡片 ===== */
.service-list__card {
    flex: 0 0 280px;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-list__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}
.service-list__thumb {
    height: 200px;
    background: var(--bg-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--primary-blue);
    position: relative;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    flex-shrink: 0;
    overflow: hidden;
}
.service-list__thumb img {
    width: 100%;
    height: auto;
    display: block;
    align-self: flex-start;
    transition: transform 7s ease;
}
.service-list__card:hover .service-list__thumb img {
    transform: translateY(calc(-100% + 200px));
}
.service-list__card:hover .service-list__thumb {
    background: #dbeafe;
}
.service-list__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.service-list__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-list__body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.service-list__sub {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
}
.service-list__body p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.service-list__techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.service-list__techs span {
    background: var(--bg-light-blue);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}
.service-list__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    margin-top: 4px;
}
.service-list__client {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.service-list__client i {
    color: var(--btn-blue);
    margin-right: 4px;
}
.service-list__preview {
    background: transparent;
    border: 1.5px solid var(--btn-blue);
    color: var(--btn-blue);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.service-list__preview:hover {
    background: var(--btn-blue);
    color: #fff;
}
.service-list__preview i {
    font-size: 11px;
}

/* ===== 案例跑馬燈容器（獨立隔離，不影響方案區塊） ===== */
.service-list__scroll-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
/* ===== 方案卡片（直立式） ===== */
.service-list__plans {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-list__plan {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-list__plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.service-list__plan-header {
    background: var(--bg-light-blue);
    padding: 24px 24px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.service-list__plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}
.service-list__plan-sub {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.service-list__plan-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.service-list__plan-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.service-list__plan-section .service-list__plan-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-list__plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.service-list__plan-duration {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}
.service-list__plan-duration i {
    color: var(--btn-blue);
    font-size: 16px;
}
.service-list__plan-price .service-list__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.service-list__plan-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}
.service-list__plan-footer .service-list__btn {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
}

/* ===== 功能列表 ===== */
.service-list__features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-list__features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #475569;
}
.service-list__features li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--btn-blue);
    font-size: 10px;
    top: 1px;
}

/* ===== 價格 ===== */
.service-list__price {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-dark);
}
.service-list__price small {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-gray);
    margin-left: 2px;
}

/* ===== 按鈕 ===== */
.service-list__btn {
    display: inline-block;
    background: var(--btn-blue);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.service-list__btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.service-list__btn--outline {
    background: transparent;
    color: var(--btn-blue);
    border: 2px solid var(--btn-blue);
}
.service-list__btn--outline:hover {
    background: var(--btn-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ===== 額外服務 ===== */
.service-list__extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.service-list__extra {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    transition: 0.2s;
    text-align: center;
}
.service-list__extra:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.service-list__extra i {
    font-size: 32px;
    color: var(--primary-blue);
    background: var(--bg-light-blue);
    padding: 14px;
    border-radius: 50%;
    margin-bottom: 12px;
}
.service-list__extra h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.service-list__extra p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== 底部備註 ===== */
.service-list__footnote {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}
.service-list__footnote p {
    margin-bottom: 6px;
}
.service-list__footnote i {
    color: var(--btn-blue);
    margin-right: 6px;
}
.service-list__footnote a {
    color: var(--btn-blue);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 992px) {
    .hero--services .hero__title {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .hero--services {
        padding: 40px 16px 32px;
    }
    .hero--services .hero__title {
        font-size: 24px;
    }
    .service-list {
        padding: 24px 14px 40px;
        width: 100%;
        max-width: 100%;
    }
    .service-list__header h2 {
        font-size: 20px;
    }
    .service-list__card {
        width: calc(100vw - 28px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .service-list__row {
        gap: 0;
    }
    .service-list__scroll {
        width: 100%;
        overflow: hidden;
    }
    .service-list__scroll-wrap {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .service-list__scroll-wrap::-webkit-scrollbar {
        display: none;
    }
    .service-list__thumb {
        font-size: 34px;
    }
    .service-list__plans {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-list__plan-header {
        padding: 18px 18px 14px;
    }
    .service-list__plan-name {
        font-size: 19px;
    }
    .service-list__plan-price .service-list__price {
        font-size: 15px;
    }
    .service-list__plan-body {
        padding: 16px 18px;
        gap: 12px;
    }
    .service-list__plan-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .service-list__plan-footer {
        padding: 14px 18px;
    }
    .service-list__plan-footer .service-list__btn {
        font-size: 14px;
        padding: 8px 0;
    }
    .service-list__price {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .service-list__card {
        width: calc(100vw - 28px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .service-list__row {
        gap: 0;
    }
    .service-list__scroll-wrap {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .service-list__scroll-wrap::-webkit-scrollbar {
        display: none;
    }
    .service-list__thumb {
        font-size: 28px;
    }
    .service-list__body p {
        font-size: 12px;
    }
    .service-list__extras {
        grid-template-columns: 1fr 1fr;
        margin-top: 24px;
    }
    .service-list__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
