/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
    color: #666;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2ecc71;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

/* 导航栏样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-item a {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    position: relative;
}

.nav-item a:hover {
    color: #3498db;
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 60px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 20px;
}

.mobile-nav-item a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    display: block;
    padding: 10px 0;
}

.mobile-nav-item a:hover {
    color: #3498db;
}

/* 英雄区域 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
}

.hero-image {
    max-width: 45%;
}

.svg-image {
    width: 100%;
    height: auto;
}

/* 服务区域 */
.services {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* 产品展示 */
.products {
    padding: 100px 0;
    background-color: #f5f7fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    padding: 30px;
    background-color: #f8f9fa;
    text-align: center;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-link {
    display: inline-block;
    font-weight: 500;
    font-size: 0.95rem;
}

.product-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: white;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-content {
    max-width: 50%;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    margin-top: 40px;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.about-image {
    max-width: 45%;
}

/* 客户案例 */
.cases {
    padding: 100px 0;
    background-color: #f5f7fa;
}

.cases-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.case-item {
    flex: 0 0 350px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-item img {
    margin-bottom: 20px;
}

.case-item p {
    font-weight: 500;
    color: #333;
}

/* 数据统计 */
.stats {
    padding: 100px 0;
    background-color: white;
}

.stats-content h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.stats-charts {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.chart-container {
    width: 40%;
    height: 300px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #f5f7fa;
}

.contact .container {
    display: flex;
    gap: 50px;
}

.contact-content {
    flex: 1;
}

.contact-content h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.contact-content p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #3498db;
}

.footer-contact p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: #3498db;
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-charts {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-container {
        width: 80%;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content,
    .about-image {
        max-width: 100%;
    }
    
    .contact .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-item {
        flex: 0 0 100%;
    }
    
    .chart-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 15px 20px;
    }
    
    .logo .logo-text {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .product-card {
        padding: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-services h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 科技感装饰元素 */
.tech-bg {
    position: relative;
}

.tech-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 90%);
    z-index: -1;
}