body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.banner {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
}
.banner img, .banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner::before { /* 创建一个与.banner相同大小的伪元素 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari 兼容性设置 */
}
.banner::after { /* 创建一个与.banner相同大小的伪元素 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 66%)); /* 上到下的透明度渐变 */
}
.banner-text {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    
}

.container {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    justify-content: space-between;
}
.sidebar {
    width: 200px;
    background-color: #ffffff;
    padding: 20px;
    margin-right: 20px;
    border-radius: 8px;
    height: 445px;
}
.sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    margin: 10px 0;
}
.sidebar a {
    text-decoration: none;
    color: black;
    transition: color 0.3s;
    display: block;
    padding: 10px;
    border-radius: 4px;
}
.sidebar a.active, .sidebar a:hover {
    background-color: #4a6cf7;
    color: white;
}
.content {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    display: none; /* 默认隐藏所有内容 */
}
.content.active {
    display: flex; /* 显示激活的内容 */
    flex-direction: column;
}
.content h2 {
    font-size: 1.5em;
    margin-bottom: -10px;
}
.download-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #EDEDED;
    display: flex;
    align-items: center;
}
.download-section img {
    width: 110px;
    height: 110px;
    margin-right: 20px;
}
.download-section .info {
    flex: 1;
}
.download-section .info p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #333;
}
.download-section .tags {
    display: flex;
    margin-bottom: 10px;
}
.tag {
    padding: 3px 7px;
    border-radius: 5px;
    margin-right: 20px;
    font-size: 0.7em;
}
.tag-green {
    background-color: #E8FFE4;
    border: 1px solid #A7FF75;
    color: #529F62;
}
.tag-red {
    background-color: #FFE4E4;
    border: 1px solid #FF7575;
    color: #9F5252;
}
.tag-blue {
    background-color: #E4EDFF;
    border: 1px solid #7587FF;
    color: #564EA2;
}
.tag-yellow {
    background-color: #fff3a8;
    border: 1px solid #e08301;
    color: #b66a00;
}
.tag-xc {
    background-color: #ffd9d9;
    border: 1px solid #f43636;
    color: #ab0000;
}
.tag-purple {
    background-color: #fce4ff;
    border: 1px solid #c03cf0;
    color: #8d529f;
}
.download-section .button {
    background-color: #4a6cf7;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: 20px;
}
.download-section .button:hover {
    background-color: #3a5ccd;
}
.pindao {
    width: 240px; /* 与sidebar同宽 */
    height: 110px; /* 高度110px */
    margin-top: 38px; /* 与sidebar间距38px */
    margin-left: -22px;
    background: #425aef; /* 背景颜色 */
    display: flex; /* 弹性布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    padding: 0; /* 内边距 */
    cursor: pointer; /* 鼠标样式 */
    border-radius: 8px; /* 圆角 */
    perspective: 1000px; /* 3D 透视效果 */
    overflow: hidden; /* 隐藏溢出内容 */
}
.pindao::before {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: url(https://p.zhheo.com/KrWQdG24890781690197108608.png!cover) center/cover no-repeat;
    content: '';
    background-size: cover;
    transition: .2s cubic-bezier(.45,.04,.43,1.21);
}
.pindao .pindao-window {
    width: 228px; /* 宽度 */
    height: 95px; /* 高度 */
    transform-style: preserve-3d; /* 开启3D渲染 */
    transition: transform 0.5s cubic-bezier(0, 0, 0, 1.29); /* 动画效果 */
    position: relative;
}

.pindao .pindao-front, .pindao .pindao-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* 背面不可见 */
    border-radius: 8px;
}

.pindao .pindao-front {
    background: url('../img/pindao/ggzm.png') center/cover no-repeat;
    background-size: cover;
}

.pindao .pindao-back {
    background: url('../img/pindao/ggfm.png') center/cover no-repeat;
    background-size: cover;
    transform: rotateY(180deg);
}
.pindao:hover .pindao-window {
    transform: rotateY(180deg);
}
.footer {
    background-color: #000;
    color: white;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}
@media (max-width: 768px) {
    .nav a {
        float: none;
        display: block;
        text-align: left;
    }
    .logo img {
        float: none;
        display: block;
        margin: 0 auto;
    }
    .banner {
        height: auto;
        padding: 20px;
    }
    .banner h1 {
        font-size: 1.5em;
    }
    .banner p {
        font-size: 1em;
    }
    .banner .button {
        padding: 10px 20px;
    }
    .container {
        flex-direction: column;
        padding: 10px;
    }
    .main-content {
        padding-left: 0;
    }
    .toc {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin-bottom: 20px;
    }
}

/* 添加侧边栏滚动条样式 */
.sidebar-menu {
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: #4a6cf7 #f0f2f5;  /* Firefox */
}

/* Webkit浏览器的滚动条样式 */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #4a6cf7;
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #3a5ccd;
}