feat: 移动端列表模式点击基金名称查看详情

This commit is contained in:
hzm
2026-03-08 14:52:55 +08:00
parent 354936c9af
commit e97de8744a
15 changed files with 1885 additions and 815 deletions

View File

@@ -43,6 +43,13 @@
--sidebar-accent-foreground: #e5e7eb;
--sidebar-border: #1f2937;
--sidebar-ring: #22d3ee;
--drawer-overlay: rgba(2, 6, 23, 0.5);
--dialog-overlay: rgba(2, 6, 23, 0.6);
--tabs-list-bg: rgba(255, 255, 255, 0.04);
--tabs-list-border: transparent;
--tabs-trigger-active-bg: rgba(34, 211, 238, 0.12);
--tabs-trigger-active-text: var(--primary);
--switch-thumb: var(--foreground);
}
/* 亮色主题ui-ux-pro-max 规范 - 正文 #0F172A、弱化 #475569、玻璃 bg-white/80+、边框可见 */
@@ -84,6 +91,13 @@
--sidebar-accent-foreground: #0f172a;
--sidebar-border: #e2e8f0;
--sidebar-ring: #0891b2;
--drawer-overlay: rgba(15, 23, 42, 0.25);
--dialog-overlay: rgba(15, 23, 42, 0.35);
--tabs-list-bg: rgba(0, 0, 0, 0.04);
--tabs-list-border: var(--border);
--tabs-trigger-active-bg: rgba(8, 145, 178, 0.15);
--tabs-trigger-active-text: var(--primary);
--switch-thumb: var(--background);
}
* {
@@ -2033,6 +2047,65 @@ input[type="number"] {
justify-content: center;
}
/* shadcn Drawer符合项目规范适配亮/暗主题 */
.drawer-shadow-bottom {
box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}
.drawer-shadow-top {
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .drawer-shadow-bottom {
box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .drawer-shadow-top {
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}
/* shadcn Dialog符合项目规范(ui-ux-pro-max),适配亮/暗主题,略微玻璃拟态 */
[data-slot="dialog-content"] {
background: rgba(17, 24, 39, 0.96);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] [data-slot="dialog-content"] {
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.dialog-content-shadow {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .dialog-content-shadow {
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
[data-slot="dialog-content"] [data-slot="dialog-close"] {
cursor: pointer;
color: var(--muted-foreground);
transition: color 0.2s ease, opacity 0.2s ease;
}
[data-slot="dialog-content"] [data-slot="dialog-close"]:hover {
color: var(--foreground);
opacity: 1;
}
[data-slot="dialog-content"] [data-slot="dialog-close"]:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 2px;
}
[data-slot="dialog-title"] {
color: var(--foreground);
}
[data-slot="dialog-description"] {
color: var(--muted-foreground);
}
.mobile-setting-drawer {
width: 100%;
max-height: 90vh;
@@ -3192,6 +3265,26 @@ input[type="number"] {
box-shadow: none;
}
.button.danger {
background: linear-gradient(180deg, #ef4444, #f87171);
color: #2b0b0b;
border-color: rgba(248, 113, 113, 0.4);
}
.button.danger:hover {
box-shadow: 0 10px 20px rgba(248, 113, 113, 0.25);
}
[data-theme="light"] .button.danger {
background: linear-gradient(180deg, #ef4444, #dc2626);
color: #fff;
border-color: rgba(220, 38, 38, 0.4);
}
[data-theme="light"] .button.danger:hover {
box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}
/* ========== 移动端响应式 ========== */
@media (max-width: 640px) {