FirstBangDing.wxss 2.7 KB

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