123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- /* pages/homepage/homepage.wxss */
- .container {
- min-height: 100vh;
- background-color: #f5f7fa;
- padding-bottom: 120rpx;
- }
- .header {
- position: relative;
- width: 100%;
- height: 320rpx;
- margin-top: -32rpx;
- }
- .background {
- position: absolute;
- top: 0;
- left: 0;
- width: 101%;
- height: 100%;
- }
- .logo {
- position: absolute;
- left: 32rpx;
- bottom: 80rpx;
- width: 280rpx;
- height: 100rpx;
- z-index: 2;
- }
- .welcome-card {
- position: absolute;
- left: 4%;
- /* 使用百分比替代固定像素 */
- top: 128px;
- /* 顶部距离可以保持固定,或根据需要调整 */
- width: 92%;
- /* 宽度占父容器的 96%,留出左右 2% 的边距 */
- height: 188px;
- /* 高度可以根据需要调整 */
- opacity: 1;
- background-color: #fff;
- border-radius: 8px;
- /* 圆角 */
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
- overflow: hidden;
- }
- .card-bg {
- position: absolute;
- width: 105%;
- /* 宽度超出 .welcome-card 的 5%,实现覆盖效果 */
- left: -2.5%;
- /* 向左偏移 2.5%,使背景居中 */
- height: 100%;
- /* 高度与 .welcome-card 一致 */
- opacity: 1;
- background-color: #f0f0f0;
- /* 背景色 */
- border-radius: 8px;
- /* 圆角 */
- }
- .card-content {
- position: relative;
- padding: 40rpx 32rpx;
- z-index: 2;
- }
- .title {
- font-size: 36rpx;
- font-weight: 500;
- margin-bottom: 12rpx;
- letter-spacing: 0px;
- line-height: 24px;
- color: rgba(46, 48, 56, 1);
- text-align: left;
- vertical-align: top;
- font-family: 'PingFang SC', sans-serif;
- }
- .subtitle {
- font-size: 26rpx;
- color: #999;
- margin-bottom: 32rpx;
- letter-spacing: 4rpx;
- }
- .bind-button {
- width: 200rpx !important;
- height: 70rpx;
- line-height: 70rpx;
- background: #4080FF;
- color: #fff;
- font-family: 'PingFang SC', sans-serif;
- font-size: 30rpx;
- border-radius: 40rpx;
- margin-left: 0rpx;
- /* 向左50rpx */
- top: 40rpx;
- /* 向下50rpx */
- }
- .bind-button::after {
- border: none;
- }
- .notice-list {
- margin: 32rpx;
- color: #666;
-
- }
- .notice-item {
- font-size: 26rpx;
- line-height: 1.8;
- margin-bottom: 16rpx;
- color: #999;
- position: relative;
- top: 100rpx;
- /* 向下移动 10rpx */
- }
- .tab-bar {
- position: fixed;
- bottom: 0;
- width: 100%;
- height: 100rpx;
- background: #fff;
- display: flex;
- padding-bottom: env(safe-area-inset-bottom);
- border-top: 1rpx solid #eee;
- }
- .tab-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: 24rpx;
- color: #999;
- }
- .tab-item.active {
- color: #4080FF;
- }
- .divider {
- left: 36px;
- top: 201px;
- width: 15px;
- height: 0px;
- opacity: 1;
- border: 1px solid rgba(232, 232, 232, 1);
- }
|