FirstBangDing.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /* pages/homepage/homepage.wxss */
  2. .container1 {
  3. height: 90vh;
  4. display: flex;
  5. flex-direction: column;
  6. align-items: center;
  7. justify-content: space-between;
  8. padding: 0 0;
  9. box-sizing: border-box;
  10. }
  11. .header {
  12. position: relative;
  13. width: 100%;
  14. height: 320rpx;
  15. margin-top: -32rpx;
  16. }
  17. .background {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. width: 101%;
  22. height: 100%;
  23. }
  24. .logo {
  25. position: absolute;
  26. left: 32rpx;
  27. bottom: 80rpx;
  28. width: 280rpx;
  29. height: 100rpx;
  30. z-index: 2;
  31. }
  32. .welcome-card {
  33. position: absolute;
  34. left: 4%;
  35. top: 270rpx;
  36. width: 92%;
  37. height: 420rpx;
  38. opacity: 1;
  39. background-color: #fff;
  40. border-radius: 8rpx;
  41. /* 圆角 */
  42. box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
  43. overflow: hidden;
  44. }
  45. .card-bg {
  46. position: absolute;
  47. width: 105%;
  48. /* 宽度超出 .welcome-card 的 5%,实现覆盖效果 */
  49. left: -2.5%;
  50. /* 向左偏移 2.5%,使背景居中 */
  51. height: 104%;
  52. /* 高度与 .welcome-card 一致 */
  53. opacity: 1;
  54. background-color: #f0f0f0;
  55. /* 背景色 */
  56. border-radius: 16rpx;
  57. /* 圆角 */
  58. }
  59. .card-content {
  60. position: relative;
  61. padding: 40rpx 32rpx;
  62. z-index: 2;
  63. }
  64. .title {
  65. font-size: 36rpx;
  66. font-weight: 500;
  67. margin-bottom: 12rpx;
  68. letter-spacing: 0rpx;
  69. line-height: 48rpx;
  70. color: rgba(46, 48, 56, 1);
  71. text-align: left;
  72. vertical-align: top;
  73. font-family: 'PingFang SC', sans-serif;
  74. }
  75. .subtitle {
  76. font-size: 26rpx;
  77. color: #999;
  78. margin-bottom: 32rpx;
  79. letter-spacing: 4rpx;
  80. }
  81. .bind-button {
  82. width: 200rpx !important;
  83. height: 70rpx;
  84. line-height: 70rpx;
  85. background: #4080FF;
  86. color: #fff;
  87. font-family: 'PingFang SC', sans-serif;
  88. font-size: 30rpx;
  89. border-radius: 40rpx;
  90. margin-left: 0rpx;
  91. /* 向左50rpx */
  92. top: 40rpx;
  93. /* 向下50rpx */
  94. }
  95. .bind-button::after {
  96. border: none;
  97. }
  98. .notice-list {
  99. margin: 32rpx;
  100. color: #666;
  101. font-size: 26rpx;
  102. line-height: 1.6;
  103. margin-top: auto;
  104. }
  105. .notice-item {
  106. font-size: 26rpx;
  107. line-height: 1.8;
  108. margin-bottom: 16rpx;
  109. color: #999;
  110. position: relative;
  111. top: 100rpx;
  112. /* 向下移动 10rpx */
  113. }
  114. .tab-bar {
  115. position: fixed;
  116. bottom: 0;
  117. width: 100%;
  118. height: 100rpx;
  119. background: #fff;
  120. display: flex;
  121. padding-bottom: env(safe-area-inset-bottom);
  122. border-top: 1rpx solid #eee;
  123. }
  124. .tab-item {
  125. flex: 1;
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. justify-content: center;
  130. font-size: 24rpx;
  131. color: #999;
  132. }
  133. .tab-item.active {
  134. color: #4080FF;
  135. }
  136. .divider {
  137. left: 72rpx;
  138. top: 402rpx;
  139. width: 30rpx;
  140. height: 0rpx;
  141. opacity: 1;
  142. border: 2rpx solid rgba(232, 232, 232, 1);
  143. }