* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* 登录区域 */
.login-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.login-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-qr img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
}

.login-qr p {
    margin: 0;
    color: #666;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 30px;
}

.upload-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-area:hover {
    border-color: #4CAF50;
    background-color: #f8f8f8;
}

.drop-area.active {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.drop-content p {
    margin: 10px 0;
    color: #666;
}

.upload-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #45a049;
}

.file-input {
    display: none;
}

/* 上传进度 */
.upload-progress {
    margin-top: 20px;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    margin-top: -20px;
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* 支持的文件类型 */
.supported-types {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.supported-types h3 {
    margin-bottom: 10px;
    color: #333;
}

.supported-types p {
    text-align: left;
    margin: 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    .drop-area {
        padding: 30px;
    }
    
    .login-qr img {
        width: 150px;
        height: 150px;
    }
}

/* 用户信息区域 */
.user-info {
    margin-top: 20px;
    text-align: center;
}

.user-info p {
    margin-bottom: 10px;
    color: #333;
}

.view-files-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-files-btn:hover {
    background-color: #45a049;
}

/* 弹窗样式 */
.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.modal-content li:last-child {
    border-bottom: none;
}

.modal-content a {
    color: #4CAF50;
    text-decoration: none;
    margin-left: 10px;
}

.modal-content a:hover {
    text-decoration: underline;
}
