与牧同行-小程序用户端
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.

145 lines
2.4 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. /* 文章内容 */
  83. .article-content {
  84. background-color: white;
  85. padding: 32rpx;
  86. }
  87. .article-summary {
  88. font-size: 30rpx;
  89. color: #666;
  90. line-height: 1.6;
  91. margin-bottom: 32rpx;
  92. padding: 24rpx;
  93. background-color: #f9f9f9;
  94. border-radius: 12rpx;
  95. border-left: 4rpx solid #4A90E2;
  96. }
  97. .article-body {
  98. font-size: 30rpx;
  99. line-height: 1.8;
  100. color: #333;
  101. }
  102. .content-text {
  103. font-size: 30rpx;
  104. line-height: 1.8;
  105. color: #333;
  106. white-space: pre-line;
  107. }
  108. .content-text p {
  109. margin-bottom: 32rpx;
  110. }
  111. /* 响应式调整 */
  112. @media (max-width: 375px) {
  113. .article-header,
  114. .article-content {
  115. padding: 24rpx;
  116. }
  117. .article-title {
  118. font-size: 36rpx;
  119. }
  120. .content-text {
  121. font-size: 28rpx;
  122. }
  123. }