.installment-plan {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 1200px;
    margin-top: 8px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.installment-plan.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

.installment-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.installment-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.installment-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.installment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.installment-option {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.installment-option:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 12px rgba(255, 153, 0, 0.1);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.option-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.option-badge {
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.option-details {
    margin-top: 12px;
}

.monthly-payment {
    font-size: 20px;
    font-weight: 600;
    color: #ff9900;
}

.payment-details {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.term-selector {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.term-button {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-button.active {
    background: #ff9900;
    color: #fff;
    border-color: #ff9900;
}

.learn-more {
    margin-top: 16px;
    text-align: center;
}

.learn-more-link {
    color: #0066c0;
    text-decoration: none;
    font-size: 14px;
}

.learn-more-link:hover {
    text-decoration: underline;
}

.installment-trigger {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: Gilroy, Gilroy;
    position: relative;
}

.trigger-link {
    color: #0066c0;
    text-decoration: none;
    cursor: pointer;
}

.trigger-link:hover {
    text-decoration: underline;
    color: #c45500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .installment-trigger {
        font-size: 13px;
    }

    .installment-plan {
        padding: 12px;
        max-width: 100%;
    }

    .installment-title {
        font-size: 16px;
    }

    .installment-options {
        grid-template-columns: 1fr;
    }

    .monthly-payment {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .installment-trigger {
        font-size: 12px;
    }

    .installment-plan {
        padding: 8px;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .term-selector {
        flex-wrap: wrap;
    }
}

.installment-modal {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    max-width: 95vw;
    background: rgba(0,0,0,0);
    z-index: 2000;
    display: block;
    align-items: flex-start;
    justify-content: flex-start;
    transition: opacity 0.3s;
    margin-top: 8px;
}
.installment-modal.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}
.installment-modal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    width: 100%;
    padding: 0 0 16px 0;
    position: relative;
    font-family: inherit;
}
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 18px 0 18px;
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}
.modal-close {
    background: #f4f4f4;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover {
    background: #e3e6e8;
}
.modal-desc {
    font-size: 13px;
    color: #444;
    padding: 8px 18px 0 18px;
}
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e3e6e8;
    margin: 16px 0 0 0;
    padding: 0 18px;
}
.modal-tab {
    font-size: 15px;
    font-weight: 600;
    color: #007185;
    padding: 0 0 8px 0;
    margin-right: 24px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.modal-tab.active {
    border-bottom: 2px solid #007185;
    color: #007185;
}
.modal-table-wrapper {
    padding: 0 12px;
    margin-top: 10px;
}
.modal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.modal-table th, .modal-table td {
    padding: 10px 8px 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e3e6e8;
}
.modal-table th {
    background: #f7f9fa;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.modal-table tr:last-child td {
    border-bottom: none;
}
.modal-table-sub {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
@media (max-width: 1024px) {
    .installment-modal {
        width: 95vw;
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
    }
}
@media (max-width: 600px) {
    .installment-modal {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 98vw !important;
        max-width: 98vw !important;
        min-width: 0 !important;
        margin-top: 0 !important;
        z-index: 2000;
        box-sizing: border-box;
    }
    .installment-modal-card {
        max-width: 98vw;
        width: 100%;
        padding: 0 0 10px 0;
        box-sizing: border-box;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-header, .modal-desc, .modal-tabs, .modal-table-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 1024px) and (min-width: 601px) {
    .installment-modal {
        width: 95vw;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
}