* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b4c8b 100%);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* 更新操作按钮 - 使用主题配色 */
.btn-download {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 3px 5px rgba(72, 187, 120, 0.2);
    color: white !important; /* 确保文字为白色 */
}

.btn-download:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 5px 8px rgba(72, 187, 120, 0.3);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 3px 5px rgba(245, 101, 101, 0.2);
    color: white !important; /* 确保文字为白色 */
}

.btn-delete:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    box-shadow: 0 5px 8px rgba(245, 101, 101, 0.3);
    color: white;
}

.btn-logout {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    box-shadow: 0 4px 6px rgba(160, 174, 192, 0.2);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    color: white;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    box-shadow: 0 6px 12px rgba(160, 174, 192, 0.3);
    color: white;
}

/* 新增：图标退出按钮样式 */
.btn-logout-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    color: #ecf0f1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    margin-left: 10px;
}

.btn-logout-icon:hover {
    background: rgba(245, 101, 101, 0.2);
    border-color: #f56565;
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 8px;
    border-radius: 6px;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 添加成功/错误消息样式 */
.alert-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.alert-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
}

/* 仪表板样式 */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 300px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 更新用户信息区域，包含退出图标 */
.user-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #34495e;
    position: relative;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ecf0f1;
}

.user-details {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.5;
}

.user-info p {
    margin: 5px 0;
}

/* 更新菜单项按钮 */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

.menu-item span {
    margin-right: 10px;
    font-size: 18px;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section h4 {
    color: #bdc3c7;
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 更新存储信息样式 */
.storage-info {
    background: rgba(52, 73, 94, 0.5);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    
}

.content-header h2 {
    color: #2c3e50;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-logout-icon {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* 上传区域容器样式 */
.upload-area-container {
    width: 100%;
    margin-top: 20px;
}

/* 更新上传区域样式 */
.upload-area {
  display:none;
}

.upload-area:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.upload-area p {
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 500;
}

.file-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* 更新空状态样式 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #718096;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    margin: 20px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.file-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

/* 更新表格行悬停效果 */
.file-table tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.file-table td:first-child {
    display: flex;
    align-items: center;
}

.file-table td:first-child span {
    font-size: 20px;
    margin-right: 10px;
}

.file-table a {
    color: #667eea;
    text-decoration: none;
}

.file-table a:hover {
    text-decoration: underline;
}

/* 更新文件列表中的操作按钮容器 */
.actions {
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

/* 更新模态框按钮 */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

/* 更新进度条样式 */
.progress-container {
    margin-top: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* 强制设置所有按钮文字为白色 */
.btn-download, 
.btn-delete, 
.btn-logout, 
.btn-logout-icon,
.btn-primary, 
.btn-secondary,
.btn-logout-icon span {
    color: white !important;
}
/* 新增：红色电源符号退出按钮样式 */
.btn-logout-icon {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    padding: 6px 10px;
    border-radius: 50%;
    color: #f56565; /* 红色 */
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    margin-left: 10px;
    width: 36px;
    height: 36px;
}

.btn-logout-icon:hover {
    background: rgba(245, 101, 101, 0.2);
    border-color: #e53e3e;
    color: #e53e3e; /* 更深的红色 */
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* 如果希望图标更大更明显 */
.btn-logout-icon-large {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    padding: 8px 12px;
    border-radius: 50%;
    color: #f56565;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    margin-left: 10px;
    width: 40px;
    height: 40px;
}

.btn-logout-icon-large:hover {
    background: rgba(245, 101, 101, 0.25);
    border-color: #e53e3e;
    color: #e53e3e;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 101, 101, 0.35);
}

/* 添加脉冲动画效果（可选） */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 101, 101, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0);
    }
}

.btn-logout-icon-pulse {
    animation: pulse-red 2s infinite;
}

.btn-logout-icon-pulse:hover {
    animation: none;
}

/* 带红色背景的版本 */
.btn-logout-icon-solid {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(245, 101, 101, 0.3);
    margin-left: 10px;
    width: 36px;
    height: 36px;
}

.btn-logout-icon-solid:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 12px rgba(245, 101, 101, 0.4);
}
/* 上传按钮样式 */
.upload-button-container {
    margin: 20px 0;
    text-align: center;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.upload-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b4c8b 100%);
}

.upload-icon {
    font-size: 20px;
    margin-right: 10px;
}

.upload-text {
    margin-right: 8px;
}

.upload-note {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
}
/* 当前目录显示样式 */
.current-directory-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    flex: 1;
}

.current-directory-display h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: white;
}

/* 调整 content-header 布局 */
.upload-button-container {
    flex-shrink: 0;
}

/* 右上角退出按钮样式 */
.top-right-logout {
    position: absolute;
    top: 20px;
    right: 20px;
}

.top-right-logout .btn-logout {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(245, 101, 101, 0.2);
}

.top-right-logout .btn-logout:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(245, 101, 101, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .current-directory-display {
        margin-bottom: 15px;
        text-align: center;
        
    }
    
    .upload-button-container {
        width: 100%;
    }
    
    .upload-button {
        width: 100%;
        justify-content: center;
    }
    
    .top-right-logout {
        position: static;
        margin-bottom: 15px;
        text-align: right;
    }
}

/* 移除用户信息中的目录显示 */
.user-details p:first-child {
    display: none; /* 隐藏当前目录显示 */
}
/* 当前目录显示样式 */
.current-directory-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    flex: 1;
}

.current-directory-display h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: white;
}

/* 调整 content-header 布局 */
.content-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    
    
}

.upload-button-container {
    flex-shrink: 0;
}

/* 上传按钮样式 */
.upload-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.3);
    border: none;
    cursor: pointer;
}

.upload-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.upload-icon {
    font-size: 20px;
    margin-right: 10px;
}

.upload-text {
    margin-right: 8px;
}

.upload-note {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
}

/* 右上角退出按钮样式 */
.top-right-logout {
    position: absolute;
    top: 20px;
    right: 20px;
}

.top-right-logout .btn-logout {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(245, 101, 101, 0.2);
}

.top-right-logout .btn-logout:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(245, 101, 101, 0.3);
}

/* 回收站徽章 */
.recycle-badge {
    margin-left: auto;
    background: #f56565;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* 文件图标 */
.file-icon {
    font-size: 20px;
    margin-right: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .current-directory-display {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .upload-button-container {
        width: 100%;
    }
    
    .upload-button {
        width: 100%;
        justify-content: center;
    }
    
    .top-right-logout {
        position: static;
        margin-bottom: 15px;
        text-align: right;
    }
}

/* 空状态样式 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #718096;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    margin: 20px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

/* 操作按钮 */
.actions {
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}
/* 侧边栏底部版本信息 */
.sidebar-footer {
    margin-bottom: 20px;
    padding: 1rem;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.version-info {
    font-size: 0.8rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 侧边栏布局 */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* 或者 height: 100%; */
    position: sticky;
    top: 0;
}

/* 侧边栏主要内容区域 */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
}


