/* 全局通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
    width: 900px;
    margin: 30px auto;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 2px solid #007bff;
}
.header h1 {
    color: #007bff;
    font-weight: 600;
}

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #0056b3;
}
.btn-back {
    background-color: #6c757d;
}
.btn-back:hover {
    background-color: #5a6268;
}

/* 表单相关（添加/编辑页） */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
}
.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.btn-group {
    text-align: center;
    margin-top: 30px;
}

/* 富文本编辑器 */
#richEditor, #editor {
    width: 100%;
    min-height: 240px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.8;
    background: #fff;
    outline: none;
}
/* 源码编辑框 */
#codeEditor {
    width: 100%;
    min-height: 240px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.8;
    display: none;
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.toolbar button {
    padding: 5px 10px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}
.toolbar button:hover {
    background: #e9ecef;
}

/* 日志列表页专用样式 */
.log-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
}
.log-list h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.item {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item:last-child {
    border-bottom: none;
}
.item .log-title {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}
.item .log-title:hover {
    text-decoration: underline;
}
.item .log-date {
    font-size:13px;
    color:#888;
    margin-right:15px;
}
.item .operate a {
    margin: 0 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}
.item .operate a:hover {
    color: #007bff;
}
.item .operate .del-btn:hover {
    color: #dc3545;
}
.no-log {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 15px;
}

/* 错误提示 */
.error{
    color:red;
    text-align:center;
    font-size:16px;
    margin-bottom:20px;
}