回滚
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-12-25 19:45:46 +08:00
parent a90a189a5f
commit dcb9d84510
2 changed files with 133 additions and 176 deletions

View File

@@ -701,115 +701,75 @@
移动端 Banner 优化 移动端 Banner 优化
============================================ */ ============================================ */
/* ============================================ @media (max-width: 768px) {
Huawei Style Boxed Banner
============================================ */
/* Banner Container - Boxed Layout with Shadow */ /* 调整 banner 高度 */
.banner-cont { .banner-cont .swiper-slide {
padding: 12px 16px; height: 480px;
/* Outer spacing */ /* 移动端使用更清爽的渐变背景 */
background: #ffffff; background:
} linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%),
linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
}
.banner-cont .swiper-container { /* 移动端遮罩层更轻 */
border-radius: 16px; .banner-cont .swiper-slide::before {
overflow: hidden; background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
/* Soft shadow */
margin: 0;
}
.banner-cont .swiper-slide { /* 移动端文字内容居中对齐 */
height: 380px; .banner-cont .swiper-slide .section-content {
/* Reduced height for card look */ text-align: center;
/* Soft gradient background matching reference */ padding: 0 20px;
background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%); }
}
/* Remove heavy overlays */ /* 移动端标题样式 - 增大字号 */
.banner-cont .swiper-slide::before { .banner-cont .swiper-slide h1 {
display: none; font-size: 32px;
} line-height: 1.3;
/* 移动端使用深色文字 */
background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: none;
}
/* Content Alignment */ /* 移动端标签居中 */
.banner-cont .swiper-slide .section-content { .banner-tags {
text-align: left; justify-content: center;
/* Verify reference alignment - looks like center/left mix, aiming for clean look */ margin-bottom: 20px;
padding: 30px 24px; }
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}
/* Title - Dark & Clean */ .banner-tag-pill {
.banner-cont .swiper-slide h1 { font-size: 12px;
font-size: 26px; padding: 6px 14px;
font-weight: 700; }
line-height: 1.4;
color: #1a1a1a;
background: none;
-webkit-text-fill-color: initial;
margin-bottom: 12px;
text-shadow: none;
}
/* Description - Grey */ /* 移动端描述文字 - 增大字号 */
.banner-cont .banner-desc { .banner-cont .banner-desc {
font-size: 14px; font-size: 15px;
color: #666666; line-height: 1.6;
margin-top: 8px; color: #475569;
margin-bottom: 24px; margin-top: 16px;
font-weight: 400; margin-bottom: 28px;
} }
/* Tags - Simple Badges */ /* 移动端按钮样式 - 增大尺寸 */
.banner-tags { .banner-cont .btn2 {
justify-content: flex-start; font-size: 16px;
margin-bottom: 0; padding: 14px 40px;
} }
.banner-tag-pill { /* 移动端分页器位置调整 */
font-size: 12px; .banner-cont .swiper-pagination {
padding: 4px 10px; bottom: 24px !important;
background: rgba(0, 0, 0, 0.05); }
/* Subtle bg */
color: #444;
border: none;
}
/* Button - Optional? Reference has it */ .banner-cont .swiper-pagination-bullet {
.banner-cont .btn2 { width: 40px !important;
display: none; height: 3px !important;
/* Reference image doesn't plainly show a big button, maybe hide or simplify */ }
}
/* Pagination - Dark Dots inside container */
.banner-cont .swiper-pagination {
bottom: 20px !important;
}
.banner-cont .swiper-pagination-bullet {
width: 6px !important;
height: 6px !important;
background: #ccc !important;
opacity: 1 !important;
border-radius: 50% !important;
margin: 0 4px !important;
}
.banner-cont .swiper-pagination-bullet-active {
background: #333 !important;
width: 16px !important;
border-radius: 4px !important;
box-shadow: none !important;
}
.banner-cont .swiper-pagination-bullet-active::before {
display: none;
/* Remove progress bar effect */
}
} }
/* Banner下方快速入口卡片 - 独立毛玻璃卡片设计 */ /* Banner下方快速入口卡片 - 独立毛玻璃卡片设计 */
@@ -928,85 +888,89 @@
移动端 Banner-List 卡片优化 移动端 Banner-List 卡片优化
============================================ */ ============================================ */
/* ============================================ @media (max-width: 768px) {
Huawei Style Banner List (Minimalist)
============================================ */
/* Container - White bg */ /* 调整 banner-s 区域 */
.banner .banner-s { .banner .banner-s {
margin-top: 0; margin-top: -60px;
/* Remove negative margin */ padding: 16px 0 24px;
padding: 10px 0 20px; }
background: #ffffff;
}
.banner .banner-s .banner-list { .banner .banner-s .banner-list {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
/* 2 Columns */ gap: 16px;
gap: 12px 20px; padding: 0 16px;
/* Row gap 12px, Column gap 20px */ }
padding: 0 24px;
}
/* Minimal Item - No bg, no border */ /* 移动端卡片样式 - 轻量白色主题,增加内边距 */
.banner-s .banner-list .banner-item { .banner-s .banner-list .banner-item {
padding: 8px 0; flex: none;
flex-direction: row; min-width: auto;
/* Horizontal */ max-width: none;
align-items: center; padding: 20px;
justify-content: flex-start; flex-direction: column;
gap: 10px; align-items: flex-start;
background: transparent !important; gap: 10px;
border: none !important;
box-shadow: none !important;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
/* Icon - Small Rounded Square */ /* 轻量背景 */
.banner-s .banner-list .banner-item .banner-item-icon { background: rgba(255, 255, 255, 0.95);
width: 32px; backdrop-filter: blur(10px);
height: 32px; -webkit-backdrop-filter: blur(10px);
border-radius: 8px;
/* Optional rounded corners if icons are square */
object-fit: contain;
}
/* Text Container */ /* 轻量边框和圆角 */
.banner-s .banner-list .banner-item-content { border: 1px solid rgba(226, 232, 240, 0.8);
flex: 1; border-radius: 12px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
/* Title - Dark & Small */ /* 轻量阴影 */
.banner .banner-s .banner-list .banner-item h5 { box-shadow:
color: #333333; 0 2px 8px rgba(15, 23, 42, 0.08),
font-size: 14px; inset 0 1px 0 rgba(255, 255, 255, 0.9);
font-weight: 500; }
margin: 0;
line-height: left;
}
/* Removed Hover Effects specifics for mobile */ /* 移动端卡片图标 */
.banner-s .banner-list .banner-item:hover { .banner-s .banner-list .banner-item .banner-item-icon {
transform: none; width: 44px;
box-shadow: none; height: 44px;
background: transparent; }
}
/* Description - Hide completely for minimalist look or make very subtle */ /* 移动端卡片悬停效果 */
.banner .banner-s .banner-list .banner-item .title-desc { .banner-s .banner-list .banner-item:hover {
display: none; transform: translateY(-3px);
/* Reference only shows "Solution", "MetaStudio" etc. No subtext */ border-color: rgba(56, 189, 248, 0.3);
} background: rgba(255, 255, 255, 1);
box-shadow:
0 4px 16px rgba(15, 23, 42, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 1);
}
/* Hide Decoration */ /* 移动端标题文字 - 深色,增大字号 */
.banner-s .banner-list .banner-item::before { .banner .banner-s .banner-list .banner-item h5 {
display: none; color: #0f172a;
} font-size: 17px;
font-weight: 600;
line-height: 1.3;
}
.banner .banner-s .banner-list .banner-item h5 .highlight {
color: #0ea5e9;
}
.banner .banner-s .banner-list .banner-item:hover h5 {
color: #0ea5e9;
}
/* 移动端描述文字 - 深色,增大字号 */
.banner .banner-s .banner-list .banner-item .title-desc {
color: #64748b;
font-size: 13px;
line-height: 1.5;
}
/* 移动端光晕效果调整 */
.banner-s .banner-list .banner-item::before {
display: none;
}
} }
/* ============================================ /* ============================================

View File

@@ -51,13 +51,6 @@
<div class="login-menu-item" id="logout">退出账户</div> <div class="login-menu-item" id="logout">退出账户</div>
</div> </div>
</div> </div>
<!-- 移动端用户图标 -->
<a href="/login.html" class="mobile-user-btn d-none" aria-label="User account">
<svg viewBox="0 0 24 24" fill="none" class="icon-user">
<path d="M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5.5 0-10 3-10 7v1h20v-1c0-4-4.5-7-10-7Z"
fill="currentColor" />
</svg>
</a>
<!-- 移动端汉堡菜单按钮 --> <!-- 移动端汉堡菜单按钮 -->
<button class="mobile-menu-toggle" id="mobileMenuToggle" aria-label="Toggle navigation"> <button class="mobile-menu-toggle" id="mobileMenuToggle" aria-label="Toggle navigation">
<span></span> <span></span>