2026-03-06 14:14:57 +08:00
|
|
|
html,
|
|
|
|
|
body,
|
|
|
|
|
#root {
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-30 11:14:43 +08:00
|
|
|
:root {
|
2025-12-11 17:01:25 +08:00
|
|
|
font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", Inter, system-ui, sans-serif;
|
|
|
|
|
line-height: 1.5715;
|
2025-10-30 11:14:43 +08:00
|
|
|
font-weight: 400;
|
|
|
|
|
font-synthesis: none;
|
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
margin: 0;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-06 14:14:57 +08:00
|
|
|
/* 自定义滚动条样式(与主题弱耦合) */
|
2025-10-30 11:14:43 +08:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
2026-03-06 14:14:57 +08:00
|
|
|
background: rgba(0, 0, 0, 0.06);
|
2025-10-30 11:14:43 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
2026-03-06 14:14:57 +08:00
|
|
|
background: rgba(0, 0, 0, 0.24);
|
2025-10-30 11:14:43 +08:00
|
|
|
border-radius: 4px;
|
2026-03-06 14:14:57 +08:00
|
|
|
transition: background 0.2s ease;
|
2025-10-30 11:14:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
2026-03-06 14:14:57 +08:00
|
|
|
background: rgba(0, 0, 0, 0.34);
|
2025-10-30 11:14:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
scrollbar-width: thin;
|
2026-03-06 14:14:57 +08:00
|
|
|
scrollbar-color: rgba(0, 0, 0, 0.24) rgba(0, 0, 0, 0.06);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme-resolved='dark'] ::-webkit-scrollbar-track {
|
|
|
|
|
background: rgba(255, 255, 255, 0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme-resolved='dark'] ::-webkit-scrollbar-thumb {
|
|
|
|
|
background: rgba(255, 255, 255, 0.28);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme-resolved='dark'] ::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background: rgba(255, 255, 255, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme-resolved='dark'] * {
|
|
|
|
|
scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 主题切换转场(暗色扩散、亮色收缩) */
|
|
|
|
|
:root {
|
|
|
|
|
--theme-transition-duration: 460ms;
|
|
|
|
|
--theme-transition-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root::view-transition-group(root) {
|
|
|
|
|
animation-duration: var(--theme-transition-duration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme-transition='to-dark']::view-transition-new(root) {
|
|
|
|
|
z-index: 2;
|
|
|
|
|
animation: theme-dark-reveal var(--theme-transition-duration) var(--theme-transition-easing) both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme-transition='to-dark']::view-transition-old(root) {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
animation: theme-old-fade var(--theme-transition-duration) ease both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme-transition='to-light']::view-transition-old(root) {
|
|
|
|
|
z-index: 2;
|
|
|
|
|
animation: theme-light-collapse var(--theme-transition-duration) var(--theme-transition-easing) both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme-transition='to-light']::view-transition-new(root) {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
animation: theme-new-fade var(--theme-transition-duration) ease both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes theme-dark-reveal {
|
|
|
|
|
from {
|
|
|
|
|
clip-path: circle(0% at 50% 50%);
|
|
|
|
|
opacity: 0.78;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
clip-path: circle(150% at 50% 50%);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes theme-light-collapse {
|
|
|
|
|
from {
|
|
|
|
|
clip-path: circle(150% at 50% 50%);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
clip-path: circle(0% at 50% 50%);
|
|
|
|
|
opacity: 0.82;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes theme-old-fade {
|
|
|
|
|
from { opacity: 1; }
|
|
|
|
|
to { opacity: 0.9; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes theme-new-fade {
|
|
|
|
|
from { opacity: 0.92; }
|
|
|
|
|
to { opacity: 1; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
:root::view-transition-group(root),
|
|
|
|
|
:root::view-transition-old(root),
|
|
|
|
|
:root::view-transition-new(root) {
|
|
|
|
|
animation-duration: 1ms !important;
|
|
|
|
|
}
|
2025-10-30 11:14:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 移动端响应式样式 */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
:root {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
2025-12-11 17:01:25 +08:00
|
|
|
|
2025-10-30 11:14:43 +08:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 4px;
|
|
|
|
|
height: 4px;
|
|
|
|
|
}
|
2025-12-11 17:01:25 +08:00
|
|
|
|
|
|
|
|
button,
|
|
|
|
|
a,
|
2026-03-06 14:14:57 +08:00
|
|
|
[role='button'] {
|
2025-10-30 11:14:43 +08:00
|
|
|
min-height: 44px;
|
|
|
|
|
min-width: 44px;
|
|
|
|
|
}
|
2025-12-11 17:01:25 +08:00
|
|
|
|
|
|
|
|
img,
|
|
|
|
|
button {
|
2025-10-30 11:14:43 +08:00
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 修复移动端表格分页器对齐问题 */
|
|
|
|
|
.ant-pagination-simple {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-pagination-simple .ant-pagination-simple-pager {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin: 0 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-pagination-simple .ant-pagination-simple-pager input {
|
|
|
|
|
margin: 0 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-pagination-simple .ant-pagination-prev,
|
|
|
|
|
.ant-pagination-simple .ant-pagination-next {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-10 15:47:02 +08:00
|
|
|
|
2026-03-06 14:14:57 +08:00
|
|
|
@media (max-width: 576px) {
|
|
|
|
|
:root {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 移动端安全区域适配 (iPhone X+) */
|
|
|
|
|
@supports (padding: max(0px)) {
|
|
|
|
|
body {
|
|
|
|
|
padding-left: env(safe-area-inset-left);
|
|
|
|
|
padding-right: env(safe-area-inset-right);
|
|
|
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-10 15:47:02 +08:00
|
|
|
.ant-tabs-dropdown {
|
|
|
|
|
z-index: 2000 !important;
|
|
|
|
|
}
|
2025-12-11 17:01:25 +08:00
|
|
|
|
2026-03-06 14:14:57 +08:00
|
|
|
.ant-tooltip {
|
|
|
|
|
max-width: min(420px, calc(100vw - 24px));
|
2025-12-11 17:01:25 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-06 14:14:57 +08:00
|
|
|
.ant-tooltip .ant-tooltip-content,
|
2025-12-11 17:01:25 +08:00
|
|
|
.ant-tooltip .ant-tooltip-inner {
|
2026-03-06 14:14:57 +08:00
|
|
|
max-width: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tooltip .ant-tooltip-inner {
|
|
|
|
|
background: var(--app-tooltip-bg, #884d5c);
|
2025-12-11 17:01:25 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
font-weight: 500;
|
2026-03-06 14:14:57 +08:00
|
|
|
box-shadow: 0 4px 12px var(--app-tooltip-shadow, rgba(136, 77, 92, 0.3));
|
|
|
|
|
white-space: normal;
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
|
max-height: 50vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.ant-tooltip {
|
|
|
|
|
max-width: calc(100vw - 16px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tooltip .ant-tooltip-inner {
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
max-height: 50vh;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|