diff --git a/assets/img/header/bar.svg b/assets/img/header/bar.svg new file mode 100644 index 0000000..461899c --- /dev/null +++ b/assets/img/header/bar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/css/index.css b/css/index.css index 90e87af..b515895 100644 --- a/css/index.css +++ b/css/index.css @@ -3001,35 +3001,23 @@ html { /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ #index .mobile-menu-toggle { display: flex !important; - flex-direction: column; - gap: 5px; + gap: 0; cursor: pointer; width: 24px; - height: 20px; + height: 24px; justify-content: center; align-items: center; margin-right: 0; order: 3; + padding: 0; + background: none; + border: none; } - #index .mobile-menu-toggle span { + #index .mobile-menu-toggle .mobile-menu-icon { width: 100%; - height: 2px; - background: #E5E7EB; - border-radius: 1px; - transition: all 0.3s ease; - } - - #index .mobile-menu-toggle.active span:nth-child(1) { - transform: rotate(45deg) translate(8px, 8px); - } - - #index .mobile-menu-toggle.active span:nth-child(2) { - opacity: 0; - } - - #index .mobile-menu-toggle.active span:nth-child(3) { - transform: rotate(-45deg) translate(8px, -8px); + height: 100%; + display: block; } /* ===== Banner 区域 - 大幅缩小 ===== */ @@ -3568,38 +3556,27 @@ html { height: 12px !important; } + /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ #index .mobile-menu-toggle { display: flex !important; - flex-direction: column; - gap: 5px; + gap: 0; cursor: pointer; width: 24px; - height: 20px; + height: 24px; justify-content: center; align-items: center; margin-right: 0; order: 3; + padding: 0; + background: none; + border: none; } - #index .mobile-menu-toggle span { + #index .mobile-menu-toggle .mobile-menu-icon { width: 100%; - height: 2px; - background: #E5E7EB; - border-radius: 1px; - transition: all 0.3s ease; - } - - #index .mobile-menu-toggle.active span:nth-child(1) { - transform: rotate(45deg) translate(8px, 8px); - } - - #index .mobile-menu-toggle.active span:nth-child(2) { - opacity: 0; - } - - #index .mobile-menu-toggle.active span:nth-child(3) { - transform: rotate(-45deg) translate(8px, -8px); + height: 100%; + display: block; } /* ===== Banner ===== */ @@ -4079,38 +4056,27 @@ html { height: 10px !important; } + /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ #index .mobile-menu-toggle { display: flex !important; - flex-direction: column; - gap: 4px; + gap: 0; cursor: pointer; width: 20px; - height: 18px; + height: 20px; justify-content: center; align-items: center; margin-right: 0; order: 3; + padding: 0; + background: none; + border: none; } - #index .mobile-menu-toggle span { + #index .mobile-menu-toggle .mobile-menu-icon { width: 100%; - height: 2px; - background: #E5E7EB; - border-radius: 1px; - transition: all 0.3s ease; - } - - #index .mobile-menu-toggle.active span:nth-child(1) { - transform: rotate(45deg) translate(7px, 7px); - } - - #index .mobile-menu-toggle.active span:nth-child(2) { - opacity: 0; - } - - #index .mobile-menu-toggle.active span:nth-child(3) { - transform: rotate(-45deg) translate(7px, -7px); + height: 100%; + display: block; } /* ===== Banner - 极简 ===== */ diff --git a/public/header.html b/public/header.html index 2d74400..1d926ac 100644 --- a/public/header.html +++ b/public/header.html @@ -53,9 +53,7 @@