/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .home-bg { min-height: 100vh; background: linear-gradient(180deg, #eaf6ff 0%, #f7f8fa 100%); position: relative; padding-bottom: 120rpx; } .top-bar { display: flex; align-items: center; justify-content: center; position: relative; height: 120rpx; padding-top: 40rpx; } .title { font-size: 44rpx; font-weight: bold; color: #222; letter-spacing: 2rpx; text-align: center; flex: 1; font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; } .top-icons { position: absolute; right: 40rpx; top: 50%; transform: translateY(-50%); display: flex; gap: 32rpx; } .iconfont { font-size: 40rpx; color: #222; } .icon-search { margin-right: 8rpx; } .waterdrop { position: absolute; width: 32rpx; height: 32rpx; background: linear-gradient(180deg, #b3e0ff 0%, #eaf6ff 100%); border-radius: 50% 50% 60% 40%/60% 40% 50% 50%; opacity: 0.7; z-index: 1; } .waterdrop-left { left: 80rpx; top: 110rpx; } .waterdrop-right { right: 80rpx; top: 110rpx; } .header-content { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; margin: 0 40rpx 0 40rpx; margin-top: 20rpx; } .date-motivation { display: flex; flex-direction: column; align-items: flex-start; margin-top: 20rpx; } .date { font-size: 48rpx; font-weight: 700; color: #222; margin-bottom: 8rpx; } .motivation { font-size: 28rpx; color: #4a90e2; font-weight: 500; } .illustration { width: 220rpx; height: 140rpx; margin-top: 0; } .book-img { width: 100%; height: 100%; } .my-course { background: #fff; border-radius: 24rpx; margin: 40rpx 24rpx 0 24rpx; box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04); padding: 32rpx 24rpx 40rpx 24rpx; position: relative; } .module-title { font-size: 32rpx; font-weight: 600; color: #222; margin-bottom: 24rpx; } .empty-course { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40rpx 0 0 0; } .empty-img { width: 120rpx; height: 120rpx; margin-bottom: 24rpx; } .empty-tip { font-size: 28rpx; color: #888; text-align: center; margin-bottom: 32rpx; white-space: pre-line; } .more-btn { width: 320rpx; height: 72rpx; background: #fff; border: 2rpx solid #3498db; color: #3498db; border-radius: 36rpx; font-size: 30rpx; font-weight: 600; text-align: center; line-height: 72rpx; margin-top: 8rpx; } .find-course { text-align: center; color: #bbb; font-size: 26rpx; margin-top: 32rpx; }