body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h2, h3 {
    color: #0056b3;
    margin-bottom: 20px;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="password"],
input[type="file"],
button {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* 确保 padding 不会增加宽度 */
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

p {
    margin-top: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 消息提示框 (可选，需要在PHP中添加显示逻辑) */
.message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* 网盘主页样式 */
#file-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#file-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#file-list li a {
    margin-left: 10px;
    font-size: 0.9em;
}

#file-list li span {
    font-size: 0.8em;
    color: #888;
    cursor: pointer;
    margin-left: auto; /* 将分享链接推到最右边 */
    padding-left: 10px;
}
