@@ -954,4 +954,84 @@ onUnmounted(() => {
width: 100%;
}
}
-
+
+/* ---- 历史学习记录 ---- */
+.history-card {
+ padding: 20px;
+}
+
+.history-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ cursor: pointer;
+ user-select: none;
+ gap: 10px;
+}
+
+.history-header-left {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.history-header-left h3 {
+ margin: 0;
+ font-size: 15px;
+ color: var(--green-900);
+}
+
+.history-toggle {
+ flex-shrink: 0;
+ font-size: 14px;
+ color: var(--green-700);
+ width: 18px;
+ text-align: center;
+}
+
+.history-search {
+ margin-top: 12px;
+}
+
+.history-tabs {
+ margin-top: 8px;
+}
+
+.history-list {
+ min-height: 60px;
+}
+
+.history-item {
+ display: flex;
+ align-items: flex-start;
+ gap: 10px;
+ padding: 10px 0;
+ border-bottom: 1px solid var(--border-soft);
+}
+
+.history-item:last-child {
+ border-bottom: none;
+}
+
+.session-tag {
+ flex-shrink: 0;
+ font-size: 11px;
+ color: var(--green-700);
+ background: #e8f5e9;
+ padding: 2px 8px;
+ border-radius: 4px;
+ white-space: nowrap;
+ font-weight: 600;
+}
+
+.history-content {
+ flex: 1;
+ font-size: 14px;
+ line-height: 1.6;
+ color: var(--text-primary);
+ word-break: break-word;
+}
+
+.report-item .history-content {
+ margin: 0;
+}