/* 学习报告样式 */
.learning-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.learning-report-content {
    background: var(--container-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px var(--shadow);
    animation: slideUp 0.3s;
}

.report-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.report-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.report-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.report-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--hover-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.report-section {
    margin-bottom: 24px;
}

.report-section h3 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 12px;
}

.daily-chart {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 120px;
    padding: 12px;
    background: var(--hover-bg);
    border-radius: 8px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--accent-color), var(--accent-secondary));
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    transition: all 0.3s;
}

.bar:hover {
    filter: brightness(1.1);
}

.bar-value {
    font-size: 0.7em;
    color: white;
    font-weight: 600;
}

.bar-label {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.most-studied-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studied-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--hover-bg);
    border-radius: 8px;
    transition: all 0.2s;
}

.studied-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
    opacity: 0.8;
}

.studied-item .rank {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
}

.studied-item .title {
    flex: 1;
    color: var(--text-color);
}

.studied-item .count {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.suggestions p {
    padding: 10px 16px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #856404;
}

.report-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.report-export-btn,
.report-ok-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.report-export-btn {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    color: var(--accent-color);
}

.report-export-btn:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
}

.report-ok-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
}

.report-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

#page-meta {
    font-size: 1.15em;
    color: var(--accent-color);
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

