与牧同行-兽医端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

157 lines
2.5 KiB

  1. .page-container {
  2. background-color: #f5f7fa;
  3. min-height: 100vh;
  4. box-sizing: border-box;
  5. }
  6. /* 内容区域 */
  7. .content-scroll {
  8. height: 100vh;
  9. padding-top: calc(88rpx + var(--status-bar-height));
  10. box-sizing: border-box;
  11. }
  12. /* 文章头部 */
  13. .article-header {
  14. background-color: white;
  15. padding: 40rpx 32rpx 32rpx;
  16. margin-bottom: 20rpx;
  17. }
  18. .category-tag {
  19. display: inline-block;
  20. background-color: #E8F3FF;
  21. padding: 8rpx 20rpx;
  22. border-radius: 24rpx;
  23. margin-bottom: 24rpx;
  24. }
  25. .category-text {
  26. font-size: 24rpx;
  27. color: #4A90E2;
  28. font-weight: 500;
  29. }
  30. .article-title {
  31. font-size: 40rpx;
  32. color: #1a1a1a;
  33. font-weight: 700;
  34. line-height: 1.4;
  35. margin-bottom: 32rpx;
  36. }
  37. .article-meta {
  38. display: flex;
  39. align-items: center;
  40. justify-content: space-between;
  41. }
  42. .author-info {
  43. display: flex;
  44. align-items: center;
  45. flex: 1;
  46. }
  47. .author-avatar {
  48. width: 64rpx;
  49. height: 64rpx;
  50. border-radius: 50%;
  51. margin-right: 16rpx;
  52. border: 2rpx solid #f0f0f0;
  53. }
  54. .author-details {
  55. display: flex;
  56. flex-direction: column;
  57. }
  58. .author-name {
  59. font-size: 28rpx;
  60. color: #333;
  61. font-weight: 500;
  62. margin-bottom: 4rpx;
  63. }
  64. .publish-time {
  65. font-size: 24rpx;
  66. color: #999;
  67. }
  68. .view-info {
  69. display: flex;
  70. align-items: center;
  71. }
  72. .view-icon {
  73. width: 32rpx;
  74. height: 32rpx;
  75. margin-right: 8rpx;
  76. opacity: 0.7;
  77. }
  78. .view-count {
  79. font-size: 26rpx;
  80. color: #999;
  81. }
  82. .fl{
  83. margin-top: 30rpx;
  84. display: flex;
  85. gap: 20rpx;
  86. }
  87. .fl view{
  88. background-color: #F5F7FA;
  89. font-size: 24rpx;
  90. padding: 10rpx 20rpx;
  91. border-radius: 10rpx;
  92. }
  93. /* 文章内容 */
  94. .article-content {
  95. background-color: white;
  96. padding: 32rpx;
  97. }
  98. .article-summary {
  99. font-size: 30rpx;
  100. color: #666;
  101. line-height: 1.6;
  102. margin-bottom: 32rpx;
  103. padding: 24rpx;
  104. background-color: #f9f9f9;
  105. border-radius: 12rpx;
  106. border-left: 4rpx solid #4A90E2;
  107. }
  108. .article-body {
  109. font-size: 30rpx;
  110. line-height: 1.8;
  111. color: #333;
  112. }
  113. .content-text {
  114. font-size: 30rpx;
  115. line-height: 1.8;
  116. color: #333;
  117. white-space: pre-line;
  118. }
  119. .content-text p {
  120. margin-bottom: 32rpx;
  121. }
  122. /* 响应式调整 */
  123. @media (max-width: 375px) {
  124. .article-header,
  125. .article-content {
  126. padding: 24rpx;
  127. }
  128. .article-title {
  129. font-size: 36rpx;
  130. }
  131. .content-text {
  132. font-size: 28rpx;
  133. }
  134. }