From c4938f6f4e839890b032c75c7a57333a6a9157a9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 06 十一月 2025 17:06:10 +0800
Subject: [PATCH] 添加新闻功能

---
 wx/pages/index/index.wxss |  103 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 103 insertions(+), 0 deletions(-)

diff --git a/wx/pages/index/index.wxss b/wx/pages/index/index.wxss
index d2ef0c1..21269e1 100644
--- a/wx/pages/index/index.wxss
+++ b/wx/pages/index/index.wxss
@@ -252,6 +252,109 @@
   color: #0f172a;
 }
 
+/* 鏂伴椈妯″潡鏍峰紡 */
+.news-section {
+  padding: 0 20rpx 20rpx;
+  background: #ffffff;
+  border-radius: 20rpx;
+  margin-bottom: 24rpx;
+  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
+}
+
+.news-card {
+  display: flex;
+  padding: 24rpx;
+  border-bottom: 1rpx solid #f0f0f0;
+  transition: background-color 0.3s ease;
+}
+
+.news-card:last-child {
+  border-bottom: none;
+}
+
+.news-card:active {
+  background-color: #f8f9fa;
+}
+
+.news-content {
+  flex: 1;
+  min-width: 0;
+  padding-right: 20rpx;
+}
+
+.news-title {
+  font-size: 30rpx;
+  font-weight: 600;
+  color: #0f172a;
+  line-height: 1.4;
+  margin-bottom: 12rpx;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  overflow: hidden;
+}
+
+.news-summary {
+  font-size: 26rpx;
+  color: #64748b;
+  line-height: 1.5;
+  margin-bottom: 12rpx;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  overflow: hidden;
+}
+
+.news-meta {
+  display: flex;
+  align-items: center;
+  gap: 8rpx;
+}
+
+.author {
+  font-size: 22rpx;
+  color: #94a3b8;
+}
+
+.separator {
+  font-size: 22rpx;
+  color: #cbd5e1;
+}
+
+.time {
+  font-size: 22rpx;
+  color: #94a3b8;
+}
+
+.news-thumb {
+  width: 160rpx;
+  height: 120rpx;
+  flex-shrink: 0;
+  border-radius: 12rpx;
+  overflow: hidden;
+}
+
+.thumb-image {
+  width: 100%;
+  height: 100%;
+  object-fit: cover;
+}
+
+.view-more {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 24rpx;
+  color: #007aff;
+  font-size: 28rpx;
+  font-weight: 500;
+}
+
+.arrow {
+  margin-left: 8rpx;
+  font-size: 32rpx;
+}
+
 /* 绛涢�夋爮鏍峰紡 */
 .filter-bar {
   background: #ffffff;

--
Gitblit v1.8.0