/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部说明区域样式 */
.header-section {
    background-color: #fff;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content h1 {
    font-size: 2.2rem;
    color: #0052d9;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
}

.image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 核心优化：Index of / 标题样式 */
.directory-title {
    font-size: 1.8rem;
    color: #0052d9;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* 返回上一级目录样式 */
.back-to-parent {
    margin-bottom: 20px;
}

.back-to-parent a {
    color: #0052d9;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-parent a:hover {
    text-decoration: underline;
}

/* 文件列表区域样式 */
.file-list-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th, .file-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.file-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.file-table tr:hover {
    background-color: #f8f9fa;
}

.file-link {
    color: #0052d9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-link:hover {
    text-decoration: underline;
}

/* 目录/文件图标（用文字模拟） */
.dir-icon::before {
    content: "📁";
    font-size: 1.2rem;
}

.file-icon::before {
    content: "📄";
    font-size: 1.2rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .file-list-section {
        padding: 20px;
    }

    .file-table th, .file-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .directory-title {
        font-size: 1.5rem;
    }
}