.sidebar {
    height: 100vh;
    background-color: #1a1a2e;
    color: white;
    padding-top: 20px;
    position: fixed;
    z-index: 1050;
    transition: transform 0.3s ease;
    transform: translateX(0);
    /* 默认显示 */
    width: 250px;
}

/* 移动端关闭状态 */
.sidebar.mobile-closed {
    transform: translateX(-100%);
}

/* 激活状态（显示） */
.sidebar.active {
    transform: translateX(0) !important;
}

/* PC端显示菜单 */
@media (min-width: 768px) {
    #app .sidebar {
        transform: translateX(0) !important;
    }
}

/* 移动端样式 */
@media (max-width: 767px) {
    .sidebar {
        width: 80%;
        max-width: 300px;
    }

    body #app .sidebar.active {
        transform: translateX(0);
        /* 移除!important允许Vue控制 */
        z-index: 1050 !important;
    }

    .sidebar-toggle {
        display: block;
    }
}


.sidebar-toggle .bi-list {
    font-size: 1.5rem !important;
    /* 调整图标大小以完美适配按钮 */
}

.sidebar-toggle:hover {
    background: #0056b3 !important;
    /* 悬停深色效果 */
    transform: scale(1.05) !important;
    /* 轻微放大反馈 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
}

.sidebar-toggle:active {
    transform: scale(0.95) !important;
    /* 点击缩小反馈 */
}

.sidebar-toggle:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3) !important;
    /* 焦点状态 */
}

/* 背景遮罩样式 */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    transition: opacity 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-left: 3px solid transparent;
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #007bff;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-item {
    margin-bottom: 5px;
}

.sidebar .nav-item .badge {
    margin-left: auto;
    background-color: #007bff;
}

.main-content {
    padding: 20px;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 250px;
    }
}

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

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.banner {
    background-color: #007bff;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.banner h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background-image: url('../img/pc.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
}

.search-bar {
    margin-bottom: 30px;
}

.search-bar input {
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 1rem;
}

.quick-access {
    margin-bottom: 30px;
}

.quick-access h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 20px;
}

.time-display {
    font-size: 2rem;
    color: #007bff;
    font-weight: bold;
    text-align: right;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }

    .banner-image {
        display: none;
    }
}

@media (min-width: 768px) {
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    .menu-btn {
        display: none !important;
    }
    .sidebar-backdrop.active {
        display: block;
    }
}

.main-content{
    background: #f5f5f7;
}