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

/* 平台筛选标签样式 */
.tab-btn {
    background-color: #f3f4f6;
    color: #4b5563;
}

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

.tab-btn.active {
    background-color: #2563eb;
    color: #ffffff;
}

/* 标题截断样式 */
.hotspot-card h3 {
    max-width: calc(100% - 60px) !important;
}

.hotspot-card h3 a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 热点卡片容器 */
.hotspot-card {
    width: 100% !important;
    overflow: hidden !important;
}

/* 重置样式 */
* {
    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: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.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标签和.main类 */
.main, main {
    padding: 20px 0;
    margin-top: 60px; /* 为固定的header留出更大空间，避免内容被遮挡 */
}

/* 搜索区域 */
.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%;
    /* 移除固定高度和圆角 */
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    cursor: default;
    /* 移除下拉图标 */
    background-image: none;
    appearance: none;
    /* 实现横排每行2-3个自适应排列 */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 8px;
    align-items: start;
}

/* 确保每个平台选项按钮是紧凑的横排显示 */
.platform-filter label {
    margin: 0 !important;
    padding: 0.5rem !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* 全选按钮样式 */
.platform-filter .platform-all {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.platform-filter .platform-all:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
}

/* 微博按钮样式 */
.platform-filter .platform-weibo {
    background-color: #ffe1e3 !important;
    border-color: #ff5c5c !important;
    color: #e6162d !important;
}

.platform-filter .platform-weibo:hover {
    background-color: #ffccd0 !important;
    border-color: #e6162d !important;
}

/* 微信按钮样式 */
.platform-filter .platform-wechat {
    background-color: #d5f5e3 !important;
    border-color: #2ecc71 !important;
    color: #16a085 !important;
}

.platform-filter .platform-wechat:hover {
    background-color: #abebc6 !important;
    border-color: #16a085 !important;
}

/* 抖音按钮样式 */
.platform-filter .platform-douyin {
    background-color: #ffdde2 !important;
    border-color: #ff2a55 !important;
    color: #ff2a55 !important;
}

.platform-filter .platform-douyin:hover {
    background-color: #ffc7d0 !important;
    border-color: #e60039 !important;
}

/* 知乎按钮样式 */
.platform-filter .platform-zhihu {
    background-color: #daedf7 !important;
    border-color: #177cb0 !important;
    color: #177cb0 !important;
}

.platform-filter .platform-zhihu:hover {
    background-color: #b8e0f7 !important;
    border-color: #0e639c !important;
}

/* B站按钮样式 */
.platform-filter .platform-bilibili {
    background-color: #ffeff3 !important;
    border-color: #FB7299 !important;
    color: #FB7299 !important;
}
.platform-filter .platform-bilibili:hover {
    background-color: #ffd6e0 !important;
    border-color: #f7537d !important;
}

/* 贴吧按钮样式 */
.platform-filter .platform-tieba {
    background-color: #e3f2fd !important;
    border-color: #1E88E5 !important;
    color: #1E88E5 !important;
}

.platform-filter .platform-tieba:hover {
    background-color: #bbdefb !important;
    border-color: #1976D2 !important;
}

/* 移动端平台选项样式 */
@media (max-width: 768px) {
    .platform-filter {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
        gap: 6px;
    }
    
    .platform-filter label {
        padding: 0.4rem !important;
    }
}

.platform-filter:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

/* 日期选择器样式 */
.date-filter {
    width: 100%;
    /* 移除固定高度和圆角 */
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    cursor: default;
    /* 确保日期按钮横排显示，每行两个 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 日期筛选按钮样式 */
.date-filter > button {
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box;
    display: block !important;
}

.date-filter > button:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
}

.date-filter > button.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.date-filter:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

/* 移动端日期筛选样式 */
@media (max-width: 768px) {
    .date-filter {
        padding: 0;
        height: auto;
    }
    
    .date-filter > button {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        width: calc(50% - 3px); /* 调整宽度以适应更小的间距 */
        margin-right: 6px !important;
        margin-bottom: 6px !important;
    }
}

/* 相关关键词样式 */
.related-keywords {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 8px;
    width: 100%;
}

.related-keywords a {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-keywords a:hover {
    background-color: #f5f5f5;
    color: #1890ff;
    border-color: #1890ff;
}

/* 内容包装器 */
.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;
}

/* 注意：平台样式现在由JavaScript动态应用，不再使用下面的硬编码样式 */
/* 保留选择器但设置为通用样式，优先使用内联样式 */
.event-platform.douyin,
.event-platform.zhihu,
.event-platform.baidu,
.event-platform.weibo,
.event-platform.bilibili,
.event-platform.tieba {
    /* 基础样式保持，但颜色由JS动态设置 */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 特定平台样式已移除，所有平台样式现在由JavaScript动态应用 */

.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;
    }
    
    /* 搜索区域在手机端的样式 - 根据HTML实际结构 */
    section.mb-8 .bg-white > div.flex.flex-col.md\:flex-row {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    /* 输入框容器 */
    section.mb-8 .bg-white > div.flex.flex-col.md\:flex-row > div.relative {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* 输入框样式 */
    #search-input {
        height: 44px !important;
        padding: 0 4px 0 40px !important;
        font-size: 14px !important;
    }
    
    /* 搜索按钮样式 */
    #search-btn {
        height: 44px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        min-width: fit-content;
    }
    
    /* 图标位置调整 */
    section.mb-8 .bg-white i.fa-search.absolute {
        top: 50% !important;
        left: 12px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
    
    /* 过滤选项在手机端的样式 - 改为一行显示 */
    .filter-options {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .filter-item {
        flex: 1;
    }
    
    .platform-filter, .date-filter {
        /* 移除响应式样式中的固定高度和padding */
        height: auto;
        font-size: 13px;
        padding-right: 0;
    }
    
    /* 移动端相关关键词样式 */
    @media (max-width: 768px) {
        .related-keywords {
            grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
            gap: 6px;
        }
        
        /* 热点卡片响应式调整 */
        .hotspot-card {
            padding: 15px;
        }
        
        .hotspot-card h3 {
            font-size: 14px;
        }
        
        /* 热度分布图表响应式调整 */
        .hotspot-card .w-full.md\:w-48.lg\:w-64 {
            width: 100%;
            margin-top: 15px;
        }
        
        /* 平台标签响应式调整 */
        .platform-badge,
        .level-badge,
        .cross-platform-badge {
            padding: 2px 6px;
            font-size: 10px;
        }
        
        /* 元信息响应式调整 */
        .flex.flex-wrap.items-center.gap-4.mb-4.text-sm.text-gray-600 {
            gap: 8px;
            font-size: 12px;
        }
        
        /* 链接响应式调整 */
        .text-blue-500.hover\:text-blue-700.text-sm.flex.items-center.gap-1.block {
            font-size: 12px;
        }
    }
    
    .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;
    }
}

/* 文本截断类 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空状态 */
.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;
}

/* 事件平台样式 - 只保留基础样式，颜色由JavaScript动态设置 */
.event-platform {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    /* 颜色由JavaScript动态设置，不使用默认颜色 */
}

/* 数据按钮样式 */
.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 {
    width: 100%;
    overflow: hidden;
}

.hot-calendar-title a {
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.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;
}

/* 子事件平台样式 - 只保留基础样式，颜色由JavaScript动态设置 */
.sub-event-platform {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    /* 颜色由JavaScript动态设置，不使用默认颜色 */
}

/* 所有.sub-event-platform特定平台样式已移除，平台样式现在由JavaScript动态应用 */

.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: flex-start;
    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: block;
}

/* 单行列元数据区域 - PC端与标题同行 */
.hot-calendar-header-single-row .hot-calendar-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    white-space: nowrap;
    /* 数据两个字设置为红色 */
    color: red;
}

/* 确保标题链接不会溢出 */
.hot-calendar-header-single-row .hot-calendar-title a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    width: 100%;
    display: inline-block;
}

/* 优化小屏幕响应式 */
    @media (max-width: 768px) {
        .hot-calendar-header {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        
        .hot-calendar-meta {
            flex-wrap: wrap;
            gap: 8px;
            width: 100%; /* 移动端可以换行 */
        }
        
        /* 确保数据两个字在移动端也是横排红色 */
        .hot-calendar-meta {
            writing-mode: horizontal-tb !important;
            -webkit-writing-mode: horizontal-tb !important;
            color: red !important;
        }
        
        /* 全局强制水平显示解决方案 */
        /* 针对移动端的hot-calendar组件文本显示修复 */
            /* 1. 直接应用于所有hot-calendar相关元素 */
            [class*="hot-calendar"] {
                writing-mode: horizontal-tb !important;
                -webkit-writing-mode: horizontal-tb !important;
                text-orientation: mixed !important;
            }
            
            /* 2. 确保所有hot-calendar子元素都是水平的 */
            [class*="hot-calendar"] * {
                writing-mode: horizontal-tb !important;
                -webkit-writing-mode: horizontal-tb !important;
                text-orientation: mixed !important;
                text-combine-upright: none !important;
                -webkit-text-combine: none !important;
            }
            
            /* 3. 特别针对标题和链接的修复 */
            .hot-calendar-title,
            .hot-calendar-title * {
                writing-mode: horizontal-tb !important;
                -webkit-writing-mode: horizontal-tb !important;
                display: inline !important;
                white-space: normal !important;
                overflow: visible !important;
                width: auto !important;
                max-width: none !important;
                word-break: break-word !important;
            }
            
            /* 4. 确保链接文本正确显示 */
            .hot-calendar-title a {
                writing-mode: horizontal-tb !important;
                -webkit-writing-mode: horizontal-tb !important;
                display: inline !important;
                white-space: normal !important;
                overflow: visible !important;
                width: auto !important;
                height: auto !important;
                text-overflow: clip !important;
                font-size: 14px !important;
                line-height: 1.4 !important;
                text-align: left !important;
            }
            
            /* 5. 确保容器有足够空间 */
            .hot-calendar-header-single-row {
                display: block !important;
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
            }
        }
        
        /* 确保热点事件项容器有正确的布局 */
        .hot-calendar-item {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        
        /* hot-events 标题区域样式优化 - 允许多行显示并缩小字体 */
        .event-title {
            flex: 1 !important;
            min-width: 0 !important;
            display: block !important;
            overflow: hidden !important;
        }
        
        .event-title a {
            display: block !important;
            white-space: normal !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            max-width: 100% !important;
            font-size: 14px !important; /* 缩小字体 */
            line-height: 1.4 !important; /* 调整行高 */
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            line-clamp: 2 !important; /* 标准属性，提高兼容性 */
            -webkit-box-orient: vertical !important;
            word-break: break-word !important; /* 允许单词换行 */
        }
        
        /* 确保标题行布局在移动端正确 */
        .event-title-row {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 8px !important;
        }

    .sub-events ul {
        gap: 8px;
    }
    
    .sub-event-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

/* 热点卡片样式补充 */
.hotspot-card {
    width: 100%;
    box-sizing: border-box;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hotspot-card {
        padding: 1rem;
    }
    
    .hotspot-card h3 {
        font-size: 1.125rem;
    }
    
    .hotspot-card .rank-number {
        font-size: 1.5rem;
    }
}

/* 确保过渡动画平滑 */
.hotspot-card * {
    transition: inherit;
}

/* 平台图标的响应式调整 */
@media (max-width: 640px) {
    .platform-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px;
    }
}

/* 热度分布图的响应式调整 */
@media (max-width: 1024px) {
    .hotspot-card > div > div:last-child {
        width: 100% !important;
        margin-top: 1rem;
    }
}

/* 修复可能的布局问题 */
.hot-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 确保热点事件列表容器有足够的内边距 */
.events-list {
    padding: 0.5rem;
}

/* 修复排名数字可能的溢出问题 */
.rank-number {
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

/* 标签样式的统一 */
.cross-platform-badge,
.platform-badge,
.level-badge {
    flex-shrink: 0;
}

/* 确保工具提示正常工作 */
.hotspot-data-btn[title] {
    cursor: help;
}

/* 确保Font Awesome图标正确加载 */
.hotspot-card i.fa {
    font-family: 'FontAwesome';
    font-style: normal;
}

/* 原始链接样式 */
.hotspot-card a[href^="http"] {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.25rem;
}

/* 链接文本截断功能 */
.hotspot-card a[href^="http"] span {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 20px);
}

/* 多个链接之间的间距 */
.hotspot-card .space-y-1 a {
    margin-bottom: 0.25rem;
}

.hotspot-card .space-y-1 a:last-child {
    margin-bottom: 0;
}

/* 响应式调整链接样式 */
@media (max-width: 768px) {
    .hotspot-card a[href^="http"] span {
        max-width: calc(100% - 25px);
    }
    
    .hotspot-card a[href^="http"] {
        font-size: 0.75rem;
    }
}