华为云风格
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-12-25 19:39:00 +08:00
parent 4e466aa1c5
commit a90a189a5f
2 changed files with 254 additions and 179 deletions

View File

@@ -214,58 +214,91 @@
移动端导航优化 移动端导航优化
============================================ */ ============================================ */
/* 移动端响应式优化 */ /* ============================================
@media (max-width: 768px) { Huawei Style Mobile Header (Light Theme)
============================================ */
/* 调整导航栏高度 */ /* Global Mobile Background - White */
#index .nav-header { #index {
height: 56px; background: #ffffff !important;
}
/* Header Container - White Background, Shadow */
#index .nav-header {
height: 60px;
padding: 0 16px; padding: 0 16px;
} background: #ffffff !important;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: space-between;
}
/* 隐藏桌面端导航菜单 */ /* Hidden Desktop Elements */
#index .nav-menu { #index .nav-menu,
#index .nav-desktop-link,
#index .no-login,
/* Hide desktop login/register buttons */
#index .login-in {
display: none !important; display: none !important;
} }
/* 隐藏桌面端的文档、控制台链接 */ /* Logo Branding - Auto Dark Mode Adjustment if needed, assuming logo is distinct */
#index .nav-desktop-link { #index .nav-icon {
display: none !important; flex: 0 0 auto;
} }
/* Logo 缩小 */ #index .nav-icon img {
#index .nav-icon img { height: 28px;
max-height: 32px; max-height: 28px;
} /* If logo is white text, invert it for white background */
filter: invert(1) brightness(0.2);
}
/* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ /* Mobile User Icon - Black */
#index .no-login .btn.btn-normal#registBtn { #index .mobile-user-btn {
padding: 0 24px !important; display: flex !important;
font-size: 15px !important; align-items: center;
min-width: auto !important; justify-content: center;
border-radius: 0 !important; width: 32px;
border-left: none !important; height: 32px;
height: 56px !important; color: #333333;
margin-right: -16px !important; margin-right: 12px;
} }
/* 移动端注册按钮图标隐藏 */ #index .mobile-user-btn svg {
#index .no-login .btn.btn-normal#registBtn::before { width: 24px;
display: none; height: 24px;
} stroke-width: 1.5;
}
/* 移动端登录按钮(如果需要显示) */ /* Hamburger Menu - Black Lines */
#index .no-login .nav-text-link#loginBtn { #index .mobile-menu-toggle {
padding: 0 12px !important;
font-size: 14px !important;
}
/* 确保汉堡菜单按钮显示 - 无背景,只显示白色横线 */
#index .mobile-menu-toggle {
display: flex !important; display: flex !important;
background: transparent !important; background: transparent !important;
border: none !important; border: none !important;
} width: 32px;
height: 32px;
padding: 0;
justify-content: center;
align-items: center;
}
#index .mobile-menu-toggle span {
background-color: #333333 !important;
height: 2px;
width: 20px;
margin: 3px 0;
}
/* Nav Right Container (User + Menu) */
#index .nav-right {
display: flex;
align-items: center;
margin-left: auto;
/* Push to right */
width: auto;
}
} }
/* 首页下拉菜单优化 - 确保高层级 */ /* 首页下拉菜单优化 - 确保高层级 */
@@ -668,75 +701,115 @@
移动端 Banner 优化 移动端 Banner 优化
============================================ */ ============================================ */
@media (max-width: 768px) { /* ============================================
Huawei Style Boxed Banner
============================================ */
/* 调整 banner 高度 */ /* Banner Container - Boxed Layout with Shadow */
.banner-cont .swiper-slide { .banner-cont {
height: 480px; padding: 12px 16px;
/* 移动端使用更清爽的渐变背景 */ /* Outer spacing */
background: background: #ffffff;
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 {
.banner-cont .swiper-slide::before { border-radius: 16px;
background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%); overflow: hidden;
} box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
/* Soft shadow */
margin: 0;
}
/* 移动端文字内容居中对齐 */ .banner-cont .swiper-slide {
.banner-cont .swiper-slide .section-content { height: 380px;
text-align: center; /* Reduced height for card look */
padding: 0 20px; /* Soft gradient background matching reference */
} background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
}
/* 移动端标题样式 - 增大字号 */ /* Remove heavy overlays */
.banner-cont .swiper-slide h1 { .banner-cont .swiper-slide::before {
font-size: 32px; display: none;
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-tags { .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; justify-content: center;
margin-bottom: 20px; align-items: flex-start;
} }
.banner-tag-pill { /* 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;
}
/* Description - Grey */
.banner-cont .banner-desc {
font-size: 14px;
color: #666666;
margin-top: 8px;
margin-bottom: 24px;
font-weight: 400;
}
/* Tags - Simple Badges */
.banner-tags {
justify-content: flex-start;
margin-bottom: 0;
}
.banner-tag-pill {
font-size: 12px; font-size: 12px;
padding: 6px 14px; padding: 4px 10px;
} background: rgba(0, 0, 0, 0.05);
/* Subtle bg */
color: #444;
border: none;
}
/* 移动端描述文字 - 增大字号 */ /* Button - Optional? Reference has it */
.banner-cont .banner-desc { .banner-cont .btn2 {
font-size: 15px; display: none;
line-height: 1.6; /* Reference image doesn't plainly show a big button, maybe hide or simplify */
color: #475569; }
margin-top: 16px;
margin-bottom: 28px;
}
/* 移动端按钮样式 - 增大尺寸 */ /* Pagination - Dark Dots inside container */
.banner-cont .btn2 { .banner-cont .swiper-pagination {
font-size: 16px; bottom: 20px !important;
padding: 14px 40px; }
}
/* 移动端分页器位置调整 */ .banner-cont .swiper-pagination-bullet {
.banner-cont .swiper-pagination { width: 6px !important;
bottom: 24px !important; height: 6px !important;
} background: #ccc !important;
opacity: 1 !important;
border-radius: 50% !important;
margin: 0 4px !important;
}
.banner-cont .swiper-pagination-bullet { .banner-cont .swiper-pagination-bullet-active {
width: 40px !important; background: #333 !important;
height: 3px !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下方快速入口卡片 - 独立毛玻璃卡片设计 */
@@ -855,89 +928,85 @@
移动端 Banner-List 卡片优化 移动端 Banner-List 卡片优化
============================================ */ ============================================ */
@media (max-width: 768px) { /* ============================================
Huawei Style Banner List (Minimalist)
============================================ */
/* 调整 banner-s 区域 */ /* Container - White bg */
.banner .banner-s { .banner .banner-s {
margin-top: -60px; margin-top: 0;
padding: 16px 0 24px; /* Remove negative margin */
} 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);
gap: 16px; /* 2 Columns */
padding: 0 16px; gap: 12px 20px;
} /* 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 {
flex: none; padding: 8px 0;
min-width: auto; flex-direction: row;
max-width: none; /* Horizontal */
padding: 20px; 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;
}
/* 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;
}
/* Text Container */
.banner-s .banner-list .banner-item-content {
flex: 1;
display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
gap: 10px; }
/* 轻量背景 */ /* Title - Dark & Small */
background: rgba(255, 255, 255, 0.95); .banner .banner-s .banner-list .banner-item h5 {
backdrop-filter: blur(10px); color: #333333;
-webkit-backdrop-filter: blur(10px); font-size: 14px;
font-weight: 500;
margin: 0;
line-height: left;
}
/* 轻量边框和圆角 */ /* Removed Hover Effects specifics for mobile */
border: 1px solid rgba(226, 232, 240, 0.8); .banner-s .banner-list .banner-item:hover {
border-radius: 12px; transform: none;
box-shadow: none;
background: transparent;
}
/* 轻量阴影 */ /* Description - Hide completely for minimalist look or make very subtle */
box-shadow: .banner .banner-s .banner-list .banner-item .title-desc {
0 2px 8px rgba(15, 23, 42, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 移动端卡片图标 */
.banner-s .banner-list .banner-item .banner-item-icon {
width: 44px;
height: 44px;
}
/* 移动端卡片悬停效果 */
.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);
}
/* 移动端标题文字 - 深色,增大字号 */
.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; display: none;
} /* Reference only shows "Solution", "MetaStudio" etc. No subtext */
}
/* Hide Decoration */
.banner-s .banner-list .banner-item::before {
display: none;
}
} }
/* ============================================ /* ============================================

View File

@@ -9,8 +9,7 @@
{/php} {/php}
<div class="nav-icon"> <div class="nav-icon">
<a href="{$__homeNav.file_address|default='index.html'}" {if !empty($__homeNav.blank)}target="_blank" {/if}> <a href="{$__homeNav.file_address|default='index.html'}" {if !empty($__homeNav.blank)}target="_blank" {/if}>
<img src="{$data.official_website_logo|default='assets/img/index/logo.png'}" alt="Logo" <img src="{$data.official_website_logo|default='assets/img/index/logo.png'}" alt="Logo" id="logo">
id="logo">
</a> </a>
</div> </div>
<div class="nav-menu"> <div class="nav-menu">
@@ -52,6 +51,13 @@
<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>