|
@@ -146,17 +146,28 @@
|
|
|
border-radius: 12px;
|
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
|
|
|
padding: 24px;
|
|
|
- transition: box-shadow 0.2s;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
|
|
|
.news-item:hover {
|
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
|
+ transform: translateY(-2px);
|
|
|
+ }
|
|
|
+
|
|
|
+ .news-item:active {
|
|
|
+ transform: translateY(0px) scale(0.98);
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
|
+ transition: all 0.1s ease;
|
|
|
}
|
|
|
|
|
|
.news-image {
|
|
|
height: 320px;
|
|
|
margin-bottom: 20px;
|
|
|
overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
|
|
|
.news-image img {
|
|
@@ -164,23 +175,61 @@
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
object-fit: cover;
|
|
|
- transition: transform 0.5s ease;
|
|
|
+ transition: transform 0.3s ease;
|
|
|
}
|
|
|
|
|
|
.news-item:hover .news-image img {
|
|
|
transform: scale(1.05);
|
|
|
}
|
|
|
|
|
|
+ .news-item:active .news-image img {
|
|
|
+ transform: scale(0.95);
|
|
|
+ transition: transform 0.1s ease;
|
|
|
+ }
|
|
|
+
|
|
|
/* 新闻信息区域样式 */
|
|
|
.news-info {
|
|
|
text-align: center;
|
|
|
margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
|
|
|
.news-info h3 {
|
|
|
font-size: 22px;
|
|
|
color: #222;
|
|
|
margin: 12px 0 0 0;
|
|
|
+ transition: color 0.2s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ .news-item:hover .news-info h3 {
|
|
|
+ color: #DF0100;
|
|
|
+ }
|
|
|
+
|
|
|
+ .news-item:active .news-info h3 {
|
|
|
+ color: #B30100;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 点击涟漪效果 */
|
|
|
+ .news-item::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(223, 1, 0, 0.1);
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ transition: width 0.3s, height 0.3s;
|
|
|
+ pointer-events: none;
|
|
|
+ z-index: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .news-item:active::before {
|
|
|
+ width: 300px;
|
|
|
+ height: 300px;
|
|
|
+ transition: width 0.6s, height 0.6s;
|
|
|
}
|
|
|
/* 产品弹框样式 */
|
|
|
.product-modal-overlay {
|