feat: 搭建微信小程序展示端
- 初始化小程序工程配置与类型声明 - 增加首页、律所、律师列表、详情与历史页面 - 补充公共组件、运行时配置与示例素材
This commit is contained in:
201
frontend_miniprogram/miniprogram/app.less
Normal file
201
frontend_miniprogram/miniprogram/app.less
Normal file
@@ -0,0 +1,201 @@
|
||||
/**
|
||||
* Law Firm Digital Card - Design System
|
||||
* 简约、扁平、现代化风格
|
||||
*/
|
||||
|
||||
page {
|
||||
/* --- 核心色彩系统 (Color Palette) --- */
|
||||
|
||||
/* 主色调:勃艮第红 - 传递权威、庄重、正义 */
|
||||
--primary-color: #8E2230;
|
||||
--primary-light: #B86A74;
|
||||
/* 用于 hover 或浅色背景 */
|
||||
--primary-dark: #5C0D15;
|
||||
|
||||
/* 强调色:金色 - 传递高端、品质 */
|
||||
--accent-color: #D4AF37;
|
||||
--accent-light: #dfc466;
|
||||
|
||||
/* 中性色系统 */
|
||||
--text-main: #1A1A1A;
|
||||
/* 主要文字,接近纯黑 */
|
||||
--text-secondary: #595959;
|
||||
/* 次要文字,深灰 */
|
||||
--text-tertiary: #8C8C8C;
|
||||
/* 辅助文字,浅灰 */
|
||||
--text-placeholder: #BFBFBF;
|
||||
|
||||
/* 背景色 */
|
||||
--bg-page: #F5F7FA;
|
||||
/* 页面底色,极浅的蓝灰 */
|
||||
--bg-card: #FFFFFF;
|
||||
/* 卡片背景,纯白 */
|
||||
--bg-surface: #F9FAFC;
|
||||
/* 次级表面颜色 */
|
||||
|
||||
/* 分割线与边框 */
|
||||
--border-color: #E8E8E8;
|
||||
--border-radius-base: 12rpx;
|
||||
--border-radius-lg: 16rpx;
|
||||
--border-radius-sm: 8rpx;
|
||||
|
||||
/* --- 排版系统 (Typography) --- */
|
||||
--font-size-xs: 20rpx;
|
||||
--font-size-sm: 24rpx;
|
||||
--font-size-base: 28rpx;
|
||||
--font-size-lg: 32rpx;
|
||||
--font-size-xl: 36rpx;
|
||||
--font-size-xxl: 40rpx;
|
||||
|
||||
--font-weight-regular: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-bold: 600;
|
||||
|
||||
/* --- 间距 (Spacing) --- */
|
||||
--spacing-xs: 8rpx;
|
||||
--spacing-sm: 16rpx;
|
||||
--spacing-md: 24rpx;
|
||||
--spacing-lg: 32rpx;
|
||||
--spacing-xl: 48rpx;
|
||||
|
||||
/* --- 阴影 (Shadows) --- */
|
||||
--shadow-sm: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
|
||||
--shadow-base: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
|
||||
--shadow-lg: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
|
||||
|
||||
/* 全局设置 */
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
||||
background-color: var(--bg-page);
|
||||
color: var(--text-main);
|
||||
box-sizing: border-box;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* --- 布局工具类 (Layout Utilities) --- */
|
||||
|
||||
.container-page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--bg-page);
|
||||
}
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Flexbox Helpers */
|
||||
.flex-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Spacing Helpers */
|
||||
.mt-sm {
|
||||
margin-top: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.mt-md {
|
||||
margin-top: var(--spacing-md);
|
||||
}
|
||||
|
||||
.mt-lg {
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.mb-sm {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.mb-md {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.mb-lg {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
/* Text Utilities */
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.text-accent {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
/* Common Components */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border-radius: var(--border-radius-base);
|
||||
padding: var(--spacing-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* Section Title - Modern Style */
|
||||
.section-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--text-main);
|
||||
position: relative;
|
||||
padding-left: 20rpx;
|
||||
margin-bottom: var(--spacing-md);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.section-title::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 4rpx;
|
||||
bottom: 4rpx;
|
||||
width: 6rpx;
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
/* Safe Area styling for bottom navigation */
|
||||
.safe-area-bottom {
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
Reference in New Issue
Block a user