huaanglimeng/pages/zodiac/index.wxss

469 lines
8.6 KiB
Plaintext

/* 保持与整体风格一致的暗色背景 */
page {
background-color: #1a1a2e;
height: 100%;
box-sizing: border-box;
}
.container {
padding: 100rpx 40rpx 60rpx; /* Increased top padding to avoid overlap */
box-sizing: border-box;
min-height: 100%;
display: flex;
flex-direction: column;
}
/* 自定义返回按钮样式 (同塔罗页) */
.nav-back {
position: absolute;
top: 30rpx;
left: 30rpx;
display: flex;
align-items: center;
z-index: 100;
padding: 10rpx 20rpx;
border-radius: 30rpx;
background: rgba(255, 255, 255, 0.05);
}
.back-icon {
font-size: 32rpx;
margin-right: 8rpx;
color: #c9a0dc;
}
.back-text {
font-size: 26rpx;
color: #c9a0dc;
letter-spacing: 2rpx;
}
/* --- 加载状态样式 --- */
.loading-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-bottom: 100rpx;
}
.loading-symbol {
font-size: 60px;
color: #e94560;
margin-bottom: 20px;
animation: breathe 2s infinite alternate;
}
.loading-text {
font-size: 16px;
color: rgba(255, 255, 255, 0.7);
letter-spacing: 2px;
}
@keyframes breathe {
0% { transform: scale(0.9); opacity: 0.7; text-shadow: 0 0 10px rgba(233, 69, 96, 0.3); }
100% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 25px rgba(233, 69, 96, 0.8); }
}
/* --- 列表状态样式 --- */
.daily-overview {
background: rgba(255, 255, 255, 0.05); /* Unified dark theme background */
border-radius: 12px;
padding: 15px; /* Reduced padding */
margin-bottom: 20px; /* Reduced margin */
border: 1px solid rgba(255, 255, 255, 0.1);
animation: slideUp 0.6s ease;
}
.overview-title {
font-size: 15px; /* SLightly smaller */
font-weight: bold;
color: #fff; /* White text */
margin-bottom: 8px;
}
.overview-content {
font-size: 12px;
color: rgba(255, 255, 255, 0.8); /* Light grey text */
line-height: 1.5;
margin-bottom: 10px;
text-align: justify;
}
.overview-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.tag-item {
font-size: 10px;
background-color: rgba(255, 255, 255, 0.1); /* Darker tag bg */
color: #a29bfe; /* Light purple tag text */
padding: 3px 8px;
border-radius: 10px;
font-weight: 500;
border: 1px solid rgba(162, 155, 254, 0.3);
}
.header-tip {
font-size: 16px; /* Smaller header */
margin-bottom: 15px; /* Reduced margin */
text-align: center;
color: #fff;
opacity: 1;
letter-spacing: 1px;
font-weight: bold;
}
.grid-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.zodiac-item {
width: 30%; /* 三列布局 */
background-color: rgba(255, 255, 255, 0.08);
margin-bottom: 12px; /* Reduced margin */
padding: 12px 0; /* Reduced padding */
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid rgba(255, 255, 255, 0.1);
cursor: pointer;
}
.zodiac-symbol {
font-size: 24px; /* Smaller symbol */
margin-bottom: 4px;
color: rgb(240, 240, 255);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.zodiac-name {
font-size: 12px; /* Smaller name */
color: #fff;
opacity: 1;
font-weight: 500;
}
.zodiac-range {
font-size: 9px; /* Smaller range */
color: rgba(255, 255, 255, 0.6);
margin-top: 2px;
}
/* --- 结果状态样式 --- */
.result-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
flex: 1;
width: 100%;
}
.result-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
animation: fadeIn 0.8s ease;
}
.result-symbol {
font-size: 50px;
margin-bottom: 10px;
color: #e94560;
}
.today-title {
font-size: 18px;
color: #fff;
opacity: 1;
font-weight: 500;
letter-spacing: 2px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.fortune-card {
width: 100%;
padding: 25px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 16px;
box-sizing: border-box;
margin-bottom: 40px;
border: 1px solid rgba(233, 69, 96, 0.3);
animation: slideUp 0.8s ease;
display: flex;
flex-direction: column;
}
/* --- 新版结果展示样式 --- */
.keyword-section {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
}
.keyword-label {
font-size: 12px;
color: #a29bfe;
opacity: 0.8;
margin-bottom: 5px;
}
.keyword-text {
font-size: 36px;
color: #fff;
font-weight: bold;
letter-spacing: 4px;
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
margin-bottom: 15px;
}
.core-energy {
background: rgba(255, 255, 255, 0.05);
padding: 10px 15px;
border-radius: 8px;
width: 100%;
box-sizing: border-box;
}
.energy-label {
display: block;
font-size: 12px;
color: #fbaceb;
margin-bottom: 4px;
}
.energy-text {
font-size: 14px;
color: #fff;
line-height: 1.5;
}
.divider {
width: 100%;
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: 20px 0;
}
.section-block {
margin-bottom: 25px;
width: 100%;
}
.section-title {
display: block;
font-size: 15px;
color: #e94560;
font-weight: bold;
margin-bottom: 10px;
}
.section-content {
font-size: 14px;
color: rgba(255, 255, 255, 0.9);
line-height: 1.6;
text-align: left;
}
/* 评分网格 */
.rating-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.rating-item {
width: 48%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
background: rgba(0,0,0,0.2);
padding: 8px 10px;
border-radius: 6px;
box-sizing: border-box;
}
.rating-label {
font-size: 12px;
color: rgba(255,255,255,0.7);
}
.stars {
font-size: 12px;
color: #ffd700;
letter-spacing: 2px;
}
/* 幸运元素 */
.lucky-grid {
display: flex;
flex-direction: column;
gap: 8px;
background: rgba(0,0,0,0.2);
padding: 15px;
border-radius: 8px;
}
.lucky-item {
font-size: 14px;
color: rgba(255,255,255,0.8);
}
.lucky-item .highlight {
color: #fff;
font-weight: bold;
margin-left: 5px;
}
.last-section {
margin-bottom: 0;
}
/* 总体结论样式 */
.summary-text {
font-size: 13px;
color: rgba(255, 255, 255, 0.5); /* 中性灰 */
margin-top: -20px; /* 调整间距 */
margin-bottom: 30px;
text-align: center;
max-width: 80%;
line-height: 1.5;
}
.action-area {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
margin-bottom: 30px;
width: 100%;
}
.verify-btn {
background: linear-gradient(135deg, #e94560, #8b3a62);
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 12px 30px;
border-radius: 25px;
box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
letter-spacing: 1px;
animation: pulseBtn 2s infinite;
}
.share-btn {
background: linear-gradient(135deg, #7a5cff, #005bea); /* 不同的蓝紫色渐变 */
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 12px 30px;
border-radius: 25px;
box-shadow: 0 4px 15px rgba(122, 92, 255, 0.4);
letter-spacing: 1px;
width: auto !important;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1.2;
}
@keyframes pulseBtn {
0% { transform: scale(1); box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4); }
50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6); }
100% { transform: scale(1); box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4); }
}
.back-btn {
font-size: 14px;
color: #c9a0dc; /* Light purple to match theme but be visible */
opacity: 0.9;
text-decoration: underline;
padding: 10px; /* Increased padding */
}
/* 简单的动效 */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* 关系模块样式 */
.status-divider {
width: 100%;
height: 1px;
background-color: rgba(255, 255, 255, 0.1);
margin: 15px 0;
}
.match-module {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px 0;
cursor: pointer;
}
.match-trigger {
font-size: 14px;
color: #ffccff; /* Brighter pink/purple */
opacity: 1;
text-decoration: underline;
margin-bottom: 5px;
font-weight: 500;
}
.match-content {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 15px;
animation: fadeIn 0.5s ease;
}
.match-intro {
font-size: 12px;
color: #fff;
opacity: 0.6;
margin-bottom: 8px;
}
.match-name {
font-size: 18px;
color: #fff;
font-weight: bold;
margin-top: -20px; /* 调整间距 */
margin-bottom: 30px;
text-align: center;
max-width: 80%;
line-height: 1.5;
}
/* 免责声明 */
.disclaimer {
width: 100%;
text-align: center;
padding-bottom: 30px;
margin-top: 10px;
}
.disclaimer text {
font-size: 11px;
color: rgba(255, 255, 255, 0.3);
}