huaanglimeng/pages/home/home.wxss

90 lines
1.5 KiB
Plaintext
Raw Normal View History

page {
background-color: #1a1a2e;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container {
display: flex;
flex-direction: column;
width: 100%;
padding: 40px 30px;
box-sizing: border-box;
align-items: flex-start; /* 左对齐更有叙述感 */
}
/* 顶部引导文案 */
.header-text {
margin-top: 40px;
margin-bottom: 60px;
display: flex;
flex-direction: column;
}
.line-one {
color: #fff;
font-size: 28px;
font-weight: 300; /* 细一点显得高级 */
margin-bottom: 10px;
opacity: 0.9;
}
.line-two {
color: #fff;
font-size: 22px;
font-weight: 300;
opacity: 0.7; /* 稍微淡一点 */
}
/* 选择区域 */
.selection-area {
width: 100%;
display: flex;
flex-direction: column;
gap: 25px; /* 卡片之间的间距 */
}
/* 方向卡片 */
.direction-card {
background-color: rgba(255, 255, 255, 0.05); /* 极低透明度背景 */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 25px;
display: flex;
align-items: center;
transition: all 0.3s ease;
}
/* 点击/按压时的效果 */
.card-hover {
background-color: rgba(255, 255, 255, 0.1);
transform: scale(0.98);
}
.card-icon {
font-size: 32px;
margin-right: 20px;
}
.card-content {
display: flex;
flex-direction: column;
}
.card-title {
color: #e94560;
font-size: 18px;
font-weight: bold;
letter-spacing: 1px;
margin-bottom: 5px;
}
.card-subtitle {
color: #ccc;
font-size: 12px;
opacity: 0.6;
}