/* 引入本地字体 */
@font-face {
    font-family: 'Quicksand';
    src: url("../fonts/Quicksand-Bold.ttf") format('truetype');
}

/* 全局样式 */
body {
    font-family: 'Quicksand', sans-serif;}
body {
    background: rgba(245, 245, 247, 0.8); /* macOS 窗口背景 */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.8); /* 透明感 */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* macOS 风格阴影 */
    text-align: center;
    backdrop-filter: blur(20px); /* 磨砂玻璃效果 */
}

/* 标题 */
h1 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

/* 表格样式 */
.file-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.file-table th, .file-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    text-align: left;
}

.file-table th {
    background-color: rgba(240, 240, 245, 0.8);
    font-weight: bold;
    color: #333;
}

/* 文件名列 - 超长内容省略 */
.filename {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 下载按钮 */
.download-btn {
    background: linear-gradient(90deg, #007aff, #005ecb);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.download-btn:hover {
    background: linear-gradient(90deg, #005ecb, #003f91);
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .file-table th, .file-table td {
        padding: 10px;
        font-size: 14px;
    }

    /* 在小屏幕上改为列表模式 */
    .file-table {
        display: block;
    }

    .file-table thead {
        display: none; /* 隐藏表头 */
    }

    .file-table tbody {
        display: block;
    }

    .file-table tr {
        display: flex;
        flex-direction: column;
        background: white;
        margin-bottom: 10px;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .file-table td {
        border-bottom: none;
        text-align: left;
    }

    .download-btn {
        display: inline-block;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
}
