网站设计规范与组件库 - 基于联合丽格设计系统
本文档定义了 ChemicalPeels 项目的设计标准,确保所有页面保持一致的视觉风格和用户体验。
#0d2c54
#f5a623
#0a2240
#faf9f7
#e8e4df
#c1e3d3
#d8ccf0
font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
| 用途 | Class | 近似px值 |
|---|---|---|
| Hero标题 | text-4xl ~ text-6xl | 36px ~ 60px |
| 章节标题 | text-3xl ~ text-4xl | 30px ~ 36px |
| 卡片标题 | text-xl | 20px |
| 正文内容 | text-base ~ text-lg | 16px ~ 18px |
| 辅助说明 | text-sm | 14px |
| 标签/小字 | text-xs | 12px |
使用 Remix Icon 作为图标库。
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css" rel="stylesheet">
<i class="ri-图标名"></i>
class="bg-white p-8 rounded-3xl border border-beige hover:shadow-xl hover:-translate-y-2 transition-all duration-300"
// 主按钮
class="bg-bcc-gold text-white px-6 py-2.5 rounded-full"
// 次按钮
class="border-2 border-bcc-blue text-bcc-blue px-6 py-2.5 rounded-full"
// 文字链接
class="text-bcc-blue hover:text-bcc-gold transition"
| 断点 | 前缀 | 屏幕宽度 |
|---|---|---|
| Mobile | 默认 | < 768px |
| Tablet | md: | ≥ 768px |
| Desktop | lg: | ≥ 1024px |
.fade-in {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}