/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border-right: 1px solid #edf2f7;
}

.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: white;
}

.sidebar-header img {
    width: 32px;
    height: 32px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-section {
    margin-bottom: 18px;
}

.nav-section-title {
    padding: 0 20px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    padding: 0;
    margin: 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.nav-item a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item a.active {
    background-color: #ebf8ff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.nav-item a.coming-soon {
    color: #94a3b8;
    cursor: default;
}

.nav-item a.coming-soon:hover {
    background-color: #f1f5f9;
    border-left-color: #cbd5e1;
    color: #94a3b8;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 1001;
        background: white;
        border: none;
        padding: 8px 10px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background-color: #f1f5f9;
    }

    .menu-toggle i {
        font-size: 1.2rem;
        color: var(--primary-color);
    }
}

/* 主内容区域调整 */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    background-color: #f1f5f9;
    min-height: 100vh;
}

/* 为header添加卡片式样式 */
.main-content header {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    position: relative;
    border-bottom: none;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 50px;
    }
} 