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.
146 lines
2.4 KiB
146 lines
2.4 KiB
.page-container {
|
|
background-color: #f5f7fa;
|
|
min-height: 100vh;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 内容区域 */
|
|
.content-scroll {
|
|
height: 100vh;
|
|
padding-top: calc(88rpx + var(--status-bar-height));
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 文章头部 */
|
|
.article-header {
|
|
background-color: white;
|
|
padding: 40rpx 32rpx 32rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.category-tag {
|
|
display: inline-block;
|
|
background-color: #E8F3FF;
|
|
padding: 8rpx 20rpx;
|
|
border-radius: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.category-text {
|
|
font-size: 24rpx;
|
|
color: #4A90E2;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 40rpx;
|
|
color: #1a1a1a;
|
|
font-weight: 700;
|
|
line-height: 1.4;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.article-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.author-info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.author-avatar {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
margin-right: 16rpx;
|
|
border: 2rpx solid #f0f0f0;
|
|
}
|
|
|
|
.author-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.author-name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 500;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.publish-time {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.view-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.view-icon {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
margin-right: 8rpx;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.view-count {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 文章内容 */
|
|
.article-content {
|
|
background-color: white;
|
|
padding: 32rpx;
|
|
}
|
|
|
|
.article-summary {
|
|
font-size: 30rpx;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
margin-bottom: 32rpx;
|
|
padding: 24rpx;
|
|
background-color: #f9f9f9;
|
|
border-radius: 12rpx;
|
|
border-left: 4rpx solid #4A90E2;
|
|
}
|
|
|
|
.article-body {
|
|
font-size: 30rpx;
|
|
line-height: 1.8;
|
|
color: #333;
|
|
}
|
|
|
|
.content-text {
|
|
font-size: 30rpx;
|
|
line-height: 1.8;
|
|
color: #333;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.content-text p {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 375px) {
|
|
.article-header,
|
|
.article-content {
|
|
padding: 24rpx;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.content-text {
|
|
font-size: 28rpx;
|
|
}
|
|
}
|