
.tag-item {
    transition: all 0.2s ease;
    font-weight: 340;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: 4px;
}

.tag-item:hover {
    font-weight: 600;
}

.tag-item.active {
    background: #000;
    color: #fff;
    font-weight: 500;
}

/*
 * 版心 max 1200px，在 A 区内居中后再左移；左移量 ≤ 居中后左侧空隙，避免窄屏压进侧栏。
 * 空隙 ≈ (100vw − 300 − 40 − 1200) / 2，与 article_detail 一致。
 */
.main-content.publish-page #publishEditorWrap.publish-form {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

.main-content.publish-page {
    max-width: none;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .main-content.publish-page {
        overflow-x: visible;
    }
    .main-content.publish-page #publishEditorWrap.publish-form {
        transform: translateX(calc(-1 * min(120px, max(0px, (100vw - 1540px) / 2))));
    }
}

@media (max-width: 991.98px) {
    .main-content.publish-page #publishEditorWrap.publish-form {
        transform: none;
        max-width: 100%;
    }
}

/* 预览区在版心内随父级对齐，不再单独拉满屏宽 */
#previewPanel.publish-preview-shell {
    width: 100%;
    max-width: 100%;
}

.form-label {
    font-weight: 340;
    margin-bottom: 8px;
}

.form-control {
    font-weight: 340;
    padding: 10px 12px;
    border-radius: 6px;
}

.img-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.img-option {
    width: 192px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.img-option.active {
    border-color: #000;
    transform: scale(1.03);
}
.img-option:hover {
    transform: scale(1.5);
    border-color: #fff;
}

/* 发布页操作反馈：放在版心内顶栏下，随主列排版；勿用视口 fixed 右下角（与侧栏/版心错位、易挡移动端底栏） */
.publish-feedback:empty {
    display: none;
}
.publish-feedback {
    width: 100%;
    min-height: 0;
}
.publish-feedback:not(:empty) {
    display: block;
    margin-bottom: 12px;
}
.publish-feedback-msg {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--ui-radius-md, 10px);
    box-shadow: var(--ui-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.06));
    font-size: 0.9375rem;
    line-height: 1.45;
    border: 1px solid var(--ui-border, #e5e7eb);
}
.publish-feedback-msg.is-success {
    background: #fafafa;
    color: var(--ui-text, #111);
    border-color: var(--ui-border, #e5e7eb);
}
.publish-feedback-msg.is-warning {
    background: #fafafa;
    color: var(--ui-text, #111);
    border-color: var(--ui-border, #e5e7eb);
}
.publish-feedback-msg.is-error {
    background: #fafafa;
    color: var(--ui-text, #111);
    border-color: var(--ui-border, #e5e7eb);
}
