/* 通知弹窗样式 */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.notification-modal.show {
    display: flex;
}

.notification-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(229, 57, 53, 0.2);
    position: relative;
}

.notification-header {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-body {
    padding: 30px;
    max-height: 50vh;
    overflow-y: auto;
}

.notification-content {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.notification-content h1,
.notification-content h2,
.notification-content h3,
.notification-content h4,
.notification-content h5,
.notification-content h6 {
    color: #e53935;
    margin-top: 0;
    margin-bottom: 15px;
}

.notification-content h1 {
    font-size: 28px;
}

.notification-content h2 {
    font-size: 24px;
}

.notification-content h3 {
    font-size: 20px;
}

.notification-content p {
    margin-bottom: 15px;
}

.notification-content ul,
.notification-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.notification-content li {
    margin-bottom: 5px;
}

.notification-content code {
    background: rgba(229, 57, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e53935;
}

.notification-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.notification-content blockquote {
    border-left: 4px solid #e53935;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.notification-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f5f5f5;
    color: #333;
}

.notification-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.notification-btn-primary {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
}

.notification-btn-primary:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
}

/* 通知编辑弹窗样式 */
.notification-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

.notification-edit-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.notification-edit-header {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-edit-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.notification-edit-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.notification-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
}

.notification-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.notification-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: white;
}

.notification-textarea:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.notification-edit-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-modal-content,
    .notification-edit-modal-content {
        width: 95%;
    }
    
    .notification-header,
    .notification-edit-header {
        padding: 15px;
    }
    
    .notification-title,
    .notification-edit-header h3 {
        font-size: 18px;
    }
    
    .notification-body,
    .notification-edit-body {
        padding: 20px;
    }
    
    .notification-footer,
    .notification-edit-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .notification-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .notification-textarea {
        min-height: 150px;
    }
}

/* Markdown帮助区域样式 */
.markdown-help {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.markdown-help-toggle {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s ease;
    user-select: none;
}

.markdown-help-toggle:hover {
    background: #eeeeee;
}

.help-icon {
    font-size: 16px;
}

.help-text {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.help-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.markdown-help-content {
    padding: 15px;
    background: white;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
}

.help-section {
    margin-bottom: 15px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
}

.help-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    gap: 8px;
}

.help-item:last-child {
    margin-bottom: 0;
}

.help-item code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d63384;
    border: 1px solid #e0e0e0;
    white-space: pre-line;
    min-width: 120px;
    text-align: left;
}

.help-item strong,
.help-item em {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .markdown-help-toggle {
        padding: 10px 12px;
    }
    
    .markdown-help-content {
        padding: 12px;
    }
    
    .help-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .help-item code {
        min-width: auto;
        width: 100%;
    }
}