From 90b3b6329fec3205b845198ca6dc539dcde186c8 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期一, 16 六月 2025 17:12:20 +0800
Subject: [PATCH] 页面调整优化
---
src/app/globals.css | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 154 insertions(+), 2 deletions(-)
diff --git a/src/app/globals.css b/src/app/globals.css
index 25d60dc..546c47c 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -13,6 +13,11 @@
/* 鍩虹棰滆壊璁剧疆 */
--background: var(--ai-surface);
--foreground: #1E2B63;
+ --foreground-rgb: 255, 255, 255;
+ --background-start-rgb: 10, 16, 51;
+ --background-end-rgb: 0, 0, 0;
+ --scrollbar-track: rgba(30, 43, 99, 0.1);
+ --scrollbar-thumb: rgba(106, 219, 255, 0.3);
}
@theme inline {
@@ -26,13 +31,73 @@
:root {
--background: var(--ai-dark);
--foreground: #E9EFFD;
+ --foreground-rgb: 255, 255, 255;
+ --background-start-rgb: 0, 0, 0;
+ --background-end-rgb: 0, 0, 0;
}
}
body {
- background: var(--background);
- color: var(--foreground);
+ background: linear-gradient(to bottom,
+ rgb(var(--background-start-rgb)),
+ rgb(var(--background-end-rgb)));
+ color: rgb(var(--foreground-rgb));
font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
+ min-height: 100vh;
+ opacity: 1;
+ transition: opacity 0.2s ease-out;
+}
+
+/* 婊氬姩鎬ц兘浼樺寲 */
+* {
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+html, body {
+ scroll-behavior: smooth;
+}
+
+/* 鍚敤纭欢鍔犻�� */
+.will-change-transform,
+.motion-safe\:will-change-transform,
+.motion-safe\:hover\:will-change-transform:hover,
+canvas {
+ will-change: transform, opacity;
+ transform: translateZ(0);
+ backface-visibility: hidden;
+}
+
+/* 浼樺寲婊氬姩鏉� */
+::-webkit-scrollbar {
+ width: 10px;
+}
+
+::-webkit-scrollbar-track {
+ background: var(--scrollbar-track);
+}
+
+::-webkit-scrollbar-thumb {
+ background: var(--scrollbar-thumb);
+ border-radius: 5px;
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background: rgba(106, 219, 255, 0.5);
+}
+
+/* 婊氬姩浼樺寲绫� */
+.smooth-scroll {
+ overflow-y: scroll;
+ scroll-behavior: smooth;
+ -webkit-overflow-scrolling: touch;
+}
+
+/* 闃叉杩囧害閲嶆帓鍜岄噸缁� */
+.motion-reduce {
+ transition-duration: 0.01ms !important;
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
}
/* 瀵艰埅鏍忕壒鏁堟牱寮� */
@@ -743,3 +808,90 @@
.animate-shine {
animation: shine 1.5s ease-in-out;
}
+
+@keyframes error-scan {
+ 0% {
+ transform: translateX(0%);
+ }
+ 100% {
+ transform: translateX(50%);
+ }
+}
+
+.animate-error-scan {
+ animation: error-scan 2s linear infinite;
+}
+
+/* 椤甸潰杩囨浮鏁堟灉 */
+.page-transitioning {
+ animation: fadeOut 0.2s ease-out forwards;
+ pointer-events: none;
+}
+
+@keyframes fadeOut {
+ from {
+ opacity: 1;
+ }
+ to {
+ opacity: 0;
+ }
+}
+
+/* 闃叉閾炬帴鐐瑰嚮鏃剁殑闂儊 */
+.no-flash-link {
+ -webkit-tap-highlight-color: transparent;
+}
+
+/* 娑堟伅鐢熸垚鏃堕攣瀹氭粴鍔� */
+body.generating-message {
+ overflow: hidden !important;
+}
+
+/* 婊氬姩閿佸畾閬僵 */
+.scroll-lock-overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 50;
+ background: transparent;
+ pointer-events: all;
+ touch-action: none;
+}
+
+/* 鍥捐〃鍏ㄥ睆妯″紡鏃剁殑鏍峰紡 */
+body:has(.echart-wrapper[data-echarts-container]) {
+ scroll-behavior: smooth;
+}
+
+.echart-wrapper[data-echarts-container] {
+ transition: all 0.3s ease-in-out;
+}
+
+/* 褰撳浜庡叏灞忔ā寮忔椂闃叉椤甸潰婊氬姩 */
+body:has(.echart-wrapper:has(+ .fullscreen-controls)) {
+ overflow: hidden;
+}
+
+/* 褰诲簳鍥哄畾鍥捐〃瀹瑰櫒鐨勯珮搴� */
+[data-echarts-container="true"] {
+ height: 400px !important;
+ min-height: 400px !important;
+ width: 100%;
+ position: relative;
+}
+
+/* 纭繚tooltip鏄剧ず鍦ㄩ�傚綋浣嶇疆 */
+.echarts-tooltip-wrap,
+div[class*="echarts-tooltip"],
+div[class*="tooltip"] {
+ z-index: 9999 !important;
+ top: auto !important; /* 闃叉鍥哄畾鍦ㄩ《閮� */
+ transform: translateY(0) !important; /* 闃叉鍚戜笂鍋忕Щ */
+ max-width: 80vw !important; /* 闄愬埗鏈�澶у搴� */
+ pointer-events: auto !important;
+}
+
+/* 纭繚鐑姏鍥総ooltip鍦ㄩ珮椋庨櫓鍖哄煙鏄剧ず鏃朵笉浼氳瀵艰埅鏍忛伄鎸� */
+body .ec-tooltip,
+body .echarts-tooltip {
+ margin-top: 60px !important; /* 纭繚涓嶄細鏄剧ず鍦ㄥ鑸爮涔嬩笂 */
+}
--
Gitblit v1.9.3