/* 全局基础 */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    margin: 0;
    padding: 0;
}

/* 顶部导航 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00a8ff;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* 页面容器 */
.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

/* 卡片 */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* 登录卡片居中 */
.login-card {
    text-align: center;
}

/* 输入框样式 */
input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

/* 按钮样式 */
button {
    width: 100%;
    background-color: #00a8ff;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0097e6;
}

/* 文件列表 */
.file-list {
    list-style: none;
    padding-left: 0;
}

.file-list li {
    padding: 8px 0;
    word-break: break-all;
}

.file-list li a {
    text-decoration: none;
    color: #2f3640;
}

.file-list li a:hover {
    color: #00a8ff;
}

/* 错误信息 */
.error {
    color: red;
    margin-top: 10px;
}

/* 退出登录按钮（备用） */
.logout {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e84118;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.logout:hover {
    background-color: #c23616;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 0 10px;
    }
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .navbar .nav-right {
        margin-top: 8px;
    }
    button, input[type="text"], input[type="password"], input[type="file"] {
        font-size: 18px;
        padding: 14px 15px;
    }
    .file-list li {
        padding: 10px 0;
    }
}
