- AI分析页改为直接展示最新报告,历史存数据库 - 新增浅色/深色/系统自动主题切换 - 市场看板、AI分析页适配主题变量 - 移动端表格可滑动、按钮自动换行 - Mermaid图表支持 - Markdown表格渲染支持(remark-gfm)
274 lines
7.7 KiB
CSS
Executable File
274 lines
7.7 KiB
CSS
Executable File
@import "tailwindcss" source(none);
|
|
@source "../src";
|
|
@import "tw-animate-css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
/*
|
|
*
|
|
* This file contains the default styles. Use the Write tool to rewrite this file in full.
|
|
*
|
|
* The @theme inline block maps CSS custom properties to Tailwind utility
|
|
* classes (e.g. --color-primary -> bg-primary, text-primary).
|
|
*
|
|
* The :root and .dark blocks define the actual color values using oklch.
|
|
* All colors MUST use oklch format.
|
|
*
|
|
* To add a new semantic color:
|
|
* 1. Add the variable to :root (light value) and .dark (dark value)
|
|
* 2. Register it in @theme inline as --color-<name>: var(--<name>)
|
|
*/
|
|
|
|
@theme inline {
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--radius-2xl: calc(var(--radius) + 8px);
|
|
--radius-3xl: calc(var(--radius) + 12px);
|
|
--radius-4xl: calc(var(--radius) + 16px);
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-ring-offset-background: var(--background);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--font-sans: var(--font-sans);
|
|
}
|
|
|
|
:root {
|
|
--radius: 0.625rem;
|
|
--font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.129 0.042 264.695);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.129 0.042 264.695);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.129 0.042 264.695);
|
|
--primary: oklch(0.208 0.042 265.755);
|
|
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
--secondary: oklch(0.968 0.007 247.896);
|
|
--secondary-foreground: oklch(0.208 0.042 265.755);
|
|
--muted: oklch(0.968 0.007 247.896);
|
|
--muted-foreground: oklch(0.521 0.011 257.2);
|
|
--accent: oklch(0.968 0.007 247.896);
|
|
--accent-foreground: oklch(0.208 0.042 265.755);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--destructive-foreground: oklch(0.984 0.003 247.858);
|
|
--border: oklch(0.929 0.013 255.508);
|
|
--input: oklch(0.929 0.013 255.508);
|
|
--ring: oklch(0.704 0.04 256.788);
|
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
--sidebar: oklch(0.984 0.003 247.858);
|
|
--sidebar-foreground: oklch(0.129 0.042 264.695);
|
|
--sidebar-primary: oklch(0.208 0.042 265.755);
|
|
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
--sidebar-accent: oklch(0.968 0.007 247.896);
|
|
--sidebar-accent-foreground: oklch(0.208 0.042 265.755);
|
|
--sidebar-border: oklch(0.929 0.013 255.508);
|
|
--sidebar-ring: oklch(0.704 0.04 256.788);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.205 0 0);
|
|
--foreground: oklch(0.984 0.003 247.858);
|
|
--card: oklch(0.205 0 0);
|
|
--card-foreground: oklch(0.984 0.003 247.858);
|
|
--popover: oklch(0.208 0.042 265.755);
|
|
--popover-foreground: oklch(0.984 0.003 247.858);
|
|
--primary: oklch(0.929 0.013 255.508);
|
|
--primary-foreground: oklch(0.208 0.042 265.755);
|
|
--secondary: oklch(0.279 0.041 260.031);
|
|
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
--muted: oklch(0.279 0.041 260.031);
|
|
--muted-foreground: oklch(0.804 0.008 256.9);
|
|
--accent: oklch(0.279 0.041 260.031);
|
|
--accent-foreground: oklch(0.984 0.003 247.858);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--destructive-foreground: oklch(0.984 0.003 247.858);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.551 0.027 264.364);
|
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
--sidebar: oklch(0.208 0.042 265.755);
|
|
--sidebar-foreground: oklch(0.984 0.003 247.858);
|
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
--sidebar-accent: oklch(0.279 0.041 260.031);
|
|
--sidebar-accent-foreground: oklch(0.984 0.003 247.858);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.551 0.027 264.364);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
body {
|
|
background-color: var(--color-background);
|
|
color: var(--color-foreground);
|
|
font-family: var(--font-sans);
|
|
}
|
|
}
|
|
|
|
/* AI Report Content Styles */
|
|
.ai-report-content {
|
|
color: var(--card-foreground);
|
|
line-height: 1.6;
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.ai-report-content {
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
|
|
.ai-report-content h1,
|
|
.ai-report-content h2,
|
|
.ai-report-content h3,
|
|
.ai-report-content h4 {
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
margin-top: 1.2em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.ai-report-content h1 { font-size: 1.4em; }
|
|
.ai-report-content h2 { font-size: 1.2em; }
|
|
.ai-report-content h3 { font-size: 1.05em; }
|
|
|
|
@media (min-width: 640px) {
|
|
.ai-report-content h1 { font-size: 1.5em; }
|
|
.ai-report-content h2 { font-size: 1.3em; }
|
|
.ai-report-content h3 { font-size: 1.15em; }
|
|
}
|
|
|
|
.ai-report-content p {
|
|
margin-bottom: 0.7em;
|
|
}
|
|
|
|
.ai-report-content strong {
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ai-report-content ul,
|
|
.ai-report-content ol {
|
|
margin: 0.5em 0;
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
.ai-report-content li {
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.ai-report-content blockquote {
|
|
border-left: 3px solid var(--border);
|
|
padding-left: 0.8em;
|
|
margin: 0.7em 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.ai-report-content code {
|
|
background: var(--muted);
|
|
padding: 0.15em 0.35em;
|
|
border-radius: 4px;
|
|
font-size: 0.85em;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.ai-report-content pre {
|
|
background: var(--muted);
|
|
padding: 0.8em;
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
margin: 0.7em 0;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.ai-report-content pre code {
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--card-foreground);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.ai-report-content table-wrapper {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
margin: 0.7em 0;
|
|
}
|
|
|
|
.ai-report-content table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.ai-report-content th,
|
|
.ai-report-content td {
|
|
border: 1px solid var(--border);
|
|
padding: 0.4em 0.6em;
|
|
text-align: left;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.ai-report-content th,
|
|
.ai-report-content td {
|
|
padding: 0.5em 0.8em;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
.ai-report-content th {
|
|
background: var(--muted);
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ai-report-content hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 1.2em 0;
|
|
}
|