/* 现代化用户文件管理中心样式 */

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #4a5568;
}

/* 头部样式 */
.pub-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-header .logo {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pub-header .logo:hover {
    transform: scale(1.05);
}

.head-box {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-right: 20px;
}

.head-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.head-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.head-box .text {
    color: white;
    font-weight: 500;
    margin: 0;
}

.pub-header1 {
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pub-header1:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pub-header1 a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

/* 侧边栏样式 */
.el-aside {
    margin: 20px 0 20px 20px;
    min-height: calc(100vh - 120px);
    overflow: hidden;
}

.el-menu {
    background: white !important;
    border: none !important;
    padding: 20px 0;
}

.el-menu-item {
    margin: 8px 16px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.el-menu-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #3b82f6;
    transform: translateX(4px);
}

.el-menu-item.select {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.el-menu-item.select:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.el-menu-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.el-menu-item i {
    margin-right: 12px;
    font-size: 18px;
}

/* 主内容区域 */
.el-main {
    margin: 20px 20px 20px 0;
    padding: 30px;
}

/* 工具栏样式 */
.top-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 20px 10px;
    margin-bottom: 20px;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    gap: 0; /*15px*/
}

.top-item .btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.top-item .btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.top-item .btn-secondary {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
}

.top-item .btn-secondary:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

/* 搜索框样式 */
.top-right input {
    border: 2px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 250px;
}

.top-right input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* 表格样式 */
.bootstrap-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    width: 100%;
}

.table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: auto;
}

/* 表头拖拽调整宽度样式已移至 bootstrap-table-resizable.css */

.table thead th {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    color: #3b82f6;
    border-bottom: 2px solid #bae6fd;
}

.table tbody td {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #e0f2fe;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.table tbody tr:hover td {
    /* transform: translateY(-1px); */
}

/* 文件图标样式 */
.file-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 6px;
    padding: 4px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* 操作按钮样式 */
.action-btn {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.action-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: scale(1.1);
}

/* 文件大小标签 */
.file-size {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* 时间标签 */
.file-time {
    color: #718096;
    font-size: 13px;
}

/* 右键菜单样式 */
.contextmenu {
    background: white;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contextmenu li {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    font-weight: 500;
}

.contextmenu li:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #3182ce;
}

/* 移动端Tabbar样式 */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-tabbar-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    min-width: 60px;
    max-width: 80px;
    position: relative;
}

.mobile-tab-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.mobile-tab-item:not(.active) {
    color: #718096;
}

.mobile-tab-item:hover:not(.active) {
    background: #f0f9ff;
    color: #3b82f6;
}

.mobile-tab-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.mobile-tab-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 文件类型Dropdown样式 */
.mobile-tab-dropdown {
    position: relative;
}

.mobile-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    margin-bottom: 5px;
    pointer-events: none;
}

.mobile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* 防止dropdown在屏幕边缘被截断 */
.mobile-tab-item:first-child .mobile-dropdown-menu {
    left: 0;
    transform: translateX(0) translateY(-10px);
}

.mobile-tab-item:first-child .mobile-dropdown-menu.active {
    transform: translateX(0) translateY(-5px);
}

.mobile-tab-item:first-child .mobile-dropdown-menu::before {
    left: 20px;
    transform: translateX(0);
}

.mobile-tab-item:last-child .mobile-dropdown-menu {
    right: 0;
    left: auto;
    transform: translateX(0) translateY(-10px);
}

.mobile-tab-item:last-child .mobile-dropdown-menu.active {
    transform: translateX(0) translateY(-5px);
}

.mobile-tab-item:last-child .mobile-dropdown-menu::before {
    right: 20px;
    left: auto;
    transform: translateX(0);
}

.mobile-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #3b82f6;
}

.mobile-dropdown-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    font-weight: 600;
}

.mobile-dropdown-item em {
    font-size: 16px;
    margin-right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pub-header {
        padding: 0 15px;
        border-radius: 0 0 15px 15px;
        height: 60px;
    }
    
    .el-container {
        flex-direction: column !important;
        width: 100%;
    }
    
    .el-aside {
        display: none !important;
    }
    
    .mobile-tabbar {
        display: block;
    }
    
    .el-main {
        margin: 15px;
        padding: 20px;
        border-radius: 10px;
        padding-bottom: 80px; /* 为底部tabbar留出空间 */
        overflow-x: hidden;
        width: auto;
    }
    
    .top-item {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: center;
        height: 48px;
    }
    
    .top-right input {
        width: 100%;
    }
    
    .top-left {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }
    
    .top-left .top-item {
        flex: 0 0 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 10px 12px;
        margin: 0!important;
        color: white;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    }
    
    /* 统一蓝色系配色，不同深浅 */
    .top-left .top-item:nth-child(1) {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }
    
    .top-left .top-item:nth-child(2) {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    }
    
    .top-left .top-item:nth-child(3) {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    }
    
    .top-left .top-item:nth-child(4) {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }
    
    .top-left .top-item:nth-child(5) {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    }
    
    .top-left .top-item:nth-child(6) {
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    }
    
    .top-left .top-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    }
    
    .top-left .top-item .text {
        font-size: 12px;
        margin-left: 6px;
        color: white;
        font-weight: 500;
        width: 100%;
        text-align: center;
    }
    
    .top-left .top-item em {
        font-size: 16px;
        color: white;
    }
    
    /* 移动端按钮激活状态 */
    .top-left .top-item.active {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    .top-left .top-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
    }
    
    .top {
        flex-direction: column;
        gap: 20px;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #bae6fd;
    }
    
    .top-right {
        width: 100%;
        justify-content: center;
    }
    
    .top-right .el-input {
        width: 100%;
        max-width: 400px;
        left: auto !important;
    }
    
    /* 移动端表格优化 */
    .bootstrap-table {
        font-size: 14px;
        width: 100%;
        overflow-x: auto;
    }
    
    .table {
        min-width: 800px;
        table-layout: auto;
    }
    
    /* 移动端拖拽调整样式已移至 bootstrap-table-resizable.css */
    
    .table thead th {
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 10px 8px;
        font-size: 13px;
        word-wrap: break-word;
    }
    
    .filename {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .file-size {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .file-time {
        font-size: 11px;
    }
    
    .action-btn {
        font-size: 14px;
        padding: 6px;
        margin: 0 2px;
    }
    
    /* 隐藏部分移动端不需要的列 */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* 工具栏按钮优化 */
    .top-item .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 搜索框优化 */
    .top-right input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* 导航路径移动端优化 */
    .daohang {
        background: white;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
        border: 1px solid #bae6fd;
        position: relative;
        z-index: 10;
        overflow: hidden;
        min-height: 80px;
    }
    
    .daohang-all {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        position: relative;
        flex-wrap: wrap;
    }
    
    /* 文件路径导航 */
    .daohang-all .daohang-path {
        order: 1;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .daohang-all .daohang-path li {
        margin: 0;
        padding: 6px 10px;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border-radius: 6px;
        border-left: 3px solid #3b82f6;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .daohang-all .daohang-path li a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
        font-size: 13px;
        transition: color 0.3s ease;
    }
    
    .daohang-all .daohang-path li a:hover {
        color: #1e40af;
    }
    
    /* 文件统计信息 */
    .daohang-all > span:first-child {
        font-weight: 600;
        color: #3b82f6;
        font-size: 14px;
        order: 2;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 文件操作提示 */
    .daohang-all > span:last-child,
    .daohang-all span[style*="float:right"] {
        float: none !important;
        display: block;
        position: static !important;
        top: auto !important;
        right: auto !important;
        order: 3;
        color: #64748b !important;
        font-size: 11px !important;
        text-align: right !important;
        margin: 0 !important;
        padding: 4px 8px;
        background: #f8fafc;
        border-radius: 4px;
        border: 1px solid #e2e8f0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 文件操作提示特殊样式 */
    .daohang-all span[title] {
        font-size: 10px !important;
        color: #f59e0b !important;
        background: #fef3c7 !important;
        border-color: #f59e0b !important;
        display: block;
        margin-bottom: 0;
        padding: 4px 8px;
        border-radius: 4px;
        order: 4;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .daohang-count {
        color: #3182ce;
        font-weight: 600;
    }
    
    /* 目录显示优化 */
    .daohang-all .folder-info {
        order: 0;
        background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
        border: 1px solid #10b981;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 15px;
        color: #065f46;
        font-weight: 500;
        font-size: 14px;
    }
    
    /* 移动端特殊处理 */
    @media (max-width: 768px) {
        .file-info-tip {
            display: none !important;
        }
        .daohang {
            margin: 15px;
            padding: 12px;
            min-height: auto;
        }
        
        .daohang-all {
            gap: 6px;
            flex-wrap: wrap;
            overflow-x: visible;
            padding-bottom: 5px;
            flex-direction: column;
            align-items: flex-start;
        }
        
        /* 强制显示路径导航并设置样式 */
        .daohang-path {
            display: flex !important;
            flex-wrap: nowrap;
            gap: 4px;
            min-width: 0;
            order: 2;
            overflow-x: auto;
            scrollbar-width: thin;
            margin: 0;
            padding: 0;
            list-style: none;
            width: 100%;
        }
        
        .daohang-path::-webkit-scrollbar {
            height: 3px;
        }
        
        .daohang-path::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 2px;
        }
        
        .daohang-path::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 2px;
        }
        
        .daohang-path li {
            padding: 4px 8px;
            font-size: 12px;
            flex-shrink: 0;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-radius: 6px;
            border-left: 3px solid #3b82f6;
            white-space: nowrap;
            margin: 0;
        }
        
        .daohang-path li a {
            color: #3b82f6;
            text-decoration: none;
            font-weight: 500;
            font-size: 12px;
            transition: color 0.3s ease;
        }
        
        .daohang-path li a:hover {
            color: #1e40af;
        }
        
        /* 隐藏路径中的分隔符，移动端不需要 */
        .daohang-path .fuhao {
            /*display: none;*/
        }
        
        .daohang-all > span:first-child {
            font-size: 14px;
            order: 1;
            flex-shrink: 0;
            width: 100%;
            /*margin-bottom: 8px;*/
        }
        
        .daohang-all > span:last-child,
        .daohang-all span[style*="float:right"] {
            font-size: 11px !important;
            padding: 4px 8px;
            order: 3;
            flex-shrink: 0;
            width: 100%;
        }
        
        .daohang-all span[title] {
            font-size: 10px !important;
            padding: 4px 8px;
            order: 4;
            flex-shrink: 0;
            width: 100%;
        }
        
        /* 移动端隐藏右键操作提示 */
        .daohang-all span[title*="右键"] {
            display: none !important;
        }
        
        /* 移动端文件信息提示样式 */
        .daohang-all .file-info-tip {
            float: none !important;
            /*display: block !important;*/
            position: static !important;
            order: 3;
            width: 100%;
            text-align: left !important;
            margin-top: 8px;
        }
        
        .daohang-all .file-info-tip .right-click-tip {
            display: none !important;
        }
    }
    
    /* 超小屏幕下的特殊处理 */
    @media (max-width: 480px) {
        .daohang-all {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        
        .daohang-path {
            width: 100%;
            order: 1;
            display: flex !important;
            overflow: auto !important;
        }
        
        .daohang-path li {
            padding: 3px 6px;
            font-size: 11px;
        }
        
        .daohang-path li a {
            font-size: 11px;
        }
        
        .daohang-all > span:first-child {
            order: 2;
            align-self: flex-start;
            font-size: 11px;
        }
        
        .daohang-all > span:last-child,
        .daohang-all span[style*="float:right"] {
            order: 3;
            align-self: flex-start;
            font-size: 9px !important;
        }
        
        .daohang-all span[title] {
            order: 4;
            align-self: flex-start;
            font-size: 8px !important;
        }    
    }
}

@media (max-width: 768px) {
    .file-info-tip {
        display: none !important;
    }
}

/* 导航路径桌面版美化 */
.daohang {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
    border: 1px solid #bae6fd;
    overflow: hidden;
    position: relative;
    min-height: 60px;
}

.daohang-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.daohang-all span:first-child {
    font-weight: 600;
    color: #3b82f6;
    flex-shrink: 0;
}

.daohang-all span:last-child {
    color: #64748b;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

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

.daohang-path li {
    display: inline-block;
    margin-right: 10px;
}

.daohang-path a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.daohang-path a:hover {
    color: #3b82f6;
}

.daohang-count {
    color: #60a5fa;
    font-weight: 600;
}

/* 桌面端导航：左侧路径与右侧信息同高，右侧贴边 */
.desktop-nav .daohang-all {
    justify-content: flex-start;
    gap: 12px;
}

.desktop-nav .daohang-path {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.desktop-nav .file-info-tip {
    margin-left: auto;
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    white-space: nowrap;
}

.desktop-nav .file-info-tip .view-toggle-nav { margin-right: 0 !important; }
.desktop-nav .right-click-tip { color: #f0ad4e; font-size: 12px; margin-right: 5px; }

/* 统一按钮尺寸，保证视觉高度一致 */
.desktop-nav .view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* 分享链接样式优化 */
.share-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.share-link-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.share-link-text:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
    color: #1e40af;
}

.share-link-copy {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-link-copy:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.share-link-copy:active {
    transform: scale(0.95);
}

/* 空分享链接样式 */
.share-link-empty {
    color: #a0aec0;
    font-size: 12px;
    font-style: italic;
}

/* 移动端分享链接优化 */
@media (max-width: 768px) {
    .share-link-container {
        max-width: 150px;
    }
    
    .share-link-text {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .share-link-copy {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.el-main {
    animation: fadeIn 0.5s ease-out;
}

/* 拖拽样式 */
.drag-over {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 2px dashed #3b82f6;
    border-radius: 12px;
}

/* 选择框样式 */
.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e0f2fe;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transition: width 0.3s ease;
}

/* 工具提示样式 */
.tooltip {
    font-size: 12px;
}

.tooltip-inner {
    background: #1e40af;
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.modal-header {
    background: #f0f9ff;
    color: #1e40af;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #bae6fd;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #bae6fd;
    padding: 20px 30px;
}

/* 按钮组样式 */
.btn-group .btn {
    border: none;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #1e40af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #93c5fd 100%);
    transform: translateY(-1px);
}

.btn-group .btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

/* 移动端头部优化 */
@media (max-width: 768px) {
    .pub-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-left {
        flex: 1;
        max-width: calc(100% - 120px); /* 为右侧留出空间 */
    }
    
    .pub-header .logo {
        width: 80px !important;
        height: 32px !important;
    }
    
    .pub-right {
        flex-shrink: 0;
        min-width: 140px;
        justify-content: flex-end;
        gap: 5px;
    }
    
    .pub-right .head-box {
        padding: 4px 8px;
        min-width: auto;
        margin-right: 5px;
    }
    
    .pub-right .head-img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .pub-right .text {
        display: none; /* 移动端隐藏用户名 */
    }
    
    .pub-right .line {
        display: none; /* 移动端隐藏分割线 */
    }
    
    .pub-header1 {
        margin-left: 5px;
        padding: 4px 8px;
    }
    
    .pub-header1 .text {
        font-size: 11px;
    }
    
    .pub-header1 img {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* 移动端菜单按钮显示 */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* 隐藏桌面端侧边栏 */
    .el-aside {
        display: none !important;
    }
    
    .el-container {
        flex-direction: column !important;
    }
    
    .el-main {
        margin: 0;
        padding: 15px;
        padding-bottom: 80px; /* 为底部tabbar留出空间 */
    }
    
    /* 移动端tabbar显示 */
    .mobile-tabbar {
        display: block !important;
    }
}

/* 移动端文件列表优化 */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
}

/* 移动端文件操作按钮优化 */
@media (max-width: 576px) {
    .top-left .top-item {
        flex: 0 0 calc(50% - 6px); /* 保持两个一行 */
        max-width: calc(50% - 6px);
        padding: 8px 10px;
        margin: 3px;
        font-size: 11px;
    }
    
    .top-left .top-item .text {
        font-size: 11px;
        margin-left: 4px;
        width: 100%;
        text-align: center;
    }
    
    .top-left .top-item em {
        font-size: 14px;
    }
    
    .mobile-drawer {
        width: 280px; /* 小屏幕下抽屉宽度稍小 */
    }
    
    .daohang {
        margin: 10px;
        padding: 12px;
    }
    
    .mobile-tabbar-items {
        padding: 0 10px;
    }
    
    .mobile-tab-item {
        min-width: 50px;
        padding: 6px 2px;
    }
    
    .mobile-tab-text {
        font-size: 10px;
    }
    
    .mobile-tab-icon {
        font-size: 16px;
    }
    
    /* 小屏幕下的dropdown优化 */
    .mobile-dropdown-menu {
        min-width: 100px;
        /* 不要重写定位相关的样式，保持原有的定位逻辑 */
    }
    
    .mobile-dropdown-item {
        padding: 10px 12px;
    }
    
    .mobile-dropdown-item em {
        font-size: 14px;
        margin-right: 6px;
        width: 18px;
        height: 18px;
    }
    
    .mobile-dropdown-item span {
        font-size: 12px;
    }
}

/* 极小屏幕的特殊处理 */
@media (max-width: 400px) {
    .top-left .top-item {
        flex: 0 0 calc(100% - 6px); /* 极小屏幕改为一个一行 */
        max-width: calc(100% - 6px);
        padding: 10px 12px;
        margin: 2px 0;
    }
    
    .top-left .top-item .text {
        font-size: 12px;
        margin-left: 6px;
        width: 100%;
        text-align: center;
    }
    
    .top-left .top-item em {
        font-size: 16px;
    }
}

/* 文件表格移动端优化 */
@media (max-width: 768px) {
    /* 按钮布局优化 - 2个一行，第三个自动换行 */
    .top-left {
        flex-flow: row wrap;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
        vertical-align: middle;
    }
    
    .filename {
        max-width: 140px;
        font-weight: 500;
    }
    
    .file-type-icon {
        width: 24px;
        height: 24px;
    }
    
    /* 隐藏一些不必要的列 */
    .table .hidden-mobile {
        display: none !important;
    }
    
    /* 文件操作按钮优化 */
    .action-btn {
        padding: 4px 6px;
        margin: 0 1px;
        font-size: 12px;
    }
    
    /* 隐藏右键操作提示 */
    .right-click-tip {
        display: none !important;
    }
    
    /* 隐藏整个文件信息提示区域 */
    .file-info-tip {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .file-info-tip {
        display: none !important;
    }
}