/* ============================================================
 * editor.css — 发帖编辑器、回复编辑器、表单元素
 * ============================================================ */

/* 回复编辑器 */
.forum-reply-editor {
    background: rgba(22, 20, 17, 0.98);
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    padding: 16px;
    margin-top: 16px;
}

.forum-reply-editor h4 {
    font-family: 'VT323', monospace;
    color: #e0c060;
    margin: 0 0 10px;
    font-size: 1rem;
}

.forum-reply-editor textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(20, 18, 14, 0.8);
    border: 1px solid rgba(224, 192, 96, 0.15);
    border-radius: 2px;
    padding: 10px;
    color: #d0c8b0;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.forum-reply-editor textarea:focus {
    border-color: #e0c060;
}

.forum-reply-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* 发帖编辑器 */
.forum-editor-wrap {
    background: rgba(22, 20, 17, 0.98);
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    padding: 24px;
}

.forum-editor-wrap h2 {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #e0c060;
    margin: 0 0 16px;
}

.forum-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* 表单元素 */
.forum-form-group {
    margin-bottom: 14px;
}

.forum-form-group label {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    color: #b8b0a0;
    margin-bottom: 4px;
}

.forum-input,
.forum-select,
.forum-textarea {
    width: 100%;
    background: rgba(20, 18, 14, 0.8);
    border: 1px solid rgba(224, 192, 96, 0.15);
    border-radius: 2px;
    padding: 8px 12px;
    color: #d0c8b0;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.forum-input:focus,
.forum-select:focus,
.forum-textarea:focus {
    border-color: #e0c060;
}

.forum-select option {
    background: #1e1914;
    color: #d0c8b0;
}

.forum-textarea {
    resize: vertical;
    min-height: 600px;
}

/* 发帖表单布局 */
.forum-new-meta-row {
    display: flex;
    gap: 16px;
}
@media (max-width: 600px) {
    .forum-new-meta-row { flex-direction: column; gap: 0; }
}

/* 封面图上传 */
.forum-cover-upload { margin-top: 4px; }
.forum-cover-preview {
    width: 100%;
    height: 120px;
    border: 1px dashed rgba(224, 192, 96, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: rgba(20, 18, 14, 0.5);
    transition: border-color 0.2s;
}
.forum-cover-preview:hover { border-color: rgba(224, 192, 96, 0.5); }
.forum-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.forum-cover-placeholder {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: rgba(184, 176, 160, 0.4);
}
