/* 平台协议弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #e8e8e8;
    color: #333;
}

.modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-body h3 {
    font-size: 16px;
    color: #333;
    margin: 16px 0 8px;
    font-weight: 500;
}

.modal-body h2 {
    font-size: 17px;
    color: #333;
    margin: 20px 0 10px;
    font-weight: 500;
}

.modal-body p {
    margin-bottom: 12px;
    text-align: justify;
}

.agreement-confirm-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-confirm {
    padding: 12px 40px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-confirm:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-confirm:not(:disabled):hover {
    opacity: 0.9;
}