/* ==================== 有趣的表特定样式 ==================== */

/* 有趣的表第一页应用渐变背景 */
#page-content-有趣的表-0 {
    padding: 15px 5px;
    background: linear-gradient(145deg, #eff6ff 0%, #fce7f3 100%);
    border-radius: 20px;
}

/* 有趣的表第二页样式 */
#page-content-有趣的表-1 {
    padding: 20px 0;
    background: linear-gradient(145deg, #f8fafc 0%, #fdf2f8 100%);
    border-radius: 20px;
}

#page-content-有趣的表-1 .insights-container {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 20px;
}

#page-content-有趣的表-1 .page2-header {
    max-width: 500px;
    margin: 0 auto 25px !important;
}

#page-content-有趣的表-1 .charts-container {
    max-width: 500px;
    margin: 0 auto 25px !important;
}

.page2-header,
.page3-header,
.page4-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 25px;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px rgba(209, 217, 230, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.page3-header .header-left,
.page4-header .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.page3-header .header-left h2,
.page4-header .header-left h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.page2-header-right {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.page2-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.page2-header-left h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.page2-header .page2-header-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page3-header .header-right,
.page4-header .header-right {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.page5-header .header-right {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        5px 5px 10px rgba(0, 0, 0, 0.15),
        -5px -5px 10px rgba(255, 255, 255, 0.9);
}

.stat-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.charts-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        8px 8px 16px rgba(209, 217, 230, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        12px 12px 24px rgba(209, 217, 230, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #60a5fa, #f9a8d4) 1;
}

.chart-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.chart-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.chart-title p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.legend-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.chart-canvas {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.chart-card.plain-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.chart-card.plain-card:hover {
    transform: none;
    box-shadow: none;
}

.insights-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px rgba(209, 217, 230, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        8px 8px 16px rgba(209, 217, 230, 0.5),
        -8px -8px 16px rgba(255, 255, 255, 0.95);
}

.insight-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.insight-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 6px 0;
}

.insight-content p {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* 日历头部 */
#page-content-有趣的表-0 .calendar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 10px 8px !important;
    margin-bottom: 15px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
}

.calendar-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 日历网格布局 - 2列6排 */
.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin: 0 3px;
}

/* 日历卡片 */
.calendar-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.calendar-card:hover {
    transform: translateY(-5px);
}

/* 日历标题 */
#page-content-有趣的表-0 .calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #60a5fa, #f9a8d4) 1;
}

/* 日期网格 */
#page-content-有趣的表-0 .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* 日期单元格 */
#page-content-有趣的表-0 .calendar-card .day-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 32px !important;
    font-size: 11px !important;
    color: #64748b !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    padding: 2px 0 0 0 !important;
    overflow: hidden !important;
}

#page-content-有趣的表-0 .calendar-card .day-cell .day-number {
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

#page-content-有趣的表-0 .calendar-card .day-markers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    flex-shrink: 0;
    margin-top: 2px;
}

.day-markers .marker {
    font-size: 6px !important;
    line-height: 1 !important;
    display: block !important;
}

.day-markers .blue-heart {
    color: #60a5fa;
}

.day-markers .pink-heart {
    color: #f9a8d4;
}

.day-markers .smile {
    color: #fbbf24;
}

.day-markers .heart-break {
    color: #dc2626;
}

.day-cell.empty {
    visibility: hidden;
}

#page-content-有趣的表-0 .calendar-card .day-cell.weekday-header {
    font-weight: 600;
    font-size: 10px;
    color: #9ca3af;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    height: 28px !important;
    min-height: 28px !important;
    padding: 0;
    align-items: center !important;
    display: flex !important;
}

.day-cell:hover {
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
    color: #374151;
    transform: scale(1.1);
}

/* 左半爱心标记（蓝色） */
.heart-left {
    position: absolute;
    bottom: 0px;
    left: 2px;
    font-size: 6px;
    color: #60a5fa;
    line-height: 1;
}

/* 右半爱心标记（粉色） */
.heart-right {
    position: absolute;
    bottom: 0px;
    left: 9px;
    font-size: 6px;
    color: #f9a8d4;
    line-height: 1;
}

/* 笑脸标记 - SVG */
.day-cell .smile-icon {
    position: absolute;
    bottom: 0px;
    left: 16px;
    font-size: 6px;
    line-height: 1;
}

/* 图例 */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 
        inset 3px 3px 6px rgba(209, 217, 230, 0.4),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    width: fit-content;
    margin: 15px auto 0 auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #64748b;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: auto !important;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon.heart-icon {
    background: linear-gradient(135deg, #60a5fa 50%, #f9a8d4 50%);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.legend-icon.heart-icon::before {
    content: '❤';
    font-size: 12px;
    color: white;
}

.legend-icon.smile-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.legend-icon.smile-icon::before {
    content: '😊';
    font-size: 12px;
}

.legend-emoji {
    font-size: 20px;
    line-height: 1;
}

/* 日历弹窗 */
.calendar-modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: visibility 0s, opacity 0.3s ease;
}

.calendar-modal.active {
    visibility: visible;
    opacity: 1;
}

.calendar-modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 20px;
    max-width: 450px;
    width: calc(100% - 40px);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 6px 6px 12px rgba(209, 217, 230, 0.4),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.3s ease;
}

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

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #60a5fa, #f9a8d4) 1;
}

.calendar-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        3px 3px 6px rgba(220, 38, 38, 0.2),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #fecaca, #fca5a5);
}

.calendar-modal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-modal-body .day-cell.empty {
    visibility: hidden;
}

.calendar-modal-body .day-cell.weekday-header {
    font-weight: 600;
    font-size: 12px;
    color: #9ca3af;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

/* 弹窗中的标记样式 */
.calendar-modal-body .day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
    min-height: 38px;
}

.calendar-modal-body .day-cell .day-number {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
    margin-bottom: 1px;
}

.calendar-modal-body .day-cell .day-number.holiday {
    color: #60a5fa;
    font-weight: 600;
}

.calendar-modal-body .day-cell .day-markers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.calendar-modal-body .day-cell .day-markers .marker {
    font-size: 6px;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.calendar-modal-body .day-cell .lunar-date {
    font-size: 9px;
    color: #9ca3af;
    margin-top: 1px;
    line-height: 1.1;
}

.calendar-modal-body .day-cell .lunar-date.solar-term {
    color: #10b981;
}

.calendar-modal-body .day-cell .lunar-date.festival {
    color: #f87171;
    font-weight: 500;
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
}

/* 自定义表格样式 */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
}

.custom-table thead {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.custom-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    border-bottom: 2px solid #bae6fd;
    white-space: nowrap;
}

.custom-table td {
    padding: 12px 20px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.custom-table tbody tr {
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    transform: translateX(5px);
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* 固定列样式 */
.custom-table th:first-child,
.custom-table td:first-child {
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    z-index: 10;
    border-right: 2px solid #bae6fd;
    font-weight: 600;
}

.custom-table th:first-child {
    z-index: 20;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

/* 表格数据高亮 */
.custom-table td.highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    font-weight: 600;
    color: #92400e;
}

.custom-table td.highlight-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    font-weight: 600;
    color: #1e40af;
}

.custom-table td.highlight-pink {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    font-weight: 600;
    color: #9d174d;
}

/* 表格统计卡片 */
.table-stats-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        6px 6px 12px rgba(209, 217, 230, 0.5),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.table-stats-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-stats-card h3 i {
    color: #FF6B9D;
}

.table-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.table-stat-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow:
        inset 3px 3px 6px rgba(209, 217, 230, 0.5),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.table-stat-value {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #667EEA, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* 表格标题样式 */
.table-title {
    font-size: 20px;
    font-weight: 600;
    color: #4A5568;
    margin: 0 0 20px 0;
    text-align: center;
    background: linear-gradient(90deg, #667EEA, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-description {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .page2-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
    }

    .page2-header-left h2 {
        font-size: 18px;
    }

    .page2-header-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .page3-header,
    .page4-header,
    .page5-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px;
    }

    .page3-header .header-left h2,
    .page4-header .header-left h2,
    .page5-header .header-left h2 {
        font-size: 16px;
    }

    .page3-header .header-right,
    .page4-header .header-right,
    .page5-header .header-right {
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-badge {
        padding: 8px 14px;
    }

    .stat-badge span {
        font-size: 12px;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .chart-title h3 {
        font-size: 16px;
    }

    .chart-title p {
        font-size: 12px;
    }

    .chart-icon {
        width: 45px;
        height: 45px;
    }

    .chart-canvas {
        height: 280px;
    }

    .insights-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .insight-card {
        padding: 15px;
    }

    .insight-icon {
        width: 50px;
        height: 50px;
    }

    .insight-content h4 {
        font-size: 13px;
    }

    .insight-content p {
        font-size: 14px;
    }

    .day-cell {
        min-height: 36px !important;
        padding: 0 !important;
    }

    .day-cell .day-number {
        font-size: 13px !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
    }

    .day-markers .marker {
        font-size: 5px !important;
    }

    .day-cell.weekday-header {
        height: 18px !important;
        min-height: 18px !important;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-header {
        padding: 15px;
    }

    .calendar-header h2 {
        font-size: 20px;
    }

    .calendar-card {
        padding: 12px;
    }

    #page-content-有趣的表-0 .calendar-card .day-cell {
        width: 100%;
        min-height: 24px !important;
        font-size: 10px;
        border-radius: 5px;
    }

    .calendar-modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .calendar-modal-body .day-cell {
        width: 32px;
        height: 32px;
        font-size: 12px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1px !important;
    }

    .calendar-modal-body .day-cell .markers {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }

    .calendar-modal-body .day-cell .marker {
        display: inline-block !important;
        font-size: 6px !important;
    }

    .table-container {
        margin: 15px 0;
    }

    .custom-table th,
    .custom-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .table-stats-card {
        padding: 15px;
    }

    .table-stats-card h3 {
        font-size: 16px;
    }

    .table-stat-value {
        font-size: 20px;
    }

    .table-title {
        font-size: 18px;
    }

    .table-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .calendar-header h2 {
        font-size: 18px;
    }

    .calendar-title {
        font-size: 14px;
    }

    .day-cell {
        width: 100%;
        aspect-ratio: 1;
        font-size: 9px;
        border-radius: 4px;
    }

    .custom-table th,
    .custom-table td {
        padding: 8px 10px;
        font-size: 11px;
    }

    .table-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .table-stats-card {
        padding: 12px;
    }

    .table-stat-value {
        font-size: 18px;
    }
}

/* ==================== 图表页面样式 ==================== */

/* 有趣的表第3页样式 */
#page-content-有趣的表-2 {
    padding: 20px 0;
    background: linear-gradient(145deg, #faf5ff 0%, #fdf2f8 100%);
    border-radius: 20px;
}

#page-content-有趣的表-2 .insights-container {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 20px;
}

#page-content-有趣的表-2 .page3-header {
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 25px !important;
}

.slide-description .page3-header {
    margin-left: auto !important;
    margin-right: auto !important;
}

#page-content-有趣的表-2 .charts-container {
    max-width: 500px;
    margin: 0 auto 25px !important;
}

/* 有趣的表第2页样式 */
#page-content-有趣的表-1 {
    padding: 20px 0;
    background: linear-gradient(145deg, #f8fafc 0%, #fdf2f8 100%);
    border-radius: 20px;
}

.charts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px rgba(209, 217, 230, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.header-left h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.charts-intro {
    margin-bottom: 25px;
}

.intro-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.8));
    border-radius: 12px;
    box-shadow: 
        inset 4px 4px 8px rgba(209, 217, 230, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.intro-card p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        8px 8px 16px rgba(209, 217, 230, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        12px 12px 24px rgba(209, 217, 230, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.charts-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 
        4px 4px 8px rgba(209, 217, 230, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.charts-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.charts-legend .legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.charts-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.8));
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px rgba(209, 217, 230, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 16px rgba(209, 217, 230, 0.5),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 日历图表容器样式 ==================== */

.calendar-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.calendar-chart-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        8px 8px 16px rgba(209, 217, 230, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.calendar-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        12px 12px 24px rgba(209, 217, 230, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.calendar-chart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.8));
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    box-shadow: 
        inset 3px 3px 6px rgba(209, 217, 230, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.calendar-chart-canvas {
    height: auto;
    min-height: 600px;
    border-radius: 12px;
    overflow: visible;
}

.calendar-chart-card.plain-calendar-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.calendar-chart-card.plain-calendar-card:hover {
    transform: none;
    box-shadow: none;
}

.calendar-chart-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    padding: 8px 0;
    margin-bottom: 5px;
}

.calendar-section-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 15px 0 15px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.calendar-section-title::after {
    content: '↓';
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 1.5s ease-in-out infinite;
}

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

/* 响应式设计 - 日历图表容器 */
@media (max-width: 767px) {
    .calendar-charts-container {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .calendar-chart-card {
        padding: 2px;
    }

    .calendar-chart-title {
        font-size: 14px;
        padding: 10px;
    }

    .calendar-chart-canvas {
        height: 550px;
    }
}

@media (max-width: 480px) {
    .calendar-charts-container {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }

    .calendar-chart-card {
        padding: 1px;
    }

    .calendar-chart-canvas {
        height: 500px;
    }
}

/* 响应式设计 - 图表页面 */
@media (max-width: 767px) {
    .charts-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .header-left h2 {
        font-size: 20px;
    }

    .charts-intro {
        margin-bottom: 15px;
    }

    .intro-card {
        padding: 8px 12px;
        flex-direction: column;
        text-align: center;
    }

    .intro-card p {
        font-size: 12px;
    }

    .charts-container {
        gap: 20px;
    }

    .chart-card {
        padding: 15px;
    }

    .charts-legend {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .charts-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-card {
        padding: 15px;
        justify-content: center;
    }

    .summary-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #page-content-有趣的表-2 {
        padding: 15px;
    }

    .header-left h2 {
        font-size: 18px;
    }

    .intro-card {
        padding: 8px 12px;
    }

    .intro-card p {
        font-size: 11px;
    }

    .chart-card {
        padding: 12px;
    }

    .chart-card #messageCountChart,
    .chart-card #messageWordChart {
        height: 350px !important;
    }

    .summary-card {
        padding: 12px;
        gap: 10px;
    }

    .summary-value {
        font-size: 18px;
    }

    .summary-label {
        font-size: 12px;
    }
}

/* ==================== 有趣的表第4页样式（时光周律）==================== */

#page-content-有趣的表-3 {
    padding: 20px 0;
    background: linear-gradient(145deg, #f8fafc 0%, #f3e8ff 100%);
    border-radius: 20px;
}

#page-content-有趣的表-3 .insights-container {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 20px;
}

#page-content-有趣的表-3 .page4-header {
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 25px !important;
}

.slide-description .page4-header {
    margin-left: auto !important;
    margin-right: auto !important;
}

#page-content-有趣的表-3 .charts-container {
    max-width: 500px;
    margin: 0 auto 25px !important;
}

/* ==================== 有趣的表第5页样式（辰光絮语）==================== */

#page-content-有趣的表-4 {
    padding: 20px 0;
    background: linear-gradient(145deg, #fdf4ff 0%, #faf5ff 100%);
    border-radius: 20px;
}

#page-content-有趣的表-4 .insights-container {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 20px;
}

#page-content-有趣的表-4 .page5-header {
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 25px !important;
}

.slide-description .page5-header {
    margin-left: auto !important;
    margin-right: auto !important;
}

#page-content-有趣的表-4 .charts-container {
    max-width: 500px;
    margin: 0 auto 25px !important;
}

.page5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 25px;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    background: linear-gradient(135deg, rgba(255,255,255, 0.9), rgba(255,255,255, 0.6));
    border-radius: 16px;
    box-shadow:
        6px 6px 12px rgba(209, 217, 230, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

#page-content-有趣的表-4 .chart-canvas {
    height: 400px !important;
}

@media (max-width: 480px) {
    #page-content-有趣的表-4 {
        padding: 15px;
    }

    .page3-header h2,
    .page4-header h2,
    .page5-header h2 {
        font-size: 15px;
    }

    .page3-header,
    .page4-header,
    .page5-header {
        padding: 12px;
        gap: 10px;
    }

    .page3-header .header-right,
    .page4-header .header-right,
    .page5-header .header-right {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .stat-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .stat-badge i {
        font-size: 12px;
    }

    .intro-card {
        padding: 8px 12px;
    }

    .intro-card p {
        font-size: 11px;
    }

    .chart-card {
        padding: 12px;
    }

    .chart-card #hourlyCountChart,
    .chart-card #hourlyWordChart {
        height: 350px !important;
    }

    .insight-card {
        padding: 12px;
        gap: 10px;
    }

    .insight-content h4 {
        font-size: 14px;
    }

    .insight-content p {
        font-size: 12px;
    }
}
