/* 热点日历网站 - 主样式文件 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1890ff;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-item:hover {
    color: #1890ff;
}

.nav-item.active {
    color: #1890ff;
    background-color: #e6f7ff;
}

/* 主要内容区域 */
.main {
    padding: 20px 0;
}

/* 搜索区域 */
.search-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 搜索输入区域 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 24px;
    padding: 0 16px;
    height: 48px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-icon {
    color: #999;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    height: 36px;
    padding: 0 20px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

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

/* 过滤选项区域 */
.filter-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-item {
    flex: 1;
}

.platform-filter {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 修复下拉图标位置 */
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.platform-filter:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 日期选择器样式 */
.date-filter {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-filter:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 内容包装器 */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 侧边栏 */
.calendar-sidebar {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 热点事件区域 */
.events-section {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 日历导航样式 */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    padding: 0.25rem;
    background: none;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    color: #4b5563;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: #f3f4f6;
}

.calendar-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 日历快捷按钮样式 */
.calendar-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-today-btn {
    padding: 0.25rem 0.75rem;
    background-color: #dbeafe;
    color: #1d4ed8;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-today-btn:hover {
    background-color: #bfdbfe;
}

.calendar-action-btn {
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.calendar-action-btn:hover {
    background-color: #e5e7eb;
}

/* 平台筛选标签样式调整 */
.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.events-date {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/**
 * 平台筛选标签样式
 */
.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tab-btn:hover:not(.active) {
    border-color: #007bff;
    color: #007bff;
}

/**
 * 移动端日历样式
 */
.mobile-calendar {
    width: 100%;
    margin-bottom: 20px;
}

.mobile-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.mobile-calendar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.calendar-toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-calendar-content {
    margin-top: 12px;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-calendar-grid {
    width: 100%;
}

/* 移动端日历的导航按钮 */
.mobile-calendar .calendar-nav {
    margin-bottom: 12px;
}

/* 适配不同的屏幕尺寸 */
@media (max-width: 768px) {
    .mobile-calendar .calendar-day {
        min-width: calc(14.28% - 4px);
        padding: 8px 2px;
        font-size: 12px;
    }
    
    .mobile-calendar .calendar-nav {
        flex-wrap: wrap;
    }
    
    .mobile-calendar .calendar-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mobile-calendar .calendar-actions {
        margin-top: 8px;
    }
    
    .mobile-calendar .calendar-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 热点事件列表 */
.events-list {
    margin-bottom: 20px;
}

.event-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.event-item:hover {
    background-color: #fafafa;
}

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

.event-rank {
    width: 24px;
    height: 24px;
    background-color: #1890ff;
    color: #fff;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

.event-rank.top3 {
    background-color: #ff4d4f;
}

.event-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.event-title a:hover {
    color: #1890ff;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.event-platform {
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.event-platform.douyin {
    background-color: #fff0f6;
    color: #eb2f96;
}

.event-platform.zhihu {
    background-color: #e6f7ff;
    color: #1890ff;
}

.event-platform.baidu {
    background-color: #fff7e6;
    color: #fa8c16;
}

.event-platform.weibo {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.event-hot-value {
    display: flex;
    align-items: center;
}

.event-hot-value::before {
    content: "🔥";
    margin-right: 4px;
}

.event-summary {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 0;
}

/* 页码信息 */
.pagination-info {
    font-size: 14px;
    color: #666;
    padding: 0 10px;
}

.page-btn {
    min-width: 80px;
    height: 36px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 0 15px;
}

.page-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
    background-color: #0f08ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.page-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(24, 144, 255, 0.15);
}

.page-btn.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
}

/* 统计区域 */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
    animation: fadeIn 0.8s ease-out;
}

/* 关于区域 */
.about-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease-out;
}

.about-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    text-align: center;
    letter-spacing: 0.5px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
    position: relative;
    padding-left: 15px;
}

.about-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2.5px;
}

.about-content ul {
    margin: 0 0 20px 20px;
}

.about-content ul li {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-section {
        padding: 25px 20px;
    }
    
    .about-section .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .about-content p {
        font-size: 15px;
    }
    
    .about-content h3 {
        font-size: 18px;
        margin: 25px 0 12px;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 1px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* HTML中使用的统计卡片样式 */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* JavaScript中使用的统计卡片样式 */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
}

.stats-card-icon {
    font-size: 48px;
    flex-shrink: 0;
    opacity: 0.8;
}

.stats-card-content {
    flex: 1;
    text-align: left;
}

.stats-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stats-card-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 图表容器样式 */
.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* 减小间距 */
    margin-top: 20px; /* 减小上边距 */
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px; /* 减小内边距 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.chart-container h3 {
    font-size: 16px; /* 减小标题字体 */
    font-weight: 600;
    color: #333;
    margin-bottom: 15px; /* 减小标题下边距 */
    text-align: center;
    padding-bottom: 8px; /* 减小标题下划线间距 */
    border-bottom: 2px solid #f0f0f0;
}

.chart-title {
    font-size: 16px; /* 减小标题字体 */
    font-weight: 600;
    color: #333;
    margin-bottom: 15px; /* 减小标题下边距 */
    text-align: center;
    padding-bottom: 8px; /* 减小标题下划线间距 */
    border-bottom: 2px solid #f0f0f0;
}

/* 柱状图样式 */
.chart-bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px; /* 降低高度 */
    padding: 10px 0; /* 减小内边距 */
    gap: 8px; /* 减小间距 */
}

/* 平台分布图样式 */
.platform-chart {
    width: 100%;
}

.platform-bar {
    margin-bottom: 12px;
}

/* 每日趋势图样式 */
.daily-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px; /* 降低高度 */
    padding: 10px 0; /* 减小内边距 */
    gap: 8px; /* 减小间距 */
}

.chart-bar-label {
    font-size: 14px; /* 减小标签字体 */
    font-weight: 700;
    color: #667eea;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.chart-bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    max-width: 35px; /* 减小柱子最大宽度 */
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-height: 10px;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

.chart-bar:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, #764ba2, #667eea);
}

.chart-bar-label {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    font-variant-numeric: tabular-nums;
}

.chart-bar-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-top: 4px;
}

/* 响应式设计 - 统计区域 */
@media (max-width: 768px) {
    .stats-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-bar-container {
        height: 250px;
        gap: 10px;
    }
    
    .chart-bar-wrapper {
        max-width: 40px;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stats-card-content {
        text-align: center;
    }
    
    .daily-chart {
        gap: 8px;
    }
    
    .platform-bar-label {
        font-size: 13px;
    }
}

/* 关于区域 */
.about-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.about-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.about-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.about-content li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.about-content li::before {
    content: "•";
    color: #1890ff;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.about-content a {
    color: #1890ff;
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 20px 0;
}

.footer-content {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-content a {
    color: #1890ff;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        width: 100%;
    }
    
    .stats-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .nav {
        gap: 10px;
    }
    
    /* 搜索区域在手机端的样式 */
    .search-section {
        padding: 16px;
    }
    
    .search-wrapper {
        gap: 12px;
    }
    
    .search-input-wrapper {
        height: 44px;
        padding: 0 12px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-btn {
        height: 32px;
        padding: 0 16px;
        font-size: 13px;
    }
    
    /* 过滤选项在手机端的样式 - 改为一行显示 */
    .filter-options {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .filter-item {
        flex: 1;
    }
    
    .platform-filter, .date-filter {
        height: 38px;
        font-size: 13px;
        padding-right: 30px; /* 为自定义下拉图标留出空间 */
    }
    
    .events-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .platform-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 14px;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ff4d4f;
}

.error-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.error-state-subtext {
    font-size: 14px;
    color: #666;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

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

.event-item {
    animation: fadeIn 0.3s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 平台图标类 - 用于平台筛选器 */
.platform-icon {
    margin-right: 5px;
}

/* 热点日历样式 */
.hot-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hot-calendar-item {
    display: flex;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
    background-color: #fff;
}

.hot-calendar-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hot-calendar-item.cross_platform {
    border-left: 4px solid #1890ff;
}

.hot-calendar-item.platform_headline {
    border-left: 4px solid #52c41a;
}

.hot-calendar-item.level-high {
    background-color: #f0f9ff;
}

.hot-calendar-item.level-medium {
    background-color: #f6ffed;
}

.hot-calendar-rank {
    min-width: 32px;
    height: 32px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1890ff;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.hot-calendar-content {
    flex: 1;
}

/* 标题、来源平台和热度在同一行的样式 */
.hot-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.hot-calendar-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
    margin-right: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.hotspot-data-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

.hotspot-data-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* 排名变化样式优化 */
.rank-change {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

/* hot-events 标题行布局 */
.event-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}

/* 标题区域 */
.event-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* 事件标题链接样式 */
.event-title a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.event-title a:hover {
    color: #1890ff;
    text-decoration: underline;
}

/* 标题右侧元素容器 */
.event-title-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 事件平台样式 */
.event-platform {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* 数据按钮样式 */
.event-title-right .hotspot-data-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #1890ff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hot-calendar-title a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.hot-calendar-title a:hover {
    color: #1890ff;
    text-decoration: underline;
}

.hot-calendar-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    flex-shrink: 0;
}

.platform-count {
    display: flex;
    align-items: center;
    color: #1890ff;
}

.platform-count i {
    margin-right: 4px;
}

.hot-value {
    color: #ff4d4f;
    font-weight: 500;
}

.hot-calendar-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.sub-events {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e8e8e8;
}

.sub-events ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.sub-events li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    padding-left: 8px;
    gap: 10px;
    transition: background-color 0.2s;
    padding: 8px;
    border-radius: 4px;
}

.sub-events li:hover {
    background-color: #f5f5f5;
}

.sub-events li i {
    margin-right: 0;
    color: #999;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* 子事件内容容器 */
.sub-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-event-content a {
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.2s;
    word-break: break-word;
}

.sub-event-content a:hover {
    color: #1890ff;
    text-decoration: underline;
}

/* 子事件元信息 */
.sub-event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.sub-event-platform {
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
}

.sub-event-platform.douyin {
    background-color: #fff0f6;
    color: #eb2f96;
}

.sub-event-platform.zhihu {
    background-color: #e6f7ff;
    color: #1890ff;
}

.sub-event-platform.baidu {
    background-color: #fff7e6;
    color: #fa8c16;
}

.sub-event-platform.weibo {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.sub-event-hot-value {
    color: #ff4d4f;
    font-weight: 500;
    font-size: 12px;
}

/* 子事件数据按钮 */
.sub-events .hotspot-data-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #1890ff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 3px;
}

.sub-events .hotspot-data-btn:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* 优化跨平台热点样式 */
.hot-calendar-item.cross_platform {
    border-left: 4px solid #1890ff;
    background-color: #f0f9ff;
}

/* 优化热点日历头部样式，确保标题和元数据正确对齐 */
.hot-calendar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

/* 单行列标题和元数据布局 */
.hot-calendar-header-single-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

/* 单行列标题区域 */
.hot-calendar-header-single-row .hot-calendar-title {
    flex: 1;
    min-width: 0; /* 允许标题内容收缩 */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 单行列元数据区域 */
.hot-calendar-header-single-row .hot-calendar-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

/* 确保标题链接不会溢出 */
.hot-calendar-header-single-row .hot-calendar-title a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* 优化小屏幕响应式 */
@media (max-width: 768px) {
    .hot-calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .hot-calendar-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sub-events ul {
        gap: 8px;
    }
    
    .sub-event-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
}