/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    /* 全局固定高度，禁止body滚动 */
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* 隐藏Webkit浏览器的滚动条 */
body::-webkit-scrollbar {
    display: none;
}

/* 隐藏所有元素的滚动条 */
*::-webkit-scrollbar {
    display: none;
}

.container {
    display: flex;
    height: 100vh; /* 固定高度，不滚动 */
    background-color: #fff;
    /* 移除padding-bottom，由子元素控制 */
    overflow: hidden; /* 禁止容器滚动 */
}

/* 左侧边栏样式 */
.sidebar {
    width: 160px;
    background-color: #f5f5f5;
    color: #333;
    border-right: 1px solid #e0e0e0;
    resize: horizontal;
    overflow: hidden; /* 禁止侧边栏整体滚动 */
    min-width: 140px;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh; /* 固定高度，不滚动 */
    /* 移除padding-bottom，由内部滚动区域控制 */
}

/* 设计图像按钮样式 */
.recent-updates-section {
    padding: 2px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    /* 确保高度计算准确 */
    min-height: 38px;
    box-sizing: border-box;
}

.recent-updates-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.recent-updates-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.recent-updates-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.recent-updates-btn .btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.recent-updates-btn .btn-text {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.recent-updates-btn .btn-website {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.9;
}

.sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 确保高度计算准确 */
    min-height: 60px;
    box-sizing: border-box;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.folder-tree {
    padding: 6px 0;
    /* 精确的高度计算：
       - 100vh: 视口高度
       - 60px: 最近更新按钮区域高度
       - 60px: 侧边栏header高度
       - 60px: 底部搜索框高度 */
    height: calc(100vh - 90px);
    overflow-y: auto; /* 允许垂直滚动 */
    overflow-x: hidden;
    /* 保持子元素滚动功能 */
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: auto; /* Internet Explorer 10+ */
    /* 确保滚动区域有足够的底部空间 */
    padding-bottom: 20px;
}

.folder-list {
    list-style: none;
}

.folder-item {
    margin: 0;
    transition: padding-left 0.3s ease;
}

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

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

.folder-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.expand-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 3px;
    cursor: pointer;
    color: #333;
    font-size: 8px;
    text-align: center;
    line-height: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

.expand-icon:hover {
    color: #333;
}

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

.expand-icon-placeholder {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 3px;
}

.folder-link {
    display: flex;
    align-items: center;
    padding: 2px 1px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    flex: 1;
    font-size: 14px;
}

.folder-link:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: #333;
}

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

.folder-icon {
    margin-right: 2px;
    font-size: 14px;
}

.folder-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.file-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.subfolder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subfolder-list .folder-item {
    padding-left: 5px;
}

.subfolder-list .folder-item .folder-content {
    padding-left: 0;
}

/* 空文件夹提示 */
.empty-folder {
    opacity: 0.6;
}

.empty-text {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* 加载指示器 */
.loading-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #bdc3c7;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* 文件夹树动画效果 */
.folder-item {
    transition: all 0.3s ease;
}

.subfolder-list {
    transition: all 0.3s ease;
}

/* 展开图标动画 */
.expand-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

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

/* 文件夹链接悬停效果 */
.folder-link:hover {
    background-color: #e8e8e8;
    transform: translateX(5px);
}

/* 活动状态样式 */
.folder-item.active {
    background-color: hwb(0 90% 10%);
    box-shadow: inset 3px 0 0 #b0b0b0;
}

.folder-item.active .folder-link {
    background-color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 拖动分隔线样式 */
.resize-handle {
    position: absolute;
    right: -5px;
    top: 0;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 999;
}

.resize-handle:hover {
    background: rgba(52, 152, 219, 0.3);
}

.resize-handle::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40px;
    background: #3498db;
    border-radius: 1px;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    padding: 0;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.content-header {
    margin-bottom: 4px; /* 进一步减少底部边距 */
    padding: 6px 15px; /* 减少上下内边距 */
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px; /* 减少元素间距 */
}

.card-size-control {
    display: flex;
    align-items: center;
    gap: 8px; /* 大窗口样式，增加元素间距 */
    font-size: 12px; /* 大窗口样式，正常字体大小 */
    color: #7f8c8d;
    flex-shrink: 0;
    min-width: 200px; /* 大窗口样式，增加最小宽度 */
    /* 确保始终在一行显示，不换行 */
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 1px 1px; /* 大窗口样式，增加内边距 */
    
    border-radius: 8px; /* 大窗口样式，增加圆角 */
   
}

/* 取消响应式适配，所有窗口都按大窗口样式显示 */

/* 移除响应式适配，卡片尺寸控件在所有屏幕下保持固定样式 */

.card-size-slider {
    width: 120px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.card-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.card-size-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
}

.card-size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.card-size-slider::-moz-range-thumb:hover {
    background: #2980b9;
}

.card-size-value {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
}

/* 重置按钮样式 */
.reset-button {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.reset-button:hover {
    background: #7f8c8d;
}

.content-header h1 {
    font-size: 20px; /* 减小标题字体 */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px; /* 减少底部边距 */
}

/* 面包屑导航容器样式 */
.breadcrumb-container {
    padding: 0px 0px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.breadcrumb {
    font-size: 13px; /* 减小面包屑字体 */
    color: #7f8c8d;
    margin: 0; /* 移除默认边距 */
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    margin-bottom: 30px;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #2980b9;
}

/* 页面底部搜索框样式 - 已调整为紧凑布局 */
.search-bar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 15px; /* 减少上下内边距 */
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px; /* 减少间距 */
    z-index: 1000;
    /* 确保搜索框不会遮挡内容 */
    height: 48px;
    /* 确保搜索框在正确的位置 */
    box-sizing: border-box;
}

.search-bar-bottom .search-input {
    flex: 1;
    max-width: none;
    margin: 0;
    padding: 8px 12px; /* 减少输入框内边距 */
    height: 32px; /* 固定高度，更紧凑 */
    font-size: 13px; /* 稍微减小字体 */
    border-radius: 4px; /* 稍微减小圆角 */
}

.search-bar-bottom .search-btn {
    white-space: nowrap;
    padding: 8px 16px; /* 减少按钮内边距 */
    height: 32px; /* 固定高度，与输入框一致 */
    font-size: 13px; /* 稍微减小字体 */
    border-radius: 4px; /* 稍微减小圆角 */
}

/* 文件内容区域样式 */
.files-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto; /* 允许垂直滚动 */
    overflow-x: hidden;
    /* 为底部搜索框留出足够空间，确保内容不被遮挡 */
    padding-bottom: 80px;
    /* 设置最大高度，确保滚动区域正确 */
    max-height: calc(100vh - 110px); /* 减去搜索框高度 */
}

/* 文件网格样式 */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
    gap: 6px;
    justify-content: start;
    padding: 8px;
    /* 移除过渡效果，避免跳动 */
}

.no-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* 文件卡片样式 */
.file-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    height: var(--card-height, 320px);
    /* 确保卡片尺寸稳定，避免加载时的尺寸变化 */
    min-height: var(--card-height, 320px);
    max-height: var(--card-height, 320px);
}

/* 文件类型标识徽章 */
.file-type-badge {
    position: absolute;
    top: var(--card-overlay-padding, 12px);
    right: var(--card-overlay-padding, 12px);
    padding: calc(var(--card-overlay-padding, 12px) * 0.4) calc(var(--card-overlay-padding, 12px) * 0.8);
    border-radius: calc(var(--card-overlay-padding, 12px) * 0.3);
    font-size: calc(var(--card-font-size, 14px) * 0.75);
    font-weight: 600;
    color: white;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.material-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.model-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}



/* 文件夹卡片样式 */
.folder-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    height: var(--card-height, 320px);
    /* 确保卡片尺寸稳定，避免加载时的尺寸变化 */
    min-height: var(--card-height, 320px);
    max-height: var(--card-height, 320px);
}

.folder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.folder-image {
    background: #e9ecef;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.folder-link-overlay {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    display: none;
    padding: var(--card-button-padding, 8px) calc(var(--card-button-padding, 8px) * 1.5);
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    text-decoration: none;
    border: none;
    border-radius: calc(var(--card-button-padding, 8px) / 2);
    font-size: var(--card-font-size, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.folder-link-overlay:hover {
    background-color: rgba(255, 255, 255, 1);
    text-decoration: none;
    color: #2c3e50;
}

/* 鼠标悬停文件夹卡片时显示打开按钮 */
.folder-card:hover .folder-link-overlay {
    display: inline-block;
}

/* 文件夹拼图预览样式 */
.folder-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 2px;
    padding: 2px;
}

.preview-image-item {
    background-size: contain; /* 改为contain，保持图片比例不变形 */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.preview-image-item:nth-child(1) {
    border-top-left-radius: 8px;
}

.preview-image-item:nth-child(2) {
    border-top-right-radius: 8px;
}

.preview-image-item:nth-child(3) {
    border-bottom-left-radius: 8px;
}

.preview-image-item:nth-child(4) {
    border-bottom-right-radius: 8px;
}

.more-images-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--card-font-size, 14px) * 0.8);
    font-weight: 600;
    backdrop-filter: blur(2px);
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.card-overlay .button-a-overlay {
    pointer-events: auto;
}

.card-overlay .folder-link-overlay {
    pointer-events: auto;
}

.file-size-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: calc(var(--card-overlay-padding, 12px) * 0.5) calc(var(--card-overlay-padding, 12px) * 0.8);
    border-radius: 0 0 calc(var(--card-overlay-padding, 12px) * 0.3) 0;
    font-size: calc(var(--card-font-size, 14px) * 0.85);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--card-content-padding, 12px);
    pointer-events: auto;
}

.card-footer {
    padding: calc(var(--card-content-padding, 12px) * 0.3);
    background: white;
    border-top: 1px solid #e0e0e0;
}

.button-a-overlay {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    display: none;
    padding: var(--card-button-padding, 8px) calc(var(--card-button-padding, 8px) * 2);
    background-color: rgba(39, 174, 96, 0.8);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: calc(var(--card-button-padding, 8px) * 0.5);
    font-size: var(--card-font-size, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: auto;
}

.file-name-overlay {
    font-size: var(--card-font-size, 14px);
    font-weight: 600;
    color: #2c3e50;
    margin: calc(var(--card-title-margin, 8px) * 0.15) 0;
    line-height: 1.4;
    word-break: break-word;
    text-align: center;
}

.button-a-overlay:hover {
    background-color: rgba(34, 153, 84, 0.9);
    text-decoration: none;
    color: white;
}

/* 鼠标悬停卡片时显示载入按钮 */
.file-card:hover .button-a-overlay {
    display: inline-block;
}

.card-image {
    height: var(--card-image-height, 280px);
    background-size: contain; /* 改为contain，保持图片比例不变形 */
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin: 0;
    width: 100%;
}

.no-image {
    color: #6c757d;
    font-size: var(--card-font-size, 14px);
    text-align: center;
    padding: var(--card-overlay-padding, 12px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--card-overlay-padding, 12px) * 0.7);
    backdrop-filter: blur(4px);
}

.card-content {
    padding: var(--card-content-padding, 12px);
}

.file-name {
    font-size: var(--card-font-size, 14px);
    font-weight: 600;
    color: #2c3e50;
    margin: calc(var(--card-title-margin, 8px) * 0.15) 0;
    line-height: 1.4;
    word-break: break-word;
}

/* 按钮样式 */
.button-a {
    display: inline-block;
    padding: var(--card-button-padding, 8px) calc(var(--card-button-padding, 8px) * 2.5);
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.button-a:hover {
    background-color: #229954;
    text-decoration: none;
    color: white;
}

/* 响应式设计 - 只调整右侧边栏宽度，保持布局不变 */
/* 取消所有响应式适配，所有窗口都按大窗口样式显示 */

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 

/* 卡片内容比例调整样式 */
.file-card,
.folder-card {
    font-size: var(--card-font-size, 14px);
    margin: var(--card-margin, 6px) !important;
}

.card-footer h3 {
    font-size: var(--card-font-size, 14px);
    padding: calc(var(--card-content-padding, 12px) * 0.5) !important;
    margin: calc(var(--card-title-margin, 8px) * 0.5) 0 !important;
}

.card-footer {
    padding: calc(var(--card-content-padding, 12px) * 0.3) !important;
}

.button-a-overlay {
    padding: var(--card-button-padding, 8px) calc(var(--card-button-padding, 8px) * 2) !important;
    font-size: var(--card-font-size, 14px) !important;
    border-radius: calc(var(--card-button-padding, 8px) * 0.5) !important;
}

.folder-link-overlay {
    padding: var(--card-button-padding, 8px) calc(var(--card-button-padding, 8px) * 1.5) !important;
    font-size: var(--card-font-size, 14px) !important;
    border-radius: calc(var(--card-button-padding, 8px) / 2) !important;
}

.file-size-overlay {
    font-size: calc(var(--card-font-size, 14px) * 0.85) !important;
    padding: 6px 10px !important;
    margin: 0 !important;
}

.folder-icon-overlay {
    font-size: var(--card-icon-size, 48px) !important;
}

.card-overlay {
    padding: var(--card-overlay-padding, 12px) !important;
}

.no-image {
    font-size: var(--card-font-size, 14px) !important;
    padding: var(--card-overlay-padding, 12px) !important;
}

/* 卡片内容边距调整 */
.file-name-overlay {
    font-size: var(--card-font-size, 14px) !important;
    margin: var(--card-title-margin, 8px) 0 !important;
    padding: var(--card-content-padding, 12px) !important;
}

.card-content-overlay {
    padding: var(--card-overlay-padding, 12px) !important;
}

/* 文件网格间距调整 */
.files-grid {
    gap: calc(var(--card-margin, 6px) * 1.5) !important;
    padding: calc(var(--card-margin, 6px) * 1.5) !important;
} 

/* 隐藏右边栏顶部标题 */
.content-header h1 {
    display: none !important;
}



/* 插件安装状态提示样式 */
.install-status,
.install-error,
.download-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.install-status {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.install-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.download-link {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.status-content,
.error-content,
.download-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
        gap: 12px;
    }
    
.status-icon,
.error-icon,
.download-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.status-text,
.error-text,
.download-text {
    flex: 1;
    font-weight: 500;
    }
    
.error-detail {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
    }

.download-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 插件安装状态提示样式 */
.install-status,
.install-error,
.download-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    }

.install-status {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.install-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.download-link {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    }
    
.status-content,
.error-content,
.download-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    }
    
.status-icon,
.error-icon,
.download-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.status-text,
.error-text,
.download-text {
    flex: 1;
    font-weight: 500;
}

.error-detail {
        font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
    }
    
.download-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
        font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
.download-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 取消响应式适配，所有窗口都按大窗口样式显示 */

/* 移除卡片尺寸控件的响应式适配，保持固定样式 */

/* 取消左侧边栏响应式适配，所有窗口都按大窗口样式显示 */ 

/* 最近更新相关样式 */
.loading-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

.loading-files p {
    margin: 0;
    color: #3498db;
}

.file-info {
    margin-top: 8px;
    text-align: center;
    }
    
.file-date {
        font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    }
    
.install-plugin-btn {
    background-color: rgba(155, 89, 182, 0.8) !important;
}

.install-plugin-btn:hover {
    background-color: rgba(142, 68, 173, 0.9) !important;
    }
    
.load-btn {
    background-color: rgba(39, 174, 96, 0.8) !important;
}

.load-btn:hover {
    background-color: rgba(34, 153, 84, 0.9) !important;
    }
    
/* 取消响应式适配，所有窗口都按大窗口样式显示 */ 

/* 平滑切换相关样式 */
.files-content {
    /* 使用硬件加速，确保平滑渲染 */
    transform: translateZ(0);
    will-change: contents;
}

/* 文件网格平滑切换 */
.files-grid {
    /* 使用硬件加速，确保平滑渲染 */
    transform: translateZ(0);
    will-change: contents;
}

/* 文件卡片优化 */
.file-card, .folder-card {
    /* 使用硬件加速，确保平滑渲染 */
    transform: translateZ(0);
    will-change: transform;
} 