
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f1f8ff;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1::before {
    content: "📂";
    font-size: 28px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 250px;
    font-size: 14px;
}

.file-list {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.list-header {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr 1fr;
    padding: 15px 30px;
    background-color: #f6f8fa;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.list-header span:hover {
    color: var(--primary-color);
}

.list-header span:last-child {
  display: inline-block;
  padding-right: 10px;
  text-align: right;
}

.file-item {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr 1fr;
    padding: 15px 30px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: var(--hover-color);
}

/* 文件图标样式 */
.file-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* 操作按钮样式 */
.file-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.file-actions a {
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.file-actions a:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* 统计信息样式 */
.stats {
    text-align: center;
    padding: 15px 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.file-size {
    color: #666;
    text-align: left;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-date {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
}

/* 排序指示器 */
.sort-indicator {
    margin-left: 5px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .list-header {
        display: none;
    }
    
    .file-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 15px 20px;
    }
    
    .file-size::before {
        content: "大小: ";
        font-weight: 600;
    }
    
    .file-date::before {
        content: "修改时间: ";
        font-weight: 600;
    }
}