/* CSS变量 - 参考good-style.html配色/* 全局样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

/* GitHub同步相关样式 */
.btn-github {
    background: linear-gradient(135deg, #24292e, #586069);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-github:hover {
    background: linear-gradient(135deg, #1b1f23, #444d56);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.github-setup-modal {
    max-width: 600px;
    width: 90vw;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #f6f8fa;
}

.step h4 {
    color: #24292e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    color: #586069;
    margin-bottom: 8px;
    line-height: 1.5;
}

.step code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e36209;
}

.step a {
    color: #0366d6;
    text-decoration: none;
}

.step a:hover {
    text-decoration: underline;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #24292e;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0366d6;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    border-left: 4px solid #28a745;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning i {
    color: #ffc107;
}

.notification-info i {
    color: #17a2b8;
}

.notification span {
    color: #333;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg,
        hsl(340, 60%, 97%) 0%,
        hsl(270, 40%, 95%) 50%,
        hsl(150, 40%, 95%) 100%);
    height: 100vh;
    overflow: hidden;
    display: flex;
    color: var(--dark-text);
    line-height: 1.6;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 20%, hsla(40, 85%, 70%, 0.3) 0%, transparent 35%),
        radial-gradient(circle at 20% 80%, hsla(342, 65%, 69%, 0.3) 0%, transparent 35%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .logo {
    font-family: 'Abril Fatface', serif;
    letter-spacing: 0.5px;
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    background: var(--white);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px var(--shadow);
}

/* 左侧项目管理栏的标题 */
.sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-size: 1.8rem;
    position: relative;
}

.sidebar-header h2::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(to right, var(--primary-pink), var(--secondary-lavender));
    margin-top: 10px;
}

/* 左侧项目管理栏的内容 */
.sidebar .sidebar-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.sidebar-content h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.recent-projects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-content {
    flex: 1;
    cursor: pointer;
}

.project-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-item:hover .project-actions {
    opacity: 1;
}

.project-action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.project-action-btn.edit-btn {
    color: #007bff;
}

.project-action-btn.edit-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #0056b3;
}

.project-action-btn.archive-btn {
    color: #f57c00;
}

.project-action-btn.archive-btn:hover {
    background: rgba(245, 124, 0, 0.1);
    color: #e65100;
}

.project-action-btn.delete-btn {
    color: #dc3545;
}

.project-action-btn.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.project-item:hover {
    background: var(--light-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
}

.project-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.project-item.active .project-name {
    color: #f87171;
}

.project-info {
    font-size: 0.85rem;
    color: #333;
}

.project-item.active .project-info {
    color: #f87171;
}

/* 项目折叠容器 */
.project-collapse-container {
    margin-top: 8px;
}

.project-toggle-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.project-toggle-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.project-toggle-btn i {
    margin-right: 8px;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.project-hidden-container {
    border-left: 2px solid #e9ecef;
    padding-left: 8px;
    margin-left: 8px;
}

/* 归档项目模块样式 */
.archive-section {
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.archive-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: #495057;
}

.archive-projects {
    max-height: 300px;
    overflow-y: auto;
}

.archive-category {
    margin-bottom: 15px;
}

.archive-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #495057;
}

.archive-category-header:hover {
    background: #e9ecef;
}

.archive-category-header i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.archive-category-projects {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #e9ecef;
}

.archive-project-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.archive-project-item:hover {
    background: #e9ecef;
}

.archive-project-content {
    flex: 1;
    cursor: pointer;
}

.archive-project-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.archive-project-info {
    font-size: 0.75rem;
    color: #6c757d;
}

.archive-project-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.archive-project-item:hover .archive-project-actions {
    opacity: 1;
}

/* 归档分类管理样式 */
.category-management {
    padding: 10px 0;
}

.add-category-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-category-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.category-list-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.archive-category-list {
    max-height: 200px;
    overflow-y: auto;
}

.archive-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 6px;
}

.archive-category-item-name {
    flex: 1;
    font-size: 0.9rem;
}

.archive-category-item-actions {
    display: flex;
    gap: 4px;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
}

.toolbar {
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toolbar-left span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

/* 画布容器 */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.canvas {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    cursor: grab;
}

.canvas:active {
    cursor: grabbing;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.button-primary {
    background-color: var(--primary-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(195, 128, 159, 0.4);
}

.button-primary:hover {
    background-color: #d06686;
    box-shadow: 0 6px 20px rgba(195, 128, 159, 0.6);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: white;
    color: var(--dark-text);
    box-shadow: 0 2px 10px var(--shadow);
}

.button-secondary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    min-width: 160px;
    z-index: 2000;
    display: none;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu .menu-item:hover {
    background-color: #f8f9fa;
    color: #d63384;
}

.menu-separator {
    height: 1px;
    background-color: #dee2e6;
    margin: 4px 0;
}

.context-menu-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

/* 资源管理侧边栏样式 */
.resource-sidebar {
    position: fixed;
    top: 0;
    right: -50vw;
    width: 50vw;
    min-width: 400px;
    max-width: 60vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.resource-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.resource-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.resource-sidebar .sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-close:hover {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.resource-sidebar.active {
    right: 0;
}

.sidebar-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.dragging {
    opacity: 1;
}


.selected-node-info {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-bottom: 1px solid #e9ecef;
}

.selected-node-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.selected-node-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 资源管理面板样式 */
.resource-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-layout {
    display: flex;
    height: 100%;
}

/* 左侧分类导航 */
.category-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.category-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.category-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
}

.btn-manage-categories {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-manage-categories:hover {
    background: #e9ecef;
    color: #495057;
}

.resource-categories {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.category-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.category-item:hover {
    background: #e9ecef;
}

.category-item.active {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white !important;
    border-left: 4px solid #e74c3c;
}

.category-item.active i {
    color: white !important;
}

.category-item i {
    margin-right: 8px;
    width: 16px;
}

/* 右侧资源内容 */
.resource-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

.resource-search {
    margin-bottom: 15px;
}

.resource-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.resource-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.resource-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    max-height: calc(100vh - 350px);
}

/* 代码片段样式 */
.code-resource {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    font-family: Monaco, Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
}

.code-resource::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.code-resource::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.code-resource::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* 自定义滚动条样式 */
.resource-list::-webkit-scrollbar,
.resource-categories::-webkit-scrollbar {
    width: 6px;
}

.resource-list::-webkit-scrollbar-track,
.resource-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.resource-list::-webkit-scrollbar-thumb,
.resource-categories::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.resource-list::-webkit-scrollbar-thumb:hover,
.resource-categories::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.empty-resources {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-resources i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-resources p {
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.btn-add-resource {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-resource:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resource-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.resource-info {
    flex: 1;
}

.resource-title {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.resource-type {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 500;
}

.resource-actions-small {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.resource-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.resource-btn.view {
    background: #28a745;
    color: white;
}

.resource-btn.edit {
    background: #ffc107;
    color: #212529;
}

.resource-btn.copy {
    background: #17a2b8;
    color: white;
}

.resource-btn.delete {
    background: #dc3545;
    color: white;
}

.resource-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.resource-actions {
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.resource-add-resource-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.resource-add-resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

/* 表单组样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.modal-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.modal input,
.modal textarea,
.modal select {
    color: #333 !important;
}

.modal label {
    color: #333 !important;
    font-weight: 500;
}

/* 分类管理样式 */
.category-management {
    padding: 10px 0;
}

.add-category-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.add-category-section .form-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-category-section input {
    flex: 1;
}

.category-list {
    max-height: 300px;
    overflow-y: auto;
}

.category-item-manage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.category-item-manage .category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-item-manage .category-actions {
    display: flex;
    gap: 5px;
}

.category-item-manage .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--off-white);
}

.modal-header h3 {
    color: var(--primary-pink);
    font-size: 1.5rem;
    position: relative;
}

.modal-header h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-pink), var(--secondary-lavender));
    margin-top: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
    }
    
    .toolbar {
        padding: 0 15px;
    }
    
    .toolbar-left span {
        font-size: 1rem;
    }
}
