
body {
    background-color: rgba(52, 58, 64) !important;
    background-image: url("../images/mian_page/team/watch-4638673_1280.jpg");;
      background-size: cover;
      background-position: center center;
      padding-top: 56px;
    /* 保持固定位置 */
}

.navbar {
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000;
}

.navbar_h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    transition: width 0.3s;
    position: fixed;
    top: 56px;
    left: 0;
    overflow-x: hidden;
    z-index: 1000;
    will-change: transform;
    backface-visibility: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #4b545c;
}

.sidebar-logo {
    width: 100%;
    max-width: 150px;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-logo {
    opacity: 0;
    pointer-events: none;
}

.btn-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 5px;
    z-index: 1001;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 50px;
}

.sidebar-menu li {
    padding: 10px;
    border-bottom: 1px solid #4b545c;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu li a i {
    margin-right: 10px;
}

.sidebar-menu li a .menu-text {
    transition: opacity 0.3s;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    pointer-events: none;
}

.container {
    max-width:800px;
    display: flex;
    background-size: cover;
    flex: 1 1 auto;
    /* 使用 flex-grow 来分配剩余空间 */
    overflow: hidden;
    height: 90vh;
    border-radius: 30px;
    margin-left: 300px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(10px);
}

.image-container{
    background-image: url("../images/image2.jpg");
    background-size: cover;
    background-position: center center;
    border-radius: 30px;
    height:100%
}


.content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

footer {
    text-align: center;
    height: 60px;
    padding: 10px;
    background-color: rgba(52, 58, 64) ;
    color: rgba(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 确保页脚在上层显示 */
    transition: opacity 0.3s ease;
    /* 添加透明度过渡效果 */
    opacity: 0;
    /* 初始时隐藏页脚 */
    pointer-events: none; /* 默认禁用鼠标事件 */
}

footer.show {
    opacity: 1;
    /* 滚动时显示页脚 */
    pointer-events: auto; /* 默认禁用鼠标事件 */
}

.placeholder {
    height: 80px;
    /* 占满整个视窗高度 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.img_windows {
    width: 98%;
    height: 98%;
    border-radius: 45px;
}

@media screen and (max-width: 768px) {

    .container {
        display: flex;
        flex-direction: column;
        /* 上下结构 */
        overflow: hidden;
        border-radius: 30px;
        margin: 20px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
        backdrop-filter: blur(10px);
        overflow: visible; /* 移除 overflow 属性 */
    }

    .content {
        padding: 20px;
        overflow-y: auto;
        height: 100%;
    }


    footer {
        text-align: center;
        height: 60px;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.5) !important;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: opacity 0.3s ease, pointer-events 0.3s ease;
        opacity: 0;
        pointer-events: none; /* 默认禁用鼠标事件 */
    }

    footer.show {
        opacity: 1;
        pointer-events: auto; /* 显示时启用鼠标事件 */
    }
    .placeholder{
        opacity: 0;
    }

    .container {
        border-radius: 20px;
        /* 移除边框圆角 */
        margin: 0;
    }


    .content {
        padding: 10px;
    }


}

/* 桌面端样式 */
@media (min-width: 992px) {
    .mobile-sidebar-toggler {
        display: none;
    }

    .main-content {
        margin-left: 250px;
        transition: margin-left 0.3s;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 60px;
    }
}
/* 移动端默认隐藏侧边栏 */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .desktop-sidebar-toggler {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
    }
}