body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* 顶部栏样式，滚动时固定位置 */
.top-bar {
    display: flex;
    justify-content: space-between; /* 子元素左右分布 */
    align-items: center; /* 垂直居中 */
    padding-bottom: 5px;
    width: 80%; /* 确保顶部栏占据全屏 */
    max-width: 100%; /* 限制最大宽度 */
    background-color: #f9f9f9;
    position: fixed; /* 固定顶部 */
    top: 0; /* 与页面顶部对齐 */
    z-index: 1000; /* 确保显示在其他内容上方 */
    margin: 0 auto; /* 居中对齐 */
    border-bottom: 1px solid #ddd; /* 添加底部分隔线 */
    left: 0; /* 修复部分浏览器对 flex 布局的处理问题 */
    right: 0; /* 确保居中 */
}

.top-left {
    display: flex;
    align-items: center;
}

/* Logo 样式 */
.logo-image {
    height: 40px; /* 缩小 Logo 高度 */
    width: auto;
}

/* 用户控件样式 */
.user-controls {
    display: flex;
    gap: 10px;
}

.user-controls button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.user-controls button:hover {
    background-color: #0056b3;
}



/* 调整标题的上下距离 */
h1 {
    color: #333;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 60px;
}
.container {
    margin: 100px auto 20px auto;
    width: 80%;
    max-width: 1200px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    position: relative; /* 确保子元素的绝对定位相对于 .container */
}
.head-container {
    display: flex;
    justify-content: flex-end;
    align-items: right;
}


.add-file-button {
    position: absolute;
    top: -60px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2; /* 确保在卡片内容上层 */
}
.add-file-button button {
    padding: 12px 24px;
    background-color: #28a745;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.4);
    transition: all 0.2s ease-in-out;
    animation: pulse-glow 1.5s infinite;
}
.add-file-button button:hover {
    background-color: #218838;
    box-shadow: 0 0 16px rgba(40, 167, 69, 0.6);
}
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    }
}


.user-files-button {
    margin-bottom: 10px;
    align-items: right;
}
.user-files-button button {
    padding: 8px 15px;
    background-color: #E0E0E0;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.user-files-button button:hover {
    background-color: #D3D3D3; /* 鼠标悬停变深灰 */
}




.all-actions {
    text-align: center;
    margin-top: 10px;
}
.all-actions button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}
.all-actions button.delete {
    background-color: #FF5733;
}
.all-actions button:hover {
    background-color: #0056b3;
}
.all-actions button.delete:hover {
    background-color: #e74c3c;
}
#fileInput {
    display: none;
}



#register-freezeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    z-index: 9999; /* 确保在最顶层 */
    display: none; /* 默认隐藏 */
}
.register-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* 底部样式 */
.footer-bar {
    width: 100%; /* 占满页面宽度 */
    border-top: 1px solid #ccc; /* 添加分割线 */
    background-color: #f9f9f9; /* 背景颜色 */
    padding: 10px 0; /* 上下内边距 */
    text-align: center; /* 文本居中 */
    margin-top: 20px; /* 与内容保持间距 */
}

.footer-content p {
    margin: 0; /* 去掉段落外边距 */
    font-size: 14px; /* 字体大小 */
    color: #666; /* 字体颜色 */
}