homepage.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /* pages/homepage/homepage.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background-color: #f5f7fa;
  5. padding-bottom: 120rpx;
  6. }
  7. .header {
  8. position: relative;
  9. width: 100%;
  10. height: 320rpx;
  11. margin-top: -32rpx;
  12. }
  13. .background {
  14. position: absolute;
  15. top: 0;
  16. left: 0;
  17. width: 101%;
  18. height: 100%;
  19. }
  20. .logo {
  21. position: absolute;
  22. left: 32rpx;
  23. bottom: 80rpx;
  24. width: 280rpx;
  25. height: 100rpx;
  26. z-index: 2;
  27. }
  28. .welcome-card {
  29. position: absolute;
  30. left: 4%;
  31. /* 使用百分比替代固定像素 */
  32. top: 128px;
  33. /* 顶部距离可以保持固定,或根据需要调整 */
  34. width: 92%;
  35. /* 宽度占父容器的 96%,留出左右 2% 的边距 */
  36. height: 188px;
  37. /* 高度可以根据需要调整 */
  38. opacity: 1;
  39. background-color: #fff;
  40. border-radius: 8px;
  41. /* 圆角 */
  42. box-shadow: 0 4px 10px 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: 100%;
  52. /* 高度与 .welcome-card 一致 */
  53. opacity: 1;
  54. background-color: #f0f0f0;
  55. /* 背景色 */
  56. border-radius: 8px;
  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: 0px;
  69. line-height: 24px;
  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. }
  102. .notice-item {
  103. font-size: 26rpx;
  104. line-height: 1.8;
  105. margin-bottom: 16rpx;
  106. color: #999;
  107. position: relative;
  108. top: 100rpx;
  109. /* 向下移动 10rpx */
  110. }
  111. .tab-bar {
  112. position: fixed;
  113. bottom: 0;
  114. width: 100%;
  115. height: 100rpx;
  116. background: #fff;
  117. display: flex;
  118. padding-bottom: env(safe-area-inset-bottom);
  119. border-top: 1rpx solid #eee;
  120. }
  121. .tab-item {
  122. flex: 1;
  123. display: flex;
  124. flex-direction: column;
  125. align-items: center;
  126. justify-content: center;
  127. font-size: 24rpx;
  128. color: #999;
  129. }
  130. .tab-item.active {
  131. color: #4080FF;
  132. }
  133. .divider {
  134. left: 36px;
  135. top: 201px;
  136. width: 15px;
  137. height: 0px;
  138. opacity: 1;
  139. border: 1px solid rgba(232, 232, 232, 1);
  140. }