diff --git a/src/app/globals.css b/src/app/globals.css index b49f4f5..4565f14 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -2,12 +2,12 @@ @tailwind components; @tailwind utilities; -/* 企业官网全局样式 */ +/* 现代Web应用全局样式 */ :root { --primary-color: #2563eb; --primary-dark: #1d4ed8; --secondary-color: #64748b; - --accent-color: #f59e0b; + --accent-color: #10b981; --text-primary: #1f2937; --text-secondary: #6b7280; --text-light: #9ca3af; @@ -15,6 +15,8 @@ --bg-secondary: #f8fafc; --bg-dark: #1f2937; --border-color: #e5e7eb; + --green-50: #f0fdf4; + --green-100: #dcfce7; } * { @@ -56,69 +58,109 @@ a:hover { } .btn { - @apply inline-flex items-center justify-center px-6 py-3 text-sm font-medium rounded-lg transition-all duration-300 cursor-pointer; + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0.75rem 1.5rem; + font-size: 0.875rem; + font-weight: 500; + border-radius: 0.5rem; + transition: all 0.3s ease; + cursor: pointer; + text-decoration: none; } .btn-primary { - @apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-4 focus:ring-blue-200; + background-color: #2563eb; + color: white; + border: none; +} + +.btn-primary:hover { + background-color: #1d4ed8; } .btn-secondary { - @apply bg-gray-100 text-gray-900 hover:bg-gray-200 focus:ring-4 focus:ring-gray-100; + background-color: #f3f4f6; + color: #1f2937; + border: none; +} + +.btn-secondary:hover { + background-color: #e5e7eb; } .btn-outline { - @apply border-2 border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white focus:ring-4 focus:ring-blue-200; + border: 2px solid #2563eb; + color: #2563eb; + background-color: transparent; } -.card { - @apply bg-white rounded-lg shadow-md overflow-hidden transition-shadow duration-300 hover:shadow-lg; +.btn-outline:hover { + background-color: #2563eb; + color: white; } -.section-padding { - @apply py-16 lg:py-24; +.card { + background-color: white; + border-radius: 0.5rem; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); + overflow: hidden; + transition: box-shadow 0.3s ease; } -.section-title { - @apply text-3xl lg:text-4xl font-bold text-center mb-4; +.card:hover { + box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } -.section-subtitle { - @apply text-lg text-gray-600 text-center mb-12 max-w-2xl mx-auto; +.section-padding { + padding: 4rem 0; } -/* 导航栏样式 */ -.navbar { - @apply bg-white shadow-sm border-b border-gray-100 sticky top-0 z-50; +@media (min-width: 1024px) { + .section-padding { + padding: 6rem 0; + } } -.navbar-brand { - @apply text-2xl font-bold text-blue-600; +.section-title { + font-size: 1.875rem; + font-weight: 700; + text-align: center; + margin-bottom: 1rem; } -.navbar-nav { - @apply flex items-center space-x-8; +@media (min-width: 1024px) { + .section-title { + font-size: 2.25rem; + } } -.navbar-link { - @apply text-gray-700 hover:text-blue-600 font-medium transition-colors duration-300; +.section-subtitle { + font-size: 1.125rem; + color: #6b7280; + text-align: center; + margin-bottom: 3rem; + max-width: 42rem; + margin-left: auto; + margin-right: auto; } -.navbar-link.active { - @apply text-blue-600; +/* 现代化组件样式 */ +.hero-gradient { + background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%); } -/* 英雄区域样式 */ -.hero { - @apply bg-gradient-to-br from-blue-50 to-indigo-100 py-20 lg:py-32; +.service-card { + @apply bg-white rounded-lg shadow-sm hover:shadow-md transition-all duration-300 transform hover:-translate-y-1; } -.hero-title { - @apply text-4xl lg:text-6xl font-bold text-gray-900 mb-6; +.case-card { + @apply bg-white rounded-lg shadow-sm overflow-hidden hover:shadow-lg transition-all duration-300; } -.hero-subtitle { - @apply text-xl lg:text-2xl text-gray-600 mb-8 max-w-3xl; +.partner-logo { + @apply filter grayscale hover:grayscale-0 transition-all duration-300; } /* 特色区域样式 */ diff --git a/src/app/page.tsx b/src/app/page.tsx index 470f326..98d1113 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,7 @@ import HeroSection from '@/components/sections/HeroSection'; import FeaturesSection from '@/components/sections/FeaturesSection'; -import AboutSection from '@/components/sections/AboutSection'; -import ArticlesSection from '@/components/sections/ArticlesSection'; +import CasesSection from '@/components/sections/CasesSection'; +import PartnersSection from '@/components/sections/PartnersSection'; import ContactSection from '@/components/sections/ContactSection'; export default function Home() { @@ -10,14 +10,14 @@ export default function Home() { {/* 英雄区域 */} - {/* 特色服务 */} + {/* 产品服务 */} - {/* 关于我们 */} - + {/* 客户案例 */} + - {/* 最新文章 */} - + {/* 合作伙伴 */} + {/* 联系我们 */} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 014a3a4..300fad0 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,78 +1,79 @@ import Link from 'next/link'; +import Image from 'next/image'; const Footer = () => { const currentYear = new Date().getFullYear(); const footerLinks = { - company: [ - { name: '关于我们', href: '/about' }, - { name: '企业文化', href: '/culture' }, - { name: '发展历程', href: '/history' }, - { name: '招聘信息', href: '/careers' }, + products: [ + { name: '网站建设', href: '/products/website' }, + { name: '移动应用', href: '/products/mobile' }, + { name: '系统开发', href: '/products/system' }, + { name: '电商平台', href: '/products/ecommerce' }, ], - services: [ - { name: '产品服务', href: '/services' }, - { name: '解决方案', href: '/solutions' }, - { name: '技术支持', href: '/support' }, - { name: '客户案例', href: '/cases' }, + solutions: [ + { name: '企业数字化', href: '/solutions/digital' }, + { name: '教育信息化', href: '/solutions/education' }, + { name: '智慧城市', href: '/solutions/smart-city' }, + { name: '工业互联网', href: '/solutions/industry' }, ], - resources: [ - { name: '新闻资讯', href: '/articles' }, - { name: '行业动态', href: '/news' }, - { name: '技术博客', href: '/blog' }, - { name: '下载中心', href: '/downloads' }, + support: [ + { name: '技术文档', href: '/docs' }, + { name: '开发指南', href: '/guide' }, + { name: 'API参考', href: '/api' }, + { name: '常见问题', href: '/faq' }, ], - contact: [ + company: [ + { name: '关于我们', href: '/about' }, + { name: '新闻动态', href: '/news' }, + { name: '招聘信息', href: '/careers' }, { name: '联系我们', href: '/contact' }, - { name: '在线客服', href: '/service' }, - { name: '意见反馈', href: '/feedback' }, - { name: '合作伙伴', href: '/partners' }, ], }; return ( -