Files
MiniProgram/DailyFortuneGuide/pages/home/index.ttss

260 lines
3.8 KiB
Plaintext
Raw Normal View History

2025-11-09 18:41:07 +08:00
.page {
position: relative;
min-height: 100vh;
padding: 0 24rpx 80rpx;
box-sizing: border-box;
}
.glow-layer {
position: absolute;
inset: 0;
overflow: hidden;
}
.glow {
position: absolute;
border-radius: 999px;
filter: blur(120rpx);
opacity: 0.6;
}
.glow-one {
width: 320rpx;
height: 320rpx;
top: 60rpx;
right: -80rpx;
background: #ff6ac1;
}
.glow-two {
width: 260rpx;
height: 260rpx;
bottom: 300rpx;
left: -100rpx;
background: #6c7bff;
}
.glow-three {
width: 220rpx;
height: 220rpx;
bottom: 80rpx;
right: 20rpx;
background: #48d2c0;
}
.content {
position: relative;
z-index: 1;
min-height: 100vh;
box-sizing: border-box;
}
.hero {
margin-bottom: 32rpx;
}
.hero-text {
margin-bottom: 20rpx;
}
.hero-label {
font-size: 22rpx;
color: rgba(255, 255, 255, 0.6);
letter-spacing: 4rpx;
}
.hero-title {
display: block;
margin-top: 12rpx;
font-size: 48rpx;
font-weight: 700;
color: #fff3d6;
}
.hero-desc {
display: block;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.7);
margin-top: 12rpx;
}
.hero-tags {
display: flex;
gap: 16rpx;
}
.tag {
padding: 10rpx 26rpx;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
font-size: 24rpx;
}
.card {
background: rgba(255, 255, 255, 0.08);
border-radius: 26rpx;
padding: 32rpx;
margin-bottom: 28rpx;
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(8px);
}
.card-header {
display: flex;
flex-direction: column;
gap: 6rpx;
margin-bottom: 20rpx;
}
.card-title {
font-size: 30rpx;
color: #fff9ea;
font-weight: 600;
}
.card-subtitle {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.55);
}
.form-item + .form-item {
margin-top: 28rpx;
}
.label {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.65);
margin-bottom: 12rpx;
display: block;
}
.picker-value {
width: 100%;
padding: 24rpx;
min-height: 72rpx;
border-radius: 20rpx;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.1);
font-size: 30rpx;
color: #fff7e3;
box-sizing: border-box;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: rgba(255, 255, 255, 0.4);
}
.city-row {
/* display: flex; */
align-items: center;
gap: 16rpx;
}
.locate-btn {
padding: 0 28rpx;
height: 68rpx;
line-height: 64rpx;
border-radius: 22rpx;
border: 1px solid rgba(255, 255, 255, 0.25);
color: #fff;
font-size: 24rpx;
background: transparent;
}
.cta-card .primary {
margin-top: 24rpx;
}
.cta-card .secondary {
margin-top: 16rpx;
}
.cta-text {
display: flex;
flex-direction: column;
gap: 6rpx;
}
.cta-title {
font-size: 30rpx;
color: #fff9ea;
font-weight: 600;
}
.cta-subtitle {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.6);
}
.tips-card {
margin-bottom: 80rpx;
}
.tips-label {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.6);
}
.tips-text {
display: block;
margin-top: 12rpx;
font-size: 28rpx;
line-height: 42rpx;
color: #fff7e3;
}
.loading-overlay {
position: fixed;
inset: 0;
background: rgba(5, 6, 15, 0.82);
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
}
.loading-dialog {
width: 520rpx;
padding: 48rpx 32rpx;
border-radius: 32rpx;
background: rgba(23, 27, 48, 0.92);
text-align: center;
}
.loading-spinner {
width: 88rpx;
height: 88rpx;
margin: 0 auto 24rpx;
border-radius: 50%;
border: 6rpx solid rgba(255, 255, 255, 0.12);
border-top-color: #ffb85c;
animation: spin 1.2s linear infinite;
}
.loading-text {
font-size: 30rpx;
color: #fff9eb;
}
.loading-subtext {
margin-top: 12rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.55);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}