/* 全局样式与重置 - 确保组件在不同网站风格下都能干净展示 */
/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */


.library-body {
    background: #f1f5f9;
    /* 模拟网页背景色 */
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 资料库主容器 - 卡片式设计 */
.library-container {
    max-width: 100%;
    width: 100%;
    background: white;
    /* border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    transition: all 0.2s ease;
    padding-left: 10%;
    padding-right: 10%;
}

/* 头部区域 */
.library-header {
    padding: 28px 32px 16px 32px;
    border-bottom: 1px solid #e9eef3;
    background: white;
}

.library-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #0a2540;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.library-header p {
    color: #5c6f87;
    font-size: 1.45rem;
    max-width: 75%;
}

/* 列表布局 - 清晰的信息层级 */
.documents-list {
    padding: 0 32px 32px 32px;
}

/* 表头样式 (仅在大屏幕显示，移动端隐藏部分信息保证清晰) */
.list-header {
    display: flex;
    align-items: center;
    padding: 16px 0 12px 0;
    border-bottom: 1px solid #eef2f8;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c7f9c;
}

/* 每一个文档行 (类似卡片式列表，移动端友好) */
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.2s;
}

.doc-item:hover {
    background-color: #fafcff;
    border-radius: 12px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

/* 文档信息主区域 (图标 + 元数据) */
.doc-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 2;
    min-width: 200px;
}

/* 文件图标圆圈 */
.file-icon {
    background: #eff6ff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* 文件名及描述区域 */
.file-details {
    flex: 1;
}

.file-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #1a2c3e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.file-badge {
    background: #eef2ff;
    color: #2563eb;
    font-size: 1.15rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.file-desc {
    font-size: 1.2rem;
    color: #6a7c9e;
    margin-bottom: 6px;
    line-height: 1.4;
    max-width: 95%;
}

.file-meta-mobile {
    display: none;
    /* 移动端显示，下面特殊处理 */
    font-size: 1.1rem;
    color: #7e8ca3;
    margin-top: 6px;
    gap: 12px;
}

/* 右侧区域：大小 + 下载按钮 */
.doc-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.file-size {
    color: #54657e;
    font-size: 1.35rem;
    font-weight: 450;
    white-space: nowrap;
}

/* 下载按钮 - 符合资料库场景 */
.download-btn {
    background-color: white;
    border: 1px solid #cddae9;
    border-radius: 60px;
    padding: 8px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f3a5f;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.download-btn:hover {
    background-color: #1f3a5f;
    border-color: #1f3a5f;
    color: white;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.1);
}

/* 辅助响应式: 屏幕小于750px时，调整布局，展示更多移动细节 */
@media (max-width: 750px) {
    .library-header {
        padding: 20px 24px;
    }

    .library-header p {
        max-width: 100%;
    }

    .documents-list {
        padding: 0 20px 24px 20px;
    }

    .list-header {
        display: none;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 0;
    }

    .doc-info {
        width: 100%;
    }

    .doc-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }

    .file-meta-mobile {
        display: flex;
    }

    /* 在移动端隐藏PC式的多余描述中的size标识 */
    .file-size {
        font-size: 0.75rem;
    }
}