/* 通用弹窗样式 - 全局复用 */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: inherit;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.modal-title {
    color: #ff8c00;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #ff8c00;
}

/* 弹窗按钮组 */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: background 0.2s ease;
}

.modal-btn-primary {
    background: #ff8c00;
    color: white;
}

.modal-btn-primary:hover {
    background: #e07b00;
}

.modal-btn-cancel {
    background: #333;
    color: #ccc;
}

.modal-btn-cancel:hover {
    background: #444;
}

/* 响应式适配 */
@media (max-width: 767px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-btn {
        width: 100%;
        padding: 0.7rem 0;
    }
}