/**
 * 公共样式文件
 */

/* 错误提示样式 */
.custom-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.custom-error-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.custom-error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff5722;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.custom-error-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-error-actions {
    text-align: center;
}

.custom-error-btn {
    background: #ff5722;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-error-btn:hover {
    background: #e64a19;
}

/* 成功提示样式 */
.custom-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.custom-success-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.custom-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.custom-success-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-success-actions {
    text-align: center;
}

.custom-success-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-success-btn:hover {
    background: #388e3c;
}

/* 确认对话框样式 */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.custom-confirm-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.custom-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff9800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.custom-confirm-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-confirm-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-confirm-cancel {
    background: #f5f5f5;
    color: #666;
}

.custom-confirm-cancel:hover {
    background: #e0e0e0;
}

.custom-confirm-ok {
    background: #009688;
    color: #fff;
}

.custom-confirm-ok:hover {
    background: #007d6f;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 登录/注册弹出窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.modal-form {
    margin-top: 20px;
}

.modal-form-item {
    margin-bottom: 20px;
}

.modal-form-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.modal-form-item input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.modal-form-item input:focus {
    border-color: #009688;
    outline: none;
}

.modal-form-remember {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-form-remember input {
    width: auto;
    height: auto;
    margin-right: 5px;
}

.modal-form-remember label {
    margin: 0;
    cursor: pointer;
}

.modal-form-submit {
    width: 100%;
    height: 45px;
    background: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.modal-form-submit:hover {
    background: #007d6f;
}

.modal-form-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.modal-form-link a {
    color: #009688;
    text-decoration: none;
}

.modal-form-link a:hover {
    text-decoration: underline;
}

