﻿/* ===== 全局 ===== */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f6fa;
}

/* ===== 登录页 ===== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-box button:hover {
    background: #45a049;
}

/* ===== 顶部 ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #2f3542;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.user-box a {
    color: #ffa502;
    margin-left: 10px;
    margin-right: 30px;
    text-decoration: none;
}

/* ===== 内容 ===== */
.content {
    margin-top: 70px;
    margin-bottom: 60px;
    padding: 20px;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 拖拽区 ===== */
#drop-area {
    border: 2px dashed #aaa;
    border-radius: 10px;
    background: #fff;
    max-width: 90%;    /* 超过屏幕时自动缩小 */
    padding: 20px;
    text-align: center;
    color: #555;
    margin: 20px auto;
    transition: 0.3s;
    white-space: pre-line; /* 支持多行显示 */
    cursor: pointer;
}

#drop-area.hover {
    border-color: #4CAF50;
    background: #f0fff0;
}

#rdi-list {
    font-size: 0;
}
#rdi-list label {
    display: inline-block;
    font-size: 14px; /* 恢复文字大小 */
    width: 60px; /* 统一宽度实现列对齐 */
    margin: 4px 0;
    line-height: 23px;
}
#rdi-list input[type="checkbox"] {
    vertical-align: middle;
    margin-right: 5px;
}
/* ===== 文件列表 ===== */
#file-list li {
    background: #fff;
    margin: 6px 0;
    padding: 12px;
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#file-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* ===== 上传进度条 ===== */
.upload-progress-wrapper {
    width: 300px;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    margin: 20px auto;
    position: relative;
}

.upload-progress {
    height: 100%;
    width: 0%;
    background: #4CAF50;
    border-radius: 10px;
    transition: width 0.2s;
}

.upload-progress-wrapper .percent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 20px;
    color: #000;
}

/* ===== 底部 ===== */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 45px;
    background: #2f3542;
    color: #ccc;
    text-align: center;
    line-height: 45px;
}

a {
    text-decoration: none;
    color: #ccc;
}
a:hover {
    color: #ccc;
}