diff --git a/css/index.css b/css/index.css index fd141b9..ad9fc3a 100644 --- a/css/index.css +++ b/css/index.css @@ -214,58 +214,91 @@ 移动端导航优化 ============================================ */ -/* 移动端响应式优化 */ -@media (max-width: 768px) { +/* ============================================ + Huawei Style Mobile Header (Light Theme) + ============================================ */ - /* 调整导航栏高度 */ - #index .nav-header { - height: 56px; - padding: 0 16px; - } +/* Global Mobile Background - White */ +#index { + background: #ffffff !important; +} - /* 隐藏桌面端导航菜单 */ - #index .nav-menu { - display: none !important; - } +/* Header Container - White Background, Shadow */ +#index .nav-header { + height: 60px; + 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; +} - /* 隐藏桌面端的文档、控制台链接 */ - #index .nav-desktop-link { - display: none !important; - } +/* Hidden Desktop Elements */ +#index .nav-menu, +#index .nav-desktop-link, +#index .no-login, +/* Hide desktop login/register buttons */ +#index .login-in { + display: none !important; +} - /* Logo 缩小 */ - #index .nav-icon img { - max-height: 32px; - } +/* Logo Branding - Auto Dark Mode Adjustment if needed, assuming logo is distinct */ +#index .nav-icon { + flex: 0 0 auto; +} - /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ - #index .no-login .btn.btn-normal#registBtn { - padding: 0 24px !important; - font-size: 15px !important; - min-width: auto !important; - border-radius: 0 !important; - border-left: none !important; - height: 56px !important; - margin-right: -16px !important; - } +#index .nav-icon img { + height: 28px; + max-height: 28px; + /* If logo is white text, invert it for white background */ + filter: invert(1) brightness(0.2); +} - /* 移动端注册按钮图标隐藏 */ - #index .no-login .btn.btn-normal#registBtn::before { - display: none; - } +/* Mobile User Icon - Black */ +#index .mobile-user-btn { + display: flex !important; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + color: #333333; + margin-right: 12px; +} - /* 移动端登录按钮(如果需要显示) */ - #index .no-login .nav-text-link#loginBtn { - padding: 0 12px !important; - font-size: 14px !important; - } +#index .mobile-user-btn svg { + width: 24px; + height: 24px; + stroke-width: 1.5; +} - /* 确保汉堡菜单按钮显示 - 无背景,只显示白色横线 */ - #index .mobile-menu-toggle { - display: flex !important; - background: transparent !important; - border: none !important; - } +/* Hamburger Menu - Black Lines */ +#index .mobile-menu-toggle { + display: flex !important; + background: transparent !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 优化 ============================================ */ -@media (max-width: 768px) { +/* ============================================ + Huawei Style Boxed Banner + ============================================ */ - /* 调整 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 Container - Boxed Layout with Shadow */ +.banner-cont { + padding: 12px 16px; + /* Outer spacing */ + background: #ffffff; +} - /* 移动端遮罩层更轻 */ - .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-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 .section-content { - text-align: center; - padding: 0 20px; - } +.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 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; - } +/* Remove heavy overlays */ +.banner-cont .swiper-slide::before { + display: none; +} - /* 移动端标签居中 */ - .banner-tags { - justify-content: center; - margin-bottom: 20px; - } +/* 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-tag-pill { - font-size: 12px; - padding: 6px 14px; - } +/* 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-cont .banner-desc { - font-size: 15px; - line-height: 1.6; - color: #475569; - margin-top: 16px; - margin-bottom: 28px; - } +/* Description - Grey */ +.banner-cont .banner-desc { + font-size: 14px; + color: #666666; + margin-top: 8px; + margin-bottom: 24px; + font-weight: 400; +} - /* 移动端按钮样式 - 增大尺寸 */ - .banner-cont .btn2 { - font-size: 16px; - padding: 14px 40px; - } +/* Tags - Simple Badges */ +.banner-tags { + justify-content: flex-start; + margin-bottom: 0; +} - /* 移动端分页器位置调整 */ - .banner-cont .swiper-pagination { - bottom: 24px !important; - } +.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-bullet { - width: 40px !important; - height: 3px !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下方快速入口卡片 - 独立毛玻璃卡片设计 */ @@ -855,89 +928,85 @@ 移动端 Banner-List 卡片优化 ============================================ */ -@media (max-width: 768px) { +/* ============================================ + Huawei Style Banner List (Minimalist) + ============================================ */ - /* 调整 banner-s 区域 */ - .banner .banner-s { - margin-top: -60px; - padding: 16px 0 24px; - } +/* Container - White bg */ +.banner .banner-s { + margin-top: 0; + /* Remove negative margin */ + padding: 10px 0 20px; + background: #ffffff; +} - .banner .banner-s .banner-list { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 16px; - padding: 0 16px; - } +.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-s .banner-list .banner-item { - flex: none; - min-width: auto; - max-width: none; - padding: 20px; - flex-direction: column; - align-items: flex-start; - gap: 10px; +/* 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; +} - /* 轻量背景 */ - background: rgba(255, 255, 255, 0.95); - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(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; +} - /* 轻量边框和圆角 */ - border: 1px solid rgba(226, 232, 240, 0.8); - border-radius: 12px; +/* Text Container */ +.banner-s .banner-list .banner-item-content { + flex: 1; + display: flex; + flex-direction: column; + align-items: flex-start; +} - /* 轻量阴影 */ - box-shadow: - 0 2px 8px rgba(15, 23, 42, 0.08), - inset 0 1px 0 rgba(255, 255, 255, 0.9); - } +/* Title - Dark & Small */ +.banner .banner-s .banner-list .banner-item h5 { + color: #333333; + font-size: 14px; + font-weight: 500; + margin: 0; + line-height: left; +} - /* 移动端卡片图标 */ - .banner-s .banner-list .banner-item .banner-item-icon { - width: 44px; - height: 44px; - } +/* 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: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); - } +/* 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 .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; - } +/* Hide Decoration */ +.banner-s .banner-list .banner-item::before { + display: none; +} } /* ============================================ diff --git a/public/header.html b/public/header.html index 76316cd..b104b90 100644 --- a/public/header.html +++ b/public/header.html @@ -9,8 +9,7 @@ {/php}
+ + + +