tzxq.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. .tzxqcontainer {
  2. position: relative;
  3. width: 100%;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. box-sizing: border-box;
  8. }
  9. /* 背景图片样式 */
  10. .header {
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. z-index: -1; /* 负值z-index确保在最底层 */
  16. }
  17. .background {
  18. width: 100%;
  19. height: auto;
  20. }
  21. .custom-nav {
  22. display: flex;
  23. align-items: center;
  24. height: 90rpx;
  25. margin-bottom: 20rpx;
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. z-index: 1000;
  31. padding: 0 20rpx;
  32. padding-top: 44px; /* 适配iPhone状态栏 */
  33. }
  34. .back-icon {
  35. position: fixed;
  36. top: 130rpx;
  37. left: 30rpx;
  38. z-index: 999;
  39. width: 40rpx;
  40. height: 40rpx;
  41. }
  42. .nav-title {
  43. flex: 1;
  44. text-align: center;
  45. font-size: 34rpx;
  46. color: #fff;
  47. }
  48. /* 滚动区域样式 */
  49. .notice-scroll-view {
  50. height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */
  51. width: 100%;
  52. position: relative;
  53. z-index: 1;
  54. margin-top: calc(90rpx + 44px);
  55. }
  56. /* 通知详情卡片容器样式 */
  57. .notice-detail-wrapper {
  58. padding: 30rpx;
  59. box-sizing: border-box;
  60. width: 100%;
  61. }
  62. /* 通知详情卡片样式 */
  63. .notice-detail {
  64. background-color: #fff;
  65. border-radius: 20rpx;
  66. padding: 40rpx 30rpx;
  67. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  68. width: 100%;
  69. box-sizing: border-box;
  70. }
  71. /* 通知标题样式 */
  72. .notice-title {
  73. font-size: 36rpx;
  74. font-weight: bold;
  75. text-align: center;
  76. margin-bottom: 30rpx;
  77. }
  78. /* 标题下方分隔线 */
  79. .title-divider {
  80. height: 2rpx;
  81. background-color: #eee;
  82. margin: 20rpx 0 30rpx;
  83. }
  84. /* 通知内容样式 */
  85. .notice-content {
  86. font-size: 28rpx;
  87. line-height: 1.8;
  88. color: #333;
  89. margin-bottom: 40rpx;
  90. }
  91. /* 通知底部落款样式 */
  92. .notice-footer {
  93. text-align: right;
  94. font-size: 26rpx;
  95. color: #666;
  96. margin-top: 30rpx;
  97. }
  98. .notice-signature {
  99. margin-bottom: 10rpx;
  100. }
  101. .notice-footer-date {
  102. color: #999;
  103. }
  104. /* 适配小屏设备 */
  105. @media screen and (max-width: 320px) {
  106. .notice-title {
  107. font-size: 36rpx;
  108. }
  109. .notice-content {
  110. font-size: 30rpx;
  111. }
  112. .notice-detail {
  113. padding: 30rpx 20rpx;
  114. }
  115. }
  116. /* 适配大屏设备 */
  117. @media screen and (min-width: 768px) {
  118. .notice-detail-wrapper {
  119. width: 90%;
  120. margin-left: auto;
  121. margin-right: auto;
  122. }
  123. }