/* public/style.css */

/* 整体布局和背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 主内容容器，卡片式设计 */
.container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* 文件列表样式 */
#file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#file-list li {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#file-list li:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#file-list li a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
}

#file-list li a:hover {
    text-decoration: underline;
}

/* 统一按钮样式 */
.btn {
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none; /* 确保a标签作为按钮时无下划线 */
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
}

.btn-delete {
    background-color: #e53e3e;
}

.btn-delete:hover {
    background-color: #c53030;
}

/* 上传区域样式 */
.upload-section {
    background-color: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    transition: border-color 0.3s;
}

.upload-section:hover {
    border-color: #4299e1;
}

.upload-section input[type="file"] {
    margin-bottom: 1rem;
}