/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 22px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 20px;
}

.payment-title {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.02);
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

.payment-icon {
    width: 36px;
    height: 36px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-icon.wechat {
    color: #09bb07;
}

.payment-icon.lakala {
    color: #ff6b00;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
}

.payment-note {
    font-size: 13px;
    color: #888;
}

.form-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        max-width: 95%;
    }
}