/* 纯表格样式 - 专用于下载页面等简单表格 */

/* 页面布局样式 */
.download-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.download-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
    color: white;
    border-radius: 10px;
}

.download-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

.download-header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.file-type {
    font-weight: 500;
    color: #6c757d;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

/* 基础表格样式 */
.download-table-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: 100%;
}

.download-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.download-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
}

.download-table tr:hover {
    background-color: #f8f9fa;
}

/* 下载链接样式 */
.download-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-right: 8px;
    font-size: 14px;
}

.download-link:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .download-page {
        padding: 15px;
    }

    .download-header {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 8px;
    }

    .download-header h1 {
        font-size: 1.8em;
    }

    .download-header p {
        font-size: 1em;
    }

    .back-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    .download-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #007bff #f0f0f0;
        border-radius: 8px;
    }

    /* 移动端滚动条样式 */
    .download-table-wrapper::-webkit-scrollbar {
        height: 8px;
        background: #f0f0f0;
    }

    .download-table-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #007bff, #0056b3);
        border-radius: 4px;
    }

    .download-table-wrapper::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 4px;
    }

    .download-table {
        min-width: auto; /* 响应式宽度 */
        font-size: 14px;
    }

    .download-table th {
        padding: 12px 10px;
        font-size: 14px;
        min-width: 80px;
    }

    .download-table td {
        padding: 12px 10px;
        min-width: 80px;
    }

    /* 第一列（资料名称）保持较宽 */
    .download-table th:first-child,
    .download-table td:first-child {
        min-width: 150px;
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: 2;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    }

    /* 确保第一列标题有正确的背景色 */
    .download-table th:first-child {
        background: #f8f9fa;
        color: #333;
    }

    .download-link {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 4px;
        margin-bottom: 4px;
    }

    /* 添加滚动提示 */
    .download-table-wrapper::after {
        content: "← 左右滑动查看更多 →";
        display: block;
        text-align: center;
        color: #666;
        font-size: 12px;
        margin-top: 8px;
        padding: 4px;
        background: #f8f9fa;
        border-radius: 4px;
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    .download-page {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

    .download-header {
        margin-bottom: 15px;
        padding: 12px;
    }

    .download-header h1 {
        font-size: 1.5em;
    }

    .download-header p {
        font-size: 0.9em;
    }

    .back-link {
        padding: 6px 12px;
        font-size: 13px;
        margin: 15px 0;
    }
    .download-table {
        min-width: auto;
        font-size: 13px;
    }

    .download-table th,
    .download-table td {
        padding: 10px 8px;
        font-size: 13px;
        min-width: 70px;
    }

    .download-table th:first-child,
    .download-table td:first-child {
        min-width: 100px;
    }

    .download-link {
        padding: 5px 10px;
        font-size: 11px;
    }

    .download-table-wrapper::after {
        font-size: 11px;
        bottom: -28px;
    }
}

/* 超小屏幕设备适配 */
@media screen and (max-width: 360px) {
    .download-page {
        padding: 8px;
    }

    .download-header {
        margin-bottom: 12px;
        padding: 10px;
    }

    .download-header h1 {
        font-size: 1.3em;
    }

    .download-header p {
        font-size: 0.8em;
    }

    .back-link {
        padding: 5px 10px;
        font-size: 12px;
        margin: 12px 0;
    }
    .download-table {
        min-width: auto;
        font-size: 12px;
    }

    .download-table th,
    .download-table td {
        padding: 8px 6px;
        font-size: 12px;
        min-width: 60px;
    }

    .download-table th:first-child,
    .download-table td:first-child {
        min-width: 120px;
    }

    .download-link {
        padding: 4px 8px;
        font-size: 10px;
    }

    .download-table-wrapper::after {
        font-size: 10px;
        bottom: -26px;
    }
}