/* IDDisk 网盘组件样式 - 参考百度网盘设计 */

/* ==================== 顶部导航栏 ==================== */
.disk-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Connect Wallet 按钮样式 - 使用与 logo-text 相同的渐变 */
.btn-connect-wallet {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-connect-wallet:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
}

.topbar-center {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.topbar-search {
    width: 100%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-user-operate {
    display: flex;
    align-items: center;
}

.topbar-storage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.storage-icon {
    color: #6b7280;
}

.storage-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.storage-text {
    font-size: 0.75rem;
    color: #6b7280;
}

.storage-used {
    color: #3b82f6;
    font-weight: 500;
}

.storage-separator {
    margin: 0 0.25rem;
}

.storage-total {
    color: #9ca3af;
}

.storage-progress {
    width: 100%;
}

/* ==================== 侧边栏 ==================== */
.disk-sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid #e5e7eb;
    height: calc(100vh - 64px);
    overflow-y: auto;
    position: sticky;
    top: 0px;
    align-self: flex-start;
    margin-top: 0;
}

.sidebar-header {
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.sidebar-menu {
    padding: 0.5rem 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    position: relative;
}

.sidebar-menu-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-menu-item.is-active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}

.sidebar-menu-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #3b82f6;
    border-radius: 0 2px 2px 0;
}

.sidebar-menu-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-menu-label {
    flex: 1;
    font-size: 0.875rem;
}

.sidebar-menu-count {
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
}

.sidebar-menu-item.is-active .sidebar-menu-count {
    background: #dbeafe;
    color: #3b82f6;
}

.sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.sidebar-section {
    padding: 0.5rem 0;
}

.sidebar-section-title {
    padding: 0.5rem 1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== 主容器 ==================== */
.disk-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    align-items: flex-start;
}

.disk-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f9fafb;
}

/* ==================== 文件类型筛选 ==================== */
.file-type-filter {
    display: flex;
    align-items: center;
}

.file-type-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-type-radio {
    display: flex;
    align-items: center;
}

/* 文件排序 */
.file-sort {
    display: flex;
    align-items: center;
}

.file-sort-select {
    width: 8rem;
}

/* ==================== 文件工具栏 ==================== */
.file-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.file-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

/* 上传按钮（大按钮） */
.upload-btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upload-btn-large:hover {
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* 按钮组 */
.file-toolbar-button-group {
    display: flex;
    align-items: center;
    background: #f0f9ff;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0;
}

.toolbar-btn-group-item {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.toolbar-btn-group-item:hover {
    background: #dbeafe;
    color: #2563eb;
}

.toolbar-btn-divider {
    width: 1px;
    height: 1.5rem;
    background: #bfdbfe;
    margin: 0 0.25rem;
}

.file-toolbar-right {
    display: flex;
    align-items: center;
}

/* 搜索框区域 */
.file-toolbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.toolbar-search-input {
    width: 280px;
}

.toolbar-search-input .el-input__wrapper {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.toolbar-search-input .el-input__wrapper:hover {
    border-color: #3b82f6;
}

.toolbar-search-input .el-input__wrapper.is-focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.toolbar-search-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .file-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .file-toolbar-left {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .upload-btn-large {
        width: 100%;
    }
    
    .file-toolbar-button-group {
        width: 100%;
        justify-content: space-around;
    }
    
    .toolbar-btn-group-item {
        flex: 1;
        justify-content: center;
    }
    
    .file-toolbar-search {
        width: 100%;
    }
    
    .toolbar-search-input {
        width: 100%;
        flex: 1;
    }
}

/* 文件列表容器 */
.file-list-container {
    width: 100%;
    /* 使用 contain 优化渲染性能 */
    contain: layout style;
    /* 启用硬件加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.file-list-loading {
    padding: 1rem;
}

/* 文件列表 */
.file-list {
    width: 100%;
}

.file-list-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .file-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .file-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .file-list-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .file-list-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.file-list-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Element Plus Table 样式 */
.file-list-table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.file-list-table .el-table__header-wrapper {
    background: #f9fafb;
}

.file-list-table .el-table__header th {
    background: #f9fafb !important;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.file-list-table .el-table__body tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-list-table .el-table__body tr:hover {
    background: #f9fafb !important;
}

/* 确保表格单元格可以显示操作图标 */
.file-list-table .el-table__cell {
    position: relative;
}

.file-list-table .el-table__body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #1f2937;
}

.file-list-table .el-table__body tr:last-child td {
    border-bottom: none;
}

/* 文件操作图标（内联在文件名列中） */
.file-table-actions-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding-left: 0.5rem;
    flex-shrink: 0;
}

.file-table-actions-inline.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 移动端：选中文件时显示操作图标 */
@media (max-width: 500px) {
    /* 调整文件名列的宽度，确保文件名能够显示 */
    .file-list-table .el-table__body .el-table__cell:first-child,
    .file-list-table .el-table__header .el-table__cell:first-child {
        min-width: 280px !important;
        width: auto !important;
    }
    
    /* 调整 file-table-name-cell 的布局 */
    .file-table-name-cell {
        gap: 0.5rem;
        min-width: 350px;
        width:350px !important;
        padding-right: 0.25rem;
    }
    
    /* 确保文件名有足够的空间 */
    .file-table-name {
        flex: 1;
        min-width: 100px; /* 确保文件名至少有100px的显示空间 */
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 调整操作按钮的大小和间距 */
    .file-table-actions-inline {
        gap: 0.25rem;
        padding-left: 0.25rem;
        flex-shrink: 0;
        margin-left: 0.25rem;
    }
    
    .file-action-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .file-action-icon .el-icon {
        font-size: 16px;
    }
    
    .file-table-actions-inline.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    /* 调整图标大小 */
    .file-table-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    /* 调整 checkbox 大小 */
    .file-table-name-cell .el-checkbox {
        flex-shrink: 0;
    }
    
    /* 确保表格可以横向滚动 */
    .file-list-table {
        min-width: 100%;
    }
    
    .file-list-table .el-table__body-wrapper,
    .file-list-table .el-table__header-wrapper {
        overflow-x: auto;
    }
}

/* 使用 CSS hover 作为备用方案 */
.file-list-table .el-table__body tr:hover .file-table-actions-inline {
    opacity: 1;
    visibility: visible;
}

/* 文件操作图标（独立操作列，保留备用） */
.file-table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.file-table-actions.is-visible {
    opacity: 1;
    visibility: visible;
}

.file-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.file-action-icon:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.file-action-share:hover {
    color: #10b981;
}

.file-action-download:hover {
    color: #3b82f6;
}

.file-list-table.has-new-folder {
    margin-top: 0;
}

/* 新建文件夹输入框行 */
.new-folder-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.new-folder-input {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.new-folder-input .el-input__inner {
    font-size: 0.875rem;
}

.new-folder-input .el-input__wrapper {
    padding: 0.25rem 0.5rem;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    border-radius: 4px;
}

.new-folder-input .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #c0c4cc inset;
}

.new-folder-input .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px #409eff inset;
}

.new-folder-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.new-folder-actions .el-button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 28px;
}

.new-folder-actions .el-button .el-icon {
    font-size: 14px;
}

.new-folder-actions .el-button--primary {
    background-color: #409eff;
    border-color: #409eff;
    color: #ffffff;
}

.new-folder-actions .el-button--primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
    color: #ffffff;
}

.new-folder-actions .el-button--default {
    background-color: #ffffff;
    border-color: #dcdfe6;
    color: #606266;
}

.new-folder-actions .el-button--default:hover {
    background-color: #ecf5ff;
    border-color: #b3d8ff;
    color: #409eff;
}

/* 新建文件夹行样式 - 防止行点击事件 */
.file-list-table .el-table__body tr:first-child .new-folder-cell {
    cursor: default;
}

/* 确保新建文件夹行不响应 hover 背景变化 */
.file-list-table .el-table__body tr:first-child:hover {
    background-color: #ffffff !important;
}

/* 表格文件名单元格 */
.file-table-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    width: 100%;
}

.file-table-name {
    flex: 1;
    min-width: 0;
}

.file-table-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

/* 表格缩略图样式 */
.file-table-thumbnail {
    background-color: transparent !important;
    overflow: hidden;
    padding: 0;
}

.file-table-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.file-table-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表格视图表头 */
.file-list-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.file-list-header-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.file-list-header-name {
    padding-left: 0;
    gap: 0.75rem;
    align-items: center;
}

.file-list-header-name .el-checkbox {
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.file-list-header-name .header-icon-placeholder {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.file-list-header-name .header-label {
    flex: 1;
    min-width: 0;
}

.file-list-header-size {
    justify-content: flex-start;
}

.file-list-header-type {
    justify-content: flex-start;
}

.file-list-header-time {
    justify-content: flex-start;
}

.header-label {
    user-select: none;
}

.header-sort-icon {
    font-size: 0.75rem;
    color: #3b82f6;
    cursor: pointer;
}

/* ==================== 文件卡片 - 网格视图 ==================== */
.file-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.file-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e5e7eb;
}

.file-card-grid {
    position: relative;
    overflow: visible;
}

.file-card-grid-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.file-card-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    overflow: hidden;
    position: relative;
}

.file-card-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.file-card:hover .file-card-thumbnail-overlay {
    opacity: 1;
}

.file-card-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.file-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.file-card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    height: 100%;
}

.file-card-loading .loading-text {
    font-size: 0.75rem;
}

.file-card:hover .file-card-image {
    transform: scale(1.05);
}

.file-card-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.file-card-icon {
    transition: transform 0.3s;
}

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

.file-card-info {
    padding: 1rem;
    flex: 1;
    background: white;
}

.file-card-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-card-name-icon {
    flex-shrink: 0;
}

.file-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-card-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-icon {
    color: #9ca3af;
}

.meta-separator {
    margin: 0 0.25rem;
    color: #d1d5db;
}

.file-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ==================== 文件卡片 - 列表视图 ==================== */
.file-card-list {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    border-radius: 0;
}

.file-card-list:first-of-type {
    border-top: 1px solid #f3f4f6;
}

.file-card-list:hover {
    background: #f9fafb;
}

/* 表格行样式 */
.file-card-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-card-table-row:hover {
    background: #f9fafb;
}

.file-card-table-cell {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
}

.file-card-table-name {
    gap: 0.75rem;
    padding-left: 0;
    min-width: 0;
    align-items: center;
}

.file-card-table-name .el-checkbox {
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.file-card-table-name .file-card-list-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.file-card-table-name .file-card-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.file-card-table-size {
    color: #6b7280;
    justify-content: flex-start;
}

.file-card-table-type {
    color: #6b7280;
    justify-content: flex-start;
}

.file-card-table-time {
    color: #6b7280;
    justify-content: flex-start;
}

.file-card-list-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
}

.file-card-list-checkbox {
    flex-shrink: 0;
}

.file-card-list-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.file-card-list-info {
    min-width: 0;
    flex: 1;
}

.file-card-list-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-card-list:hover .file-card-list-actions {
    opacity: 1;
}

/* ==================== 网盘布局 ==================== */
.disk-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

.disk-toolbar-wrapper {
    width: 100%;
    padding: 1rem 1.5rem 0;
    
    background: #f9fafb;
    position: relative;
    z-index: 1;
}

.disk-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 1.5rem 1rem;
    background: #f9fafb;
    /* 确保内容可以滚动 */
    min-height: 0;
}

/* 固定栏 */
.file-list-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.file-list-header-left {
    display: flex;
    align-items: center;
}

.file-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 面包屑导航样式 */
.breadcrumb-item {
    color: #409eff;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.125rem;
    font-weight: 600;
}

.breadcrumb-item:hover {
    color: #66b1ff;
}

.breadcrumb-item.breadcrumb-active {
    color: #6b7280;
    cursor: default;
}

.breadcrumb-item.breadcrumb-active:hover {
    color: #6b7280;
}

.breadcrumb-item.breadcrumb-back {
    color: #409eff;
}

.breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.25rem;
    font-size: 1rem;
    user-select: none;
}

.file-list-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-details-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.file-details-toggle-btn:hover {
    background: #f9fafb;
    color: #3b82f6;
    border-color: #3b82f6;
}

.toggle-icon {
    font-size: 1rem;
}

.toggle-arrow {
    font-size: 0.875rem;
}

.toggle-text {
    white-space: nowrap;
}

/* 文件列表包装器 */
.file-list-wrapper {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    min-height: 0;
}

/* 文件列表区域 */
.file-list-wrapper > .file-list-container {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 1024px) {
    .disk-sidebar {
        width: 200px;
    }
    
    .topbar-center {
        max-width: 300px;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .disk-sidebar {
        position: fixed;
        left: -240px;
        top: 0px;
        z-index: 200;
        transition: left 0.3s;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }
    
    .disk-sidebar.mobile-open {
        left: 0;
    }
    
    .disk-main-content {
        width: 100%;
    }
    
    .disk-topbar {
        padding: 0 1rem;
        height: 56px;
    }
    
    .topbar-left {
        gap: 1rem;
    }
    
    .topbar-breadcrumb {
        display: none;
    }
    
    .topbar-center {
        max-width: 200px;
        margin: 0 0.5rem;
    }
    
    .topbar-storage {
        display: none;
    }
    
    .file-toolbar {
        padding: 0.75rem;
    }
    
    .file-card-list-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .file-card-list-actions {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 0.25rem;
        background: white;
        padding: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Element Plus 组件样式覆盖 */
.file-type-radio-group .el-radio-button__inner {
    padding: 0.25rem 0.75rem;
}

.file-type-radio-group .el-radio-button__original-radio:checked + .el-radio-button__inner {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* 空状态样式 */
.file-list-container .el-empty {
    padding: 3rem 0;
}

/* 加载骨架屏样式 */
.file-list-loading .el-skeleton {
    padding: 1rem;
}

/* ==================== 文件详情组件 ==================== */
.file-details-container {
    width: 320px;
    flex-shrink: 0;
    transition: width 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

.file-details-container.is-collapsed {
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 文件详情面板 */
.file-details-panel {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 400px;
    max-height: 800px;
}

/* 文件详情头部 */
.file-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.file-details-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 文件详情内容 */
.file-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* 空状态 */
.file-details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.file-details-empty-icons {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
}

.empty-icon-folder {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.empty-icon-doc-1 {
    position: absolute;
    top: 30px;
    left: 40px;
    opacity: 0.25;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.empty-icon-doc-2 {
    position: absolute;
    top: 60px;
    left: 80px;
    opacity: 0.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.file-details-empty-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* 文件详情信息 */
.file-details-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.file-details-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.file-details-image {
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.file-details-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.file-details-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

/* 文件详情缩略图样式（与 file-table-thumbnail 保持一致） */
.file-details-image {
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    flex-shrink: 0;
}

.file-details-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.file-details-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-details-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    word-break: break-all;
}

.file-details-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.meta-value {
    font-size: 0.875rem;
    color: #1f2937;
}

.path-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.path-link {
    color: #409eff;
    cursor: pointer;
    transition: color 0.2s;
}

.path-link:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.path-icon {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* 文件详情操作按钮 */
.file-details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.file-details-actions .el-button {
    width: 100%;
    justify-content: center;
}

.file-details-collapse-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.file-details-collapse-btn:hover {
    color: #1f2937;
}

.collapse-text {
    font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .file-details-container {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .file-list-wrapper {
        flex-direction: column;
    }
    
    .file-details-container {
        width: 100% !important;
    }
    
    .file-details-container.is-collapsed {
        width: 0 !important;
        height: 0 !important;
    }
    
    .file-details-panel {
        height: auto;
        max-height: 500px;
    }
}

/* 加载更多触发器样式 */
.load-more-trigger {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.load-more-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #409eff;
    font-size: 0.875rem;
    font-weight: 500;
}

.load-more-loading .el-icon {
    font-size: 1rem;
    animation: rotate 1s linear infinite;
}

.load-more-trigger-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #909399;
    font-size: 0.875rem;
}

.load-more-trigger-hint .el-icon {
    font-size: 0.875rem;
    color: #909399;
}

.load-more-trigger-hint .hint-loading-icon {
    animation: rotate-slow 2s linear infinite;
    opacity: 0.6;
}

/* 视频加载动画 */
.video-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
}

.video-loading-container .loading-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 图片预览对话框 */
.image-preview-dialog .el-dialog__body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 视频预览对话框 */
.video-preview-dialog .el-dialog__body {
    padding: 20px;
}

.video-preview-dialog .video-js {
    width: 100%;
    height: auto;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.load-more-end {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 0.875rem;
}

.load-more-end span {
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border-radius: 0.25rem;
}

/* ==================== 加载更多骨架屏样式 ==================== */
.load-more-skeleton {
    padding: 1rem 0;
    animation: fadeIn 0.3s ease-in;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-line-title {
    width: 60%;
    height: 14px;
}

.skeleton-line-meta {
    width: 40%;
    height: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 优化加载时的滚动体验 */
.file-list-container {
    /* 使用 contain 优化渲染性能 */
    contain: layout style;
    /* 启用硬件加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 加载更多时，保持滚动流畅 */
.file-list-table.is-loading-more {
    will-change: contents;
    /* 使用 contain 优化渲染性能 */
    contain: layout style paint;
}

/* 骨架屏在表格下方显示，确保有固定高度避免滚动跳动 */
.load-more-skeleton {
    margin-top: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 300px;
}

/* 新加载内容的过渡动画 */
.file-list-table .el-table__row {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 移动端样式 (< 500px) ==================== */
@media (max-width: 500px) {
    /* 文件工具栏移动端样式 */
    .file-toolbar.is-mobile {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .file-toolbar-search-mobile {
        width: 100%;
    }
    
    .file-toolbar-search-mobile .file-toolbar-search {
        width: 100%;
    }
    
    .file-toolbar-search-mobile .toolbar-search-input {
        width: 100%;
    }
    
    /* 移动端侧边栏横向滚动 */
    .mobile-sidebar-menu-wrapper {
        padding: 0.5rem 0;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 0.5rem;
        position: sticky;
        top: 64px; /* disk-topbar 的高度 */
        z-index: 998; /* 低于 disk-topbar (1000) 和 file-toolbar (999) */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 添加阴影以区分层级 */
        /* 确保 sticky 定位生效 */
        align-self: flex-start;
        width: 100%;
    }
    
    /* 如果有选择模式工具栏，mobile-sidebar-menu-wrapper 应该在其下方 */
    /* 使用 :has() 选择器检测 disk-toolbar-wrapper 中是否有选择模式的 file-toolbar */
    .disk-toolbar-wrapper:has(.file-toolbar.is-selection-mode) ~ .mobile-sidebar-menu-wrapper {
        top: calc(64px + 48px); /* disk-topbar (64px) + file-toolbar-selection (约48px，包含padding) */
    }
    
    .mobile-sidebar-menu {
        display: flex;
        gap: 0.5rem;
        padding: 0 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mobile-sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-sidebar-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 60px;
    }
    
    .mobile-sidebar-menu-item:hover {
        background: #f3f4f6;
    }
    
    .mobile-sidebar-menu-item.is-active {
        background: #eff6ff;
        color: #3b82f6;
    }
    
    .mobile-sidebar-menu-icon {
        flex-shrink: 0;
    }
    
    .mobile-sidebar-menu-label {
        font-size: 0.75rem;
        text-align: center;
    }
    
    /* 移动端隐藏文件详情 */
    .file-details-container {
        display: none !important;
    }
    
    .file-details-toggle-btn {
        display: none !important;
    }
    
    /* 移动端底部Tab栏 */
    .mobile-bottom-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 0.5rem 0;
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        cursor: pointer;
        transition: all 0.2s;
        flex: 1;
        color: #9ca3af;
    }
    
    .mobile-tab-item.is-active {
        color: #3b82f6;
    }
    
    .mobile-tab-label {
        font-size: 0.75rem;
    }
    
    /* 移动端布局调整 */
    .disk-layout.is-mobile {
        padding-bottom: 60px; /* 为底部Tab栏留出空间 */
    }
    
    .disk-main-content {
        padding-bottom: 0;
        /* 移动端允许垂直滚动，以便 sticky 定位生效 */
        overflow-y: auto;
        overflow-x: hidden;
        /* 确保有足够的高度让 sticky 生效 */
        min-height: 0;
        /* 使用 -webkit-overflow-scrolling 提升滚动体验 */
        -webkit-overflow-scrolling: touch;
        /* 确保是滚动容器 */
        height: calc(100vh - 64px); /* 视口高度减去 topbar 高度 */
    }
    
    .disk-content-wrapper {
        padding: 0 0.75rem 1rem;
    }
    
    /* 移动端用户名隐藏 */
    .user-name-text {
        display: none;
    }
    
    /* 移动端操作弹窗 */
    .mobile-action-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: flex;
        align-items: flex-end;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-action-modal.show {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-action-modal-content {
        width: 100%;
        max-height: 80vh;
        background: white;
        border-radius: 1rem 1rem 0 0;
        padding: 1.5rem 1rem 2rem;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        position: relative;
    }
    
    .mobile-action-modal.show .mobile-action-modal-content {
        transform: translateY(0);
    }
    
    .mobile-action-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-action-qr-icon {
        color: #3b82f6;
    }
    
    .mobile-action-header-text {
        font-size: 0.875rem;
        color: #6b7280;
    }
    
    .mobile-action-section {
        margin-bottom: 1.5rem;
    }
    
    .mobile-action-section-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 1rem;
    }
    
    .mobile-action-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .mobile-action-row {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .mobile-action-item:active {
        background: #f3f4f6;
    }
    
    .mobile-action-icon {
        width: 56px;
        height: 56px;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .mobile-action-icon.photo-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        color: white;
    }
    
    .mobile-action-icon.video-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        color: white;
    }
    
    .mobile-action-icon.file-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        color: white;
    }
    
    /* 文件图标特殊处理，确保大小一致 */
    .mobile-action-icon.file-icon .el-icon {
        font-size: 40px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .mobile-action-icon.file-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* 确保所有图标容器内的图标大小一致 */
    .mobile-action-icon .el-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-action-icon svg {
        display: block;
    }
    
    .mobile-action-icon.wechat-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        color: white;
    }
    
    .mobile-action-icon.folder-icon {
        background: white;
        border: 1px solid #e5e7eb;
        color: #3b82f6;
    }
    
    .mobile-action-icon.note-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        color: white;
    }
    
    .mobile-action-icon.ai-icon {
        background: #1f2937;
        color: white;
    }
    
    .mobile-action-label {
        font-size: 0.75rem;
        color: #1f2937;
        text-align: center;
    }
    
    .mobile-action-tag {
        position: absolute;
        top: -4px;
        right: -4px;
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        border-radius: 0.25rem;
        font-weight: 500;
    }
    
    .mobile-action-tag.original-tag {
        background: #3b82f6;
        color: white;
    }
    
    .mobile-action-tag.svip-tag {
        background: #f59e0b;
        color: white;
    }
    
    .mobile-action-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    .mobile-action-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f3f4f6;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-action-close:active {
        background: #e5e7eb;
    }
    
    /* 移动端添加按钮 */
    .mobile-add-btn {
        margin-left: 0;
    }
    
    /* 移动端缩小用户操作区域元素间距 */
    .topbar-user-operate > div.flex.items-center {
        gap: 0.25rem !important;
    }
    
    /* 移动端缩小上传任务按钮和添加按钮之间的间距 */
    .upload-task-btn + .mobile-add-btn {
        margin-left: 0;
    }
    
    /* 移动端缩小添加按钮和更多操作菜单之间的间距 */
    .mobile-add-btn + .dropdown {
        margin-left: 0;
    }
    
    /* 移动端缩小上传任务按钮内部间距 */
    .upload-task-btn .btn {
        padding: 0.5rem;
    }
    
    /* 移动端缩小更多操作菜单按钮内部间距 */
    .dropdown .btn {
        padding: 0.5rem;
    }
}

/* ==================== 图片分类时间分组布局 ==================== */
.file-list-image-grouped {
    padding: 1rem 0;
}

.image-date-group {
    margin-bottom: 2rem;
}

.image-date-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.image-date-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.image-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.image-card-wrapper {
    position: relative;
    aspect-ratio: 1;
}

.image-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.image-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.image-card.is-selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.image-card-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.375rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.image-card-checkbox:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.image-card-checkbox .el-checkbox {
    cursor: pointer;
}

.image-card-checkbox .el-checkbox__input {
    cursor: pointer;
}

.image-card-checkbox .el-checkbox__inner {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.image-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

/* ==================== 选择模式工具栏 ==================== */
.file-toolbar.is-selection-mode {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 64px; /* disk-topbar 的高度 */
    z-index: 999; /* 低于 disk-topbar 的 z-index: 1000 */
    margin-bottom: 0; /* 移除底部边距 */
    border-radius: 0; /* 移除圆角，使其与顶部栏对齐 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影以区分层级 */
}

.file-toolbar-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    width: 100%;
}

.file-toolbar-selection-left {
    display: flex;
    align-items: center;
}

.selection-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.file-toolbar-selection-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-selection-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.toolbar-selection-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.toolbar-selection-btn[type="primary"] {
    background: #3b82f6;
    border-color: #3b82f6;
   
}

.toolbar-selection-btn[type="primary"]:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* ==================== 移动端选择模式工具栏样式 ==================== */
@media (max-width: 500px) {
    .file-toolbar.is-selection-mode .file-toolbar-selection {
        padding: 0.5rem 0.75rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        min-height: 44px;
    }
    
    .file-toolbar.is-selection-mode .file-toolbar-selection-left {
        display: none; /* 移动端隐藏"已选择X张" */
    }
    
    .file-toolbar.is-selection-mode .selection-count {
        display: none; /* 移动端隐藏"已选择X张"文字 */
    }
    
    .file-toolbar.is-selection-mode .file-toolbar-selection-right {
        flex: 1;
        gap: 0.375rem;
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between; /* 改为 space-between 确保按钮分布均匀 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%; /* 确保占满整个宽度 */
    }
    
    /* 确保分享按钮可见 */
    .file-toolbar.is-selection-mode .file-toolbar-selection-right .toolbar-selection-btn:first-child {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .file-toolbar.is-selection-mode .file-toolbar-selection-right::-webkit-scrollbar {
        display: none;
    }
    
    .file-toolbar.is-selection-mode .toolbar-selection-btn {
        flex-shrink: 0;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.25rem;
        white-space: nowrap;
        min-width: auto;
        height: 32px;
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .file-toolbar.is-selection-mode .toolbar-selection-btn .el-icon {
        font-size: 0.875rem !important;
        width: 0.875rem !important;
        height: 0.875rem !important;
        flex-shrink: 0;
    }
    
    .file-toolbar.is-selection-mode .toolbar-selection-btn span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* 取消选择按钮更紧凑 */
    .file-toolbar.is-selection-mode .toolbar-selection-btn:last-child {
        padding: 0.375rem 0.5rem;
    }
    
    /* 移动端图片卡片复选框增大点击区域 */
    .image-card-checkbox {
        min-width: 35px;
        min-height: 35px;
        padding: 0.2rem;
        top: 0.375rem;
        left: 0.375rem;
    }
    
    .image-card-checkbox .el-checkbox__inner {
        width: 25px;
        height: 25px;
    }
}

/* ==================== Ant Design Image Preview 样式修复 ==================== */
/* 确保预览图片在容器中居中显示 */
.ant-image-preview-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
}

.ant-image-preview {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ant-image-preview-body {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ant-image-preview-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

.ant-image-preview-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.ant-image-preview-image-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.ant-image-preview-image img {
    max-width: calc(100vw - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}

/* 处理 ant-image-preview-img 类名 - 确保图片居中显示 */
.ant-image-preview-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

/* 确保包含 ant-image-preview-img 的容器有正确的定位上下文 */
.ant-image-preview-content,
.ant-image-preview-image,
.ant-image-preview-image-wrapper {
    position: relative !important;
}

/* 针对不同层级的 ant-image-preview-img 确保居中 */
.ant-image-preview-wrap .ant-image-preview-img,
.ant-image-preview .ant-image-preview-img,
.ant-image-preview-body .ant-image-preview-img,
.ant-image-preview-content .ant-image-preview-img,
.ant-image-preview-image .ant-image-preview-img,
.ant-image-preview-image-wrapper .ant-image-preview-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

/* 确保预览遮罩层正确显示 */
.ant-image-preview-mask {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
}

/* ==================== 文件预览页面样式 ==================== */
.pin-preview-container {
    min-height: calc(100vh - 64px);
    background: #f5f5f5;
    padding: 1.5rem;
}

.pin-preview-loading,
.pin-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    gap: 1rem;
    color: #6b7280;
}

.pin-preview-error {
    color: #f56c6c;
}

.pin-preview-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pin-preview-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.pin-preview-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
}

.pin-preview-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.pin-preview-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pin-preview-back-btn {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white !important;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pin-preview-back-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pin-preview-back-btn:active {
    transform: translateY(0);
}

.pin-preview-user-info .user-name-text {
    font-size: 0.875rem;
    color: #1f2937;
}

.pin-preview-user-info .user-metaid-text {
    font-size: 0.75rem;
    color: #6b7280;
}

.pin-preview-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0;
    padding-left: 2.75rem;
}

.pin-preview-file-info .file-date {
    color: #6b7280;
}

.pin-preview-file-info .file-expire {
    color: #9ca3af;
}

.pin-preview-file-info .file-report {
    color: #9ca3af;
    cursor: pointer;
}

.pin-preview-file-info .file-report:hover {
    color: #6b7280;
}

.pin-preview-main {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.pin-preview-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-preview-image img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 0.5rem;
}

.pin-preview-video {
    width: 100%;
    max-width: 100%;
}

.pin-preview-video-element {
    width: 100%;
    max-height: calc(100vh - 200px);
}

.pin-preview-audio {
    width: 100%;
    max-width: 600px;
}

.pin-preview-audio-wrapper {
    width: 100%;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.pin-preview-audio-element {
    width: 100%;
}

.pin-preview-file {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-preview-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: all 0.2s;
    max-width: 400px;
    width: 100%;
}

.pin-preview-file-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    cursor: pointer;
}

.pin-preview-file-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pin-preview-file-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    max-width: 200px;
}

.pin-preview-file-open-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pin-preview-file-open-btn:active {
    transform: translateY(0);
}

.pin-preview-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-preview-file-details {
    text-align: center;
    width: 100%;
}

.pin-preview-file-details .file-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.pin-preview-file-details .file-size {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pin-preview-file-details .file-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 移动端适配 */
@media (max-width: 500px) {
    .pin-preview-container {
        padding: 0.75rem;
    }
    
    .pin-preview-header {
        padding: 1rem;
    }
    
    .pin-preview-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    
    .pin-preview-header-left {
        width: 100%;
    }
    
    .pin-preview-back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pin-preview-file-info {
        flex-wrap: wrap;
        font-size: 0.7rem;
        padding-left: 0;
    }
    
    .pin-preview-main {
        padding: 1rem;
    }
    
    .pin-preview-image img {
        max-height: calc(100vh - 150px);
    }
    
    .pin-preview-file-card {
        padding: 2rem 1rem;
        gap: 1rem;
    }
    
    .pin-preview-file-open-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* ==================== 分享弹窗样式 ==================== */
/* 确保 share-modal-dialog 始终在视口中心可见，不受页面滚动影响 */

/* 覆盖所有可能的 Element Plus dialog 容器 */
.el-overlay:has(.share-modal-dialog),
.el-overlay-dialog:has(.share-modal-dialog) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* 确保 dialog 容器使用 fixed 定位 - 覆盖所有可能的容器 */
.el-overlay-dialog,
body > .el-overlay,
body > .el-overlay-dialog,
.el-overlay:has(.share-modal-dialog),
.el-overlay-dialog:has(.share-modal-dialog) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    /* 确保不受页面滚动影响 */
    transform: none !important;
}

/* share-modal-dialog 本身 - 使用更具体的选择器确保覆盖 */
.share-modal-dialog,
.el-dialog.share-modal-dialog,
.el-overlay-dialog .share-modal-dialog,
.el-overlay-dialog .el-dialog.share-modal-dialog,
body > .el-overlay .share-modal-dialog,
body > .el-overlay .el-dialog.share-modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* 确保所有包含 share-modal-dialog 的父元素都使用 fixed 定位 */
body > .el-overlay:has(.share-modal-dialog),
body > .el-overlay-dialog:has(.share-modal-dialog) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.share-modal-dialog .el-dialog__header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.share-modal-dialog .el-dialog__title {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
}

.share-modal-dialog .el-dialog__body {
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    -webkit-overflow-scrolling: touch;
}

.share-modal-content {
    padding: 0;
}

.share-modal-tabs {
    display: flex;
   
   
    padding: 0 1.5rem;
}

.share-tab-item {
    flex: 1;
    padding: 0.875rem 1rem;
    text-align: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    position: relative;
}

.share-tab-item:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.share-tab-item.is-active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 500;
    background: white;
}

.share-modal-body {
    min-height: 300px;
    padding: 1.5rem;
}

.share-tab-content {
    padding: 0;
}

/* 链接分享 Tab */
.share-link-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1.5rem;
}

.share-copy-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.share-copy-link-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.share-copy-link-btn:active {
    transform: translateY(0);
}

.share-copy-link-btn .el-icon {
    font-size: 1rem;
}

/* 分享到IDChat Tab */
.share-idchat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1.5rem;
}

/* IDChat 新UI样式 */
.share-idchat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.share-idchat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.share-idchat-header-left {
    flex: 1;
}

.share-idchat-header-right {
    color: #3b82f6;
    font-weight: 500;
}

/* 桌面端：share-idchat-body 横向排列 */
.share-idchat-body {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.share-idchat-body.is-loading .share-idchat-left {
    opacity: 0.5;
    pointer-events: none;
}

.share-idchat-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.share-idchat-left {
    flex: 1;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.share-idchat-right {
    display: none;
}

.share-idchat-selected-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.share-idchat-selected-list {
    flex: 1;
    overflow-y: auto;
}

.share-idchat-selected-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
    font-size: 0.875rem;
}

.share-idchat-category {
    margin-bottom: 0.5rem;
}

.share-idchat-category-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.share-idchat-category-header:hover {
    background-color: #f3f4f6;
}

.category-icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
    color: #6b7280;
}

.category-icon.is-expanded {
    transform: rotate(90deg);
}

.category-title {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.category-select-all {
    font-size: 0.75rem;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.category-select-all:hover {
    background-color: #eff6ff;
}

.share-idchat-category-content {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.share-idchat-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
}

.share-idchat-item:hover {
    background-color: #f3f4f6;
}

.share-idchat-item.is-selected {
    background-color: #eff6ff;
}

.share-idchat-item-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    flex-shrink: 0;
    position: relative;
}

.share-idchat-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-idchat-item-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

.share-idchat-item-info {
    flex: 1;
    min-width: 0;
}

.share-idchat-item-name {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.group-icon,
.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.group-icon svg,
.lock-icon svg {
    width: 14px;
    height: 14px;
}

.channel-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-count {
    color: #9ca3af;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.share-idchat-selected-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    background-color: #f9fafb;
}

.share-idchat-item-remove {
    margin-left: auto;
    padding: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.share-idchat-item-remove:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.share-idchat-footer {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.share-idchat-confirm-btn {
    padding: 0.75rem 3rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-idchat-confirm-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.share-idchat-confirm-btn:active {
    transform: translateY(0);
}


.share-idchat-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.share-copy-and-go-btn {
    margin-top: 0.5rem;
}

.share-copy-link-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.share-copy-link-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* 分享到ShowNow Tab */
.share-shownow-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.share-text-prefix {
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.share-textarea {
    width: 100%;
}

.share-textarea .el-textarea__inner {
    min-height: 100px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.share-preview-section {
    margin-top: 0.5rem;
}

.share-preview-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.share-preview-content {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.share-preview-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-preview-image img {
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    object-fit: cover;
}

.share-preview-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-preview-video video {
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    object-fit: cover;
}

.share-preview-audio {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-preview-audio audio {
    width: 100%;
    height: 100%;
}

.share-preview-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #6b7280;
    width: 100%;
    height: 100%;
    padding: 0.25rem;
}

.share-preview-file .el-icon {
    font-size: 32px !important;
}

    .share-preview-file span {
        font-size: 0.625rem;
        word-break: break-all;
    }
    
    /* IDChat Tab 移动端适配 */
    .share-idchat-content {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .share-idchat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
    
    .share-idchat-header-left {
        width: 100%;
        line-height: 1.4;
    }
    
    .share-idchat-header-right {
        width: 100%;
        text-align: left;
    }
    
    .share-idchat-body {
        flex-direction: row;
        gap: 0.5rem;
        min-height: auto;
        max-height: none;
        height: auto;
    }
    
    .share-idchat-left {
        flex: 1;
        width: 100%;
        max-height: 300px;
        min-height: 200px;
    }
    
    .share-idchat-right {
        display: none;
    }
    
    .share-idchat-category-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .category-title {
        font-size: 0.8125rem;
    }
    
    .category-select-all {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .share-idchat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .share-idchat-item-avatar {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
    
    .share-idchat-item-name {
        font-size: 0.8125rem;
        line-height: 1;
    }
    
    .group-icon,
    .lock-icon {
        width: 12px;
        height: 12px;
    }
    
    .group-icon svg,
    .lock-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .member-count {
        font-size: 0.7rem;
    }
    
    .share-idchat-selected-title {
        font-size: 0.8125rem;
        padding: 0.5rem;
    }
    
    .share-idchat-selected-item {
        padding: 0.75rem 0.5rem;
    }
    
    .share-idchat-footer {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .share-idchat-confirm-btn {
        padding: 0.75rem 2rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 200px;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.share-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}

.share-submit-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.share-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.share-submit-btn .el-icon.is-loading {
    animation: rotating 1s linear infinite;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 移动端适配 */
@media (max-width: 500px) {
    /* ShareModal 移动端居中样式 */
    /* 移动端：确保 dialog 始终在视口中心可见 */
    .el-overlay-dialog {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .share-modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .el-dialog.share-modal-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .share-modal-tabs {
        padding: 0 0.75rem;
    }
    
    .share-tab-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .share-modal-body {
        padding: 1rem;
        min-height: auto;
    }
    
    .share-link-section,
    .share-idchat-section {
        padding: 2rem 0;
    }
    
    .share-copy-link-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* IDChat Tab 移动端适配 */
    .share-idchat-content {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .share-idchat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
    
    .share-idchat-header-left {
        width: 100%;
        line-height: 1.4;
    }
    
    .share-idchat-header-right {
        width: 100%;
        text-align: left;
    }
    
    .share-idchat-body {
        flex-direction: row;
        gap: 0.5rem;
        min-height: auto;
        max-height: none;
        height: auto;
    }
    
    .share-idchat-left {
        flex: 1;
        width: 100%;
        max-height: 300px;
        min-height: 200px;
    }
    
    .share-idchat-right {
        display: none;
    }
    
    .share-idchat-category-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .category-title {
        font-size: 0.8125rem;
    }
    
    .category-select-all {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .share-idchat-category-content {
    padding-left: 0rem;
   
}
    
    .share-idchat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .share-idchat-item-avatar {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
    
    .share-idchat-item-name {
        font-size: 0.8125rem;
        line-height: 1;
    }
    
    .group-icon,
    .lock-icon {
        width: 12px;
        height: 12px;
    }
    
    .group-icon svg,
    .lock-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .member-count {
        font-size: 0.7rem;
    }
    
    .share-idchat-selected-title {
        font-size: 0.8125rem;
        padding: 0.5rem;
    }
    
    .share-idchat-selected-item {
        padding: 0.75rem 0.5rem;
    }
    
    .share-idchat-footer {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .share-idchat-confirm-btn {
        padding: 0.75rem 2rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 200px;
    }
}

/* ==================== 分享确认弹窗样式 ==================== */
/* 嵌套在分享模态框内的确认对话框 */
.share-modal-body {
    position: relative;
}

.share-confirm-dialog-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.share-confirm-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.share-confirm-receiver {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.share-confirm-receiver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.share-confirm-receiver-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-confirm-receiver-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

.share-confirm-receiver-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.share-confirm-content {
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    //background-color: #f9fafb;
    border-radius: 0.375rem;
}

.share-confirm-content-image img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 0.375rem;
}

.share-confirm-content-video video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.375rem;
}

.share-confirm-content-audio audio {
    width: 100%;
}

.share-confirm-content-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
}

.share-confirm-content-file span {
    font-size: 0.875rem;
    color: #374151;
    word-break: break-all;
    text-align: center;
}

.share-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
}

/* ==================== 分享成功提示弹窗样式 ==================== */
/* 嵌套在分享模态框内的成功对话框 */
.share-success-dialog-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.share-success-dialog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.share-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
    flex: 1;
}

.share-success-actions {
    margin-top: auto;
}

/* 交易ID链接图标样式 */
.shareTxLink {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.share-tx-link-icon {
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.share-tx-link-icon:hover {
    color: #66b1ff !important;
}

