/* img_upload_admin.css：独立样式文件，直接放在imgupload目录下 */
.container { width: 1200px; margin: 20px auto; }
.category-item { border: 1px solid #eee; padding: 15px; margin: 10px 0; border-radius: 8px; }
.form-group { margin: 10px 0; }
label { display: inline-block; width: 150px; font-weight: bold; }
input, select, textarea { padding: 8px; width: 300px; }
button { padding: 10px 20px; background: #4285f4; color: white; border: none; border-radius: 4px; cursor: pointer; }
.success { color: green; }
.error { color: red; }
/* 原index.html中所有内联样式都复制到这里，保持完全一致 */
.img-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
}
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}
.sidebar {
    width: 220px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 20px 0;
    box-sizing: border-box;
    overflow-y: auto;
}
.sidebar h2 {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    padding: 6px 18px 6px 28px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 1em;
    color: #222;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    line-height: 1.4;
}
.category-list li.active {
    background: #e0eaff;
    font-weight: bold;
    color: #1976d2;
}
.category-list li:hover {
    background: #e9e9e9;
    color: #1976d2;
    padding-left: 18px;
    border-left: 2px solid #e0eaff;
    margin-left: 6px;
    margin-top: 0;
    margin-bottom: 0;
}