/* 全局样式 */ :root { --primary-color: #2563eb; --primary-hover: #1d4ed8; --secondary-color: #64748b; --accent-color: #06b6d4; --success-color: #10b981; --warning-color: #f59e0b; --error-color: #ef4444; --text-primary: #0f172a; --text-secondary: #64748b; --text-muted: #94a3b8; --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-tertiary: #f1f5f9; --border-color: #e2e8f0; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-primary); font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; } /* 导航栏样式 */ .navbar { background: var(--bg-primary); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s ease; } .nav-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4rem; } .nav-brand { display: flex; align-items: center; gap: 0.75rem; } .brand-logo { height: 2rem; width: auto; } .brand-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); } .nav-menu { display: flex; align-items: center; gap: 2rem; } .nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; padding: 0.5rem 0; position: relative; transition: color 0.2s ease; } .nav-link:hover, .nav-link.active { color: var(--primary-color); } .nav-link.active::after { content: ''; position: absolute; bottom: -0.5rem; left: 0; right: 0; height: 2px; background: var(--primary-color); border-radius: 1px; } .btn-login { background: var(--primary-color); color: white; border: none; padding: 0.625rem 1.25rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; font-size: 0.875rem; transition: all 0.2s ease; display: flex; align-items: center; gap: 0.5rem; } .btn-login:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); } /* Banner */ .banner { width: 100%; height: 400px; overflow: hidden; position: relative; } .banner img { width: 100%; height: 100%; object-fit: cover; } /* 渐变轮播(不使用图片) */ .banner--gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } /* 按钮组件 */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500; font-size: 0.875rem; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; } .btn-primary { background: var(--primary-color); color: white; } .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); } .btn-outline { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); } .btn-outline:hover { background: var(--primary-color); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-large { padding: 1rem 2rem; font-size: 1rem; } /* 主要内容区域 */ .main-content { margin-top: 4rem; } /* 主要内容 */ .main { min-height: calc(100vh - 140px); } /* 英雄区域 */ .hero-section { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); padding: 5rem 0; overflow: hidden; } .hero-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .hero-content { max-width: 600px; } .hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-primary); color: var(--primary-color); padding: 0.5rem 1rem; border-radius: var(--radius-xl); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); } .hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: -0.02em; } .gradient-text { background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .hero-description { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; } .hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; } .hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; } .stat-item { text-align: left; } .stat-number { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1; } .stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; } .hero-visual { display: flex; justify-content: center; align-items: center; } .hero-card { background: var(--bg-primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 1.5rem; width: 100%; max-width: 400px; border: 1px solid var(--border-color); } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); } .card-dots { display: flex; gap: 0.375rem; } .card-dots span { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--border-color); } .card-dots span:first-child { background: var(--error-color); } .card-dots span:nth-child(2) { background: var(--warning-color); } .card-dots span:last-child { background: var(--success-color); } .card-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); } .chart-placeholder { display: flex; align-items: end; gap: 0.5rem; height: 120px; padding: 1rem 0; } .chart-bar { flex: 1; background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%); border-radius: var(--radius-sm); min-height: 20px; transition: all 0.3s ease; } .chart-bar:hover { opacity: 0.8; transform: scaleY(1.05); } /* 区域标题样式 */ .section-header { text-align: center; margin-bottom: 4rem; } .section-title { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; letter-spacing: -0.02em; } .section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.6; } /* 特性展示区域 */ .features-section { padding: 5rem 0; background: var(--bg-primary); } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; } .feature-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; } .feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%); transform: scaleX(0); transition: transform 0.3s ease; } .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); } .feature-card:hover::before { transform: scaleX(1); } .feature-icon { width: 3rem; height: 3rem; background: var(--bg-secondary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary-color); transition: all 0.3s ease; } .feature-card:hover .feature-icon { background: var(--primary-color); color: white; transform: scale(1.1); } .feature-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; } .feature-description { color: var(--text-secondary); line-height: 1.6; } /* 解决方案区域 */ .solutions-section { padding: 5rem 0; background: var(--bg-secondary); } .solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; } .solution-card { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); transition: all 0.3s ease; border: 1px solid var(--border-color); } .solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); } .solution-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; } .solution-title { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; } .solution-description { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; } .solution-features { list-style: none; padding: 0; } .solution-features li { color: var(--text-secondary); padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); position: relative; padding-left: 1.5rem; } .solution-features li:last-child { border-bottom: none; } .solution-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success-color); font-weight: 600; } /* CTA区域 */ .cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%); color: white; text-align: center; } .cta-content { max-width: 800px; margin: 0 auto; } .cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; } .cta-description { font-size: 1.125rem; margin-bottom: 2rem; opacity: 0.9; line-height: 1.6; } .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } .cta-section .btn-primary { background: white; color: var(--primary-color); } .cta-section .btn-primary:hover { background: var(--bg-secondary); transform: translateY(-2px); } .cta-section .btn-outline { border-color: white; color: white; } .cta-section .btn-outline:hover { background: white; color: var(--primary-color); } /* 卡片网格 */ .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; } .card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; text-decoration: none; color: inherit; } .card:hover { transform: translateY(-5px); text-decoration: none; color: inherit; } .card-media { height: 200px; overflow: hidden; } .card-media img { width: 100%; height: 100%; object-fit: cover; } .card-body { padding: 20px; } .card-title { font-size: 1.2rem; margin-bottom: 10px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-subtitle { color: #666; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 列表布局 */ .layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; } .content { min-width: 0; } .list { display: flex; flex-direction: column; gap: 30px; margin-bottom: 50px; } .list-item { display: flex; gap: 20px; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .list-media { flex-shrink: 0; width: 200px; height: 150px; overflow: hidden; } .list-media img { width: 100%; height: 100%; object-fit: cover; } .list-body { padding: 20px; flex: 1; } .list-title { font-size: 1.2rem; margin-bottom: 10px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list-title:hover { color: #007bff; } .list-subtitle { color: #666; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 侧栏 */ .sidebar { background: #f8f9fa; padding: 30px; border-radius: 10px; height: fit-content; } .sidebar-title { font-size: 1.2rem; margin-bottom: 20px; color: #333; } .sidebar-list { list-style: none; } .sidebar-item { margin-bottom: 15px; } .sidebar-item a { color: #666; text-decoration: none; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } .sidebar-item a:hover { color: #007bff; } /* 文章 */ .article { max-width: 800px; margin: 0 auto; } .breadcrumbs-wrap { background: #f8f9fa; padding: 20px 0; } .breadcrumbs { color: #666; } .breadcrumbs a { color: #007bff; text-decoration: none; } .breadcrumbs span { margin: 0 10px; } .article-title { font-size: 2rem; margin-bottom: 20px; color: #333; } .article-meta { color: #666; margin-bottom: 30px; font-size: 0.9rem; } .article-content { line-height: 1.8; font-size: 1rem; margin-bottom: 50px; } .article-content img { max-width: 100%; height: auto; margin: 20px 0; } .article-nav { border-top: 1px solid #e9ecef; padding-top: 30px; display: flex; flex-direction: column; gap: 15px; } .article-nav .prev, .article-nav .next { display: flex; align-items: center; gap: 10px; } .article-nav a { color: #007bff; text-decoration: none; } .article-nav a:hover { text-decoration: underline; } /* 关于我们 */ .about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-bottom: 50px; } .about-media img { width: 100%; border-radius: 10px; } .about-content { line-height: 1.8; } /* 图片画廊 */ .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; } .gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; } .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; } .gallery-item:hover img { transform: scale(1.05); } /* 联系我们 */ .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; } .info-list { list-style: none; margin-top: 30px; } .info-list li { display: flex; margin-bottom: 20px; align-items: flex-start; } .info-label { font-weight: 500; min-width: 100px; color: #333; } .info-value { color: #666; flex: 1; } .contact-form { background: #f8f9fa; padding: 40px; border-radius: 10px; } .contact-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 20px; font-size: 1rem; } .contact-form textarea { height: 120px; resize: vertical; } /* 产品详情 */ .product-detail { max-width: 800px; margin: 0 auto; } .detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 30px; } .detail-media img { width: 100%; border-radius: 10px; } .detail-content { line-height: 1.8; } /* 分页 */ .pagination { text-align: center; margin-top: 40px; } .pagination a, .pagination span { display: inline-block; padding: 8px 12px; margin: 0 5px; border: 1px solid #007bff; border-radius: 4px; text-decoration: none; color: #007bff; } .pagination span { background: #007bff; color: white; } .pagination a:hover { background: #007bff; color: white; } /* 页脚样式 */ .footer { background: var(--text-primary); color: white; padding: 3rem 0 1.5rem; } .footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 2rem; } .footer-brand { max-width: 300px; } .footer-logo { height: 2rem; margin-bottom: 1rem; } .footer-description { color: var(--text-muted); line-height: 1.6; } .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; } .footer-column h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: white; } .footer-column a { display: block; color: var(--text-muted); text-decoration: none; padding: 0.25rem 0; transition: color 0.2s ease; } .footer-column a:hover { color: white; } .footer-bottom { padding-top: 2rem; border-top: 1px solid var(--secondary-color); text-align: center; color: var(--text-muted); } /* 响应式设计 */ @media (max-width: 1024px) { .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; } .hero-title { font-size: 3rem; } .features-grid, .solutions-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } } @media (max-width: 768px) { .nav-menu { display: none; } .hero-title { font-size: 2.5rem; } .section-title { font-size: 2rem; } .hero-actions { flex-direction: column; align-items: center; } .hero-stats { justify-content: center; } .footer-content { grid-template-columns: 1fr; gap: 2rem; } .footer-links { grid-template-columns: 1fr; gap: 1.5rem; } .features-grid, .solutions-grid { grid-template-columns: 1fr; } .cta-actions { flex-direction: column; align-items: center; } .layout { grid-template-columns: 1fr; } .about-layout, .detail-layout { grid-template-columns: 1fr; } .contact { grid-template-columns: 1fr; } .list-item { flex-direction: column; } .list-media { width: 100%; height: 200px; } } @media (max-width: 480px) { .container { padding: 0 1rem; } .hero-section { padding: 3rem 0; } .hero-title { font-size: 2rem; } .section-title { font-size: 1.75rem; } .feature-card, .solution-card { padding: 1.5rem; } }