﻿/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p, li, a, h2, h3 {
    overflow-wrap: break-word;
    word-break: break-word;
}
/* ── Variables ── */
:root {
    --orange: #FF6400;
    --cyan: #00EFFF;
    --purple: #9B5DE5;
    --bg: #0A0A0A;
    --bg2: #111118;
    --text: #CCCCCC;
    --white: #FFFFFF;
    --gold: #E8C840;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    background-image: url('../images/adp/bg01.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

.section-bg {
    position: relative;
}

    .section-bg > .section,
    .section-bg > .period-inner,
    .section-bg > .steps-inner {
        position: relative;
        z-index: 1;
    }

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    background: transparent;
    text-align: center;
}

.hero-logo {
    position: relative;
    width: 100%;
}

    .hero-logo img,
    .hero-logo picture {
        width: 100%;
        height: auto;
        display: block;
    }

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
}

.hero-subtitle {
    display: none;
}

/* ── Divider ── */
.divider {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

    .divider img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

/* ── Section ── */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 40px;
}

.section-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 28px;
    letter-spacing: .04em;
}
/* 桌機版靠左對齊的標題（手機版會被 RWD 覆蓋為置中） */
.section-title-left {
    text-align: left;
}

/* ── Intro Text ── */
/* 左右 padding 移除，讓文字與下方清單、註解對齊同一條左邊線 */
.intro {
    padding: 40px 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

    .intro p {
        font-size: 1.05rem;
    }

/* ── Coverage ── */
.coverage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.coverage-list {
    flex: 1 1 260px;
}
    /* 編號與內文對齊左邊線 */
    .coverage-list ol {
        padding-left: 0;
        list-style-position: inside;
        color: var(--white);
    }

        .coverage-list ol li {
            font-size: 1.15rem;
            margin-bottom: 14px;
            line-height: 1.6;
        }

.coverage-icons {
    flex: 1 1 260px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.coverage-icon-item {
    text-align: center;
    width: 150px;
}
    /* 桌機版：icon 放大 */
    .coverage-icon-item img {
        width: 130px;
        height: 130px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
    /* 桌機版：隱藏 icon 下方文字（與左側清單重複） */
    .coverage-icon-item p {
        display: none;
        font-size: .72rem;
        color: var(--text);
        line-height: 1.3;
    }

.icon-box {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(0,239,255,.3);
    background: rgba(0,239,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 2rem;
}

.coverage-note {
    font-size: 1rem;
    margin-top: 20px;
    color: #888;
    font-style: italic;
}

/* ── Protection Period ── */
.period-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center; /* 原本是 flex-start，改成 center 讓左右垂直置中 */
}

.period-content {
    flex: 1 1 320px;
}

    .period-content ul {
        list-style: none;
        padding: 0;
    }

        .period-content ul li {
            padding: 6px 0 6px 20px;
            position: relative;
            color: var(--white);
            font-size: .93rem;
            line-height: 1.6;
        }

            .period-content ul li::before {
                content: '▪';
                color: var(--purple);
                position: absolute;
                left: 0;
            }

.period-stats {
    flex: 1 1 180px;
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-num-img {
    height: 80px;
    width: auto;
    margin: 0 auto;
}

.stat-label {
    font-size: .72rem;
    color: var(--text);
    line-height: 1.3;
    margin-top: 4px;
}

.period-badge {
    flex: 1 1 320px;
    text-align: center;
}

    .period-badge img {
        width: 340px;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

/* ── Steps ── */
.steps-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.steps-image {
    flex: 0 0 260px;
    max-width: 260px;
}

    .steps-image img {
        width: 100%;
        border-radius: 4px;
    }

.steps-list {
    flex: 1 1 260px;
}

.step-item {
    margin-bottom: 24px;
}

    .step-item h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 6px;
    }

    .step-item p {
        font-size: .88rem;
        color: var(--text);
        line-height: 1.6;
    }

/* ── Not Covered ── */
.not-covered-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.not-covered-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

    .not-covered-item img {
        flex: 0 0 auto;
    }

.not-covered-box {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.not-covered-item p {
    font-size: .78rem;
    color: var(--text);
    line-height: 1.4;
}

/* ── Products ── */
.products-section {
    text-align: center;
}

.products-subtitle {
    color: var(--text);
    font-size: .93rem;
    margin-bottom: 32px;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
}

.product-card {
    flex: 1 1 200px;
    max-width: 240px;
    background: var(--bg2);
    border: 1px solid #222;
    padding: 20px;
    text-align: center;
}

    .product-card img {
        width: 100%;
        margin-bottom: 8px;
    }

.cta-btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: none;
    padding: 0;
    clip-path: none;
    transition: opacity .2s;
}

    .cta-btn:hover {
        opacity: .85;
    }

.cta-btn-group {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn img {
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto;
}

.products-single {
    text-align: center;
    margin-bottom: 36px;
}

    .products-single img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

/* ── Disclaimer ── */
.disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 48px;
    font-size: .75rem;
    color: #555;
    line-height: 1.7;
}

    .disclaimer p + p {
        margin-top: 6px;
    }

.disclaimer-title {
    text-align: center;
    color: var(--cyan);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

/* ── RWD ── */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: .9rem;
    }

    .period-inner {
        flex-direction: column;
        gap: 12px;
    }

    .period-content {
        flex: 0 0 auto;
    }

        .period-content ul {
            margin-bottom: 0;
        }

    .period-badge {
        flex: 1 1 100%;
    }

    .steps-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .steps-inner {
        flex-direction: column;
    }

    .stat-num {
        font-size: 2.6rem;
    }

    .period-badge .badge-circle {
        width: 90px;
        height: 90px;
        font-size: 1.8rem;
    }

    .coverage-grid {
        flex-direction: column;
        align-items: stretch;
    }
    /* banner 漸層淡出縮短,避免整張 banner 都被陰影蓋住 */
    .hero::after {
        height: 40px;
    }

    /* 所有標題在手機一律置中 */
    .section-title {
        text-align: center !important;
    }

    /* 手機版：隱藏編號清單（與 icon 旁文字重複） */
    .coverage-list {
        display: none;
    }

    /* 保障範圍圖示改為「圖左文右」直式排列 */
    .coverage-icons {
        /* 直向排列時 flex-basis 會變成「高度」，必須取消，否則高度被鎖在 260px */
        flex: 0 0 auto;
        flex-direction: column;
        /* 關鍵：直向排列時若允許換行，超出高度的項目會被擠到右邊變成第二欄 */
        flex-wrap: nowrap;
        gap: 18px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .coverage-icon-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

        .coverage-icon-item img {
            flex: 0 0 76px;
            width: 76px;
            height: 76px;
            margin: 0;
        }
        /* 手機版：顯示 icon 旁文字，字色改純白、字級對齊下方段落 */
        .coverage-icon-item p {
            display: block;
            color: var(--white);
            font-size: .93rem;
            line-height: 1.6;
        }

    .coverage-note {
        font-size: .85rem;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    /* 左右留白加大,避開背景圖兩側的梯型裝飾 */
    .section,
    .period-inner,
    .steps-inner,
    .disclaimer {
        padding-left: 38px;
        padding-right: 38px;
    }

    .section, .period-inner, .steps-inner {
        padding-top: 36px;
        padding-bottom: 36px;
    }
    /* intro 位於 section 內,左右不再重複加 padding */
    .intro {
        padding: 24px 0 16px;
    }

    .disclaimer {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 1.05rem;
    }

    /* 不保固項目改單欄 */
    .not-covered-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .not-covered-item {
        text-align: left;
        gap: 14px;
    }

        .not-covered-item img {
            flex: 0 0 68px;
            width: 68px;
        }

        .not-covered-item p {
            font-size: .82rem;
        }

    .product-card {
        flex: 1 1 140px;
    }

    .cta-btn img {
        width: 160px;
    }

    .period-stats {
        justify-content: center;
        gap: 32px;
        margin-top: 20px;
    }
    /* 保證徽章圖片置中 */
    .period-badge {
        flex: 1 1 100%;
        width: 100%;
        text-align: center;
    }

        .period-badge img {
            width: 260px;
            max-width: 85%;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }


    .step-item p {
        font-size: .84rem;
    }
}
