/* pages/homepage/homepage.wxss */ .container1 { height: 100vh; width: 100vw; overflow: hidden; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 0 0; box-sizing: border-box; } .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: 250rpx; width: 92%; height: 370rpx; opacity: 1; background-color: #fff; border-radius: 16rpx; /* 圆角 */ box-shadow: 0 16rpx 20rpx rgba(0, 0, 0, 0.1); overflow: hidden; } .card-bg { position: absolute; width: 106%; left: -3.5%; /* 向左偏移 2.5%,使背景居中 */ margin-top: -1%; height: 106%; /* 高度与 .welcome-card 一致 */ opacity: 1; background-color: #f0f0f0; /* 背景色 */ border-radius: 16rpx; } .card-content { position: relative; padding: 40rpx 32rpx; z-index: 2; } .title { font-size: 36rpx; font-weight: 500; margin-bottom: 12rpx; letter-spacing: 0rpx; line-height: 48rpx; 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; top: 50rpx; } .bind-button::after { border: none; } .notice-list { margin: 32rpx; color: #666; font-size: 26rpx; line-height: 1.6; margin-top: auto; } .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: 72rpx; top: 402rpx; width: 30rpx; height: 0rpx; opacity: 1; border: 1rpx solid rgba(232, 232, 232, 1); } /* 如果需要内容可滚动但背景固定,可以添加一个内容容器 */ /* .scrollable-content { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; } */