chore(部署): 同步深色头部与翻牌组件修复产物

This commit is contained in:
TermiNexus committed 2026-10-18 22:57:39 +08:00
1 parent d8d1b48846
commit 86736e1585
2 files changed
+41 -4

No files matched your search

+2 -2
View File
@@ -203,8 +203,8 @@
}
}
</style>
<script type="module" crossorigin src="/GVSite/index-DukTqxut.js"></script>
<link rel="stylesheet" crossorigin href="/GVSite/index-YNi1kyHa.css">
<script type="module" crossorigin src="/GVSite/index-Dge9ukD7.js"></script>
<link rel="stylesheet" crossorigin href="/GVSite/index-B084lgzy.css">
</head>
<body>
<div id="site-loader" role="status" aria-live="polite" aria-label="页面加载中">
+39 -2
View File
@@ -5,6 +5,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>银河锋锐(GVSDS)</title>
<link rel="icon" href="https://hb.cdn.gvsds.com/assets/icon/ICON.png">
<!-- 主题预置:在首屏绘制前按「本地偏好 → 系统设置」写入主题,避免深浅色闪烁 -->
<script>
(function () {
var mode = 'system'
try {
var stored = localStorage.getItem('gvsds-theme')
if (stored === 'light' || stored === 'dark' || stored === 'system') mode = stored
} catch (e) {}
var systemDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
var theme = mode === 'system' ? (systemDark ? 'dark' : 'light') : mode
var root = document.documentElement
root.dataset.themeMode = theme
root.classList.toggle('dark', theme === 'dark')
root.style.colorScheme = theme
})()
</script>
<!-- 首屏加载样式内联:在 JS 包下载/执行前即可渲染,避免白屏 -->
<style>
#site-loader {
@@ -154,6 +170,27 @@
50% { opacity: 1; }
}
/* 深色主题下的首屏 loading */
html[data-theme-mode="dark"] #site-loader {
background: #0b1120;
}
html[data-theme-mode="dark"] #site-loader .gvs-loader-title {
color: #dbeafe;
}
html[data-theme-mode="dark"] #site-loader .gvs-loader-subtitle {
color: #64748b;
}
html[data-theme-mode="dark"] #site-loader .gvs-loader-track {
background: #1e293b;
}
html[data-theme-mode="dark"] #site-loader .gvs-loader-status {
color: #64748b;
}
@media (prefers-reduced-motion: reduce) {
#site-loader .gvs-loader-ring,
#site-loader .gvs-loader-status {
@@ -166,8 +203,8 @@
}
}
</style>
<script type="module" crossorigin src="/GVSite/index-CJHoCWqn.js"></script>
<link rel="stylesheet" crossorigin href="/GVSite/index-B7Q4hW4H.css">
<script type="module" crossorigin src="/GVSite/index-DukTqxut.js"></script>
<link rel="stylesheet" crossorigin href="/GVSite/index-YNi1kyHa.css">
</head>
<body>
<div id="site-loader" role="status" aria-live="polite" aria-label="页面加载中">