/* 秒思智能审核平台 - 全局样式文件 */ /* 严格按照 Pencil 设计文件实现 */ @tailwind base; @tailwind components; @tailwind utilities; /* ======================================== 1. CSS Variables (设计令牌) - 来自设计文件 ======================================== */ :root { /* 背景色 */ --bg-page: #0B0B0E; --bg-card: #16161A; --bg-elevated: #1A1A1E; /* 文字色 */ --text-primary: #FAFAF9; --text-secondary: #6B6B70; --text-tertiary: #4A4A50; /* 强调色 */ --accent-indigo: #6366F1; --accent-green: #32D583; --accent-coral: #E85A4F; --accent-amber: #FFB547; --accent-blue: #007AFF; /* 边框色 */ --border-subtle: #2A2A2E; --border-strong: #3A3A40; /* 圆角 */ --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; /* 间距 */ --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px; } /* ======================================== 2. Base Styles (基础样式) ======================================== */ @layer base { html, body { height: 100%; } html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background-color: var(--bg-page); color: var(--text-primary); line-height: 1.5; } /* 字体工具类 */ .font-display { font-family: 'Fraunces', serif; } .font-primary { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } } /* ======================================== 3. Scrollbar Styles (滚动条样式) ======================================== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-card); } ::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } /* ======================================== 4. Animations (动画) ======================================== */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .animate-fade-in { animation: fadeIn 0.2s ease-out; } .animate-slide-up { animation: slideUp 0.3s ease-out; } .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } .animate-spin { animation: spin 1s linear infinite; } /* ======================================== 5. Utility Classes (工具类) ======================================== */ .truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* Safe area for iOS */ .safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0); } .safe-area-top { padding-top: env(safe-area-inset-top, 0); } /* 底部导航渐变背景 */ .bottom-nav-gradient { background: linear-gradient(180deg, rgba(11, 11, 14, 0) 0%, #0B0B0E 50%); } /* 卡片阴影 */ .card-shadow { box-shadow: 0px 4px 16px -4px rgba(0, 0, 0, 0.25); } /* 浮动导航阴影 */ .nav-shadow { box-shadow: 0px -4px 24px 0px rgba(0, 0, 0, 0.25); }