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