.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 28px;
}

.header p {
    color: #7f8c8d;
    font-size: 16px;
}

.editor-wrapper {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    padding-top: 60px;
}

/* 标题区域 */
.title-section {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.title-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.edit-icon {
    color: #2ecc71;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.edit-icon:hover {
    transform: scale(1.1);
}

.title-input {
    width: 100%;
    border: none;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    outline: none;
    padding: 5px 0;
    background: transparent;
}

.title-input::placeholder {
    color: #aaa;
}

/* 工具栏 */
.toolbar {
    display: flex;
    padding: 12px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.tool-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.tool-btn.active {
    background-color: #e8f4ff;
    color: #3498db;
    border-color: #3498db;
}

.tool-btn.link-btn {
    width: auto;
    padding: 0 12px;
    font-size: 14px;
}

.tool-btn img-btn {
    color: #2ecc71;
}

/* 编辑器区域 */
.editor-area {
    padding: 25px;
    min-height: 300px;
    outline: none;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.editor-area:empty:before {
    content: attr(placeholder);
    color: #aaa;
}

.editor-area img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.editor-area blockquote {
    border-left: 4px solid #ddd;
    padding-left: 16px;
    margin: 10px 0;
    color: #666;
    font-style: italic;
}

.editor-area ul, .editor-area ol {
    padding-left: 30px;
    margin: 10px 0;
}

/* 底部状态栏 */
.status-bar {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    color: #666;
    font-size: 14px;
}

.char-count {
    font-weight: 600;
    color: #2c3e50;
}

.char-count.near-limit {
    color: #f39c12;
}

.char-count.over-limit {
    color: #e74c3c;
}

/* 图片上传相关样式 */
.image-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.upload-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #e74c3c;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #2ecc71;
    background-color: #f9fff9;
}

.upload-area i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.upload-area p {
    color: #666;
    margin-bottom: 10px;
}

.upload-area span {
    color: #999;
    font-size: 14px;
}

.image-preview {
    margin-top: 20px;
    display: none;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn.cancel {
    background-color: #f5f5f5;
    color: #666;
}

.action-btn.cancel:hover {
    background-color: #e9e9e9;
}

.action-btn.insert {
    background-color: #2ecc71;
    color: white;
}

.action-btn.insert:hover {
    background-color: #27ae60;
}

/* 功能说明 */
.instructions {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #2ecc71;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instructions ul {
    padding-left: 20px;
    color: #5a6c7d;
}

.instructions li {
    margin-bottom: 8px;
}

.instructions code {
    background-color: #eef1f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #2ecc71;
}

.container .btn-send{
    margin: 0 auto;
    padding: 12px 0px;
    border-radius: 10px;
    background: #0da76b;
    color: #ffffff;
    font-weight: bold;
    width: 200px;
    text-align: center;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toolbar {
        padding: 10px 15px;
    }
    
    .title-section, .editor-area, .status-bar {
        padding-left: 15px;
        padding-right: 15px;
    }
}