body {
    background: #fff;
}
top-bar{
    z-index: -1;
}
.list-container {
    margin-top: 0px;
    padding: 0 35px; /* Apply consistent horizontal padding here */
}
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    overflow-y: auto;
    max-height: 90vh;
}
.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #777;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* 顶部管理按钮样式 */
.btn-blacklist,
.btn-favorite {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-blacklist i,
.btn-favorite i {
    font-size: 14px;
}

.btn-blacklist:hover,
.btn-blacklist.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}

.main-content {
    padding: 40px 40px 0 40px;
    min-height: 100vh;
    background: #fff;
}

.card-body{
    padding: 20px;
    box-sizing: border-box;
}

.blog-form {
    width: 100%;
    min-width: 1200px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
    font-size: 15px;
    margin-left: 2px;
}

.blog-form input[type="text"],
.blog-form textarea,
.blog-form select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
    resize: none;
}

.blog-form input[type="text"]:focus,
.blog-form textarea:focus,
.blog-form select:focus {
    border: 1px solid #409eff;
    background: #fff;
}

.blog-form textarea {
    min-height: 80px;
    max-height: 200px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.half-width {
    flex: 1;
}

.cover-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.upload-btn {
    width: 120px;
    padding: 0 12px;
    height: 35px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #409eff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    margin-left: 4px;
}
.upload-btn:hover {
    background: #ecf5ff;
    border: 1.5px solid #409eff;
}

.blog-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 16px;
    padding-right: 40px;
}

#editor-wrapper {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding: 20px 8px 0 8px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .blog-form {
        max-width: 100%;
    }
}
