From 0388e56c673b4c3efcd33115c930d9af9d87b911 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Thu, 25 Dec 2025 23:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=9B=E6=B6=9B=E6=B6=9B=E6=B6=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 55 ++++++++++++++++++++++++++++++++++++++ index.html | 74 +++++++++++++++++++++++---------------------------- 2 files changed, 88 insertions(+), 41 deletions(-) diff --git a/css/index.css b/css/index.css index e3b0b7f..0837780 100644 --- a/css/index.css +++ b/css/index.css @@ -1107,6 +1107,11 @@ inset 0 1px 0 rgba(255, 255, 255, 0.05); } +/* 隐藏移动端的查看更多按钮 */ +.products-more-btn-wrapper { + display: none; +} + .product-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); @@ -5047,6 +5052,56 @@ html { border-radius: 4px; } + /* Hot Products - Mobile Fold & Expand */ + .products-grid .product-card:nth-child(n+5) { + display: none; + } + + .products-grid.expanded .product-card:nth-child(n+5) { + display: block; + animation: fadeIn 0.5s ease; + } + + .products-more-btn-wrapper { + display: flex; + justify-content: center; + margin-top: 20px; + padding-bottom: 20px; + } + + .products-more-btn { + background: rgba(30, 41, 59, 0.6); + backdrop-filter: blur(10px); + border: 1px solid rgba(148, 163, 184, 0.2); + color: #cbd5e1; + padding: 10px 24px; + border-radius: 20px; + font-size: 14px; + cursor: pointer; + transition: all 0.3s ease; + display: flex; + align-items: center; + gap: 8px; + } + + .products-more-btn:hover { + background: rgba(56, 189, 248, 0.2); + border-color: rgba(56, 189, 248, 0.4); + color: #fff; + } + + @keyframes fadeIn { + from { + opacity: 0; + transform: translateY(10px); + } + + to { + opacity: 1; + transform: translateY(0); + } + } + /* Hot Products - Card View Override */ .products-table thead { display: none; diff --git a/index.html b/index.html index 2cc3dfe..0eec0de 100644 --- a/index.html +++ b/index.html @@ -139,13 +139,11 @@

热销产品推荐

高性价比云服务器,助力您的业务快速上云

-
- -
-
+ +
-
+

香港弹性云

@@ -175,7 +173,7 @@
-
+

美国高防云

@@ -204,7 +202,7 @@
-
+

新加坡CN2云

@@ -234,7 +232,7 @@
-
+

日本BGP云

@@ -263,7 +261,7 @@
-
+

韩国CN2云

@@ -292,7 +290,7 @@
-
+

国内BGP云

@@ -321,7 +319,7 @@
-
+

镇江高防云

@@ -350,7 +348,7 @@
-
+

宿迁BGP云

@@ -379,42 +377,36 @@
- -
-
- + +
+