ai-c/pages/city-selector/city-selector.wxss
2026-02-02 18:21:32 +08:00

138 lines
2.2 KiB
Plaintext

/* pages/city-selector/city-selector.wxss */
.page {
min-height: 100vh;
background: linear-gradient(180deg, #F8F5FF 0%, #FFF5F8 100%);
}
/* ========== 固定导航栏 ========== */
.nav-container {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
background: rgba(242, 237, 255, 0.6);
backdrop-filter: blur(10px);
}
.status-bar {
background: transparent;
}
.nav-bar {
display: flex;
align-items: center;
justify-content: center;
padding: 0 32rpx;
background: transparent;
position: relative;
}
.nav-back {
position: absolute;
left: 32rpx;
top: 50%;
transform: translateY(-50%);
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.back-icon {
width: 48rpx;
height: 48rpx;
}
.nav-title {
font-size: 36rpx;
font-weight: 700;
color: #1F2937;
line-height: 1;
}
/* ========== 内容滚动区域 ========== */
.content-scroll {
height: 100vh;
box-sizing: border-box;
}
/* ========== 分区 ========== */
.section {
padding: 32rpx;
}
.section-title {
font-size: 32rpx;
font-weight: 700;
color: #1F2937;
margin-bottom: 24rpx;
}
/* ========== 热门城市 ========== */
.hot-cities {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
}
.city-tag {
padding: 20rpx 40rpx;
background: rgba(255, 255, 255, 0.8);
border-radius: 16rpx;
font-size: 28rpx;
color: #4B5563;
border: 2rpx solid transparent;
transition: all 0.2s;
}
.city-tag.active {
background: linear-gradient(135deg, #A78BFA 0%, #EC4899 100%);
color: #FFFFFF;
font-weight: 600;
border-color: transparent;
}
/* ========== 城市分组 ========== */
.city-groups {
margin-top: 16rpx;
}
.city-group {
margin-bottom: 32rpx;
}
.group-letter {
font-size: 28rpx;
font-weight: 700;
color: #A78BFA;
margin-bottom: 16rpx;
padding-left: 8rpx;
}
.group-cities {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.city-item {
padding: 16rpx 32rpx;
background: rgba(255, 255, 255, 0.6);
border-radius: 12rpx;
font-size: 26rpx;
color: #4B5563;
border: 2rpx solid transparent;
transition: all 0.2s;
}
.city-item.active {
background: linear-gradient(135deg, #A78BFA 0%, #EC4899 100%);
color: #FFFFFF;
font-weight: 600;
border-color: transparent;
}