peng
2025-11-06 c4938f6f4e839890b032c75c7a57333a6a9157a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/* pages/news/detail.wxss */
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
}
 
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100rpx 0;
}
 
.loading {
  width: 40rpx;
  height: 40rpx;
  border: 4rpx solid #f3f3f3;
  border-top: 4rpx solid #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20rpx;
}
 
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
 
.loading-text {
  font-size: 28rpx;
  color: #999;
}
 
.news-detail {
  padding: 20rpx;
}
 
.news-header {
  background: white;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}
 
.news-title {
  font-size: 36rpx;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20rpx;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
 
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12rpx;
  margin-bottom: 16rpx;
}
 
.author {
  font-size: 26rpx;
  color: #666;
}
 
.separator {
  font-size: 26rpx;
  color: #ddd;
}
 
.time {
  font-size: 26rpx;
  color: #999;
}
 
.update-time {
  font-size: 24rpx;
  color: #999;
}
 
.news-cover {
  background: white;
  border-radius: 16rpx;
  overflow: hidden;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}
 
.cover-image {
  width: 100%;
  display: block;
}
 
.news-content {
  background: white;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
 
.news-content rich-text {
  font-size: 30rpx;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: block;
}
 
/* 富文本内容样式 */
.news-content rich-text image,
.news-content rich-text img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 12rpx;
  margin: 20rpx 0;
  display: block !important;
  box-sizing: border-box;
}
 
.news-content rich-text p {
  margin: 0 0 20rpx 0;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
 
/* 确保所有富文本元素都不会超出容器 */
.news-content rich-text view,
.news-content rich-text div,
.news-content rich-text span {
  max-width: 100% !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}
 
/* 特别处理表格 */
.news-content rich-text table {
  max-width: 100% !important;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
}
 
.news-content rich-text td,
.news-content rich-text th {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
 
/* 处理可能的内联样式 */
.news-content rich-text image[style*="width"],
.news-content rich-text img[style*="width"],
.news-content rich-text div[style*="width"],
.news-content rich-text p[style*="width"] {
  max-width: 100% !important;
}