429 lines
9.8 KiB
CSS
429 lines
9.8 KiB
CSS
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
:root {
|
|
--bg-page: #f8fafc;
|
|
--bg-surface: #ffffff;
|
|
--bg-surface-soft: #f8fafc;
|
|
--bg-surface-strong: #f1f5f9;
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #334155;
|
|
--text-muted: #64748b;
|
|
--border-default: #e2e8f0;
|
|
--border-subtle: #f1f5f9;
|
|
--overlay-soft: rgba(15, 23, 42, 0.4);
|
|
--shadow-elevated: 0 8px 30px -12px rgba(15, 23, 42, 0.2);
|
|
--glow-accent: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 16px 40px -22px rgba(14, 165, 233, 0.45);
|
|
}
|
|
|
|
html {
|
|
font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
background-color: var(--bg-page);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark {
|
|
color-scheme: dark;
|
|
--bg-page: #020617;
|
|
--bg-surface: #0b1220;
|
|
--bg-surface-soft: #0f172a;
|
|
--bg-surface-strong: #1e293b;
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #cbd5e1;
|
|
--text-muted: #94a3b8;
|
|
--border-default: #334155;
|
|
--border-subtle: #1e293b;
|
|
--overlay-soft: rgba(2, 6, 23, 0.72);
|
|
--shadow-elevated: 0 12px 30px -16px rgba(2, 6, 23, 0.85);
|
|
--glow-accent: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 20px 44px -24px rgba(56, 189, 248, 0.5);
|
|
background-color: var(--bg-page);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI Semibold', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
|
@apply tracking-tight font-semibold text-slate-900;
|
|
}
|
|
|
|
html.dark h1,
|
|
html.dark h2,
|
|
html.dark h3,
|
|
html.dark h4,
|
|
html.dark h5,
|
|
html.dark h6 {
|
|
@apply text-slate-100;
|
|
}
|
|
|
|
body {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
button,
|
|
a,
|
|
input,
|
|
select,
|
|
textarea {
|
|
touch-action: manipulation;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.btn {
|
|
@apply px-4 py-2 rounded-xl font-medium transition-all duration-200 active:scale-95 flex items-center justify-center gap-2;
|
|
}
|
|
|
|
.btn-primary {
|
|
@apply btn bg-brand-600 text-white hover:bg-brand-700 shadow-lg shadow-brand-500/20 hover:shadow-brand-500/30;
|
|
}
|
|
|
|
.btn-secondary {
|
|
@apply btn bg-white text-slate-700 border border-slate-200 hover:bg-slate-50 hover:border-slate-300 shadow-sm;
|
|
}
|
|
|
|
.btn-ghost {
|
|
@apply btn bg-transparent text-slate-600 hover:bg-slate-100 hover:text-slate-900 shadow-none;
|
|
}
|
|
|
|
.btn-danger {
|
|
@apply btn bg-red-50 text-red-600 hover:bg-red-100 border border-transparent;
|
|
}
|
|
|
|
.input-field {
|
|
@apply w-full px-4 py-3 rounded-xl border border-slate-200 bg-white text-slate-900 placeholder-slate-400 focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20 outline-none transition-all duration-200;
|
|
}
|
|
|
|
.card {
|
|
@apply bg-white rounded-2xl border border-slate-100 shadow-soft hover:shadow-lg transition-all duration-300 dark:bg-slate-800 dark:border-slate-700;
|
|
}
|
|
|
|
/* Mobile-first layout tokens for consistent spacing and density. */
|
|
.page-shell-mobile {
|
|
@apply px-3 md:px-8;
|
|
}
|
|
|
|
.section-gap-mobile {
|
|
@apply mb-3 md:mb-8;
|
|
}
|
|
|
|
.card-mobile-compact {
|
|
@apply p-3 sm:p-5;
|
|
}
|
|
|
|
.icon-box-mobile {
|
|
@apply w-8 h-8 sm:w-10 sm:h-10;
|
|
}
|
|
|
|
.icon-glyph-mobile {
|
|
@apply w-4 h-4 sm:w-6 sm:h-6;
|
|
}
|
|
|
|
.badge {
|
|
@apply px-2.5 py-0.5 rounded-full text-xs font-medium border;
|
|
}
|
|
|
|
.glass-panel {
|
|
@apply backdrop-blur-xl border;
|
|
background: rgba(255, 255, 255, 0.68);
|
|
border-color: rgba(148, 163, 184, 0.26);
|
|
box-shadow: var(--glow-accent);
|
|
}
|
|
|
|
/* Keep chat composer border and fill visually consistent in light/dark themes. */
|
|
.chat-composer-shell {
|
|
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.97) 100%);
|
|
box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.38);
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.chat-composer-shell:focus-within {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 16px 34px -22px rgba(14, 165, 233, 0.45);
|
|
}
|
|
|
|
.chat-composer-textarea {
|
|
background-color: transparent !important;
|
|
border: 0 !important;
|
|
text-decoration: none;
|
|
caret-color: #0891b2;
|
|
}
|
|
|
|
.chat-composer-textarea:focus,
|
|
.chat-composer-textarea:focus-visible {
|
|
outline: none !important;
|
|
box-shadow: none !important;
|
|
border: 0 !important;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.chat-composer-textarea::selection {
|
|
background-color: rgba(14, 165, 233, 0.2);
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
html.dark .btn-secondary {
|
|
background-color: var(--bg-surface-strong);
|
|
border-color: var(--border-default);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark .btn-secondary:hover {
|
|
background-color: var(--bg-surface-soft);
|
|
border-color: #475569;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
html.dark .btn-ghost {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark .btn-ghost:hover {
|
|
background-color: var(--bg-surface-strong);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
html.dark .btn-danger {
|
|
background-color: rgba(239, 68, 68, 0.12);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
html.dark .btn-danger:hover {
|
|
background-color: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
html.dark .glass-panel {
|
|
background: rgba(2, 6, 23, 0.66);
|
|
border-color: rgba(71, 85, 105, 0.5);
|
|
}
|
|
|
|
html.dark .chat-composer-shell {
|
|
background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 16, 30, 0.92) 100%);
|
|
box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.96);
|
|
}
|
|
|
|
html.dark .chat-composer-textarea {
|
|
background-color: transparent !important;
|
|
caret-color: #67e8f9;
|
|
}
|
|
|
|
html.dark .chat-composer-textarea::selection {
|
|
background-color: rgba(56, 189, 248, 0.25);
|
|
}
|
|
}
|
|
|
|
/* Custom Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
@apply bg-slate-200 rounded-full;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
@apply bg-slate-300;
|
|
}
|
|
|
|
html.dark body,
|
|
html.dark #app {
|
|
background-color: var(--bg-page);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark .bg-white {
|
|
background-color: var(--bg-surface) !important;
|
|
}
|
|
|
|
html.dark .bg-white\/80 {
|
|
background-color: rgba(11, 18, 32, 0.84) !important;
|
|
}
|
|
|
|
html.dark .bg-white\/90 {
|
|
background-color: rgba(11, 18, 32, 0.92) !important;
|
|
}
|
|
|
|
html.dark .bg-white\/60 {
|
|
background-color: rgba(15, 23, 42, 0.72) !important;
|
|
}
|
|
|
|
html.dark .bg-white\/50 {
|
|
background-color: rgba(15, 23, 42, 0.66) !important;
|
|
}
|
|
|
|
html.dark .border-white\/20 {
|
|
border-color: rgba(148, 163, 184, 0.2) !important;
|
|
}
|
|
|
|
html.dark .bg-slate-50,
|
|
html.dark .bg-slate-100,
|
|
html.dark .bg-gray-50 {
|
|
background-color: var(--bg-surface-soft) !important;
|
|
}
|
|
|
|
html.dark .bg-slate-900\/40,
|
|
html.dark .bg-slate-900\/50,
|
|
html.dark .bg-black\/50 {
|
|
background-color: var(--overlay-soft) !important;
|
|
}
|
|
|
|
html.dark .bg-gradient-to-br.from-white.to-slate-50\/50 {
|
|
background-image: linear-gradient(to bottom right, #0b1220, #111827) !important;
|
|
}
|
|
|
|
html.dark .text-slate-900,
|
|
html.dark .text-slate-800 {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
html.dark .text-slate-700,
|
|
html.dark .text-slate-600 {
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
html.dark .text-slate-500,
|
|
html.dark .text-slate-400 {
|
|
color: var(--text-muted) !important;
|
|
}
|
|
|
|
html.dark .text-slate-300,
|
|
html.dark .text-slate-200 {
|
|
color: #dbeafe !important;
|
|
}
|
|
|
|
html.dark .border-slate-50,
|
|
html.dark .border-slate-100,
|
|
html.dark .border-slate-200,
|
|
html.dark .border-gray-100 {
|
|
border-color: var(--border-default) !important;
|
|
}
|
|
|
|
html.dark .border-slate-300 {
|
|
border-color: #475569 !important;
|
|
}
|
|
|
|
html.dark .shadow-sm,
|
|
html.dark .shadow-md,
|
|
html.dark .shadow-lg,
|
|
html.dark .shadow-xl,
|
|
html.dark .shadow-2xl,
|
|
html.dark .shadow-soft {
|
|
box-shadow: var(--shadow-elevated) !important;
|
|
}
|
|
|
|
html.dark .ring-1 {
|
|
--tw-ring-color: rgba(148, 163, 184, 0.3);
|
|
}
|
|
|
|
html.dark .input-field {
|
|
background-color: var(--bg-surface-soft) !important;
|
|
border-color: var(--border-default) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
html.dark .input-field::placeholder {
|
|
color: var(--text-muted) !important;
|
|
}
|
|
|
|
html.dark input:not([type="checkbox"]):not([type="radio"]),
|
|
html.dark textarea,
|
|
html.dark select {
|
|
background-color: var(--bg-surface-soft);
|
|
border-color: var(--border-default);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
html.dark input:focus,
|
|
html.dark textarea:focus,
|
|
html.dark select:focus {
|
|
border-color: #38bdf8;
|
|
}
|
|
|
|
html.dark input[type="checkbox"],
|
|
html.dark input[type="radio"] {
|
|
border-color: var(--border-default);
|
|
background-color: var(--bg-surface-soft);
|
|
color: #0ea5e9;
|
|
}
|
|
|
|
html.dark .hover\:bg-slate-50:hover,
|
|
html.dark .hover\:bg-slate-100:hover {
|
|
background-color: var(--bg-surface-strong) !important;
|
|
}
|
|
|
|
html.dark .hover\:text-slate-900:hover {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
html.dark .hover\:text-slate-700:hover,
|
|
html.dark .hover\:text-slate-600:hover {
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
html.dark .prose,
|
|
html.dark .prose.prose-slate {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark .prose :where(h1, h2, h3, h4, h5, h6) {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
html.dark .prose :where(p, ul, ol, li, blockquote) {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
html.dark .prose :where(code) {
|
|
background-color: var(--bg-surface-strong);
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
html.dark .prose :where(pre) {
|
|
background-color: #020617;
|
|
color: #e2e8f0;
|
|
border: 1px solid var(--border-default);
|
|
}
|
|
|
|
html.dark .prose :where(a) {
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
html.dark .prose :where(hr) {
|
|
border-color: var(--border-default);
|
|
}
|
|
|
|
html.dark iframe {
|
|
background-color: var(--bg-surface) !important;
|
|
}
|
|
|
|
html.dark [class*="backdrop-blur"] {
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
html.dark ::-webkit-scrollbar-thumb {
|
|
background: #475569;
|
|
}
|
|
|
|
html.dark ::-webkit-scrollbar-thumb:hover {
|
|
background: #64748b;
|
|
}
|
|
|
|
/* Mobile safe-area helpers */
|
|
.safe-bottom {
|
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
|
|
}
|
|
|
|
.safe-bottom-lg {
|
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
|
|
}
|