:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f72585;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.toggle-sidebar {
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    transition: transform var(--transition-speed);
}

.toggle-sidebar:hover {
    transform: scale(1.1);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    flex-grow: 1;
}

.logo a {
    color: white;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 左侧菜单 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: width var(--transition-speed);
    overflow: hidden;
    z-index: 900;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.menu-title {
    padding: 20px 20px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
}

.menu-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.menu-item.active {
    background-color: rgba(67, 97, 238, 0.2);
    border-left: 3px solid var(--primary-color);
}

.menu-item.active .menu-icon img {
    /* filter: brightness(0) saturate(100%) invert(32%) sepia(95%) saturate(1032%) hue-rotate(213deg) brightness(96%) contrast(93%); */
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-text {
    transition: opacity var(--transition-speed), width var(--transition-speed);
    font-weight: 500;
}

/* 右侧内容区 */
.content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    padding: 30px;
    flex-grow: 1;
    transition: margin-left var(--transition-speed);
}

.sidebar.collapsed ~ .content {
    margin-left: var(--sidebar-collapsed-width);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 15px;
    color: #495057;
}

.card strong {
    color: var(--dark-color);
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.status-badge a {
    color: white;
    text-decoration: none;
}

.status-badge:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* 代码块 */
.code-block {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #495057;
    overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .sidebar .menu-text {
        opacity: 0;
        width: 0;
    }
    
    .content {
        margin-left: var(--sidebar-collapsed-width);
    }
}