/* 后台发布动态页面样式 - 与前台保持一致 */

.slug-group {
    position: relative;
}

.slug-preview {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.3s;
}

.slug-preview:focus-within {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.slug-base,
.slug-suffix {
    padding: 12px 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    border: none;
}

.slug-base {
    border-right: 1px solid #e0e0e0;
}

.slug-suffix {
    border-left: 1px solid #e0e0e0;
}

#slug {
    flex: 1;
    border: none;
    padding: 12px 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.checkbox-group {
    margin: 20px 0;
}

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

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-secondary:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

/* Quill编辑器样式调整 */
.ql-editor {
    min-height: 150px;
    font-size: 14px;
    line-height: 1.6;
}

.ql-toolbar {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.ql-container {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slug-preview {
        flex-direction: column;
    }
    
    .slug-base,
    .slug-suffix {
        width: 100%;
        text-align: center;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .slug-suffix {
        border-bottom: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}