174 lines
3.9 KiB
CSS
174 lines
3.9 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
|
|
/* Brand Colors */
|
|
--color-primary-blue: var(--primary-blue);
|
|
--color-accent-blue: var(--accent-blue);
|
|
--color-primary-orange: var(--primary-orange);
|
|
--color-secondary-orange: var(--secondary-orange);
|
|
|
|
/* UI Colors */
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
|
|
/* Radius */
|
|
--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);
|
|
}
|
|
|
|
/* 融合配色方案 */
|
|
|
|
:root {
|
|
/* 品牌深蓝色调 */
|
|
--primary-blue: oklch(0.15 0.03 260);
|
|
--accent-blue: oklch(0.45 0.15 240);
|
|
|
|
/* 活力橙 */
|
|
--primary-orange: oklch(0.65 0.18 40);
|
|
--secondary-orange: oklch(0.7 0.18 45);
|
|
|
|
/* 基础色 */
|
|
--primary: var(--primary-orange);
|
|
--primary-foreground: oklch(0.99 0 0);
|
|
|
|
--secondary: var(--primary-blue);
|
|
--secondary-foreground: oklch(0.99 0 0);
|
|
|
|
--background: oklch(0.98 0.01 260);
|
|
--foreground: oklch(0.15 0.02 260);
|
|
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.15 0.02 260);
|
|
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.15 0.02 260);
|
|
|
|
--accent: oklch(0.96 0.01 260);
|
|
--accent-foreground: oklch(0.15 0.02 260);
|
|
|
|
--muted: oklch(0.94 0.01 260);
|
|
--muted-foreground: oklch(0.5 0.02 260);
|
|
|
|
--destructive: oklch(0.55 0.2 25);
|
|
--destructive-foreground: oklch(0.99 0 0);
|
|
|
|
--border: oklch(0.9 0.01 260);
|
|
--input: oklch(0.9 0.01 260);
|
|
--ring: var(--primary-orange);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground antialiased;
|
|
}
|
|
|
|
/* 全局字体放大 */
|
|
html {
|
|
font-size: 17px; /* 基础字体稍大 */
|
|
}
|
|
|
|
h1 {
|
|
@apply font-black text-[#0A1931];
|
|
font-size: 2.75rem;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
h2 {
|
|
@apply font-bold text-[#0A1931];
|
|
font-size: 2.25rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
h3 {
|
|
@apply font-bold text-[#0A1931];
|
|
font-size: 1.5rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
h4, h5, h6 {
|
|
@apply font-semibold text-[#0A1931];
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
p {
|
|
@apply leading-relaxed text-gray-600;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* 通用卡片悬浮效果 */
|
|
.card-hover {
|
|
transition: all 0.4s ease;
|
|
}
|
|
.card-hover:hover {
|
|
transform: translateY(-15px);
|
|
box-shadow: 0 20px 50px rgba(24, 90, 219, 0.15);
|
|
border-color: var(--accent-blue);
|
|
}
|
|
}
|
|
|
|
/* 重点文字高亮样式 */
|
|
.highlight-text {
|
|
@apply text-[#FF6600] font-bold;
|
|
}
|
|
|
|
.key-point {
|
|
@apply font-bold text-[#0A1931] bg-gradient-to-r from-orange-50 to-orange-100 px-2 py-0.5 rounded;
|
|
}
|
|
|
|
/* 响应式字体调整 */
|
|
@layer utilities {
|
|
@media (max-width: 768px) {
|
|
html {
|
|
font-size: 16px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem !important;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.75rem !important;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.95rem !important;
|
|
}
|
|
}
|
|
}
|