/**
|
* 这里是uni-app内置的常用样式变量
|
*
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
*
|
*/
|
/**
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
*
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
*/
|
/* 颜色变量 */
|
/* 行为相关颜色 */
|
/* 文字基本颜色 */
|
/* 背景颜色 */
|
/* 边框颜色 */
|
/* 尺寸变量 */
|
/* 文字尺寸 */
|
/* 图片尺寸 */
|
/* Border Radius */
|
/* 水平间距 */
|
/* 垂直间距 */
|
/* 透明度 */
|
/* 文章场景相关 */
|
.primary-btn {
|
background: linear-gradient(135deg, #0f95b0, #89C4C1);
|
color: #fff;
|
border-radius: 36rpx;
|
text-align: center;
|
font-size: 30rpx;
|
height: 88rpx;
|
line-height: 88rpx;
|
}
|
.primary-btn:active {
|
transform: scale(0.98);
|
}
|
.card {
|
background: #fff;
|
border-radius: 24rpx;
|
padding: 30rpx;
|
margin-bottom: 30rpx;
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
}
|
.tag {
|
display: inline-block;
|
font-size: 22rpx;
|
color: #0f95b0;
|
background: rgba(15, 149, 176, 0.1);
|
padding: 4rpx 12rpx;
|
border-radius: 4rpx;
|
margin-right: 10rpx;
|
}
|
.section-title {
|
font-size: 34rpx;
|
font-weight: bold;
|
color: #333333;
|
position: relative;
|
padding-left: 20rpx;
|
margin-bottom: 30rpx;
|
}
|
.section-title::before {
|
content: "";
|
position: absolute;
|
left: 0;
|
top: 50%;
|
transform: translateY(-50%);
|
width: 6rpx;
|
height: 30rpx;
|
background: #0f95b0;
|
border-radius: 3rpx;
|
}
|
.price {
|
font-size: 32rpx;
|
color: #F56C6C;
|
font-weight: bold;
|
}
|
.price.free {
|
color: #67C23A;
|
}
|
.price.original {
|
font-size: 24rpx;
|
color: #999999;
|
text-decoration: line-through;
|
margin-left: 10rpx;
|
}
|
::-webkit-scrollbar {
|
display: none;
|
width: 0;
|
height: 0;
|
color: transparent;
|
}
|
page {
|
width: 100%;
|
height: 100%;
|
overflow-x: hidden;
|
}
|
.index-container {
|
min-height: 100vh;
|
background: #f5f6fa;
|
}
|
.index-container .search-bar {
|
position: -webkit-sticky;
|
position: sticky;
|
top: 0;
|
z-index: 100;
|
padding: 20rpx 30rpx;
|
background: #fff;
|
}
|
.index-container .search-bar .search-wrapper {
|
display: flex;
|
align-items: center;
|
gap: 20rpx;
|
}
|
.index-container .search-bar .search-box {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
height: 72rpx;
|
background: #f5f6fa;
|
border-radius: 36rpx;
|
padding: 0 30rpx;
|
}
|
.index-container .search-bar .search-box .icon-search {
|
width: 32rpx;
|
height: 32rpx;
|
margin-right: 20rpx;
|
}
|
.index-container .search-bar .search-box input {
|
flex: 1;
|
font-size: 28rpx;
|
color: #333;
|
}
|
.index-container .banner {
|
height: 360rpx;
|
position: relative;
|
}
|
.index-container .banner swiper-item {
|
position: relative;
|
}
|
.index-container .banner image {
|
width: 100%;
|
height: 100%;
|
}
|
.index-container .banner .banner-text {
|
position: absolute;
|
left: 40rpx;
|
bottom: 40rpx;
|
color: #fff;
|
}
|
.index-container .banner .banner-text .title {
|
font-size: 40rpx;
|
font-weight: bold;
|
margin-bottom: 10rpx;
|
display: block;
|
text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2);
|
}
|
.index-container .banner .banner-text .subtitle {
|
font-size: 28rpx;
|
opacity: 0.9;
|
display: block;
|
text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2);
|
}
|
.index-container .quick-entry {
|
display: flex;
|
padding: 40rpx 20rpx;
|
background: #fff;
|
margin-bottom: 20rpx;
|
}
|
.index-container .quick-entry .entry-item {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
}
|
.index-container .quick-entry .entry-item .icon-wrapper {
|
width: 100rpx;
|
height: 100rpx;
|
border-radius: 30rpx;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
margin-bottom: 16rpx;
|
box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.1);
|
}
|
.index-container .quick-entry .entry-item .icon-wrapper image {
|
width: 50rpx;
|
height: 50rpx;
|
}
|
.index-container .quick-entry .entry-item text {
|
font-size: 26rpx;
|
color: #333;
|
}
|
.index-container .section {
|
background: #fff;
|
margin-bottom: 20rpx;
|
padding: 30rpx;
|
}
|
.index-container .section .section-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 30rpx;
|
}
|
.index-container .section .section-header .title {
|
font-size: 34rpx;
|
font-weight: bold;
|
color: #333;
|
position: relative;
|
padding-left: 20rpx;
|
}
|
.index-container .section .section-header .title:before {
|
content: "";
|
position: absolute;
|
left: 0;
|
top: 50%;
|
transform: translateY(-50%);
|
width: 6rpx;
|
height: 30rpx;
|
background: #0066cc;
|
border-radius: 3rpx;
|
}
|
.index-container .section .section-header .more {
|
display: flex;
|
align-items: center;
|
color: #666;
|
font-size: 26rpx;
|
}
|
.index-container .section .section-header .more .icon-arrow-right {
|
width: 26rpx;
|
height: 26rpx;
|
margin-left: 6rpx;
|
}
|
.index-container .news-list .news-item {
|
position: relative;
|
margin-bottom: 30rpx;
|
border-radius: 24rpx;
|
overflow: hidden;
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
|
}
|
.index-container .news-list .news-item .news-image {
|
position: relative;
|
height: 360rpx;
|
}
|
.index-container .news-list .news-item .news-image image {
|
width: 100%;
|
height: 100%;
|
}
|
.index-container .news-list .news-item .news-image .overlay {
|
position: absolute;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
height: 50%;
|
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
|
}
|
.index-container .news-list .news-item .news-info {
|
position: absolute;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
padding: 30rpx;
|
z-index: 1;
|
}
|
.index-container .news-list .news-item .news-info .title {
|
font-size: 32rpx;
|
color: #fff;
|
font-weight: bold;
|
margin-bottom: 16rpx;
|
display: -webkit-box;
|
-webkit-box-orient: vertical;
|
-webkit-line-clamp: 2;
|
overflow: hidden;
|
}
|
.index-container .news-list .news-item .news-info .meta {
|
display: flex;
|
align-items: center;
|
}
|
.index-container .news-list .news-item .news-info .meta .tag {
|
font-size: 22rpx;
|
color: #fff;
|
background: #0f95b0;
|
padding: 4rpx 12rpx;
|
border-radius: 4rpx;
|
margin-right: 16rpx;
|
}
|
.index-container .news-list .news-item .news-info .meta .date {
|
font-size: 24rpx;
|
color: rgba(255, 255, 255, 0.8);
|
}
|
.index-container .featured-list {
|
margin: 0 -30rpx;
|
padding: 0 30rpx;
|
white-space: nowrap;
|
}
|
.index-container .featured-list .featured-item {
|
display: inline-block;
|
width: 400rpx;
|
height: 500rpx;
|
margin-right: 20rpx;
|
border-radius: 24rpx;
|
overflow: hidden;
|
position: relative;
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
|
}
|
.index-container .featured-list .featured-item:last-child {
|
margin-right: 0;
|
}
|
.index-container .featured-list .featured-item image {
|
width: 100%;
|
height: 100%;
|
}
|
.index-container .featured-list .featured-item .overlay {
|
position: absolute;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
height: 60%;
|
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
|
}
|
.index-container .featured-list .featured-item .featured-info {
|
position: absolute;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
padding: 30rpx;
|
z-index: 1;
|
}
|
.index-container .featured-list .featured-item .featured-info .title {
|
font-size: 34rpx;
|
color: #fff;
|
font-weight: bold;
|
margin-bottom: 12rpx;
|
display: block;
|
}
|
.index-container .featured-list .featured-item .featured-info .desc {
|
font-size: 26rpx;
|
color: rgba(255, 255, 255, 0.8);
|
margin-bottom: 20rpx;
|
display: block;
|
}
|
.index-container .featured-list .featured-item .featured-info .btn {
|
display: inline-block;
|
font-size: 26rpx;
|
color: #fff;
|
background: rgba(15, 149, 176, 0.3);
|
border: 1rpx solid rgba(255, 255, 255, 0.5);
|
padding: 10rpx 30rpx;
|
border-radius: 36rpx;
|
-webkit-backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
}
|
.index-container .featured-list .featured-item:active {
|
transform: scale(0.98);
|
}
|
.index-container .error-tip {
|
padding: 20rpx;
|
background: #fff;
|
color: #f56c6c;
|
text-align: center;
|
}
|