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

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 引入思源宋体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

body {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', serif;
    font-weight: 400;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* 主体内容包装器 */
.main-content-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* 右侧独立挂窗区域 */
.side-widgets {
    width: 500px; /* 从400px增加到500px */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0; /* 与Banner顶部对齐 */
    align-self: flex-start;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.side-widgets::-webkit-scrollbar {
    width: 6px;
}

.side-widgets::-webkit-scrollbar-track {
    background: transparent;
}

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

.side-widgets::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* 全屏宽度Tab栏包装器 */
.top-nav-fullwidth-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 24px;
    padding: 0;
    box-sizing: border-box;
    z-index: 1000;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 头部样式 - 使用Banner2.png作为背景图 */
.header {
    position: relative;
    /* 使用Banner图.png作为背景图 */
    background: url('/static/images/Banner图.png') center/contain no-repeat;
    background-color: #f8fafc; /* 添加背景色，防止图片周围出现空白 */
    color: white;
    padding: 0;
    min-height: 300px;
    aspect-ratio: 1921 / 610; /* 保持Banner图的原始宽高比 */
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    height: 100%;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.header-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.header-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    /* 增强文字阴影，确保在背景图上清晰可读 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.header-title i {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    /* 添加图标阴影和发光效果 */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    color: #ffffff;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    /* 增强文字阴影 */
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    letter-spacing: 2px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-transform: uppercase;
    background: transparent !important;
    -webkit-text-fill-color: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
}

.header-main-title::selection {
    background: transparent;
    color: #ffffff;
}

.header-main-title::-moz-selection {
    background: transparent;
    color: #ffffff;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.95;
    /* 增强文字阴影 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    letter-spacing: 0.5px;
}

.header-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.6;
    /* 增强文字阴影 */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    max-width: 600px;
}

/* Banner上的按钮特殊样式 - 优化UI设计 */
.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    z-index: 10;
}

.header-actions .btn {
    /* 现代化按钮设计 - 毛玻璃效果 */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 14px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 1px 0 rgba(255, 255, 255, 0.2) inset;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.header-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.header-actions .btn:hover::before {
    left: 100%;
}

.header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset,
                0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transform: translateY(-2px);
}

.header-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.header-actions .btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.header-actions .btn-banner-primary {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.9), rgba(102, 126, 234, 0.9));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(66, 153, 225, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.header-actions .btn-banner-primary:hover {
    background: linear-gradient(135deg, rgba(66, 153, 225, 1), rgba(102, 126, 234, 1));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(66, 153, 225, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* 研究方向结构模块 */
/* 合并模块：具身智能研究方向 + 论文数据统计 */
.combined-research-stats {
    background: var(--card-bg);
    padding: 12px; /* 从15px减少到12px */
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.combined-header {
    text-align: left;
    margin-bottom: 10px; /* 从12px减少到10px */
    padding-bottom: 6px; /* 从8px减少到6px */
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.combined-header h2 {
    font-size: 1.25rem; /* 从1.35rem减少到1.25rem */
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.dashboard-title-clickable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-title-clickable:hover {
    color: var(--primary-color);
}

.dashboard-toggle-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.75rem;
    min-width: 28px;
    height: 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dashboard-toggle-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.dashboard-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dashboard-toggle-btn i {
    transition: transform 0.3s ease;
}

.combined-research-stats.collapsed .dashboard-toggle-btn i {
    transform: rotate(-90deg);
}

.combined-research-stats.collapsed .combined-layout {
    display: none;
}

.combined-research-stats.collapsed {
    padding-bottom: 12px;
}

.combined-header h2 i {
    color: var(--primary-color);
}

.combined-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.combined-header-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.combined-header-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.combined-header-actions .btn-primary:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.combined-header-actions .btn-success {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.combined-header-actions .btn-success:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 左右布局 */
.combined-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* 从15px减少到12px */
    align-items: stretch;
}

/* 左侧：研究方向 */
.research-panel {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 从8px减少到6px */
}

/* 右侧：论文数据统计 */
.stats-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 从13px减少到10px */
    flex: 1;
}

.research-structure {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.structure-header {
    text-align: center;
    margin-bottom: 25px;
}

.structure-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.structure-header h2 i {
    color: var(--primary-color);
}

.structure-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 分类容器 */
.structure-category {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px; /* 从10px减少到8px */
    padding: 8px; /* 从12px减少到8px */
    transition: all 0.3s ease;
}

.structure-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

/* 分类标签 */
.category-label {
    font-size: 0.7rem; /* 从0.75rem减少到0.7rem */
    font-weight: 600;
    color: #1e293b; /* 改成黑色 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px; /* 从8px减少到6px */
    padding-bottom: 3px; /* 从4px减少到3px */
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 5px; /* 从6px减少到5px */
}

.category-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 分类内的卡片容器 */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 6px; /* 从8px减少到6px */
}

.structure-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 7px 10px; /* 从9px 11px减少到7px 10px */
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 标题行：英文和中文同一行 */
.structure-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.structure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
}

.structure-card:hover::before {
    opacity: 1;
}

.structure-card.manipulation {
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

.structure-card.vlm {
    color: #8b5cf6;
    border-left: 4px solid #8b5cf6;
}

.structure-card.vla {
    color: #ec4899;
    border-left: 4px solid #ec4899;
}

.structure-card.humanoid {
    color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

.structure-card.dexterous {
    color: #10b981;
    border-left: 4px solid #10b981;
}

.structure-card.locomotion {
    color: #06b6d4;
    border-left: 4px solid #06b6d4;
}

.structure-card.planning {
    color: #f97316;
    border-left: 4px solid #f97316;
}

.structure-card.learning {
    color: #a855f7;
    border-left: 4px solid #a855f7;
}

.structure-card.perception {
    color: #14b8a6;
    border-left: 4px solid #14b8a6;
}

/* 隐藏图标 */
.structure-icon {
    display: none;
}

/* 新的结构名称样式 */
.structure-name {
    color: #1e293b; /* 改成黑色 */
    font-size: 0.75rem; /* 从0.8rem减少到0.75rem */
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* 隐藏英文标签 */
.structure-en {
    display: none;
}

.structure-icon {
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, currentColor, transparent);
    opacity: 0.15;
}

.structure-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b; /* 改成黑色 */
    line-height: 1.2;
    white-space: nowrap;
}

.structure-en {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

/* 隐藏描述 */
.structure-desc {
    display: none;
    line-height: 1.4;
}

.structure-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 3px; /* 从4px减少到3px */
    margin-top: 3px; /* 从4px减少到3px */
}

.structure-keywords span {
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #7c8ef5 0%, #8a5fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.1);
}

/* 刷新论文按钮 */
.btn-refresh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-refresh:active {
    transform: translateY(0);
}

.btn-refresh.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-refresh.loading i {
    animation: spin 1s linear infinite;
}

/* 论文统计挂件样式 - 重新设计版 */
.paper-stats-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    /* 高度与Banner保持一致 */
    aspect-ratio: 1921 / 610;
    min-height: 300px;
}

.paper-stats-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.paper-stats-header h3 {
    font-size: 1.35rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.paper-stats-header h3 i {
    color: var(--primary-color);
}

.paper-stats-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    flex: 1;
}

/* 总数 - 大样式，独占一行 */
.stat-item-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.stat-item-total:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.stat-item-total .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stat-value-total {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* 今日/本周/本月 - 放在一行 */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.stat-item-today,
.stat-item-week,
.stat-item-month {
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.stat-item-today {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.stat-item-today:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateY(-2px);
}

.stat-item-week {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.stat-item-week:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    transform: translateY(-2px);
}

.stat-item-month {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
}

.stat-item-month:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-2px);
}

.stat-item-today .stat-label,
.stat-item-week .stat-label,
.stat-item-month .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    margin-bottom: 0;
}

.stat-item-today .stat-label i {
    color: #0ea5e9;
}

.stat-item-week .stat-label i {
    color: #10b981;
}

.stat-item-month .stat-label i {
    color: #f59e0b;
}

.stat-value-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 4px;
}

.stat-item-today .stat-value-small {
    color: #0284c7;
}

.stat-item-week .stat-value-small {
    color: #059669;
}

.stat-item-month .stat-value-small {
    color: #d97706;
}

.stat-update-time {
    text-align: center;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .paper-stats-widget {
        padding: 16px;
        aspect-ratio: auto;
        min-height: 280px;
    }
    
    .stat-value-total {
        font-size: 2rem;
    }
    
    .stat-value-small {
        font-size: 1.1rem;
    }
    
    .paper-stats-content {
        gap: 10px;
    }
    
    .stat-item-total {
        padding: 14px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-item-today,
    .stat-item-week,
    .stat-item-month {
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-item-today .stat-label,
    .stat-item-week .stat-label,
    .stat-item-month .stat-label {
        margin-bottom: 0;
    }
    
    .stat-value-small {
        margin-top: 0;
    }
}

/* 活跃作者排行榜挂件样式 - 紧凑排版 */
.author-ranking-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    max-height: 1000px;
}

.author-ranking-widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.author-ranking-widget-header h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.author-ranking-widget-header h3 i {
    color: var(--primary-color);
}

.author-ranking-controls {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.author-ranking-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.author-ranking-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s;
    flex: 1;
}

.author-ranking-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.author-ranking-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.author-ranking-widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
}

/* 作者排行榜项目样式 - 紧凑排版 */
.author-ranking-item {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.author-ranking-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-ranking-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.author-ranking-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.author-ranking-item-rank {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.author-ranking-item-main {
    flex: 1;
    min-width: 0;
}

.author-ranking-item-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.author-ranking-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 标签样式 */
.author-ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
}

.author-ranking-badge-count {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
    border-color: rgba(66, 153, 225, 0.3);
}

.author-ranking-badge-growth {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(72, 187, 120, 0.3);
}

.author-ranking-badge-growth[style*="color: #f56565"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 101, 101, 0.3);
}

.author-ranking-badge-growth[style*="color: #718096"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(113, 128, 150, 0.3);
}

.author-ranking-badge i {
    font-size: 0.65rem;
}

.author-ranking-item-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.author-ranking-item-toggle:hover {
    color: var(--primary-color);
}

.author-ranking-item-toggle i {
    font-size: 0.75rem;
}

.author-ranking-item-papers {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.author-ranking-item-papers.expanded {
    display: block;
}

.author-ranking-paper-item {
    display: block;
    padding: 6px;
    margin-bottom: 4px;
    background: var(--card-bg);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.author-ranking-paper-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-ranking-paper-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-ranking-paper-meta {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* 论文清单板块 */
/* 研究方向活跃度模块 */
.research-activity-section {
    margin-bottom: 32px;
}

.research-activity-main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.research-activity-header {
    margin-bottom: 20px;
}

.research-activity-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.research-activity-header h2 i {
    color: #6366f1;
}

/* 时间范围选择器 */
.activity-time-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.time-btn.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* 视图切换标签页 */
.activity-view-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.view-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-tab:hover {
    color: #475569;
}

.view-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

/* 视图内容 */
.activity-view-content {
    min-height: 400px;
}

.activity-view-content.hidden {
    display: none;
}

/* 图表容器 */
.activity-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

/* 子标签筛选栏 */
.tag-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.tag-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 150px;
}

.tag-filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tag-filter-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 图例 */
.activity-legend {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .research-activity-main {
        padding: 16px;
    }
    
    .activity-time-selector {
        flex-direction: column;
    }
    
    .time-btn {
        width: 100%;
    }
    
    .activity-view-tabs {
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid var(--border-color);
    }
    
    .view-tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
        margin-left: -2px;
    }
    
    .view-tab.active {
        border-bottom-color: transparent;
        border-left-color: #6366f1;
    }
    
    .activity-chart-container {
        height: 300px;
    }
    
    .tag-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tag-filter-select,
    .tag-filter-btn {
        width: 100%;
    }
}

.papers-list-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.papers-list-main {
    width: 100%;
}

.papers-list-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.papers-list-header h2 {
    font-size: 1.35rem; /* 与具身论文数据仪表盘保持一致 */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    position: relative;
}

.papers-list-header h2 i {
    color: var(--primary-color);
}

/* 新论文红点提示徽章 */
.new-papers-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.new-papers-badge:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* 标签内的红点样式（在全量标签旁边） */
.tab .new-papers-badge {
    margin-left: 6px;
    vertical-align: middle;
}

.new-papers-badge.hidden {
    display: none;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.badge-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    line-height: 1.4;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.papers-section-content {
    margin-top: 20px;
}

/* 搜索工具栏 - 新设计 */
.search-toolbar {
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper i.fa-search {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.search-input-wrapper input[type="text"]::placeholder {
    color: var(--text-secondary);
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 1;
}

.clear-search-btn:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.clear-search-btn.hidden {
    display: none;
}

.clear-search-btn i {
    font-size: 0.875rem;
}

.search-results {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 8px;
}

.search-results.hidden {
    display: none;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.search-results-header h3 {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-header h3 i {
    color: var(--primary-color);
}

.search-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.search-results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* 最后更新时间 - 紧凑显示 */
.last-update-info {
    margin-bottom: 16px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.last-update-info i {
    color: var(--primary-color);
}

.last-update-info #lastUpdateTime {
    font-weight: 600;
    color: var(--text-primary);
}

/* 统计卡片 - 优化样式 */
/* 统计板块 - 总论文数+柱状图设计 */
.stats-section {
    margin-bottom: 40px;
}

.stats-header {
    margin-bottom: 24px;
}

.stats-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stats-header h2 i {
    color: var(--text-secondary);
    opacity: 0.6;
}

.stats-dashboard {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 保留原有stats-layout作为备用 */
.stats-layout {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 32px;
    align-items: center;
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .combined-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .research-panel {
        order: 1;
    }
    
    .stats-panel {
        order: 2;
    }
}

/* 响应式设计 - 论文清单UI */
@media (max-width: 768px) {
    /* 搜索工具栏 */
    .search-input-wrapper input[type="text"] {
        font-size: 0.9rem;
        padding: 10px 14px 10px 40px;
    }
    
    /* 筛选排序工具栏 */
    .filter-sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .filter-group, .sort-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select, .sort-select {
        flex: 1;
        min-width: 0;
    }
    
    /* 标签页 */
    .tab-all {
        font-size: 0.85rem;
        padding: 8px 12px;
        height: 32px;
    }
    
    .category-header {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .tab-child {
        font-size: 0.8rem;
        padding: 6px 12px 6px 24px;
        height: 28px;
    }
    
    /* 最后更新时间 */
    .last-update-info {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-total-panel {
        order: 1;
    }
    
    .stats-chart-panel {
        order: 2;
    }
    
    .total-value {
        font-size: 3rem;
    }
}

/* 左侧：总论文数（1/5） */
.stats-total-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.total-card {
    text-align: center;
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.total-label {
    font-size: 0.8rem; /* 从0.85rem减少到0.8rem */
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px; /* 从11px减少到8px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.total-value {
    font-size: 2.5rem; /* 从3rem减少到2.5rem */
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* 右侧：柱状图（4/5） */
.stats-chart-panel {
    display: flex;
    flex-direction: column;
}

.chart-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px; /* 从12px减少到10px */
    padding: 15px; /* 从20px减少到15px */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px; /* 从200px减少到180px */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chart-container canvas:hover {
    transform: scale(1.02);
}

.stats-header h2 i {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* 总论文数卡片 - 简洁设计 */
.stat-card.total {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 3px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 移除categories-grid，使用统一的grid */

/* 研究方向统计 - 列表项设计 */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    position: relative;
}

.stat-card:last-child {
    border-bottom: none;
}

.stat-card:hover {
    background: #f8fafc;
}

.stat-card .stat-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 500;
}

.stat-card .stat-label i {
    font-size: 1.125rem;
    opacity: 0.6;
    width: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.stat-card.zero-count {
    opacity: 0.5;
}

.stat-card.zero-count .stat-value {
    color: #94a3b8;
}

/* 总论文数横幅额外样式 */
/* 总论文数样式已在上面定义 */

/* 旧样式已移除，使用新的列表式设计 */

/* 抓取状态 */
.fetch-status {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid #10b981;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
}

.fetch-status.hidden {
    display: none;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-header i {
    color: #10b981;
    font-size: 1.2rem;
}

.status-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

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

/* 标签页容器 - 折叠展开模式 */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* 全量标签 - 特殊标签样式（深灰蓝色，区别于分类） */
.tab-all {
    padding: 10px 16px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tab-all:hover::before {
    left: 100%;
}

.tab-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tab-all.active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(71, 85, 105, 0.3);
}

/* 分类标签容器 */
.category-tab {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 分类头部 - 标签样式（柔和配色） */
.category-header {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.category-header:hover::before {
    left: 100%;
}

.category-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.category-header:active {
    transform: translateY(0);
}

/* 不同分类的颜色方案（柔和配色，降低饱和度） */
.category-tab[data-category="Perception"] .category-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.category-tab[data-category="Decision"] .category-header {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 3px solid #10b981;
}

.category-tab[data-category="Motion Control"] .category-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.category-tab[data-category="Operation"] .category-header {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    color: #6b21a8;
    border-left: 3px solid #8b5cf6;
}

.category-tab[data-category="Learning"] .category-header {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
    border-left: 3px solid #ec4899;
}

.category-tab[data-category="Benchmark"] .category-header {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #164e63;
    border-left: 3px solid #06b6d4;
}

.category-tab[data-category="General"] .category-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-left: 3px solid #64748b;
}

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

.category-name {
    font-weight: 600;
    color: inherit;
}

.category-count {
    color: inherit;
    font-weight: 500;
    background: transparent;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.category-expand-icon {
    font-size: 0.75rem;
    color: inherit;
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-left: 8px;
    opacity: 0.7;
}

.category-tab.expanded .category-expand-icon {
    transform: rotate(180deg);
}

/* 子标签容器 */
.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: white;
    border-top: 1px solid var(--border-color);
}

.category-tab.expanded .category-children {
    max-height: 2000px; /* 足够大的值，确保能展开所有子标签 */
}

/* 子标签 - 简洁样式 */
.tab-child {
    display: flex;
    width: 100%;
    padding: 8px 16px 8px 36px; /* 左侧缩进更多，与分类标签区分 */
    background: #f8fafc;
    border: none;
    border-top: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
    height: 32px;
    align-items: center;
    position: relative;
}

.tab-child:first-child {
    border-top: none;
}

.tab-child::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
}

.tab-child:hover {
    background: #f1f5f9;
    color: var(--text-primary);
    padding-left: 40px; /* 悬停时稍微右移 */
}

.tab-child:hover::before {
    opacity: 0.6;
}

.tab-child.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding-left: 36px;
}

.tab-child.active::before {
    background: white;
    opacity: 1;
}

.tab-child.zero-count {
    opacity: 0.55;
    cursor: default;
}

/* 通用标签样式（兼容旧代码） */
.tab {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    position: relative;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    flex-shrink: 0;
    height: 32px;
}


/* 层级分组样式 - 已废弃，使用折叠展开模式 */
.tab-layer-block {
    display: none;
}

.tab-layer-title {
    display: none;
}

.tab-sub-block {
    display: none;
}

.tab-sub-title {
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    font-size: 0.78rem;
}

.tab-sub-block .tab {
    margin-right: 0;
    margin-bottom: 0;
    border-bottom: 2px solid transparent;
}

.tab.zero-count {
    opacity: 0.55;
    color: var(--text-secondary);
    cursor: default;
}

.tab:hover {
    color: var(--primary-color);
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.06);
}

.tab.active {
    color: white;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    font-weight: 600;
}

/* 论文列表 */
.papers-container {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    min-height: 400px;
}

.paper-list {
    display: none;
}

.paper-list.active {
    display: block;
}

.paper-item {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.paper-item:hover {
    background-color: var(--bg-color);
    border-radius: 8px;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.paper-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.paper-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.paper-title a:hover {
    color: var(--primary-color);
}

.paper-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.paper-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* 论文补充信息样式 */
.paper-citations {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paper-citations i {
    color: var(--primary-color);
}

.citation-count {
    font-weight: 600;
    color: var(--text-primary);
}

.citation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.citation-badge.influential {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.paper-affiliations {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.paper-affiliations i {
    color: #8b5cf6;
    flex-shrink: 0;
}

.affiliations-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paper-venue i {
    color: #10b981;
    flex-shrink: 0;
}

/* 摘要显示 - 默认收起，点击展开/收起 */
.paper-abstract {
    margin: 10px 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paper-abstract:hover {
    opacity: 0.9;
}

.abstract-text-wrapper {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
}

.abstract-text-short {
    display: block;
}

.abstract-text-full {
    display: none;
}

.paper-abstract.expanded .abstract-text-short {
    display: none;
}

.paper-abstract.expanded .abstract-text-full {
    display: block;
}

/* 筛选和排序工具栏 */
/* 筛选和排序工具栏 - 新设计（垂直布局） */
.filter-sort-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.filter-group label, .sort-group label {
    min-width: 40px;
    flex-shrink: 0;
}

.filter-select, .sort-select {
    flex: 1;
    min-width: 0;
}

.filter-group i, .sort-group i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-group label, .sort-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select, .sort-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Serif SC', serif;
    min-width: 0; /* 允许flex收缩 */
    max-width: 100%; /* 防止超出容器 */
    flex: 0 1 auto; /* 允许收缩但保持内容 */
    box-sizing: border-box; /* 包含padding和border */
}

.filter-select:hover, .sort-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus, .sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.paper-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.paper-links {
    display: flex;
    gap: 15px;
}

.paper-link {
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.paper-link.pdf {
    background-color: #fee2e2;
    color: #dc2626;
}

.paper-link.pdf:hover {
    background-color: #fecaca;
}

.paper-link.code {
    background-color: #dbeafe;
    color: #2563eb;
}

.paper-link.code:hover {
    background-color: #bfdbfe;
}

.paper-link.disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-color);
}

.pagination-btn.pagination-nav {
    min-width: auto;
    padding: 0 16px;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.pagination-size label {
    font-weight: 500;
}

.pagination-size select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-size select:hover {
    border-color: var(--primary-color);
}

.pagination-size select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 15px;
        gap: 15px;
    }
    
    .pagination-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
    
    .pagination-size {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 弹窗按钮样式优化 */
.modal-footer .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.modal-footer .btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 开始抓取按钮 - 渐变设计 */
.modal-footer .btn-fetch-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(118, 75, 162, 0.2);
    position: relative;
}

.modal-footer .btn-fetch-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.modal-footer .btn-fetch-primary:hover::before {
    left: 100%;
}

.modal-footer .btn-fetch-primary:hover {
    background: linear-gradient(135deg, #7c8ef5 0%, #8a5fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5),
                0 0 30px rgba(118, 75, 162, 0.3);
}

.modal-footer .btn-fetch-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.modal-footer .btn-fetch-primary i {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 按钮加载状态 */
.modal-footer .btn-fetch-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modal-footer .btn-fetch-primary.loading i {
    animation: spin 1s linear infinite;
}

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

/* 平板设备响应式 */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-main-content {
        grid-template-columns: 200px 1fr 240px;
        gap: 16px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav-fullwidth-wrapper {
        padding: 0 10px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 0;
        min-height: 200px;
        aspect-ratio: 1921 / 610; /* 保持Banner图的原始宽高比 */
    }

    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-main-title {
        font-size: 2.5rem !important;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .header-description {
        font-size: 0.95rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .header-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .side-widgets {
        top: 0;
    }

    .stats-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .total-value {
        font-size: 3rem;
    }
    
    .chart-container {
        height: 350px;
        min-height: 300px;
    }
    
    .stats-dashboard {
        padding: 20px;
    }
    
    .chart-card {
        padding: 16px;
    }
    
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .total-value {
        font-size: 3rem;
    }
    
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: wrap;
    }
    
    .nav-tab {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .paper-header {
        flex-direction: column;
    }

    .paper-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
}

/* 顶部导航栏 - Tab标签页样式（渐变背景风格） */
.top-nav {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    margin-bottom: 0;
    padding: 8px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
}

/* 视频趋势视图切换按钮 */
.trends-view-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 12px;
    flex-wrap: wrap;
}

.trends-view-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.trends-view-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.trends-view-btn.active {
    background: linear-gradient(135deg, #fb7299 0%, #00a1d6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hidden {
    display: none !important;
}

.nav-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    margin-right: 8px;
    transition: transform 0.2s;
}

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

.logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9375rem;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
    background: transparent;
}

.nav-tab::after {
    display: none; /* 移除下划线 */
}

.nav-tab:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-1px);
}

.nav-tab.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Tab分隔符 */
.nav-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 8px;
    flex-shrink: 0;
}

/* 招聘信息挂窗 */
.jobs-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 333px;
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

.jobs-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    gap: 12px;
}

.jobs-widget-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.widget-title-clickable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.widget-title-clickable:hover {
    color: var(--primary-color);
}

.widget-toggle-icon {
    font-size: 0.75rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.widget-title-clickable:hover .widget-toggle-icon {
    color: var(--primary-color);
}

.jobs-widget.collapsed .widget-toggle-icon,
.datasets-widget.collapsed .widget-toggle-icon {
    transform: rotate(-90deg);
}

.jobs-widget.collapsed .jobs-widget-content,
.datasets-widget.collapsed .datasets-widget-content {
    display: none;
}

.jobs-widget.collapsed {
    min-height: auto;
    max-height: none;
}

.datasets-widget.collapsed {
    min-height: auto;
    max-height: none;
}

/* 论文趋势分析挂件 */
/* 论文趋势分析区域 */
.trends-section {
    margin: 24px 0;
    padding: 0;
}

.trends-widget {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
}

.trends-widget-header {
    padding: 18px 24px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.trends-widget-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.trends-widget-header h3 {
    font-size: 1.15rem;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trends-widget-header h3 i {
    color: #3b82f6;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trends-time-selector {
    display: flex;
    gap: 6px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
}

.trends-time-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trends-time-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.trends-time-btn.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.trends-widget-content {
    flex: 1;
    overflow: visible;
    padding: 16px 20px;
    background: #ffffff;
}

/* 趋势分析滚动条样式 */
.trends-widget-content::-webkit-scrollbar {
    width: 6px;
}

.trends-widget-content::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.trends-widget-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.trends-widget-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.trends-chart-container {
    position: relative;
    height: 280px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 活跃量分析卡片（紧凑设计，2行排列） */
.trends-activity-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    margin-bottom: 16px;
}

/* 如果类别数量超过8个，自动换行 */
.trends-activity-cards .trends-activity-card:nth-child(n+9) {
    grid-column: span 1;
}

.trends-activity-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.trends-activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    transition: width 0.2s ease;
}

.trends-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.trends-activity-card.up {
    border-left-color: #ef4444;
}

.trends-activity-card.up::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.trends-activity-card.down {
    border-left-color: #10b981;
}

.trends-activity-card.down::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.trends-activity-card.neutral {
    border-left-color: #6b7280;
}

.trends-activity-card.neutral::before {
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
}

.trends-activity-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.activity-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.activity-trend {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.activity-trend.up {
    background: #fee2e2;
    color: #991b1b;
}

.activity-trend.down {
    background: #d1fae5;
    color: #065f46;
}

.activity-trend.neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.activity-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.activity-change {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 2px;
}

.activity-change.up {
    color: #dc2626;
}

.activity-change.down {
    color: #059669;
}

.activity-change.neutral {
    color: #6b7280;
}

.trends-growth-info {
    padding: 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trends-growth-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.trends-growth-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trends-growth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.trends-growth-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    transform: translateX(2px);
}

.trends-growth-category {
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.trends-growth-rate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.trends-growth-rate.positive {
    color: #065f46;
    background: #d1fae5;
}

.trends-growth-rate.negative {
    color: #991b1b;
    background: #fee2e2;
}

.trends-growth-rate.neutral {
    color: #4b5563;
    background: #f3f4f6;
}

/* 更新提示红点 */
.update-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.update-badge.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.jobs-widget-header h3 i {
    color: var(--primary-color);
}

.jobs-widget-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jobs-header-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', serif;
}

.jobs-header-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.jobs-header-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.jobs-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 12px;
}

.jobs-widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 267px;
    position: relative;
    z-index: 1;
}

/* 数据集信息挂窗 */
.datasets-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* 从600px减少1/3到400px */
    max-height: 533px; /* 从800px减少1/3到533px */
}

.datasets-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.datasets-widget-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.datasets-widget-header {
    cursor: pointer;
}

.datasets-widget-header h3 i {
    color: #10b981;
}

.datasets-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 12px;
}

.datasets-widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 333px; /* 从500px减少1/3到333px */
}

.datasets-widget-content::-webkit-scrollbar {
    width: 6px;
}

.datasets-widget-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

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

.datasets-widget-content::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* 具身赛博🙏挂件 - 现代清新主题 */
.fortune-widget {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 600px;
    position: relative;
    overflow: visible;
}

.fortune-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 16px;
}

.fortune-widget-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.fortune-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fortune-widget-header h3 {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fortune-daily-badge {
    font-size: 0.7rem;
    color: #78350f;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.4) 100%);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.6);
    font-weight: 600;
    white-space: nowrap;
}

.fortune-date {
    font-size: 0.75rem;
    color: #64748b;
    opacity: 0.9;
    font-weight: 500;
}

.fortune-widget-content {
    flex: 1;
    padding: 12px 16px 25px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    position: relative;
    z-index: 1;
    overflow: visible;
    min-height: 0;
}

/* 研究方向选择区域 */
.fortune-category-section {
    width: 100%;
    margin-bottom: 10px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.fortune-category-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    text-align: center;
    animation: fadeInDown 0.5s ease-out;
}

.fortune-category-hint i {
    font-size: 0.8rem;
    color: #3b82f6;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 研究方向标签 - 黄色主题 */
.fortune-category-tags {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    max-width: 100%;
    width: 100%;
    flex-wrap: wrap;
    padding: 8px 0;
}

.category-tag {
    padding: 14px 18px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    flex: 1;
    min-width: 90px;
    min-height: 90px;
}

.category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-tag:hover::before {
    left: 100%;
}

.category-tag:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-tag.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.category-tag.active .tag-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.15) rotate(5deg); }
    50% { transform: scale(1.25) rotate(-5deg); }
}

.tag-icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tag-text {
    line-height: 1.2;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.3px;
}

.tag-desc {
    display: none; /* 一行显示时隐藏描述文字 */
}

.category-tag.active .tag-desc {
    color: #78350f;
    opacity: 0.9;
    font-weight: 600;
}

/* 主画面区域 */
.fortune-main-scene {
    width: 100%;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0 10px 0;
    overflow: visible;
    min-height: 0;
    max-height: 100%;
}

/* 主佛像/赛博佛像 */
.fortune-buddha-main {
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    transition: opacity 0.5s ease, transform 0.3s ease;
    overflow: visible;
    min-height: 80px;
}

.fortune-tube-main {
    width: 120px;
    height: 200px;
    margin: 0 auto 10px;
    position: relative;
    flex-shrink: 0;
    perspective: 1000px;
    z-index: 2;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.fortune-tube-main.clickable,
.fortune-buddha-main.clickable {
    cursor: pointer;
}

.fortune-tube-main.clickable:hover,
.fortune-buddha-main.clickable:hover {
    transform: translateY(-5px) scale(1.05);
}

.fortune-tube-main.clickable:active,
.fortune-buddha-main.clickable:active {
    transform: translateY(-2px) scale(1.02);
}

.buddha-body {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow: visible;
}

.buddha-head {
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-bottom: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.buddha-face {
    font-size: 2rem;
    animation: gentleGlow 3s ease-in-out infinite;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buddha-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes gentleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.buddha-base {
    width: 90px;
    height: 40px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    overflow: hidden;
    margin-bottom: 0;
}

.incense-smoke {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    border-radius: 2px;
    animation: smokeRise 2s ease-out infinite;
}

.incense-smoke::before,
.incense-smoke::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 2px;
    animation: smokeRise 2.5s ease-out infinite;
}

.incense-smoke::before {
    left: -8px;
    animation-delay: 0.3s;
}

.incense-smoke::after {
    right: -8px;
    animation-delay: 0.6s;
}

.smoke-particle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    border-radius: 2px;
    animation: smokeRise 3s ease-out infinite;
}

@keyframes smokeRise {
    0% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(1.5);
    }
}

.buddha-click-hint {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 1;
    animation: hintBounce 2s ease-in-out infinite;
    pointer-events: none;
    color: #3b82f6;
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: center;
    z-index: 10;
    width: auto;
    min-width: 90px;
    line-height: 1.3;
    font-weight: 600;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.buddha-click-hint i {
    font-size: 1.2rem;
    color: #3b82f6;
    display: block;
    line-height: 1;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.buddha-click-hint span {
    display: block;
    line-height: 1.4;
    font-weight: 700;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-align: center;
    color: #3b82f6;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.fortune-buddha-main.clickable:hover .buddha-click-hint {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    animation: none;
    transform: translateY(-2px) scale(1.02);
}

@keyframes hintBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px);
        opacity: 0.95;
    }
}

.tube-body {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* 筒的3D效果 */
.tube-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-radius: 50px 50px 0 0;
    box-shadow: 
        0 -2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.tube-middle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 160px;
    background: linear-gradient(135deg, #92400e 0%, #78350f 50%, #92400e 100%);
    border-radius: 0;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tube-click-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(224, 231, 255, 0.9);
    font-size: 0.6rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
    animation: pulse-hint 2s ease-in-out infinite;
}

.tube-click-hint i {
    font-size: 0.75rem;
    margin-bottom: 1px;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-3px);
    }
}

.fortune-tube-main.clickable:hover .tube-click-hint {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* 筒内竹签 */
.tube-sticks {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
}

.tube-stick-item {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 50%, #92400e 100%);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tube-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-radius: 0 0 45px 45px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* 筒的阴影 */
.tube-shadow,
.buddha-shadow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 15px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* 摇动动画 */
.fortune-tube-main.shaking,
.fortune-buddha-main.bowing {
    animation: buddhaBow 0.3s ease-in-out infinite;
}

@keyframes buddhaBow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(5px) rotate(-2deg);
    }
    75% {
        transform: translateY(5px) rotate(2deg);
    }
}

@keyframes tubeShake {
    0%, 100% { 
        transform: translateX(0) rotateZ(0deg);
    }
    25% { 
        transform: translateX(-8px) rotateZ(-3deg);
    }
    75% { 
        transform: translateX(8px) rotateZ(3deg);
    }
}

/* 摇签按钮 */
.fortune-shake-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1.5px solid #2563eb;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease, opacity 0.5s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', serif;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    z-index: 3;
    position: relative;
    white-space: nowrap;
}

.fortune-shake-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.fortune-shake-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.fortune-shake-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 飞出的签 */
.fortune-stick-flying {
    position: absolute;
    width: 60px;
    height: 200px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
    transform-origin: center center;
    visibility: hidden;
}

.fortune-stick-flying.show {
    visibility: visible;
}

.fortune-stick-flying:not(.show) {
    display: none;
}

.fortune-stick-flying.show {
    opacity: 1;
}

.fortune-stick-flying.fly-out {
    animation: stickFlyOut 0.8s ease-out forwards;
}

@keyframes stickFlyOut {
    0% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) translateY(-30px) rotate(120deg) scale(1.1);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) translateY(-50px) rotate(240deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-70px) rotate(360deg) scale(1.3);
        opacity: 0.8;
    }
}

.fortune-stick-flying.expand {
    animation: stickExpand 0.6s ease-out forwards;
}

@keyframes stickExpand {
    0% {
        width: 60px;
        height: 200px;
        transform: translate(-50%, -50%) translateY(-70px) rotate(360deg) scale(1.3);
    }
    50% {
        width: 200px;
        height: auto;
        min-height: 80px;
        transform: translate(-50%, -50%) translateY(-70px) rotate(360deg) scale(1.1);
    }
    100% {
        width: 240px;
        height: auto;
        min-height: 100px;
        transform: translate(-50%, -50%) translateY(-70px) rotate(360deg) scale(1);
    }
}

.stick-paper,
.blessing-paper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.stick-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(59, 130, 246, 0.05) 20px,
            rgba(59, 130, 246, 0.05) 22px
        );
    pointer-events: none;
}

.stick-content,
.blessing-content {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.7;
    text-align: center;
    font-weight: 500;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', serif;
    position: relative;
    z-index: 1;
}

/* 抽签按钮 */
.fortune-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
}

.fortune-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fortune-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.fortune-btn:hover::before {
    width: 300px;
    height: 300px;
}

.fortune-btn:active {
    transform: translateY(0);
}

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

.fortune-btn i {
    font-size: 1.1rem;
}

/* 结果展示覆盖层 */
.fortune-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 100;
    animation: fadeIn 0.5s ease-out;
    border-radius: 12px;
    background: transparent;
}

.fortune-result-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.fortune-result-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    border-radius: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fortune-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

.fortune-icon {
    font-size: 2.5rem;
    animation: bounce 0.6s ease-out;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3柱香图标 */
.three-incense-sticks {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    position: relative;
    height: 60px;
}

.incense-stick {
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, #d97706 0%, #92400e 50%, #78350f 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
    animation: incenseGlow 2s ease-in-out infinite;
}

.incense-stick:nth-child(1) {
    animation-delay: 0s;
}

.incense-stick:nth-child(2) {
    animation-delay: 0.3s;
    height: 55px;
}

.incense-stick:nth-child(3) {
    animation-delay: 0.6s;
    height: 48px;
}

.incense-stick::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #f59e0b 0%, #d97706 50%, transparent 100%);
    border-radius: 50%;
    animation: incenseSmoke 2s ease-in-out infinite;
}

.incense-stick:nth-child(1)::before {
    animation-delay: 0s;
}

.incense-stick:nth-child(2)::before {
    animation-delay: 0.3s;
}

.incense-stick:nth-child(3)::before {
    animation-delay: 0.6s;
}

@keyframes incenseGlow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3), 0 0 8px rgba(217, 119, 6, 0.2);
    }
    50% {
        box-shadow: 0 2px 6px rgba(217, 119, 6, 0.5), 0 0 12px rgba(217, 119, 6, 0.4);
    }
}

@keyframes incenseSmoke {
    0% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-5px) scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(-10px) scale(1.5);
    }
}

/* 标题中的3柱香图标 */
.incense-icon {
    display: inline-block;
    font-size: 0.9em;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fortune-message {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 500;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    min-height: 60px;
    display: block;
    word-wrap: break-word;
    word-break: break-word;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    margin: 0;
}

.fortune-timestamp {
    font-size: 0.75rem;
    color: #64748b;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.dataset-item {
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid #10b981;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dataset-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dataset-item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.dataset-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dataset-item-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.dataset-item-info strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.dataset-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.dataset-item-meta span {
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    color: #10b981;
    font-size: 0.7rem;
}

.dataset-item-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
}

.dataset-item-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dataset-item-link:hover {
    background: rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.dataset-item-link i {
    font-size: 0.7rem;
}

/* 左侧新闻挂件容器 */
/* 新闻挂件已移动到side-widgets中，不再需要独立的left-news-widget样式 */

/* 新闻挂件已移动到side-widgets中，不再需要响应式样式 */

/* 新闻信息挂窗 */
.news-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 450px; /* 提升高度 */
    max-height: 600px; /* 提升高度 */
}

.news-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.news-widget-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.news-widget-header h3 i {
    color: var(--primary-color);
}

.news-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh-news {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    font-size: 0.875rem;
}

.btn-refresh-news:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-refresh-news:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-refresh-news:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-refresh-news i {
    transition: transform 0.3s ease;
}

.btn-refresh-news:disabled i {
    animation: spin 1s linear infinite;
}

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

.news-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 12px;
}

.news-widget-content {
    flex: 1;
    overflow: hidden; /* 默认隐藏滚动条，使用CSS动画 */
    padding: 0;
    min-height: 400px; /* 提升高度 */
    max-height: 600px; /* 提升高度 */
    position: relative;
}

/* 自动滚动模式 */
.news-widget-content.scrolling {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.news-widget-content.scrolling .news-scroll-container {
    animation: scrollNews 120s linear infinite;
    padding: 16px;
    will-change: transform;
}

/* 用户交互时暂停动画 */
.news-widget-content.scrolling:hover .news-scroll-container {
    animation-play-state: paused;
}

/* 手动滚动模式（用户滚动时） */
.news-widget-content.manual-scroll {
    overflow-y: auto !important; /* 显示滚动条 */
    overflow-x: hidden;
    padding: 0 !important;
}

.news-widget-content.manual-scroll .news-scroll-container {
    animation: none !important; /* 停止动画 */
    transform: none !important;
    position: static !important;
    padding: 16px !important;
}

@keyframes scrollNews {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%); /* 滚动到一半时重置（无缝循环） */
    }
}

/* 确保新闻项在滚动容器中正确显示 */
.news-scroll-container .news-item {
    margin-bottom: 12px;
}

.news-widget-content::-webkit-scrollbar {
    width: 8px; /* 增加滚动条宽度，更易操作 */
}

.news-widget-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.news-widget-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.news-widget-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* 悬停时更明显 */
}

/* Bilibili挂件样式 - 已改为侧边栏布局，此样式保留用于兼容 */
.bilibili-trends-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* 主布局：左侧主内容 + 右侧侧边栏 */
.bilibili-main-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

/* 主内容区域 */
.bilibili-main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 右侧侧边栏 */
.bilibili-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

/* 侧边栏挂件 */
.bilibili-sidebar-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 28px;
    border: 1px solid rgba(251, 114, 153, 0.1);
    min-height: 400px;
}

/* 最新视频挂件高度 */
.bilibili-sidebar-widget:first-child {
    min-height: 500px;
}

/* TOP5挂件高度 */
.bilibili-sidebar-widget:last-child {
    min-height: 450px;
}

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

.bilibili-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.bilibili-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bilibili-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .bilibili-main-layout {
        grid-template-columns: 1fr 380px;
    }
}

@media (max-width: 1200px) {
    .bilibili-main-layout {
        grid-template-columns: 1fr;
    }
    
    .bilibili-sidebar {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .bilibili-sidebar {
        grid-template-columns: 1fr;
    }
}

.bilibili-trends-chart {
    width: 100%;
    height: 500px;
}

.bilibili-latest-videos {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    border: 1px solid rgba(251, 114, 153, 0.1);
}

.bilibili-latest-header {
    margin-bottom: 12px;
}

.bilibili-latest-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bilibili-latest-title i {
    color: #f59e0b;
}

.bilibili-latest-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.bilibili-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
}

.latest-video-item {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.2s ease;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.latest-video-item:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
}

.latest-video-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.latest-video-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: #475569;
}

.latest-video-meta i {
    margin-right: 4px;
    color: #9ca3af;
}

/* 热力图与TOP5 */
.bilibili-top-wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.bilibili-right-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bilibili-top-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    border: 1px solid rgba(251, 114, 153, 0.1);
    width: 100%;
}
.bilibili-top-chart {
    width: 100%;
    height: 380px;
}
.bilibili-widget {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 600px;
    margin-top: 24px;
}

.bilibili-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fb7299 0%, #ff6699 100%);
}

.bilibili-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bilibili-widget-header h3 {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.bilibili-widget-header h3 i {
    color: white;
    font-size: 1.2rem;
}

.bilibili-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bilibili-toggle-btn {
    color: white;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.bilibili-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.bilibili-toggle-btn i {
    transition: transform 0.3s ease;
}

.bilibili-widget.collapsed .bilibili-toggle-btn i {
    transform: rotate(180deg);
}

.bilibili-widget.collapsed .bilibili-widget-content {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.bilibili-widget.collapsed {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}

.bilibili-widget.collapsed::after {
    display: none;
}

.limx-link-btn {
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.limx-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.bilibili-link {
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bilibili-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.bilibili-widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 200px;
    max-height: 600px;
}

.bilibili-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.bilibili-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fb7299;
    object-fit: cover;
}

.bilibili-user-details {
    flex: 1;
}

.bilibili-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.bilibili-user-sign {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.bilibili-user-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bilibili-user-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bilibili-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bilibili-video-item {
    display: flex;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.bilibili-video-item:hover {
    background: #f1f5f9;
    border-color: #fb7299;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.15);
}

.bilibili-video-info {
    flex: 1;
    min-width: 0;
}

.bilibili-video-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bilibili-video-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.bilibili-video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bilibili-video-meta i {
    font-size: 0.7rem;
}

.bilibili-widget-content::-webkit-scrollbar {
    width: 8px;
}

.bilibili-widget-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.bilibili-widget-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.bilibili-widget-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.news-item {
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 12px;
}

.news-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 新闻图片已移除，不再显示 */
.news-item-image,
.news-item img,
.news-item-image img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.news-item-platform {
    font-size: 0.7rem;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.news-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.news-item-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jobs-widget-content::-webkit-scrollbar {
    width: 6px;
}

.jobs-widget-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

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

.jobs-widget-content::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.job-item {
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.job-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.job-item-title {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.job-item-meta span {
    padding: 2px 6px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    color: var(--primary-color);
}

.loading-spinner-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-spinner-small i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.loading-spinner-small p {
    font-size: 0.875rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .side-widgets {
        width: 360px;
    }
}

@media (max-width: 1400px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .side-widgets {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        flex-direction: row;
        gap: 20px;
    }
    
    .jobs-widget,
    .datasets-widget,
    .news-widget {
        flex: 1;
        min-height: 333px; /* 从500px减少1/3到333px */
        max-height: 400px; /* 从600px减少1/3到400px */
    }
}

@media (max-width: 768px) {
    .side-widgets {
        flex-direction: column;
    }
}

/* 新闻挂件已移动到side-widgets中，不再需要响应式样式 */



/* ==================== 用户菜单样式 ==================== */
.user-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 20px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
    overflow: hidden;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

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

.user-info {
    padding: 16px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item i {
    width: 18px;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .user-menu {
        padding: 0 10px;
    }
    
    .login-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 180px;
    }
}

/* ==================== 用户按钮右对齐样式（更新）==================== */
.nav-tab-right {
    margin-left: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    font-weight: 500;
}

.nav-tab-right:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3e8e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-tab-right i {
    font-size: 16px;
}

/* 响应式：移动端 */
@media (max-width: 768px) {
    .nav-tab-right span {
        display: none;
    }
    
    .nav-tab-right i {
        margin-right: 0;
    }
}
