Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
css
bulaienaofutuojsonzhangb310ee21c6fc
diff --git a/src/app/[lng]/styles/difyHome.module.scss b/src/app/[lng]/styles/difyHome.module.scssindex 12836073..0d310f1d 100644--- a/src/app/[lng]/styles/difyHome.module.scss+++ b/src/app/[lng]/styles/difyHome.module.scss@@ -73,9 +73,12 @@}.headerRight {+ display: flex;+ align-items: center;+ gap: 10px;+@media (max-width: 768px) {- display: flex;- align-items: center;+ gap: 8px;}}@@ -98,6 +101,10 @@.logoText {margin-left: 15px;++ @media (max-width: 768px) {+ display: none;+ }}.nav {@@ -157,6 +164,160 @@transform: translateY(-1px);box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);}++ @media (max-width: 768px) {+ padding: 6px 16px;+ font-size: 14px;+ margin-left: 0;+ }+}++// 移动端菜单按钮+.mobileMenuButton {+ display: none;+ background: none;+ border: none;+ color: #374151;+ font-size: 20px;+ cursor: pointer;+ padding: 8px;+ border-radius: 4px;+ transition: all 0.2s ease;++ &:hover {+ background: #f3f4f6;+ color: #4f46e5;+ }++ @media (max-width: 768px) {+ display: flex;+ align-items: center;+ justify-content: center;+ }+}++// 移动端菜单遮罩层+.mobileMenuOverlay {+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background: rgba(0, 0, 0, 0.5);+ z-index: 999;+ animation: fadeIn 0.3s ease-out;+}++// 移动端侧边菜单+.mobileMenu {+ position: fixed;+ top: 0;+ right: -100%;+ width: 300px;+ height: 100vh;+ background: white;+ box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);+ z-index: 1000;+ transition: right 0.3s ease-out;+ display: flex;+ flex-direction: column;++ &.mobileMenuOpen {+ right: 0;+ }++ @media (max-width: 480px) {+ width: 280px;+ }+}++// 移动端菜单头部+.mobileMenuHeader {+ display: flex;+ align-items: center;+ padding: 20px;+ border-bottom: 1px solid #e5e7eb;+ gap: 12px;+}++.mobileMenuTitle {+ font-size: 18px;+ font-weight: 700;+ color: #4f46e5;+ flex: 1;+}++.mobileMenuClose {+ background: none;+ border: none;+ color: #6b7280;+ font-size: 18px;+ cursor: pointer;+ padding: 4px;+ border-radius: 4px;+ transition: all 0.2s ease;++ &:hover {+ background: #f3f4f6;+ color: #374151;+ }+}++// 移动端菜单导航+.mobileMenuNav {+ flex: 1;+ padding: 20px 0;+ overflow-y: auto;+}++.mobileNavLink {+ display: block;+ padding: 16px 20px;+ color: #374151;+ text-decoration: none;+ font-weight: 500;+ font-size: 16px;+ transition: all 0.2s ease;+ border-left: 3px solid transparent;++ &:hover {+ background: #f8fafc;+ color: #4f46e5;+ border-left-color: #4f46e5;+ }++ &.active {+ background: #f0f4ff;+ color: #4f46e5;+ border-left-color: #4f46e5;+ font-weight: 600;+ }+}++// 移动端菜单底部+.mobileMenuFooter {+ padding: 20px;+ border-top: 1px solid #e5e7eb;+}++.mobileLanguageButton {+ width: 100%;+ height: 40px;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+ font-weight: 500;+}++// 动画效果+@keyframes fadeIn {+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }}.hero {