/* --- 頁面專屬變數（基礎變數在 base.css） --- */
:root {
            --brand-orange: #FF6F00;
            --light-orange: #fff3e0;
            --text-dark: #111111;
            --border-color: #ffe0b2;
        }

        #index {
            background-color: #f5f5f5;
            color: var(--text-dark);
            min-height: 100vh;
        }

        #index .index-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        /* 固定 550px 寬度流式容器 */
        #index .page-container {
            width: 100%;
            max-width: 550px;
            background-color: #ffffff;
            border: 1px solid #e1e4e6;
            padding-bottom: 3rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }

        /* 1. Banner 區塊：背景圖鋪滿 */
        #index .hero-banner {
            position: relative;
            padding: 1.5rem 1.5rem 2rem;
            text-align: center;
            background: url('../images/banner-car.jpg') center/cover no-repeat;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            min-height: 400px;
        }

        #index .hero-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        #index .hero-right {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 20px;
        }

        #index .hero-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            transition: transform .5s cubic-bezier(.25,.46,.45,.94);
        }

        #index .hero-right:hover .hero-img {
            transform: scale(1.03);
        }

        #index .hero-content {
            position: relative;
            z-index: 2;
        }

        @keyframes heroMaskReveal {
            0% {
                clip-path: inset(100% 0 0 0);
            }
            100% {
                clip-path: inset(0 0 0 0);
            }
        }

        /* 打字機效果 */
        #index .hero-title {
            overflow: hidden;
            white-space: nowrap;
            border-right: 1.5px solid rgba(255,255,255,0.6);
            width: 0;
            animation: none;
        }

        #index .hero-title.typing {
            animation: typeCursor 0.8s ease-in-out infinite;
        }

        #index .hero-title.done {
            border-right-color: transparent;
            animation: none;
        }

        /* hero-subtitle 遮罩揭示 */
        #index .hero-subtitle {
            animation: subtitleMaskReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
            clip-path: inset(100% 0 0 0);
        }

        @keyframes subtitleMaskReveal {
            0% {
                clip-path: inset(100% 0 0 0);
            }
            100% {
                clip-path: inset(0 0 0 0);
            }
        }

        @keyframes typeCursor {
            0%, 100% { border-right-color: rgba(17,17,17,0.5); }
            50% { border-right-color: transparent; }
        }

        #index .hero-title {
            font-size: 3.2rem;
            font-weight: 900;
            color: #111;
            letter-spacing: 2px;
            margin-bottom: 0.4rem;
            text-shadow: none;
        }

        #index .hero-subtitle {
            font-size: 1.6rem;
            font-weight: 800;
            color: #fff;
            text-shadow: 0 1px 6px rgba(0,0,0,.35);
            opacity: 1;
            letter-spacing: 1px;
            margin-bottom: 1.2rem;
        }

        /* 浮動白色核心卡片 */
        #index .white-info-card {
            background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.5) 100%);
            border-radius: 16px;
            padding: 1rem 0.5rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            max-width: 100%;
            margin: 0 auto;
            animation: cardMaskReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
            clip-path: inset(100% 0 0 0);
        }

        @keyframes cardMaskReveal {
            0% {
                clip-path: inset(100% 0 0 0);
            }
            100% {
                clip-path: inset(0 0 0 0);
            }
        }

        #index .card-tag {
            font-size: 1.4rem;
            font-weight: 800;
            color: #222222;
            letter-spacing: 1px;
        }

        #index .card-main-prize {
            font-size: 2.4rem;
            font-weight: 900;
            color: #111111;
        }

        #index .card-main-prize span {
            color: var(--primary-orange);
            font-size: 3.2rem;
            font-style: italic;
        }

        #index .card-max-prize {
            font-size: 2rem;
            font-weight: 900;
            color: #111111;
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }

        #index .card-max-prize span {
            color: var(--primary-orange);
            font-size: 3.4rem;
            font-style: italic;
        }

        #index .card-service-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            text-align: left;
        }

        #index .service-avatar {
            width: 3.6rem;
            height: 3.6rem;
            background-color: #ff9800;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        #index .service-avatar svg {
            width: 2.2rem;
            height: 2.2rem;
            fill: #ffffff;
        }

        #index .service-info h4 {
            font-size: 1.15rem;
            font-weight: bold;
            color: #222222;
        }

        #index .service-info p {
            font-size: 1.35rem;
            font-weight: 800;
            color: #222222;
            margin-top: 0.1rem;
        }

        /* 雙色並排按鈕區 */
        #index .action-button-group {
            position: relative;
            z-index: 3;
            display: flex;
            padding: 1px ;
            background: #ffffff;
            border: 1px solid transparent;
            border-radius: 50px;
            margin: -2.2rem 2rem 0 2rem; 
            box-shadow: 0 6px 20px rgba(255,87,34,0.2);
            overflow: hidden;
        }

        #index .action-btn {
            flex: 1;
            padding: 1.1rem 0;
            font-size: 1.4rem;
            font-weight: bold;
            text-decoration: none;
            text-align: center;
            transition: all 0.2s;
        }

        #index .btn-orange-fill {
            color: #ffffff;
            border-radius: 46px;
            background: linear-gradient(to right,  rgb(240, 152, 25),  var(--primary-orange));
            /* background: linear-gradient(to right,  var(--primary-orange), var(--primary-orange)); */
            position: relative;
            overflow: hidden;
        }

        #index .btn-orange-fill::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.15) 40%,
                rgba(255, 255, 255, 0.4) 50%,
                rgba(255, 255, 255, 0.15) 60%,
                transparent 100%
            );
            transform: skewX(-20deg);
            animation: shine 3s ease-in-out infinite;
        }

        @keyframes shine {
            0%   { left: -100%; }
            60%  { left: 150%; }
            100% { left: 150%; }
        }

        #index .btn-white-outline {
            background: #ffffff;
            color: var(--primary-orange);
            border-top-right-radius: 46px;
            border-bottom-right-radius: 46px;
        }

        /* ==========================================
           3. 輪播區域核心修正
           ========================================== */
        #index .carousel-section {
            padding: 2.5rem 0 1.5rem 0;
            background-color: #fafafa;
        }

        #index .carousel-viewport {
            width: 100%;
            padding: 1rem 1.5rem;
            overflow: hidden;
        }

        #index .cards-container {
            display: flex;
            gap: 1.2rem; /* 卡片之間的間距 */
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
            touch-action: pan-y; /* 垂直捲動交給瀏覽器，水平保留給觸控滑動 */
        }

        /* 核心修改：每屏顯示兩個，選中的佔 50%-邊距，保證精準顯示 */
        #index .info-card {
            flex: 0 0 calc(50% - 0.6rem); /* 每屏完美呈現兩張卡片（寬度各為一半扣除間距） */
            background: #ffffff;
            border: 2px solid var(--border-color);
            border-radius: 16px;
            padding: 1rem 1.5rem;
            text-align: center;
            opacity: 0.35;
            transform: scale(0.95);
            transition: all 0.3s ease;
        }

        /* 只有當前選中的卡片（最左邊那張）會完全亮起激活 */
        #index .info-card.active {
            opacity: 1;
            transform: scale(1);
            border-color: var(--brand-orange);
            box-shadow: 0 8px 24px rgba(255,87,34,0.08);
        }

        #index .card-icon-wrap {
            width: 3.8rem;
            height: 3.8rem;
            background-color: #ff9800;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.2rem auto;
        }

        #index .card-icon-wrap svg {
            width: 2rem;
            height: 2rem;
            fill: #ffffff;
        }

        #index .card-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--text-dark);
            margin-bottom: 0.8rem;
        }

        #index .card-desc {
            font-size: 1.15rem;
            color: #222;
            line-height: 1.6;
            font-weight: 600;
        }

        #index .card-desc strong {
            color: var(--brand-orange);
            font-weight: 800;
        }

        /* 保留 5 個圓點指示器 */
        #index .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1.2rem;
        }

        #index .dot {
            width: 0.7rem;
            height: 0.7rem;
            background-color: #e0e0e0;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #index .dot.active {
            background-color: var(--brand-orange);
            width: 1.6rem;
            border-radius: 10px;
        }

        /* 4. 專屬訂單區 */
        #index .section-divider {
            text-align: center;
            margin: 2rem 0 1.2rem 0;
        }

        #index .section-tag {
            display: inline-block;
            color: var(--text-dark);
            font-size: 1.65rem;
            font-weight: bold;
            padding: 0.4rem 1.4rem;
            border-radius: 4px;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }

        #index .section-tag::after {
            content: '';
            position: absolute;
            left: 8%;
            right: 8%;
            bottom: 4px;
            height: 6px;
            background: #fbe4dd;
            border-radius: 3px;
            z-index: -1;
        }

        #index .sub-features {
            text-align: center;
            margin-bottom: 3rem;
        }

        #index .sub-features-text {
            display: inline-block;
            font-size: 1.35rem;
            font-weight: bold;
            color: var(--text-dark);
            position: relative;
            z-index: 1;
        }

        #index .sub-features-text::after {
            content: '';
            position: absolute;
            left: 5%;
            right: 5%;
            bottom: 4px;
            height: 6px;
            background: #fbe4dd;
            border-radius: 3px;
            z-index: -1;
        }

        /* 5. 三種接單模式自由切換區塊 */
        #index .mode-container {
            margin: 0 1.5rem;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem 1rem;
            background: #ffffff;
        }

        #index .mode-title-bar {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--brand-orange);
            margin-bottom: 1.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        #index .mode-title-bar svg {
            width: 1.2rem;
            height: 1.2rem;
            fill: var(--brand-orange);
        }

        #index .mode-grid {
            display: flex;
            justify-content: space-between;
            gap: 0.5rem;
        }

        #index .mode-item {
            flex: 1;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        #index .mode-item:not(:last-child)::after {
            content: "";
            position: absolute;
            right: -0.25rem;
            top: 15%;
            height: 70%;
            width: 1px;
            background-color: #eee;
        }

        #index .mode-icon {
            width: 2.8rem;
            height: 2.8rem;
            background-color: #fff8f5;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.8rem;
            border: 1px solid var(--border-color);
        }

        #index .mode-icon svg {
            width: 1.4rem;
            height: 1.4rem;
        }

        #index .mode-name {
            font-size: 1.15rem;
            font-weight: bold;
            color: var(--text-dark);
            margin-bottom: 0.4rem;
        }

        #index .mode-hint {
            font-size: 1rem;
            line-height: 1.3;
            font-weight: 600;
        }

/* ==========================================================================
   桌面端 ≥ 1024px — PC 專用佈局
   ========================================================================== */
@media (min-width: 1024px) {

    #index {
        background-color: #fff;
    }

    #index .index-wrapper {
        padding: 0;
        margin-top: 56px;
    }

    /* 容器全寬，hero 背景圖鋪滿 */
    #index .page-container {
        max-width: none;
        border: none;
        box-shadow: none;
        padding-bottom: 4rem;
        background: transparent;
    }

    /* ---- Hero Banner：背景圖鋪滿 ---- */
    #index .hero-banner {
        padding: 100px 64px 88px;
        border-radius: 0;
        max-width: none;
        margin: 0;
        box-shadow: none;
        flex-direction: column;
        align-items: center;
        gap: 48px;
        text-align: center;
        background: url('../images/banner-car.jpg') center/cover no-repeat;
        min-height: 500px;
    }

    #index .hero-left {
        max-width: 700px;
    }

    #index .hero-title {
        font-size: clamp(3.6rem, 6vw, 4.8rem);
        letter-spacing: 3px;
        margin-bottom: 0.6rem;
    }

    #index .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* 白色資訊卡片 */
    #index .white-info-card {
        max-width: 640px;
        padding: 1.8rem 2.2rem;
        border-radius: 20px;
    }

    #index .card-tag {
        font-size: 1.3rem;
    }

    #index .card-main-prize {
        font-size: 2.2rem;
    }

    #index .card-main-prize span {
        font-size: 3rem;
    }

    #index .card-max-prize {
        font-size: 1.8rem;
        padding-bottom: 0.8rem;
        margin-bottom: 1.2rem;
    }

    #index .card-max-prize span {
        font-size: 3rem;
    }

    #index .card-service-row {
        gap: 1.2rem;
    }

    #index .service-avatar {
        width: 3.2rem;
        height: 3.2rem;
    }

    #index .service-avatar svg {
        width: 1.8rem;
        height: 1.8rem;
    }

    #index .service-info h4 {
        font-size: 1.1rem;
    }

    #index .service-info p {
        font-size: 1.15rem;
    }

    /* ---- CTA 下載按鈕 ---- */
    #index .action-button-group {
        max-width: 520px;
        margin: 1.5rem auto 0 auto;
        border-radius: 50px;
        box-shadow: 0 8px 28px rgba(255,87,34,0.22);
    }

    #index .action-btn {
        padding: 1.2rem 0;
        font-size: 1.45rem;
    }

    /* ---- 輪播區域 → 桌面端改為固定 3x2 網格 ---- */
    #index .carousel-section {
        padding: 48px 0 32px;
        max-width: 1200px;
        margin: 0 auto;
    }

    #index .carousel-viewport {
        padding: 0 40px;
        overflow: visible;
    }

    #index .cards-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        transform: none !important;
    }

    #index .info-card {
        flex: unset;
        opacity: 1;
        transform: none;
        padding: 24px 20px;
        border-radius: 20px;
        border-width: 1px;
    }

    #index .info-card.active {
        box-shadow: 0 8px 24px rgba(255,87,34,0.08);
    }

    #index .card-icon-wrap {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
    }

    #index .card-icon-wrap svg {
        width: 2rem;
        height: 2rem;
    }

    #index .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    #index .card-desc {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    /* 桌面隱藏輪播圓點 */
    #index .carousel-dots {
        display: none;
    }

    /* ---- 專屬訂單區 ---- */
    #index .section-divider {
        margin: 48px 0 16px;
    }

    #index .section-tag {
        font-size: 1.8rem;
        padding: 0.5rem 2rem;
        letter-spacing: 2px;
    }

    #index .sub-features {
        margin-bottom: 40px;
    }

    #index .sub-features-text {
        font-size: 1.3rem;
    }

    /* ---- 三種接單模式 ---- */
    #index .mode-container {
        margin: 0 40px;
        padding: 32px 40px;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    #index .mode-title-bar {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }

    #index .mode-grid {
        gap: 24px;
    }

    #index .mode-item {
        padding: 16px 0;
    }

    #index .mode-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 12px;
    }

    #index .mode-icon svg {
        width: 1.8rem;
        height: 1.8rem;
    }

    #index .mode-name {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    #index .mode-hint {
        font-size: 1rem;
    }
}

