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

:root {
    /* 颜色系统 - 浅色主题 */
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* 文字颜色 */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    
    /* 边框和分隔线 */
    --border-color: #e5e7eb;
    
    /* 交互状态颜色 */
    --hover-bg: #f3f4f6;
    --active-bg: #eff6ff;
    --active-text: #2563eb;
    
    /* 卡片样式 */
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-hover-border: #3b82f6;
    
    /* 布局变量 */
    --header-height: 64px;
    --sidebar-width: 200px;
    --sidebar-left: 24px;
    --sidebar-actual-left: 120px;
    --content-gap: 24px;
    --main-content-width: 1400px;
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* 颜色系统 - 深色主题 */
    /* 背景色 */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    
    /* 文字颜色 */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    
    /* 边框和分隔线 */
    --border-color: #374151;
    
    /* 交互状态颜色 */
    --hover-bg: #374151;
    --active-bg: #1e3a8a;
    --active-text: #60a5fa;
    
    /* 卡片样式 */
    --card-bg: #1f2937;
    --card-border: #374151;
    --card-hover-border: #60a5fa;
    
    /* 深色主题阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal) ease, color var(--transition-normal) ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

/* 顶部导航栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-normal) ease, 
                border-color var(--transition-normal) ease;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 1400px; /* 与底部版权一致 */
    margin: 0 auto;
    gap: 8px;
}

.site-brand {
    flex-shrink: 1;
    min-width: 0;
}

.top-bar-actions {
    flex-shrink: 0;
}

.site-brand {
    display: flex;
    align-items: center;
}

.site-brand a {
    display: flex;
    align-items: center;
    gap: 12px; /* 设置logo和标题之间的间距 */
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo svg {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.site-logo:hover svg {
    transform: scale(1.05);
}

.logo-bg {
    fill: #3b82f6;
    transition: fill 0.3s ease;
}

.logo-shape {
    fill: white;
}

[data-theme="dark"] .logo-bg {
    fill: #60a5fa;
}

[data-theme="dark"] .logo-shape {
    fill: #1f2937;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 32px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--active-text);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    padding: 8px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

/* 左侧边栏 */
.sidebar {
    position: fixed;
    left: calc(50% - (var(--sidebar-width) + var(--main-content-width)) / 2); /* 整体居中定位：50% - (侧边栏宽度 + 主内容区最大宽度) / 2 */
    top: calc(var(--header-height) + var(--content-gap)); /* 64px(导航栏高度) + 24px(间距) */
    bottom: auto;
    max-height: calc(100vh - var(--header-height) - var(--content-gap) * 2); /* 视口高度 - 导航栏和间距 - 底部边距 */
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-y: auto;
    transition: background-color var(--transition-normal) ease, 
                border-color var(--transition-normal) ease;
    box-shadow: var(--shadow-md);
    will-change: transform;
}

[data-theme="dark"] .sidebar {
    box-shadow: var(--shadow-md);
}

.sidebar-nav {
    padding: 16px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    width: 100%;
}

.nav-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.nav-button:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.nav-button.active {
    background-color: var(--active-bg);
    color: var(--active-text);
}

.nav-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 16px;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* 主内容区 */
.main-content {
    margin-left: calc(50% - (var(--sidebar-width) + var(--main-content-width)) / 2 + var(--sidebar-width)); /* 整体居中定位：50% - (侧边栏宽度 + 主内容区最大宽度) / 2 + 侧边栏宽度，紧挨侧边栏 */
    margin-top: var(--header-height);
    padding: 32px;
    min-height: calc(100vh - var(--header-height));
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%; /* 自动100%显示 */
    max-width: var(--main-content-width); /* 主内容区最大宽度 */
    display: block;
    visibility: visible;
    opacity: 1;
}

.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 确保分页控件在main中居中显示 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 确保面包屑导航左对齐，不居中 */
.breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}
/* 图标卡片区域 */
.icon-cards-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 0 16px 16px 16px;
    
}

/* 图标卡片网格 - 桌面端 */
.icon-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 16px;
    
}

/* 常用推荐1的图标卡片网格优化 */
/* PC端单行居中显示 */
@media (min-width: 769px) {
    .category-section[data-category-id="recommended-1"] .icon-cards-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px; /* 优化左右间距 */
        overflow-x: auto;
        padding: 0 16px;
    }
    
    .category-section[data-category-id="recommended-1"] .icon-card {
        flex-shrink: 0;
    }
}

/* 移动端优化 - 两行居中显示 */
@media (max-width: 768px) {
    .category-section[data-category-id="recommended-1"] .icon-cards-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 0 8px;
        max-width: 100%;
        /* 固定容器高度，确保只显示两行 */
        height: auto;
    }
    
    .category-section[data-category-id="recommended-1"] .icon-card {
        /* 固定每行4个卡片，8个卡片正好显示为两行 */
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
        text-align: center;
    }
    
    /* 确保在所有屏幕尺寸下都保持每行4个，两行显示 */
    @media (max-width: 480px) {
        .category-section[data-category-id="recommended-1"] .icon-card {
            flex: 0 0 calc(25% - 12px);
            max-width: calc(25% - 12px);
        }
    }
    
    @media (max-width: 360px) {
        .category-section[data-category-id="recommended-1"] .icon-card {
            flex: 0 0 calc(25% - 10px);
            max-width: calc(25% - 10px);
            gap: 10px;
        }
        
        .category-section[data-category-id="recommended-1"] .icon-cards-grid {
            gap: 10px;
            padding: 0 4px;
        }
    }
}

/* 图标卡片 */
.icon-card {
    text-align: center;
    transition: transform 0.2s ease;
}

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

.icon-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    width: 75px;
    height: 75px;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

.icon-card-link:hover {
    background-color: var(--hover-bg);
}

.icon-card-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
}






/* 卡片网格 */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px; /* 增加卡片网格底部间距，与分页控件保持适当距离 */
}

/* 分类分组样式 */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.category-header {
        margin-bottom: 12px;
        width: 100%;
        padding: 0 8px;
    }

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: 100%;
    text-align: left;
}

.category-title.has-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.category-title-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.category-title span {
    flex-shrink: 0;
}

.category-title .category-icon {
    flex-shrink: 0;
}

.category-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 10;
}

.category-more-btn:hover {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
    border-color: var(--primary-color);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* 单独分类显示时也使用单列布局作为默认 */
.cards-grid.single-category {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}

.nav-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    overflow: hidden; /* 防止内部内容超出卡片 */
    will-change: transform;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 普通卡片样式 */
.nav-card-simple {
    display: block;
    padding: 16px;
    height: 100%;
}

.nav-card-simple .card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}

.nav-card-simple .card-icon {
    position: static;
    width: 48px;
    height: 48px;
    background-color: var(--bg-tertiary);
    box-shadow: none;
}

.nav-card-simple .card-info {
    margin-top: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* 普通卡片文本样式优化 */
.nav-card-simple .card-title {
    max-width: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.nav-card-simple .card-category {
    display: none;
}

/* 图文卡片样式 */
.nav-card-graphic {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-card-graphic .card-content {
    flex-direction: column;
    flex: 1;
}

.nav-card-graphic .card-info {
    margin-top: 16px;
    padding: 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 0;
}

.nav-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-card:hover {
    box-shadow: var(--shadow-md);
}

.card-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
}

.card-icon img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.card-icon {
    padding: 0;
}

.card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    display: block;
    margin-bottom: 4px;
    width: 100%;
    overflow: hidden;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* 外部链接图标已删除，使用100%宽度 */
    box-sizing: border-box;
    text-align: left;
    flex: 1;
    min-width: 0;
    width: auto;
}

.nav-card:hover .card-title {
    color: var(--active-text);
}

/* 直接针对h3标签添加自动裁剪样式，确保优先级 */
h3.card-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.card-external {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    display: none;
}

.nav-card:hover .card-external {
    opacity: 0;
}

/* 外部链接样式 */
.external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.external-link:hover {
    opacity: 0.7;
}

.external-link .card-external {
    opacity: 0;
    display: none;
}

.nav-card:hover .external-link .card-external {
    opacity: 0;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 普通卡片描述样式 */
.nav-card-simple .card-description {
    max-width: 100%; /* 确保不超出卡片宽度 */
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.5;
}

/* 确保卡片容器不会超出屏幕 */
.cards-grid,
.category-cards {
    width: 100%;
    box-sizing: border-box;
}

/* 确保主内容区有适当的宽度限制 */
.main-content {
    width: 100%;
    box-sizing: border-box;
}

/* 确保内容包装器正确限制宽度 */
.content-wrapper {
    margin: 0 auto;
    box-sizing: border-box;
}

/* PC端hover时不再显示完整描述，改为通过气泡提示显示 */
@media (min-width: 769px) {
    /* 图文卡片hover时标题保持单行 */
    .nav-card-graphic:hover .card-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.nav-card {
    position: relative;
    overflow: visible; /* 允许tooltip显示在卡片外部 */
}

/* 卡片内容容器样式 - 修复缩进问题 */
.card-content {
    position: relative;
    overflow: hidden; /* 确保卡片内部内容不溢出 */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* 移除z-index，避免创建新的堆叠上下文导致tooltip被遮挡 */
}

/* 图片容器样式 - 添加圆角 */
.nav-card-graphic .card-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0; /* 只在顶部添加圆角，与卡片容器的圆角对应 */
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保图片不会超出容器 - 继承容器的圆角 */
.nav-card-graphic .card-bg-image {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    border: none;
    padding: 0;
    margin: 0 auto;
    border-radius: inherit; /* 继承容器的圆角 */
    display: block;
}

/* 图文卡片的标题样式优化 */
.nav-card-graphic .card-title {
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    max-width: 100%;
    width: auto;
}

/* 图文卡片的描述样式优化 */
.nav-card-graphic .card-description {
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: var(--text-secondary);
    box-sizing: border-box;
    text-align: left;
    max-width: 100%;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 桌面端图文卡片描述使用多行显示，增加显示字符数量 */
@media (min-width: 769px) {
    .nav-card-graphic .card-description {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        line-height: 1.5;
    }
}

/* 移动端图文卡片描述样式优化 */
@media (max-width: 768px) {
    .nav-card-graphic .card-description {
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 4px !important;
    }
}

.nav-card-simple .card-image-container {
    display: none;
}

.card-bg-image {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.nav-card-graphic:hover .card-bg-image {
    transform: scale(1.05);
}

/* 移除通用hover样式，改为通过气泡提示显示完整描述 */
/* .nav-card-graphic:hover .card-description {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: unset !important;
    display: block !important;
}

.nav-card-graphic:hover .card-info {
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex: 1 !important;
    min-height: 0 !important;
} */

/* 分类标签样式 */
.card-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: var(--active-bg);
    color: var(--active-text);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
    white-space: nowrap;
    width: fit-content;
    min-width: fit-content;
}

/* 调整卡片内容布局 */
.card-content {
    position: relative;
}

/* 普通卡片的图标 */
.nav-card-simple .card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 显示favicons图片 */
.nav-card-simple .card-icon img {
    display: block;
}

/* 图文卡片的图标 */
.nav-card-graphic .card-icon {
    position: absolute;
    top: 116px; /* 140px - 24px (half height) */
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

[data-theme="dark"] .card-icon {
    background-color: rgba(31, 41, 55, 0.9);
}

/* 修复卡片信息样式，确保描述文本能正确截断 */
.card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    margin-top: 16px;
    padding: 0 16px 16px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

/* 卡片容器，用于相对定位tooltip */
.card-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* 移除不再使用的卡片包装容器样式 */
.card-wrapper {
    display: none;
}

/* Tooltip 样式 */
.card-tooltip {
    position: absolute;
    top: calc(100% + 12px); /* 改为卡片下方显示 */
    left: 50%;
    transform: translateX(-50%) translateY(-4px); /* 调整平移方向 */
    background-color: var(--bg-primary); /* 浅色背景 */
    color: var(--text-primary); /* 深色文字 */
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
    width: 100%; /* 与卡片宽度一致 */
    max-width: 100%; /* 确保不超过卡片宽度 */
    min-width: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000; /* 提高层级，确保不被遮挡 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    border: 1px solid var(--border-color); /* 添加边框，增强对比度 */
}



.card-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%; /* 改为箭头在气泡上方 */
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--bg-primary); /* 与气泡背景色一致，箭头向下 */
}

[data-theme="dark"] .card-tooltip {
    background-color: var(--bg-secondary); /* 深色主题下的浅色背景 */
    border-color: var(--border-color);
}

[data-theme="dark"] .card-tooltip::after {
    border-bottom-color: var(--bg-secondary); /* 深色主题下与气泡背景色一致，箭头向下 */
}

/* PC端hover显示完整描述 */
    @media (min-width: 769px) {
        /* 当鼠标悬停在卡片上时，显示同一容器内的tooltip */
        .card-container:hover .card-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        
        /* 常用推荐分类下的卡片tooltip显示在底部 */
        .category-section[data-category-id="recommended"] .card-tooltip {
            bottom: auto;
            top: calc(100% + 12px);
        }
        
        /* 常用推荐分类下的卡片tooltip箭头方向调整 */
        .category-section[data-category-id="recommended"] .card-tooltip::after {
            top: auto;
            bottom: 100%;
            border-top-color: transparent;
            border-bottom-color: var(--bg-primary);
        }
        
        /* 常用推荐分类下的卡片tooltip深色主题适配 */
        [data-theme="dark"] .category-section[data-category-id="recommended"] .card-tooltip::after {
            border-bottom-color: var(--bg-secondary);
        }
        
        /* 图文分类下的卡片tooltip显示在上方 */
        .category-section[data-category-id="graphic"] .card-tooltip {
            top: auto;
            bottom: calc(100% + 12px);
            transform: translateX(-50%) translateY(4px);
        }
        
        /* 图文分类下的卡片tooltip箭头方向调整 */
        .category-section[data-category-id="graphic"] .card-tooltip::after {
            bottom: auto;
            top: 100%;
            border-bottom-color: transparent;
            border-top-color: var(--bg-primary);
        }
        
        /* 图文分类下的卡片tooltip深色主题适配 */
        [data-theme="dark"] .category-section[data-category-id="graphic"] .card-tooltip::after {
            border-top-color: var(--bg-secondary);
        }
        
        /* 确保父容器不会裁剪气泡 */
        .category-section[data-category-id="recommended"] {
            overflow: visible;
        }
        
        .category-section[data-category-id="recommended"] .category-cards {
            overflow: visible;
        }
        
        /* 确保图文分类父容器不会裁剪气泡 */
        .category-section[data-category-id="graphic"] {
            overflow: visible;
        }
        
        .category-section[data-category-id="graphic"] .category-cards {
            overflow: visible;
        }
    }

/* 移动端不显示tooltip */
@media (max-width: 768px) {
    .card-tooltip {
        display: none;
    }
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50; /* 提高z-index确保在边栏之下 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 底部版权 */
.footer {
    width: 100%;
    margin-top: 64px;
    padding: 24px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-beian {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 运行时间样式 */
.footer-runtime {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
}

.beian-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.beian-link:hover {
    color: var(--active-text);
}

.beian-separator {
    color: var(--text-secondary);
    margin: 0 8px;
}

.beian-police-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* 响应式设计 - 基础样式 */
.menu-toggle,
.search-toggle {
    display: none !important;
}

/* 图标卡片响应式设计 */
@media (max-width: 768px) {
    /* 移动端自适应列数 */
    .icon-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 16px;
        padding: 0 8px;
    }
    
    .icon-cards-section {
        padding: 0 8px 16px 8px;
    }
    
    .icon-card-link {
        width: 70px;
        height: 70px;
        padding: 0;
    }
    
    .icon-card-icon {
        font-size: 28px;
        width: 50px;
        height: 50px;
        background-color: var(--bg-tertiary);
        border-radius: 8px;
    }
    
    .icon-card-icon img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
    }
    
   
}

/* 移动端 (<= 768px) */
@media (max-width: 768px) {
    /* 侧边栏 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        max-height: calc(100vh - 64px);
        width: 200px; /* 进一步减少移动端侧边栏宽度 */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        border-radius: 0;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        background-color: var(--bg-primary);
        visibility: hidden;
    }

    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    /* 主内容区 */
    .main-content {
        margin-left: 0;
        padding: 12px;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 页脚 */
    .footer {
        margin-left: 0;
        padding: 20px 16px;
    }

    .footer-content {
        padding: 0;
        max-width: none;
    }

    /* 顶部导航栏 */
    .top-bar-content {
        padding: 0 12px;
        gap: 4px;
    }

    .site-brand {
        flex: 0 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .site-title {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px;
    }

    .site-logo svg {
        width: 28px;
        height: 28px;
    }

    /* 搜索容器 */
    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 16px;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-container.show {
        display: block;
    }

    /* 按钮显示 */
    .menu-toggle,
    .search-toggle,
    .user-button {
        display: flex !important;
    }

    /* 卡片网格 */
    .cards-grid {
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .category-cards,
    .cards-grid.single-category {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
    }

    /* 标题样式 */
    .category-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* 图文卡片优化 */
    .nav-card-graphic .card-image-container {
        height: 200px;
    }

    .nav-card-graphic .card-info {
        padding: 0 16px 16px;
    }

    /* 焦点图移动端优化 */
    .carousel-container {
        height: 180px;
        margin: 0 8px 16px;
    }
    
    /* 移动端标题样式优化 - 所有卡片类型通用 */
    .card-title,
    .nav-card-graphic .card-title,
    .nav-card-simple .card-title {
        font-size: 14px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 确保标题容器有正确的布局 */
    .card-header,
    .card-info,
    .card-content {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 普通卡片标题移动端优化 */
    .nav-card-simple .card-title {
        font-size: 14px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100% - 60px) !important;
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* 普通卡片内容容器优化 */
    .nav-card-simple .card-content {
        display: flex !important;
        align-items: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
        overflow: hidden !important;
        padding: 12px;
    }

    /* 普通卡片图标容器优化 */
    .nav-card-simple .card-icon {
        flex-shrink: 0 !important;
        width: 48px !important;
        height: 48px !important;
        margin-right: 0 !important;
    }

    /* 普通卡片信息容器优化 */
    .nav-card-simple .card-info {
        flex: 1 !important;
        min-width: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    /* 移动端卡片描述显示多行 - 所有卡片类型通用 */
    .card-description,
    .nav-card-graphic .card-description,
    .nav-card-simple .card-description {
        font-size: 12px;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 4px !important;
    }
    
   
}

/* 平板端及以上 (769px +) */
@media (min-width: 769px) {
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        max-width: 100%;
        width: 100%;
        gap: 16px;
        padding: 0 16px; /* 添加内边距，确保卡片不贴边 */
    }
    
    .cards-grid.single-category {
        grid-template-columns: repeat(3, 1fr); /* 单独分类显示时保持固定列数 */
        max-width: 100%;
        width: 100%;
        gap: 16px;
        padding: 0 16px;
    }
    
    /* 桌面端图文卡片标题样式，使用100%宽度 */
    .nav-card-graphic .card-title {
        max-width: 100%;
        font-size: 16px;
    }
}

/* 大屏设备 (1024px +) */
@media (min-width: 1024px) {
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .cards-grid.single-category {
        grid-template-columns: repeat(4, 1fr); /* 大屏才使用4列 */
    }
}

/* 超大屏设备 (1200px +) */
@media (min-width: 1200px) {
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 0 24px; /* 大屏增加内边距 */
    }
    
    .cards-grid.single-category {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 24px; /* 大屏增加内边距 */
    }
}

/* 回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

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

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 详情页样式 */
/* 详情页内容容器 */
.detail-content {
    background-color: var(--card-bg); /* 使用卡片背景色 */
    border-radius: 12px; /* 圆角边框 */
    padding: 24px; /* 内边距 */
    border: 1px solid var(--card-border); /* 卡片边框 */
    width: 100%; /* 宽度100% */
    max-width: 1400px; /* 响应式最大宽度 */
    margin: 0 auto; /* 居中显示 */
    box-sizing: border-box; /* 盒模型为border-box */
}

/* 详情页主图 */
.detail-image {
    width: 100%; /* 宽度100% */
    height: 400px; /* 固定高度 */
    object-fit: cover; /* 图片覆盖填充 */
    object-position: center; /* 垂直居中 */
    border-radius: 8px; /* 圆角 */
    margin-bottom: 16px; /* 底部间距 */
}

/* 文章内容中的图片 */
.detail-description img {
    max-width: 100%; /* 最大宽度100%，确保不超出容器 */
    height: auto; /* 高度自适应 */
    object-fit: cover; /* 图片覆盖填充 */
    object-position: center; /* 垂直居中 */
    border-radius: 8px; /* 圆角 */
    margin: 16px 0; /* 上下间距 */
    display: block; /* 块级元素，确保居中 */
}

/* 移动端图片自适应处理 */
@media (max-width: 768px) {
    /* 详情页主图移动端适配 */
    .detail-image {
        height: 250px; /* 移动端固定高度 */
        object-fit: cover; /* 保持覆盖填充 */
        object-position: center; /* 垂直居中 */
    }
    
    /* 文章内容中的图片移动端适配 */
    .detail-description img {
        max-width: 100%; /* 最大宽度100% */
        height: auto; /* 高度自适应 */
        object-fit: cover; /* 图片覆盖填充 */
        object-position: center; /* 垂直居中 */
        margin: 12px 0; /* 调整间距 */
    }
    
    /* 强制所有图片自适应，防止内联样式覆盖 */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* 详情页元信息 */
.detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-date,
.detail-author {
    display: flex;
    align-items: center;
}

/* 详情页分类标签 */
.detail-category {
    display: inline-block; /* 行内块元素 */
    padding: 4px 12px; /* 内边距 */
    background-color: var(--active-bg); /* 使用激活背景色 */
    color: var(--active-text); /* 使用激活文字色 */
    border-radius: 16px; /* 圆形标签 */
    font-size: 14px; /* 字体大小 */
    margin-bottom: 16px; /* 底部间距 */
}

/* 详情页标题 */
.detail-title {
    font-size: 28px; /* 大标题字体 */
    font-weight: 700; /* 加粗 */
    color: var(--text-primary); /* 主文字色 */
    margin-bottom: 16px; /* 底部间距 */
}

/* 详情页描述 */
.detail-description {
    font-size: 16px; /* 字体大小 */
    line-height: 1.8; /* 行高 */
    color: var(--text-secondary); /* 次要文字色 */
    margin-bottom: 24px; /* 底部间距 */
    white-space: pre-wrap; /* 保留空白和换行 */
    word-wrap: break-word; /* 长词换行 */
    overflow-wrap: break-word; /* 确保长文本换行 */
    width: 100%; /* 宽度100% */
    max-width: 100%; /* 最大宽度100% */
    box-sizing: border-box; /* 盒模型 */
}

/* 推荐内容容器 */
.recommendations {
    background-color: var(--card-bg); /* 卡片背景色 */
    border-radius: 12px; /* 圆角 */
    padding: 24px; /* 内边距 */
    border: 1px solid var(--card-border); /* 卡片边框 */
}

/* 推荐内容标题 */
.recommendations-title {
    font-size: 20px; /* 标题字体大小 */
    font-weight: 600; /* 加粗 */
    color: var(--text-primary); /* 主文字色 */
    margin-bottom: 16px; /* 底部间距 */
}

/* 推荐内容区域 */
.recommendations-section {
    margin-top: 32px; /* 顶部间距 */
    padding-top: 24px; /* 顶部内边距 */
    border-top: 1px solid var(--border-color); /* 顶部边框 */
    width: 100%; /* 宽度100% */
    box-sizing: border-box; /* 盒模型 */
}

/* 推荐内容列表 */
.recommendation-list {
    display: grid; /* 使用grid布局 */
    gap: 16px; /* 网格间距 */
    width: 100%; /* 宽度100% */
    box-sizing: border-box; /* 盒模型 */
    align-items: start; /* 顶部对齐 */
}

/* 四个卡片时占满容器 */
.recommendation-list.four-cards {
    grid-template-columns: repeat(4, minmax(250px, 1fr)); /* 4列布局，自动拉伸填满容器 */
}

/* 三个卡片时占满容器 */
.recommendation-list.three-cards {
    grid-template-columns: repeat(3, minmax(250px, 1fr)); /* 3列布局，自动拉伸填满容器 */
}

/* 两个卡片时占满容器 */
.recommendation-list.two-cards {
    grid-template-columns: repeat(2, minmax(250px, 1fr)); /* 2列布局，自动拉伸填满容器 */
}

/* 一个卡片时保持合适宽度 */
.recommendation-list.single-card {
    grid-template-columns: 250px; /* 固定宽度250px */
    justify-content: start; /* 左对齐 */
}

/* 推荐卡片 */
.recommendation-card {
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 6px; /* 内部间距 */
    padding: 10px; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    transition: background-color 0.2s ease; /* 背景色过渡 */
    cursor: pointer; /* 指针样式 */
    text-decoration: none; /* 无下划线 */
    color: inherit; /* 继承父元素颜色 */
    border: 1px solid var(--border-color); /* 边框 */
    box-sizing: border-box; /* 盒模型 */
    height: 200px; /* 固定高度 */
    min-width: 250px; /* 确保最小宽度 */
   
    width: 100%; /* 卡片宽度100%填充网格项 */
}

/* 推荐卡片悬停效果 */
.recommendation-card:hover {
    background-color: var(--hover-bg); /* 悬停背景色 */
    border-color: var(--card-hover-border); /* 悬停边框色 */
}

/* 响应式设计 - 始终保持四个卡片一行 */
.recommendation-list {
    grid-template-columns: repeat(4, minmax(200px, 1fr)) !important; /* 始终4列布局，最小宽度调整为200px */
}

/* 推荐卡片 */
.recommendation-card {
    min-width: 0; /* 允许卡片收缩 */
    height: 200px; /* 固定高度 */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 平板设备适配 - 一行三列 */
@media (min-width: 601px) and (max-width: 900px) {
    .recommendation-list {
        grid-template-columns: repeat(3, minmax(200px, 1fr)) !important; /* 平板显示三列 */
    }
}

/* 移动端适配 - 一行二列 */
@media (max-width: 600px) {
    .recommendation-list {
        grid-template-columns: repeat(2, minmax(150px, 1fr)) !important; /* 移动端显示二列 */
        gap: 12px; /* 调整间距 */
    }
    
    .recommendation-card {
        height: auto; /* 允许高度自适应 */
        padding: 10px; /* 恢复内边距 */
    }
    
    .recommendation-title {
        font-size: 13px !important; /* 恢复标题字体大小 */
    }
    
    .recommendation-description {
        font-size: 11px !important; /* 恢复描述字体大小 */
        -webkit-line-clamp: 2 !important; /* 显示2行描述 */
    }
    
    .recommendation-image {
        height: 70px !important; /* 恢复图片高度 */
    }
    
    .recommendation-image-placeholder {
        height: 70px !important; /* 恢复图片占位符高度 */
        font-size: 24px !important; /* 恢复占位符字体大小 */
    }
}

/* 推荐卡片图片 */
.recommendation-image {
    width: auto; /* 宽度自动，按高度等比例缩放 */
    height: 120px; /* 固定高度 */
    max-height: 100%; /* 最大高度100% */
    object-fit: contain; /* 图片完整显示 */
    border-radius: 6px; /* 圆角 */
    flex-shrink: 0; /* 不收缩 */
    margin: 0 auto; /* 水平居中 */
    display: block; /* 块级元素 */
}

/* 推荐卡片图片占位符 */
.recommendation-image-placeholder {
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    background-color: var(--bg-tertiary); /* 占位符背景色 */
    color: var(--text-secondary); /* 占位符文字色 */
    font-size: 24px; /* 字体大小 */
    font-weight: 600; /* 加粗 */
    height: 120px; /* 固定高度 */
}

/* 推荐卡片内容容器 */
.recommendation-content {
    flex: 1; /* 弹性拉伸 */
    min-width: 0; /* 允许收缩 */
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 4px; /* 内部间距 */
    justify-content: space-between; /* 两端对齐 */
    overflow: hidden; /* 隐藏溢出 */
}

/* 推荐卡片标题 */
.recommendation-title {
    font-size: 13px; /* 字体大小 */
    font-weight: 600; /* 加粗 */
    color: var(--text-primary); /* 主文字色 */
    margin: 0; /* 清除默认边距 */
    padding: 0; /* 清除默认内边距 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 省略号 */
    white-space: nowrap; /* 不换行 */
    width: 100%; /* 宽度100% */
    max-width: 100%; /* 最大宽度100% */
    box-sizing: border-box; /* 盒模型 */
}

/* 推荐卡片描述 */
.recommendation-description {
    font-size: 11px; /* 字体大小 */
    color: var(--text-secondary); /* 次要文字色 */
    margin: 0; /* 清除默认边距 */
    padding: 0; /* 清除默认内边距 */
    overflow: hidden; /* 隐藏溢出 */
    display: -webkit-box; /* WebKit弹性盒子 */
    -webkit-line-clamp: 2; /* 显示2行 */
    -webkit-box-orient: vertical; /* 垂直排列 */
    line-height: 1.3; /* 行高 */
    flex-shrink: 1; /* 允许收缩 */
    width: 100%; /* 宽度100% */
    max-width: 100%; /* 最大宽度100% */
    box-sizing: border-box; /* 盒模型 */
    word-wrap: break-word; /* 长词换行 */
    overflow-wrap: break-word; /* 确保长文本换行 */
}

/* 返回首页区域 */
.back-to-home-section {
    margin-top: 32px; /* 顶部间距 */
    text-align: center; /* 居中对齐 */
    padding-top: 24px; /* 顶部内边距 */
    border-top: 1px solid var(--border-color); /* 顶部边框 */
}

/* 返回首页按钮 */
.back-to-home-button {
    display: inline-flex; /* 行内弹性布局 */
    align-items: center; /* 垂直居中 */
    gap: 8px; /* 图标文字间距 */
    padding: 12px 24px; /* 内边距 */
    background-color: var(--active-bg); /* 激活背景色 */
    color: var(--active-text); /* 激活文字色 */
    border: none; /* 无边框 */
    border-radius: 8px; /* 圆角 */
    font-size: 16px; /* 字体大小 */
    font-weight: 500; /* 中等加粗 */
    cursor: pointer; /* 指针样式 */
    text-decoration: none; /* 无下划线 */
    transition: all 0.2s ease; /* 全部属性过渡 */
}

/* 返回首页按钮悬停效果 */
.back-to-home-button:hover {
    opacity: 0.9; /* 透明度降低 */
    transform: translateY(-2px); /* 向上移动 */
}

/* 详情页响应式设计 */
/* 大屏设备 */
@media (max-width: 1200px) {
    .recommendation-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 调整列宽 */
    }
}

/* 平板及以下设备 */
@media (max-width: 768px) {
    /* 推荐列表布局 */
    .recommendation-list {
        grid-template-columns: 1fr 1fr; /* 2列布局 */
        gap: 8px; /* 减小间距 */
        max-width: 100%; /* 确保不超出容器宽度 */
        width: 100%; /* 宽度100% */
        box-sizing: border-box; /* 盒模型 */
    }

    /* 推荐卡片样式调整 */
    .recommendation-card {
        padding: 6px; /* 减小内边距 */
        border-radius: 4px; /* 减小圆角 */
        height: auto; /* 自适应高度 */
        display: flex; /* 弹性布局 */
        flex-direction: column; /* 垂直排列 */
        justify-content: space-between; /* 两端对齐 */
        min-width: 0; /* 允许收缩 */
        box-sizing: border-box; /* 盒模型 */
    }

    /* 推荐图片样式调整 */
    .recommendation-image {
        height: 60px; /* 减小高度 */
        border-radius: 4px; /* 减小圆角 */
        width: auto; /* 宽度自动，按高度等比例缩放 */
        max-height: 100%; /* 最大高度100% */
        object-fit: contain; /* 图片完整显示 */
        margin: 0 auto; /* 水平居中 */
        display: block; /* 块级元素 */
        box-sizing: border-box; /* 盒模型 */
    }
    
    /* 推荐图片占位符调整 */
    .recommendation-image-placeholder {
        height: 60px; /* 减小高度 */
        width: 100%; /* 宽度100% */
        box-sizing: border-box; /* 盒模型 */
    }
    
    /* 推荐标题调整 */
    .recommendation-title {
        font-size: 11px; /* 减小字体 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 隐藏溢出 */
        text-overflow: ellipsis; /* 省略号 */
        max-width: 100%; /* 确保不超出容器 */
        box-sizing: border-box; /* 盒模型 */
    }
    
    /* 推荐描述调整 */
    .recommendation-description {
        font-size: 9px; /* 减小字体 */
        display: -webkit-box; /* WebKit弹性盒子 */
        -webkit-line-clamp: 2; /* 显示2行，减少高度 */
        -webkit-box-orient: vertical; /* 垂直排列 */
        line-height: 1.2; /* 减小行高 */
        word-break: break-word; /* 长词换行 */
        overflow: hidden; /* 隐藏溢出 */
        box-sizing: border-box; /* 盒模型 */
    }
    
    /* 详情内容容器调整 */
    .detail-content {
        padding: 16px; /* 减小内边距 */
        width: 100% !important; /* 强制100%宽度 */
        max-width: 100% !important; /* 最大宽度100% */
        box-sizing: border-box; /* 盒模型 */
    }

    /* 详情标题调整 */
    .detail-title {
        font-size: 24px; /* 减小字体 */
        line-height: 1.2; /* 减小行高 */
        word-break: break-word; /* 长词换行 */
    }
    
    /* 详情图片调整 */
    .detail-image {
        height: 250px; /* 减小高度 */
        width: 100%; /* 宽度100% */
        box-sizing: border-box; /* 盒模型 */
    }
}

/* 焦点图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

.carousel-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.carousel-description {
    font-size: 16px;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: white;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    box-sizing: border-box;
}

.carousel-control {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 切换风格选择器 */
.carousel-style-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-direction: row;
}

/* 移动端效果选择容器 */
.mobile-effects-container {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.mobile-effects-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mobile-effects-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-effect-btn {
    padding: 6px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-effect-btn.active {
    background-color: var(--active-text);
    color: white;
    border-color: var(--active-text);
}

.mobile-effect-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--active-text);
}

/* 效果选择器容器 */
.effect-selector-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 效果选择按钮 */
.style-select-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 36px;
    height: 36px;
}

.style-select-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--active-text);
    box-shadow: var(--shadow-md);
}

/* 下拉菜单 */
.effect-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: auto;
    max-width: 200px;
    width: auto;
    max-height: 140px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

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

/* 效果列表 */
.effect-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

/* 效果项 */
.effect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    white-space: nowrap;
}

/* 效果图标 */
.effect-icon {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--active-text);
}

/* 效果项激活状态 */
.effect-item.active {
    color: var(--active-text);
    font-weight: 500;
}

/* 效果项悬停状态 */
.effect-item:hover {
    background-color: var(--bg-secondary);
    color: var(--active-text);
}

.effect-item span {
    font-size: 14px;
}

/* 滑动效果 */
.carousel-container.slide-effect .carousel-slide {
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.carousel-container.slide-effect .carousel-slide.active {
    transform: translateX(0);
}

.carousel-container.slide-effect .carousel-slide.prev {
    transform: translateX(-100%);
}

/* 缩放效果 */
.carousel-container.scale-effect .carousel-slide {
    transform: scale(0.8);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.carousel-container.scale-effect .carousel-slide.active {
    transform: scale(1);
}

/* 翻转效果 */
.carousel-container.flip-effect {
    perspective: 1000px;
}

.carousel-container.flip-effect .carousel-slide {
    transform: rotateY(90deg);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-container.flip-effect .carousel-slide.active {
    transform: rotateY(0);
}

/* 立方体效果 */
.carousel-container.cube-effect {
    perspective: 1200px;
}

.carousel-container.cube-effect .carousel-slide {
    transform: rotateY(90deg) translateZ(600px);
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.7s ease-in-out;
}

.carousel-container.cube-effect .carousel-slide.active {
    transform: rotateY(0) translateZ(0);
}

/* 百叶窗效果 */
.carousel-container.blinds-effect .carousel-slide {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s steps(10), opacity 0.6s ease-in-out;
}

.carousel-container.blinds-effect .carousel-slide.active {
    clip-path: inset(0 0 0 0);
}

/* 推入效果 */
.carousel-container.push-effect .carousel-slide {
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease-in-out;
}

.carousel-container.push-effect .carousel-slide.active {
    transform: translateX(0);
}

/* 旋转效果 */
.carousel-container.rotate-effect .carousel-slide {
    transform: rotate(180deg) scale(0.8);
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-container.rotate-effect .carousel-slide.active {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

/* 弹跳效果 */
.carousel-container.bounce-effect .carousel-slide {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-container.bounce-effect .carousel-slide.active {
    transform: translateY(0);
    opacity: 1;
}

/* 翻页效果 */
.carousel-container.page-effect {
    perspective: 1000px;
}

.carousel-container.page-effect .carousel-slide {
    transform: rotateY(-180deg);
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-container.page-effect .carousel-slide.active {
    transform: rotateY(0);
    opacity: 1;
}

/* 淡入滑动效果 */
.carousel-container.fade-slide-effect .carousel-slide {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-container.fade-slide-effect .carousel-slide.active {
    transform: translateX(0);
    opacity: 1;
}

/* 缩放旋转效果（精简版） */
.carousel-container.zoom-rotate-effect .carousel-slide {
    transform: scale(0.8) rotate(15deg);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.carousel-container.zoom-rotate-effect .carousel-slide.active {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* 广告区域样式 */
.ad-container {
    width: 100%;
    margin: 30px 0;
    padding: 20px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ad-item {
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    height: 80px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.ad-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ad-item:hover .ad-image {
    opacity: 1;
}

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

/* 焦点图加载效果 */
.carousel-image {
    filter: blur(3px);
    transition: filter 0.5s ease;
}

.carousel-image.loaded {
    filter: blur(0);
}

.carousel-image.error {
    filter: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
    
    .carousel-title {
        font-size: 18px;
    }
    
    .carousel-description {
        font-size: 14px;
    }
    
    /* 确保风格选择器在小屏幕下保持右上角定位 */
    .carousel-style-selector {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1000;
    }
    
    /* 小屏幕下优化效果选择器 */
    .effect-selector-container {
        position: relative;
        margin-bottom: 0;
    }
    

    
    .effect-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
        transform: none;
    }
    
    /* 小屏幕下隐藏移动端效果选择器 */
    .mobile-effects-container {
        display: none;
    }
    
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ad-item {
        height: 70px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .effect-list {
        padding: 2px 0;
    }
    
    .effect-item {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .effect-icon {
        font-size: 11px;
        width: 12px;
        height: 12px;
    }
    
    .effect-item span:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .ad-item {
        height: 60px;
    }
}

/* 面包屑导航 - 简约明显风格 */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast) ease;
    padding: 4px 0;
}

.breadcrumb a:hover {
    color: var(--active-text);
}

/* 分隔符样式 - 与首页链接相同 */
.breadcrumb span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    padding: 4px 0;
    transition: color var(--transition-fast) ease;
}

/* 分隔符悬停效果 - 与首页链接相同 */
.breadcrumb span:hover {
    color: var(--active-text);
}

/* 当前页面样式 - 明显突出 */
.breadcrumb > span:last-child {
    color: var(--active-text);
    font-weight: 600;
    font-size: 14px;
    padding: 4px 0;
}

/* 响应式设计 - 保持简约明显 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb span {
        font-size: 13px;
    }
    
    .breadcrumb a,
    .breadcrumb > span:last-child {
        font-size: 13px;
    }
    
    /* 确保主内容区在移动端自动100%显示 */
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }
}

/* 确保垂直对齐 */
.breadcrumb a,
.breadcrumb span {
    align-items: center;
    vertical-align: middle;
}



/* 卡片容器，用于相对定位tooltip */
.card-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.logo-watermelon { background-color: #ff0000; }
.logo-mango { background-color: #ff9800; }
.logo-youku { background-color: #1e88e5; }
.logo-iqiyi { background-color: #00b42a; }
.logo-bilibili { background-color: #00a1d6; }
.logo-tencent { background-color: #12b7f5; }
    
    /* 移动端普通卡片标题自动裁剪优化 */
    .card-title {
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端普通卡片描述自动裁剪优化 */
    .card-description {
        font-size: 12px !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
   
    
    /* 确保卡片容器和内容区域支持自动裁剪 */
    .nav-card,
    .card-content,
    .card-info {
        overflow: hidden !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 确保图文卡片中的标题也能正确裁剪 */
    .nav-card-graphic .card-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}



/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .pagination-button {
    padding: 8px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.pagination .pagination-button:hover:not(.disabled) {
    background-color: var(--hover-bg);
    border-color: var(--card-hover-border);
}

.pagination .pagination-button.active {
    background-color: var(--active-bg);
    color: var(--active-text);
    border-color: var(--active-text);
}

.pagination .pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 8px;
}

/* 手机界面分页符优化 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin-top: 24px;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    .pagination .pagination-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
        height: 36px;
        border-radius: 4px;
    }
    
    /* 简化首页和尾页为图标 */
    .pagination .pagination-button:first-child,
    .pagination .pagination-button:last-child {
        font-size: 0;
        min-width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    /* 为首页和尾页添加图标 */
    .pagination .pagination-button:first-child::before {
        content: '首页';
        font-size: 12px;
    }
    
    .pagination .pagination-button:last-child::before {
        content: '尾页';
        font-size: 12px;
    }
    
    /* 简化前后页按钮 */
    .pagination .pagination-button:nth-child(2),
    .pagination .pagination-button:nth-last-child(2) {
        min-width: 36px;
        padding: 6px;
    }
    
    .pagination-info {
        font-size: 13px;
        margin: 0 6px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .pagination {
        gap: 4px;
        margin-top: 16px;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 8px;
    }
    
    .pagination .pagination-button {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
    
    .pagination .pagination-button:first-child,
    .pagination .pagination-button:last-child {
        min-width: 32px;
        height: 32px;
        padding: 5px;
    }
    
    .pagination .pagination-button:first-child::before,
    .pagination .pagination-button:last-child::before {
        font-size: 11px;
    }
    
    .pagination .pagination-button:nth-child(2),
    .pagination .pagination-button:nth-last-child(2) {
        min-width: 32px;
        padding: 5px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin: 0 4px;
    }
}





/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 错误状态 */
.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #ef4444;
    font-size: 16px;
}

