Files
cpzs-frontend-new/src/assets/base.css

75 lines
1.6 KiB
CSS
Raw Normal View History

/* 精彩猪手 - 设计变量系统 */
:root {
/* 品牌色 */
--color-primary: #e53e3e;
--color-primary-light: #ff6b6b;
--color-primary-dark: #c53030;
--color-primary-bg: rgba(229, 62, 62, 0.08);
--color-primary-shadow: rgba(229, 62, 62, 0.25);
/* 功能色 */
--color-success: #48bb78;
--color-warning: #ed8936;
--color-danger: #f56565;
--color-info: #4299e1;
/* 中性色 */
--color-text-primary: #1a202c;
--color-text-secondary: #4a5568;
--color-text-tertiary: #a0aec0;
--color-text-placeholder: #cbd5e0;
/* 背景色 */
--color-bg-page: #f0f2f5;
--color-bg-card: #ffffff;
--color-bg-input: #f7fafc;
--color-bg-hover: #edf2f7;
/* 边框色 */
--color-border: #e2e8f0;
--color-border-light: #edf2f7;
/* 圆角 */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--radius-full: 9999px;
/* 阴影 */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
--shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.16);
/* 过渡 */
--transition-fast: 0.15s ease;
--transition-base: 0.25s ease;
--transition-slow: 0.4s ease;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
}
body {
min-height: 100vh;
color: var(--color-text-primary);
background: var(--color-bg-page);
line-height: 1.6;
font-family:
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
'Helvetica Neue',
sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}