215 lines
3.5 KiB
Plaintext
215 lines
3.5 KiB
Plaintext
/* ========================================
|
|
首页样式
|
|
======================================== */
|
|
|
|
.home-page {
|
|
min-height: 100vh;
|
|
background: #f7f8fa;
|
|
}
|
|
|
|
/* ========== 自定义导航栏 (毛玻璃) ========== */
|
|
.custom-navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 999;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.navbar-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
|
|
.navbar-search {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
/* ========== 滚动区域 ========== */
|
|
.page-scroll {
|
|
height: 100vh;
|
|
}
|
|
|
|
/* ========== 轮播图区域 ========== */
|
|
.swiper-section {
|
|
padding: 20px 24px 0;
|
|
|
|
.banner-swiper {
|
|
height: 320px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.swiper-card {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
|
|
.banner-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.banner-title {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 24px 20px;
|
|
font-size: 30px;
|
|
font-weight: 500;
|
|
color: #fff;
|
|
background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
|
|
border-radius: 0 0 12px 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* ========== 导航组 ========== */
|
|
.nav-section {
|
|
margin: 24px 24px;
|
|
background: #fff;
|
|
border-radius: 16px;
|
|
padding: 24px 12px 12px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* ========== 推荐商家 section ========== */
|
|
.recommended-shops-section {
|
|
margin: 0 24px 20px;
|
|
background: #fff;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 24px 24px 12px;
|
|
|
|
.section-title-wrap {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.section-emoji {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 22px;
|
|
color: #969799;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.section-more {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.section-more-text {
|
|
font-size: 24px;
|
|
color: #1989fa;
|
|
}
|
|
|
|
.section-more-arrow {
|
|
font-size: 28px;
|
|
color: #1989fa;
|
|
margin-left: 2px;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
|
|
.recommended-shops-list {
|
|
/* 卡片之间用 1px 顶边线分割 */
|
|
.shop-card {
|
|
padding: 20px 20px;
|
|
|
|
.shop-image-wrap {
|
|
width: 160px;
|
|
height: 160px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* ========== 统一板块 ========== */
|
|
.main-tabs-section {
|
|
margin: 0 24px 20px;
|
|
background: #fff;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* 文章列表内容 */
|
|
.article-content {
|
|
padding: 0 20px 16px;
|
|
|
|
.article-item {
|
|
padding: 24px 0;
|
|
transition: transform 0.2s;
|
|
|
|
& + .article-item {
|
|
border-top: 1px solid #f2f3f5;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(0.98);
|
|
}
|
|
}
|
|
|
|
.empty-tip {
|
|
text-align: center;
|
|
padding: 80px 0;
|
|
font-size: 28px;
|
|
color: #969799;
|
|
}
|
|
}
|
|
|
|
/* 底部安全距离 */
|
|
.bottom-safe {
|
|
height: 40px;
|
|
}
|
|
|
|
/* ========== 文章卡片通用样式 ========== */
|
|
.article-card {
|
|
.card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 24px;
|
|
color: #969799;
|
|
|
|
.meta-source {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.meta-time {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.meta-read {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.meta-comment {
|
|
margin-left: 16px;
|
|
}
|
|
}
|
|
}
|