index.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. page {
  2. background-color: $page-bg;
  3. color: $uni-text-color;
  4. }
  5. /* 顶部横向导航 */
  6. .top-nav-wrapper {
  7. position: fixed;
  8. top: calc(var(--status-bar-height) + 44px);
  9. left: 0;
  10. right: 0;
  11. z-index: 999;
  12. background-color: #fff;
  13. border-bottom: 1rpx solid #eee;
  14. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  15. }
  16. .top-nav {
  17. width: 100%;
  18. white-space: nowrap;
  19. padding: 0 10rpx;
  20. height: 88rpx;
  21. box-sizing: border-box;
  22. }
  23. .nav-tab {
  24. display: inline-block;
  25. padding: 0 28rpx;
  26. height: 88rpx;
  27. line-height: 88rpx;
  28. font-size: 28rpx;
  29. color: #666;
  30. text-align: center;
  31. flex-shrink: 0;
  32. position: relative;
  33. transition: color 0.25s ease;
  34. }
  35. .nav-tab.active {
  36. color: $j-primary-border-green;
  37. font-weight: 600;
  38. }
  39. .nav-tab.active::after {
  40. content: '';
  41. position: absolute;
  42. bottom: 0;
  43. left: 50%;
  44. transform: translateX(-50%);
  45. width: 48rpx;
  46. height: 6rpx;
  47. background-color: $j-primary-border-green;
  48. border-radius: 3rpx;
  49. }
  50. /* 内容区域 - 减少顶部空白 */
  51. .content-wrapper {
  52. padding-top: 80rpx;
  53. padding-bottom: 40rpx;
  54. background-color: #f0f0f0;
  55. }
  56. /* 模块卡片容器 */
  57. .nav {
  58. margin: 0 24rpx;
  59. background-color: $uni-bg-color;
  60. border-radius: 16rpx;
  61. box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  62. overflow: hidden;
  63. .nav-content {
  64. padding: 24rpx 10rpx 10rpx;
  65. display: flex;
  66. flex-direction: row;
  67. flex-wrap: wrap;
  68. .nav-item {
  69. position: relative;
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. justify-content: flex-start;
  74. width: 25%;
  75. padding: 16rpx 0 24rpx;
  76. box-sizing: border-box;
  77. &:active {
  78. opacity: 0.7;
  79. }
  80. span {
  81. font-size: 60rpx;
  82. color: $j-primary-border-green;
  83. margin-bottom: 12rpx;
  84. line-height: 1;
  85. }
  86. label {
  87. font-size: 30rpx;
  88. color: $uni-text-color;
  89. width: 90%;
  90. text-align: center;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. white-space: nowrap;
  94. line-height: 1.4;
  95. }
  96. .badge {
  97. position: absolute;
  98. top: 6rpx;
  99. left: 55%;
  100. min-width: 32rpx;
  101. height: 32rpx;
  102. line-height: 32rpx;
  103. font-size: 20rpx;
  104. padding: 0 8rpx;
  105. border-radius: 32rpx;
  106. background-color: #ff4949;
  107. color: #fff;
  108. font-style: normal;
  109. text-align: center;
  110. box-sizing: border-box;
  111. margin-left: 10rpx;
  112. }
  113. }
  114. }
  115. }