.container {
    display: flex;
    max-width: 1300px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

.sidebar {
    width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
}

.upload-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
    min-height: 200px;
    width: 100%;
}

.file-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid #eee;
    margin: 10px 0;
    border-radius: 5px;
}

.preview {
    width: 200px;
}

.preview img,
.preview video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.file-info {
    flex: 1;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.direct-link,
.share-link {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

button {
    padding: 5px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.folder-list {
    margin-top: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.folder-item {
    padding: 5px 0;
}

.folder-item a {
    color: #333;
    text-decoration: none;
}

.folder-item a:hover {
    color: #007bff;
}

.create-folder-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.create-folder-form input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.error-message {
    background: #ffe6e6;
    color: #ff0000;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    position: relative;
}

.welcome-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.user-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.user-controls span {
    color: #666;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #c82333;
    text-decoration: none;
}

.files-grid {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
    width: 100%;
}

.file-card {
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.file-card:hover {
    transform: translateY(-2px);
}

.file-card-content {
    display: flex;
    gap: 20px;
    padding: 15px;
}

.file-preview {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 4px;
}

.file-preview img,
.file-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.file-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.file-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-link {
    margin-top: 10px;
}

.file-link input {
    width: 52%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.file-actions button {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.copy-btn {
    background: #28a745;
}

.delete-btn {
    background: #dc3545;
}

.no-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.folder-item:hover {
    background-color: #e9ecef;
}

.folder-name {
    flex: 1;
}

.folder-actions {
    display: flex;
    gap: 5px;
}

.rename-folder-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.delete-folder-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-item:hover .rename-folder-btn,
.folder-item:hover .delete-folder-btn {
    opacity: 1;
}

.rename-folder-btn:hover {
    background: #218838;
}

.delete-folder-btn:hover {
    background: #c82333;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    padding: 25px 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    font-size: 16px;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
    transform: translateY(-1px);
}

.page-link.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer p {
    margin: 0;
    line-height: 1.5;
}

body {
    margin: 0;
    padding-bottom: 60px;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.file-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 1;
}

.total-size {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.size-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.size-progress {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-image: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.size-value {
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-text {
    color: #666;
    margin-top: 10px;
}

.file-list-preview {
    margin: 15px 0;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 60px;
}

.file-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-item-preview .file-name {
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-preview .file-size {
    color: #666;
    font-size: 12px;
}

#uploadButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: auto;
    min-width: 120px;
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#uploadButton:hover {
    background: #0056b3;
}

#uploadButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
}

.file-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.2s;
}

.file-icon:hover img {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.settings-btn {
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-btn:hover {
    background: #5a6268;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.save-btn {
    background: #28a745;
}

.cancel-btn {
    background: #6c757d;
}

.folder-path {
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.folder-path a {
    color: #007bff;
    text-decoration: none;
}

.folder-path a:hover {
    text-decoration: underline;
}

.folder-indent {
    display: flex;
    align-items: center;
}

.folder-toggle {
    cursor: pointer;
    margin-right: 5px;
    transition: transform 0.2s;
    font-size: 12px;
    color: #666;
}

.folder-toggle.open {
    transform: rotate(90deg);
}

.folder-children {
    display: none;
}

.folder-children.open {
    display: block;
}

.folder-item.active {
    background-color: #e3f2fd;
}

.folder-item.active .folder-name a {
    color: #007bff;
    font-weight: bold;
}

.folder-name {
    display: flex;
    align-items: center;
    flex: 1;
}

.folder-name a:before {
    content: "📁";
    margin-right: 5px;
}

.folder-children {
    transition: all 0.3s ease;
    overflow: hidden;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area.drag-over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-text {
    color: #666;
    margin-top: 10px;
    pointer-events: none;
}

.file-list-preview {
    margin: 15px 0;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 60px;
}

.file-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-item-preview .file-name {
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-preview .file-size {
    color: #666;
    font-size: 12px;
}

#uploadButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: auto;
    min-width: 120px;
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#uploadButton:hover {
    background: #0056b3;
}

#uploadButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 修改左侧栏卡片样式 */
.sidebar > div {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 修改侧栏标题样式 */
.sidebar h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

/* 修改快捷操作按钮样式 */
.quick-actions-sidebar button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

/* 修改工具链样式 */
.tool-link {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 使用说明列表样式 */
.help-sidebar {
    margin-top: 20px;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.help-list li:last-child {
    border-bottom: none;
}

.help-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 存储空间进度条样式 */
.total-size {
    margin-top: 20px;
}

.size-progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    background-image: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

.size-value {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* 工具链接样 */
.tools-sidebar {
    margin-top: 20px;
}

.tool-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.tool-link:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    text-decoration: none;
}

.tool-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-name {
    font-weight: bold;
    color: #333;
}

.tool-desc {
    font-size: 12px;
    color: #666;
}

/* 工具分割线样式 */
.tool-divider {
    margin: 15px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #495057;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* 我的网站侧边栏样式 */
.my-sites-sidebar {
    margin-top: 20px;
}

.site-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.site-link:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    text-decoration: none;
}

.site-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.site-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.site-url {
    font-size: 10px;
    color: #666;
    opacity: 0.75;
    letter-spacing: -0.2px;
}

/* 复制按钮的移动设备适配样式 */
@media (max-width: 768px) {
    /* 只保留复制按钮相关的样式 */
    .copy-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        position: relative;
    }
    
    .copy-btn:active {
        transform: scale(0.95);
        background: #218838;
    }
    
    /* 优化链接输入框在移动端的显示 */
    .file-link input {
        font-size: 14px;
        padding: 8px;
        width: 100%;
        -webkit-user-select: text;
        user-select: text;
        -webkit-appearance: none;
    }
    
    /* 确保链接可以被选中 */
    .direct-link,
    .share-link {
        -webkit-user-select: text;
        user-select: text;
        cursor: text;
    }
}

/* 复制成功提示框样式 */
.copy-tooltip {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 1100;
    pointer-events: none;
    animation: fadeInOut 2s ease-in-out;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* 添加复制按钮的加载状态 */
.copy-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.copy-btn.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    /* 容器布局调整 */
    .container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
        margin: 10px;
    }

    /* 侧边栏调整 */
    .sidebar {
        width: 100%;
        padding: 15px;
    }

    /* 主内容区域调整 */
    .main-content {
        padding: 0;
    }

    /* 文件卡片布局调整 */
    .file-card-content {
        flex-direction: column;
        gap: 15px;
    }

    /* 文件预览区域调整 */
    .file-preview {
        width: 100%;
        height: 200px;
    }

    /* 文件信息区域调整 */
    .file-info {
        width: 100%;
    }

    /* 文件操作按钮调整 */
    .file-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* 上传区域调整 */
    .upload-container {
        padding: 15px;
        min-height: 150px;
    }

    /* 用户信息栏调整 */
    .user-info {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .welcome-title {
        position: static;
        transform: none;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .user-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 分页调整 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 10px;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }

    /* 工具链接调整 */
    .tool-link {
        padding: 10px;
    }

    .tool-icon {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    /* 我的网站链接调整 */
    .site-link {
        padding: 10px;
    }

    .site-icon {
        width: 24px;
        height: 24px;
    }

    /* 底部版权信息调整 */
    .footer {
        padding: 10px 0;
        font-size: 12px;
    }
}

/* 小屏幕设备特别优化 */
@media (max-width: 480px) {
    /* 删除所有样式 */
}
.site-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-left: 100px; /* 增加左边距到 100px */
    align-self: flex-start; /* 确保左对齐 */
}

/* 分页容器样式 */
.pagination-info,
.pagination {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 25px;  /* 增加内边距与其他卡片一致 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    box-sizing: border-box;
}

/* 分页信息样式 */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    width: 106%;
}

/* 分页链接容器样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 106%;
}

/* 分页链接样式 */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    font-size: 14px;
    
}
 
 /* 设置按钮组样式 */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* 调整设置和退出按钮样式 */
.settings-btn,
.logout-btn {
    width: 100%;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.settings-btn {
    margin-bottom: 0;  /* 移除原有的下边距 */
    width: 120%;
}

.user-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}
 
/* 下载按钮样式 */
.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-btn {
        width: 100%;
        padding: 8px 12px;
        margin-top: 5px;
    }
}
/* 在已有的样式中添加 */
.file-card {
    cursor: move;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-card.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} 

/* 移动端适配 */
@media (max-width: 768px) {
    /* 容器布局调整 */
    .container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
        margin: 10px;
    }

    /* 文件卡片拖拽样式调整 */
    .file-card {
        touch-action: pan-x; /* 只允许水平滑动 */
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .file-card.dragging {
        opacity: 0.8;
        transform: scale(0.98);
        background: #f0f0f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 100;
    }

    /* 添加长按反馈 */
    .file-card:active {
        transform: scale(0.98);
        background: #f8f9fa;
    }

    /* 文件卡片内容布局调整 */
    .file-card-content {
        flex-direction: column;
        gap: 10px;
    }

    /* 文件预览区域调整 */
    .file-preview {
        width: 100%;
        height: 180px;
    }

    /* 文件信息区域调整 */
    .file-info {
        width: 100%;
        padding: 10px;
    }

    /* 文件操作按钮调整 */
    .file-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    .file-actions button {
        flex: 1;
        min-width: 80px;
        padding: 8px;
        margin: 0;
    }
}
