/* 引入本地字体 */
@font-face {
    font-family: 'Quicksand';
    src: url("../fonts/Quicksand-Bold.ttf") format('truetype');
}

/* 全局样式 */
body {
    font-family: 'Quicksand', sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 主容器 */
.container {
    background: white;
    width: 80%;
    max-width: 900px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 标题 */
h2 {
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* 文件列表 */
.file-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 文件项 */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    flex: 1 1 calc(50% - 10px); /* 默认一行两列 */
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .file-item {
        flex: 1 1 100%; /* 移动端单列 */
    }
}

.file-item:hover {
    background: #eef0f3;
}

/* 链接 */
.file-item a {
    text-decoration: none;
    color: #007aff;
    font-size: 16px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 图标 */
.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .file-item {
        padding: 8px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}
