﻿

.vhis-quick-quote-plan-page {
    --vhis-quick-quote-primary: #005697;
    --vhis-quick-quote-primary-dark: #00487c;
    --vhis-quick-quote-primary-hover: #04AFFF; 
    --vhis-quick-quote-cyan: #04AFFF;
    --vhis-quick-quote-cyan-dark: #0095a4;
    --vhis-quick-quote-cyan-light: #04AFFF14;
    --vhis-quick-quote-tag-bg: #0095a429;
    --vhis-quick-quote-red: #e00842;
    --vhis-quick-quote-red-hover: #c9003d;
    --vhis-quick-quote-red-light: #ec6b8e;
    --vhis-quick-quote-text: #262626;
    --vhis-quick-quote-text-secondary: #475569;
    --vhis-quick-quote-text-muted: #475569;
    --vhis-quick-quote-border: #e6e8eb;
    --vhis-quick-quote-gold: #ac8950;
    --vhis-quick-quote-surface: #ffffff;
    --vhis-quick-quote-support-bg: #0056970A;
    --vhis-quick-quote-radius: 16px;
    --vhis-quick-quote-content-width: 1024px;
}

    .vhis-quick-quote-plan-page,
    .vhis-quick-quote-plan-page *,
    .vhis-quick-quote-plan-page *::before,
    .vhis-quick-quote-plan-page *::after {
        box-sizing: border-box;
    }

.vhis-quick-quote-plan-page {
    scroll-behavior: smooth;
    width: 100%;
    min-width: 320px;
    margin: 0;
    color: var(--vhis-quick-quote-text);
    -webkit-font-smoothing: antialiased;
}

.countdown-margin-bottom {
    margin-bottom: 24px;
}

.vhis-quick-quote-primary-button,
.vhis-quick-quote-outline-button,
.vhis-quick-quote-product-option {
    font: inherit;
    appearance: none;
    cursor: pointer;
}

/* =====================================================
           页面布局
           ===================================================== */

.vhis-quick-quote-plan-page__layout {
    display: grid;
    grid-template-columns: minmax(420px, 2fr) minmax(250px, 320px);
    align-items: start;
    gap: 35px;
    width: 100%;
    max-width: var(--vhis-quick-quote-content-width);
    margin: 0 auto;
}

/* =====================================================
           左侧产品卡片
           ===================================================== */

.vhis-quick-quote-plan-card {
    width: 100%;
    padding: 24px;
    background: var(--vhis-quick-quote-surface);
    border-radius: var(--vhis-quick-quote-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

    .vhis-quick-quote-plan-card.vhis-quick-quote-is-changing {
        animation: vhis-quick-quote-contentFade 220ms ease;
    }

@keyframes vhis-quick-quote-contentFade {
    from {
        opacity: 0.35;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题和标签 */

.vhis-quick-quote-plan-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.vhis-quick-quote-plan-title {
    margin: 0;
    color: var(--vhis-quick-quote-primary);
    font-weight: 700;
    font-size: 32px;
    line-height: 42px;
    vertical-align: middle;
}

.vhis-quick-quote-plan-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vhis-quick-quote-plan-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    color: var(--vhis-quick-quote-cyan-dark);
    background: var(--vhis-quick-quote-tag-bg);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    
    height: 28px;
    gap: 4px;
    opacity: 1;
    border-radius: 100px;
}

.vhis-quick-quote-plan-tag__icon {
    line-height: 1;
}

/* 金额 */

.vhis-quick-quote-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    align-items: baseline;
}

.vhis-quick-quote-price-wrapper {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.vhis-quick-quote-price {
    color: var(--vhis-quick-quote-primary);
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    vertical-align: middle;
}

.vhis-quick-quote-price__currency {
    margin-right: 2px;
    font-size: 42px;
}

.vhis-quick-quote-price__decimal {
    color: var(--vhis-quick-quote-primary);
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    vertical-align: bottom;
}
.vhis-quick-quote-price__month {
    color: var(--vhis-quick-quote-primary);
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    vertical-align: bottom;
}
.vhis-quick-quote-original-price {
    color: var(--vhis-quick-quote-red-light);
    white-space: nowrap;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    vertical-align: bottom;
    text-decoration: line-through;
}

.vhis-quick-quote-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    padding: 0 8px;
    color: #fff;
    background: var(--vhis-quick-quote-red);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

    .vhis-quick-quote-discount-tag span {
        font-weight: 700;
    }

/* 主按钮 */

.vhis-quick-quote-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 294px;
    max-width: 100%;
    min-height: 56px;
    margin-top: 16px;
    padding: 12px 24px;
    color: #ffffff;
    background: var(--vhis-quick-quote-red);
    border: 2px solid var(--vhis-quick-quote-red);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

    .vhis-quick-quote-primary-button:hover {
        background: var(--vhis-quick-quote-red-hover);
        border-color: var(--vhis-quick-quote-red-hover);
        transform: translateY(-1px);
    }

.vhis-quick-quote-primary-button__arrow {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* 产品卖点 */

.vhis-quick-quote-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.vhis-quick-quote-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #262626;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    
}

.vhis-quick-quote-check-icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* 奖项区域 */

.vhis-quick-quote-award-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 385px;
    max-width: 100%;
    height: 84px;
    margin-top: 24px;
    padding: 8px;
}

    .vhis-quick-quote-award-row[hidden] {
        display: none;
    }

.vhis-quick-quote-award-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    cursor: pointer;
}

    .vhis-quick-quote-award-logo img {
        display: block;
        max-width: 100%;
        height: auto;
    }

.vhis-quick-quote-award-divider {
    width: 1px;
    height: 68px;
    background: #D1D5DB;
}

.vhis-quick-quote-award-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    color: var(--vhis-quick-quote-text-secondary);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

    .vhis-quick-quote-award-content p {
        margin: 0;        
    }
.vhis-quick-quote-award-content-text1 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #005697;
}
.vhis-quick-quote-award-content-text2,
.vhis-quick-quote-award-content-text3 {
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    color: #AC8C53;
}

    /* 备注 */
    .vhis-quick-quote-notes {
        width: 100%;
        margin-top: 16px;
    }

    .vhis-quick-quote-notes summary {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--vhis-quick-quote-text-secondary);
        cursor: pointer;
        list-style: none;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        
        vertical-align: middle;
    }

        .vhis-quick-quote-notes summary::-webkit-details-marker {
            display: none;
        }

.vhis-quick-quote-notes__icon {
    flex: 0 0 auto;
    transition: transform 160ms ease;
    transform: rotate(180deg);
}

.vhis-quick-quote-notes:not([open]) .vhis-quick-quote-notes__icon {
    transform: rotate(0);
}

.vhis-quick-quote-notes__content {
    margin-top: 14px;
    color: var(--vhis-quick-quote-text-muted);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    
    vertical-align: middle;
}

    .vhis-quick-quote-notes__content p {
        margin: 0;
        padding-left: 12px;
        text-indent: -12px;
    }

        .vhis-quick-quote-notes__content p + p {
            margin-top: 3px;
        }

/* =====================================================
           右侧栏
           ===================================================== */

.vhis-quick-quote-plan-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vhis-quick-quote-product-switcher {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
}

.vhis-quick-quote-product-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 74px;
    padding: 16px 16px 16px 24px;
    color: var(--vhis-quick-quote-text-secondary);
    background: #FFFFFF;
    border: 0;
    border-left: 4px solid transparent;
    cursor: pointer;
    text-align: left;
    opacity: 1;
    border-radius: 8px;
    border-left-width: 4px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

/* .product-option + .product-option {
        margin-top: 4px;
      } */

.vhis-quick-quote-product-option__content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.vhis-quick-quote-product-option h2,
.vhis-quick-quote-product-option p {
    margin: 0;
}

.vhis-quick-quote-product-option h2 {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    color: inherit;
}

.vhis-quick-quote-product-option p {
    margin-top: 4px;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    
}

.vhis-quick-quote-product-option__arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: #cbd0d6;
    font-size: 25px;
    line-height: 1;
}

.vhis-quick-quote-product-option:hover {
    color: var(--vhis-quick-quote-primary);
    background: rgba(4, 175, 255, 0.05);
}

.vhis-quick-quote-product-option.vhis-quick-quote-is-active {
    min-height: 108px;
    color: var(--vhis-quick-quote-primary);
    background: var(--vhis-quick-quote-cyan-light);
    border-left-color: var(--vhis-quick-quote-cyan);
    border-radius: 0 8px 8px 0;
}
    .vhis-quick-quote-product-option.vhis-quick-quote-is-active h2{
        color: var(--vhis-quick-quote-primary);
    }
    .vhis-quick-quote-product-option.vhis-quick-quote-is-active
    .vhis-quick-quote-product-option__arrow {
        color: var(--vhis-quick-quote-cyan);
    }

/* =====================================================
           帮助区域
           ===================================================== */

.vhis-quick-quote-support-box {
    width: 100%;
    padding: 16px;
    background: var(--vhis-quick-quote-support-bg);
    border-radius: var(--vhis-quick-quote-radius);
}

    .vhis-quick-quote-support-box h2,
    .vhis-quick-quote-support-box p {
        margin: 0;
    }

    .vhis-quick-quote-support-box h2 {
        color: var(--vhis-quick-quote-text);
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        
    }

    .vhis-quick-quote-support-box p {
        margin-top: 12px;
        color: var(--vhis-quick-quote-text-secondary);
        font-weight: 400;
        font-size: 14px;
        line-height: 24px;
        
    }

.vhis-quick-quote-support-box__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
}

.vhis-quick-quote-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    color: var(--vhis-quick-quote-primary);
    background: #ffffff;
    border: 1.5px solid var(--vhis-quick-quote-cyan);
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    transition: color 160ms ease, background-color 160ms ease;
}

    .vhis-quick-quote-outline-button:hover {
        color: #ffffff;
        background: var(--vhis-quick-quote-primary-hover);
    }

    /* =====================================================
           Focus 状态
           ===================================================== */

    .vhis-quick-quote-product-option:focus-visible,
    .vhis-quick-quote-primary-button:focus-visible,
    .vhis-quick-quote-outline-button:focus-visible,
    .vhis-quick-quote-notes summary:focus-visible {
        outline: 3px solid rgba(4, 175, 255, 0.35);
        outline-offset: 3px;
    }

/* 减少动画设置 */

@media (prefers-reduced-motion: reduce) {
    .vhis-quick-quote-plan-page,
    .vhis-quick-quote-plan-page *,
    .vhis-quick-quote-plan-page *::before,
    .vhis-quick-quote-plan-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
           响应式
           ===================================================== */

@media (max-width: 1200px) {
    .vhis-quick-quote-plan-page {
        padding-right: 48px;
        padding-left: 48px;
    }
}
@media (max-width: 1199px) {
    .bx-quoteBox:has(.vhis-quick-quote-plan-page) {
        width: 100% !important;
    }
    .countdown-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .vhis-quick-quote-award-row{
        min-width:0;
    }
}

    @media (max-width: 768px) {
        #VHISQuickQuote {
            width: 100%;
            margin-top: 0px;
        }

        .vhis-quick-quote-plan-page {
            padding: 32px 24px;
        }

        .vhis-quick-quote-plan-page__layout {
            grid-template-columns: 1fr;
            gap: 32px;
            max-width: 669px;
        }

        .vhis-quick-quote-plan-sidebar {
            display: contents;
        }

        .vhis-quick-quote-product-switcher {
            display: flex;
            grid-row: 1;
            grid-column: 1;
            flex-direction: row;
            gap: 0;
            width: calc(100% + 38px);
            margin-left: -24px;
            margin-right: -24px;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

            .vhis-quick-quote-product-switcher::-webkit-scrollbar {
                display: none;
            }

        .vhis-quick-quote-plan-card,
        .vhis-quick-quote-plan-card.vhis-quick-quote-is-changing {
            grid-row: 2;
            grid-column: 1;
            min-height: auto;
            padding: 20px 16px;
            border-radius: 16px;
        }

        .vhis-quick-quote-support-box {
            grid-row: 3;
            grid-column: 1;
        }

        .vhis-quick-quote-product-option,
        .vhis-quick-quote-product-option.vhis-quick-quote-is-active {            
            min-width: 0;
            min-height: 0;
            padding: 16px 16px 8px 16px;
            color: var(--vhis-quick-quote-text-secondary);
            background: transparent;
            border: 0;
            border-bottom: 4px solid transparent;
            border-radius: 0;
            white-space: nowrap;
            flex: 0 0 auto;
            width: auto;
        }

            .vhis-quick-quote-product-option.vhis-quick-quote-is-active {
                color: var(--vhis-quick-quote-primary);
                background: transparent;
                border-bottom-color: #04afff;
            }

            .vhis-quick-quote-product-option p,
            .vhis-quick-quote-product-option__arrow {
                display: none;
            }

            .vhis-quick-quote-product-option h2 {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
                text-align: center;
            }
    }

    @media (max-width: 768px) {
        .vhis-quick-quote-plan-page {
            min-height: auto;
            padding: 0px;
            margin: 0px 16px;
        }

        .vhis-quick-quote-plan-title {
            font-size: 28px;
        }


        .vhis-quick-quote-price {
            font-size: 40px;
        }

        .vhis-quick-quote-price__currency {
            font-size: 48px;
        }

        .vhis-quick-quote-primary-button {
            width: 100%;
        }

        .vhis-quick-quote-award-row {
            min-width: auto;
            height: auto;
            gap: 12px;
        }

        .vhis-quick-quote-award-row {
            flex-direction: column;
        }

        .vhis-quick-quote-award-divider {
            display: none;
        }

        .vhis-quick-quote-award-content {
            align-items: center;
        }

        .vhis-quick-quote-support-box__actions {
            grid-template-columns: 1fr;
        }
    }


    .vhis-quick-quote-support-box__actions {
        grid-template-columns: 1fr;
    }


@media (max-width: 420px) {
    .vhis-quick-quote-award-row {
        flex-wrap: wrap;
    }

    .vhis-quick-quote-award-logo {
        flex-basis: 100%;
    }
}
