/*
#	Project: Supfile System - A powerful file management system
#   * Large file support, multi-file/multi-task processing
#   * Concurrent uploads, drag-and-drop functionality
#   * Easy to deploy and highly functional.
#
#	This is NOT a freeware, use is subject to license terms.
#
#	Website: http://www.phpdisk.com
#
#	Author: Along ( admin@phpdisk.com , phpdisk@outlook.com)
#
#	$Id$
#
#	Copyright (C) 2008-2083 PHPDisk Team. All Rights Reserved.
*/
/* ============================================
   返回顶部按钮样式
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--gradient-end, #764ba2) 100%);
    color: var(--text-white, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark, #5568d3) 0%, var(--gradient-end-dark, #5a3d7a) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn i {
    line-height: 1;
}

/* 响应式设计 - 小屏幕优化 */
@media screen and (max-width: 768px) {
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .back-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

/* ============================================
   全局通用样式
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止横向滚动 */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}
::-webkit-scrollbar-track-piece {
    width: 12px;
    background-color: var(--bg-light);
}
::-webkit-scrollbar {
    width: 12px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    height: 50px;
    background-color: rgba(0, 0, 0, .3);
    border-radius: 1000px;
    border: 2px solid var(--border-color);
    min-height: 40px;
    min-width: 40px;
    position: relative;
}
/* 显示滚动条的上下角标 */
::-webkit-scrollbar-button:single-button {
    display: block;
    background-color: #eee;
    border-radius: 1000px;
    height: 12px;
    width: 8px;
    border: none;
}
::-webkit-scrollbar-button:single-button:vertical:decrement {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="10"><polygon points="4,2 1,7 7,7" fill="%23767eea"/></svg>') center no-repeat;
    background-size: 60% 60%;
}
::-webkit-scrollbar-button:single-button:vertical:increment {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="10"><polygon points="1,3 7,3 4,8" fill="%23767eea"/></svg>') center no-repeat;
    background-size: 60% 60%;
}
::-webkit-scrollbar-thumb:hover {
background: #999;
}

/* 文本选择样式 - 使用主题配色 */
::selection {
    background: var(--primary-color, #667eea);
    color: var(--text-white, #ffffff);
}

::-moz-selection {
    background: var(--primary-color, #667eea);
    color: var(--text-white, #ffffff);
}

/* 全局body样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    padding: 0 20px 20px 20px;
}

/* 全局链接样式 */
a {
    color: var(--link-color, var(--primary-color));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color, var(--primary-dark));
    text-decoration: underline;
}

a:visited {
    color: var(--link-color, var(--primary-color));
}

/* 深色主题下的链接样式增强 */
[data-theme="dark"] a {
    color: var(--link-color, #5dade2);
    text-decoration: none;
}

[data-theme="dark"] a:hover {
    color: var(--link-hover-color, #3498db);
    text-decoration: underline;
}

/* 站点头部样式 */
.site-header {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.site-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* 头部操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

/* 主题切换器区域 - 独立右对齐 */
.header-theme-section {
    display: flex;
    align-items: center;
}

/* 头部导航链接 */
.header-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--text-white, #ffffff);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--text-white, #ffffff);
}

/* 深色主题下的导航链接样式 */
[data-theme="dark"] .header-nav-link {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white, #ffffff);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

[data-theme="dark"] .header-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-white, #ffffff);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-decoration: none !important;
}

.nav-link-icon {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: inherit;
}

.nav-link-text {
    line-height: 1;
    vertical-align: middle;
    color: inherit;
}

.nav-dropdown-arrow {
    color: inherit;
}

/* 我的文件下拉菜单 */
.header-nav-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    font-size: 0.9em;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.header-nav-dropdown.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary, #333) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95em;
}

.nav-dropdown-item:hover {
    background: var(--bg-hover, #f5f5f5);
    color: var(--primary-color, #4a90e2) !important;
    text-decoration: none !important;
}

.nav-dropdown-item:visited {
    color: var(--text-primary, #333) !important;
}

.nav-dropdown-item span {
    color: inherit;
}

.nav-dropdown-icon {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .header-nav-link .nav-link-text {
        display: none; /* 移动端只显示图标 */
    }
    
    .header-nav-link {
        padding: 8px 12px;
    }
}

/* 主题选择器 */
.theme-selector {
    position: relative;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1em;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow: hidden;
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-menu-title {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.theme-options {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 320px;
}

.theme-option {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.theme-option-icon {
    font-size: 1.5em;
}

.theme-option-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 上传按钮组 */
.header-upload-group {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

/* 头部用户信息样式 */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-user-avatar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.header-user-details:hover {
    padding-right: 40px;
}

.user-menu-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.header-user-details.active .user-menu-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.header-user-name {
    color: white;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.2;
}

.header-user-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    line-height: 1.2;
}

.header-btn-mask {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    padding: 0;
    margin: 0;
    opacity: 0;
    z-index: 10;
}

.header-user-details:hover .header-btn-mask {
    display: flex;
    opacity: 1;
}

.header-btn-mask:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-btn-mask i {
    font-size: 0.9em;
    line-height: 1;
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary, #333) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95em;
}

.user-menu-item:hover {
    background: var(--bg-hover, #f5f5f5);
    color: var(--primary-color, #4a90e2) !important;
    text-decoration: none !important;
}

.user-menu-item:visited {
    color: var(--text-primary, #333) !important;
}

.user-menu-item span {
    color: inherit;
}

.user-menu-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.user-menu-item-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.user-menu-item-link:visited {
    color: inherit !important;
}

.user-menu-item i {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.user-menu-item.logout-item {
    color: var(--danger-color, #dc3545);
}

.user-menu-item.logout-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color, #dc3545);
}

.user-menu-item.logout-item i {
    color: var(--danger-color, #dc3545);
}

/* 管理员菜单项样式 */
.user-menu-item.admin-menu-item {
    padding: 0;
}

.user-menu-item.admin-menu-item .user-menu-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary, #333) !important;
    text-decoration: none !important;
    transition: all 0.2s;
    width: 100%;
}

.user-menu-item.admin-menu-item .user-menu-item-link:hover {
    background: var(--bg-hover, #f5f5f5);
    color: var(--primary-color, #4a90e2) !important;
    text-decoration: none !important;
}

.user-menu-item.admin-menu-item .user-menu-item-link:visited {
    color: var(--text-primary, #333) !important;
}

.user-menu-item.admin-menu-item .user-menu-item-link i {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
    color: var(--primary-color, #4a90e2);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color, #e0e0e0);
    margin: 4px 0;
}

.header-btn-logout {
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.header-btn-logout:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .header-user-info {
        gap: 8px;
    }
    
    .header-user-details {
        display: none; /* 移动端隐藏详细信息 */
    }
    
    .header-user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .user-dropdown-menu {
        min-width: 160px;
        right: -10px;
    }
    
    .user-menu-item {
        padding: 10px 14px;
        font-size: 0.9em;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.breadcrumb-item:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--link-color, var(--primary-color));
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--link-hover-color, var(--primary-dark));
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.8em;
    margin: 0 4px;
}

.breadcrumb-icon {
    font-size: 1em;
    opacity: 0.7;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

.site-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* ============================================
   语言切换样式
   ============================================ */
.language-switch {
    z-index: 1000;
}

.language-switch .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-switch .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.language-switch .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.language-switch .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.language-switch .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* ============================================
   文件上传界面样式
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary, #ffffff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--text-primary);
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 12px;
    padding: 0;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

/* TAB标签样式 */
.tab-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 12px 12px 0 0;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-secondary);
    font-weight: 600;
}

/* TAB内容区域 */
.tab-content {
    display: none;
    padding: 20px;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

.upload-empty {
    text-align: center;
    padding: 60px 20px;
    display: block;
}

.upload-empty.hidden {
    display: none;
}

.resume-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.upload-area.drag-over {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 1.2em;
    margin-bottom: 20px;
}

#fileInput {
    display: none;
}

.btn-select {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-white);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.config-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.config-section label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.config-section input {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
}

.file-list {
    margin-top: 0;
    max-height: 300px; /* 约3个文件的高度 */
    overflow-y: auto;
}

.resume-list {
    max-height: 400px;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
/* 显示上下三角标（滚动箭头按钮） */
.file-list::-webkit-scrollbar,
.resume-list::-webkit-scrollbar {
    width: 12px;
    background: #f1f1f1;
}

.file-list::-webkit-scrollbar-track,
.resume-list::-webkit-scrollbar-track {
    border-radius: 4px;
    background: #f1f1f1;
}

.file-list::-webkit-scrollbar-thumb,
.resume-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    border: 2px solid #f1f1f1;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 20px;
    transition: background-color 0.3s ease;
}

.file-list::-webkit-scrollbar-thumb:hover,
.resume-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 显示滚动条按钮（上下三角标） */
.file-list::-webkit-scrollbar-button,
.resume-list::-webkit-scrollbar-button {
    display: block;
    height: 12px;
    width: 12px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
}

/* 上箭头按钮 */
.file-list::-webkit-scrollbar-button:vertical:start:decrement,
.resume-list::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23666' d='M4 2L1 5h6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

/* 下箭头按钮 */
.file-list::-webkit-scrollbar-button:vertical:end:increment,
.resume-list::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23666' d='M4 6L1 3h6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

/* 滚动条按钮悬停效果 */
.file-list::-webkit-scrollbar-button:hover,
.resume-list::-webkit-scrollbar-button:hover {
    background-color: #e0e0e0;
}

.file-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.file-info {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--text-secondary);
    margin: 0 15px;
}

.file-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-waiting {
    background: var(--border-color);
    color: var(--text-secondary);
}

.status-uploading {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

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

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-pause {
    background: #ffc107;
    color: #333;
}

.btn-resume {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-cancel {
    background: var(--danger-color);
    color: var(--text-white);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.uploaded-files-section {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.uploaded-files-section h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.btn-refresh {
    background: var(--success-color);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.uploaded-file-list {
    margin-top: 15px;
}

/* 文件表格容器 - 响应式处理 */
.file-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
}

.file-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.file-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.file-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient-start, #667eea);
    border-radius: 4px;
}

.file-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end, #764ba2);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px; /* 确保表格最小宽度，在小屏幕上可以横向滚动 */
}

.file-table thead {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-white);
}

.file-table th,
.file-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.file-table th {
    font-weight: 600;
    white-space: nowrap; /* 表头不换行 */
}

.file-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* 文件名列 - 允许换行和截断 */
.file-table td:nth-child(2) {
    max-width: 300px;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .file-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }
    
    .file-table {
        min-width: 550px;
        font-size: 0.85em;
    }
    
    .file-table th,
    .file-table td {
        padding: 8px 6px;
    }
    
    /* 文件名列在小屏幕上更窄 */
    .file-table td:nth-child(2) {
        max-width: 200px;
        font-size: 0.9em;
    }
    
    /* 操作按钮在小屏幕上更紧凑 */
    .file-table td:last-child .btn-download {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .file-table {
        min-width: 500px;
        font-size: 0.8em;
    }
    
    .file-table th,
    .file-table td {
        padding: 6px 4px;
    }
    
    .file-table td:nth-child(2) {
        max-width: 150px;
    }
}

.btn-download {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

/* 操作区域 */
.action-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.stats span {
    color: var(--primary-color);
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-white);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* ============================================
   站点底部样式
   ============================================ */
.site-footer {
    text-align: center;
    padding: 40px 20px 20px 20px;
    color: var(--text-white);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-footer > div {
    margin-bottom: 12px;
}

.site-footer .version {
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    background: rgba(var(--primary-light-rgb, 118, 75, 162), 0.2);
    border-radius: 4px;
    margin: 0 2px;
    display: inline-block;
}

.site-footer a {
    color: #a8d5ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.site-footer a:hover {
    color: var(--text-white);
    background: rgba(var(--primary-color-rgb, 102, 126, 234), 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.site-footer .footer-info {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.site-footer .footer-info:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
} 