body {
    background: #ffffff;
    margin: 0;
    font-family: Source Han Sans CN;
}

.banner {
    width: 100%;
    margin-top: -75.5px;
    height: 395.5px;
    background: #eaf2ff;
}

.banner__inner {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.banner__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    max-width: 1240px;
    margin: 0 auto;
}

/* Tab 容器样式 */
.tabs-container {
    background: #F9FAFF;
}

.tabs-nav {
    display: flex;
    margin-bottom: 30px;
    max-width: 1240px;
    margin: 0 auto;
}

.tab-item {
    padding: 20px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item:hover {
    color: #4162E9;
}

.tab-item.active {
    color: #4162E9;
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--text-width, 100%);
    height: 2px;
    background-color: #4162E9;
    transition: width 0.3s ease;
}

.tab-content {
    display: none;
    padding: 50px 0;
}

.tab-content.active {
    display: block;
}



/* 文件卡片样式 */
.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 44px 23px;
    max-width: 1200px;
    margin: 0 auto;
}

.file-grid .file-card {
    flex: 1 1 calc((100% - 2 * 23px) / 3);
    /* 3列 */
    max-width: calc((100% - 2 * 23px) / 3);
}

.file-card {
    transition: 0.2s;
    cursor: pointer;
    width: 100%;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-card:hover .file-title {
    color: #4162e9;
}

.file-icon {
    width: 384px;
    height: 218px;
    background: linear-gradient(139deg,
            rgba(234, 219, 255, 0.4),
            rgba(255, 188, 188, 0.4));
}

.cover-icon {
    width: 100%;
    height: 100%;
}

.cover-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-title {
    font-weight: 400;
    font-size: 20px;
    color: #333333;
    line-height: 77px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
    height: 77px;
    display: block;
    background: #f8f8f9;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.file-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.file-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 平板适配 */
@media (max-width: 1200px) {
    .content {
        max-width: 100%;
        padding: 0 20px;
    }

    .tabs-nav {
        padding: 0 ;
        width: min(1200px, 100% - 30px);

    }

    .file-grid {
        gap: 30px 20px;
    }

    .file-grid .file-card {
        flex: 1 1 calc((100% - 1 * 20px) / 2);
        /* 2列 */
        max-width: calc((100% - 1 * 20px) / 2);
    }

    .file-icon {
        width: 100%;
        height: 180px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content {
        padding: 0 0;
        width: min(1200px, 100% - 30px);
    }

    .tabs-nav {
        padding: 0 0;
        flex-wrap: wrap;
        gap: 10px;
        width: min(1200px, 100% - 30px);
    }

    .tab-item {
        padding: 15px 20px;
        font-size: 14px;
    }

    .file-grid {
        gap: 20px;
    }

    .file-grid .file-card {
        flex: 1 1 100%;
        /* 1列 */
        max-width: 100%;
    }

    .file-icon {
        width: 100%;
        height: auto;
    }

    .file-title {
        font-size: 16px;
        height: 60px;
        padding: 0 12px;
    }

    .tab-content {
        padding: 30px 0;
    }

}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .content {
        padding: 0;
        width: min(1200px, 100% - 30px);
    }

    .tabs-nav {
        padding: 0;
        align-items: stretch;
    }

    .tab-item {
        padding: 12px 2px;
        text-align: center;
    }

    .file-grid {
        gap: 15px;
    }

    .file-icon {
        height: auto;
    }

    .file-title {
        font-size: 14px;
        height: 50px;
        padding: 0 8px;
    }

    .tab-content {
        padding: 20px 0;
    }
}