/* 基础弹窗样式 */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notice-modal.show {
    opacity: 1;
    visibility: visible;
}

/* 手机端样式 */
@media (max-width: 800px) {
    .modal-container {
        width: 85%;
        max-width: 400px;
    }

    .modal-content {
        background-color: #f5f5f5;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .modal-text {
        padding: 20px 15px;
    }

    .modal-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 15px;
        text-align: center;
    }

    .modal-desc {
        font-size: 15px;
        color: #666;
        line-height: 1.6;
    }

    .divider {
        height: 1px;
        background-color: #e0e0e0;
        width: 100%;
    }

    .confirm-btn {
        width: 100%;
        padding: 12px 0;
        background-color: transparent;
        border: none;
        font-size: 16px;
        color: #007aff;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    /* 移除手机端点击时的背景色变化 */
    .confirm-btn:active {
        /* 已移除背景色设置，点击时无颜色变化 */
    }

    .confirm-btn:focus {
        outline: none;
        background-color: #e0e0e0;
    }
}

/* 电脑端样式 */
@media (min-width: 801px) {
    .modal-container {
        width: 50%;
        max-width: 600px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        transform: translateY(-20px);
        transition: transform 0.3s ease;
    }

    .notice-modal.show .modal-container {
        transform: translateY(0);
    }

    .modal-header {
        padding: 18px 20px;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }

    .modal-title {
        margin: 0;
        font-size: 20px;
        color: #333;
        font-weight: 600;
    }

    .modal-body {
        padding: 20px;
        line-height: 1.7;
    }

    .modal-desc {
        margin: 0;
        font-size: 16px;
        color: #555;
    }

    .modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #e9ecef;
        display: flex;
        justify-content: center;
    }

    .confirm-btn {
        width: 100%;
        padding: 12px 0;
        background-color: #4c97e7;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .confirm-btn:hover {
        background-color: #4282c7;
    }

    .confirm-btn:active {
        background-color: #4282c7;
    }

    /* 电脑端按钮焦点状态样式 */
    .confirm-btn:focus {
        outline: none;
        background-color: #4282c7; /* 焦点时颜色更深 */
        box-shadow: 0 0 0 3px rgba(38, 143, 255, 0.3); /* 焦点光晕效果 */
    }
}
