diff --git a/knowledge/scenario/index.html b/knowledge/scenario/index.html
index 413fa34..fffa2ba 100644
--- a/knowledge/scenario/index.html
+++ b/knowledge/scenario/index.html
@@ -1,106 +1,173 @@
-
+
系统设计场景题 · 面试答题手册
-
系统设计场景题/面试答题手册
+
加载中…
+
@@ -406,6 +473,23 @@ code{background:#f2f3f8;border:1px solid #e7e9f2;border-radius:5px;padding:1px 5
window.addEventListener('resize', onScroll);
toTop.addEventListener('click', function () { window.scrollTo({ top: 0, behavior: 'smooth' }); });
+ /* 主题切换(与 SRE 学习路径页一致) */
+ var themeBtn = document.getElementById('themeBtn');
+ function applyTheme(t) {
+ document.documentElement.dataset.theme = t;
+ themeBtn.textContent = t === 'dark' ? '浅色' : '深色';
+ themeBtn.title = t === 'dark' ? '切换到浅色主题' : '切换到深色主题';
+ try { localStorage.setItem(MASTER_KEY + ':theme', t); } catch (e) {}
+ }
+ (function initTheme() {
+ var t = 'light';
+ try { t = localStorage.getItem(MASTER_KEY + ':theme') || 'light'; } catch (e) {}
+ applyTheme(t);
+ })();
+ themeBtn.addEventListener('click', function () {
+ applyTheme(document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark');
+ });
+
applyFilter();
onScroll();
})();
diff --git a/project/ai-agent-scafford-go/index.html b/project/ai-agent-scafford-go/index.html
index 9f4b559..b82cb7e 100644
--- a/project/ai-agent-scafford-go/index.html
+++ b/project/ai-agent-scafford-go/index.html
@@ -1,104 +1,173 @@
-
+
AI Agent Scaffold Go · 面试拷打题库
@@ -381,6 +450,23 @@ a{color:var(--brand)}
window.addEventListener('resize', onScroll);
toTop.addEventListener('click', function () { window.scrollTo({ top: 0, behavior: 'smooth' }); });
+ /* 主题切换(与 SRE 学习路径页一致) */
+ var themeBtn = document.getElementById('themeBtn');
+ function applyTheme(t) {
+ document.documentElement.dataset.theme = t;
+ themeBtn.textContent = t === 'dark' ? '浅色' : '深色';
+ themeBtn.title = t === 'dark' ? '切换到浅色主题' : '切换到深色主题';
+ try { localStorage.setItem(MASTER_KEY + ':theme', t); } catch (e) {}
+ }
+ (function initTheme() {
+ var t = 'light';
+ try { t = localStorage.getItem(MASTER_KEY + ':theme') || 'light'; } catch (e) {}
+ applyTheme(t);
+ })();
+ themeBtn.addEventListener('click', function () {
+ applyTheme(document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark');
+ });
+
applyFilter();
onScroll();
})();