:root {
    --primary-color: #144dbf;
    --secondary-color: #3fbcc2;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* 防止水平滚动 */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: nowrap; /* 修改为不换行 */
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: clamp(16px, 2vw, 20px); /* 使用clamp实现响应式字体 */
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: clamp(10px, 1.5vw, 12px);
    color: var(--gray-color);
}

nav {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    /* width: 100%; */
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    position: relative;
    white-space: nowrap;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: clamp(120px, 15vw, 150px) 0 clamp(80px, 10vw, 100px);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* 为固定导航栏留出空间 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 2vw, 18px);
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 15px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* About Section */
.section {
    padding: clamp(50px, 8vw, 80px) 0;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.section-title h2 {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 15px auto 0;
    padding: 0 15px;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: clamp(20px, 3vw, 24px);
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 10px;
}

.stat-item {
    flex: 1 1 calc(50% - 20px);
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-item h4 {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray-color);
    font-size: clamp(12px, 1.5vw, 14px);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: clamp(36px, 6vw, 48px);
    color: white;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-color: #f1f1f1;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-content p {
    color: var(--gray-color);
    font-size: clamp(13px, 1.6vw, 14px);
    margin-bottom: 15px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.product-tag {
    background-color: #e9f5ff;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: clamp(10px, 1.4vw, 12px);
}

/* Case Studies Section */
.case-studies {
    background-color: #f8f9fa;
}

.case-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tab {
    padding: 10px 20px;
    background-color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: clamp(14px, 1.8vw, 16px);
}

.case-tab.active,
.case-tab:hover {
    background-color: var(--primary-color);
    color: white;
}

.case-content {
    display: none;
}

.case-content.active {
    display: block;
}

.case-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.case-image {
    height: 250px;
    background-color: #f1f1f1;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-details {
    padding: 30px;
}

.case-details h3 {
    font-size: clamp(18px, 3vw, 22px);
    color: var(--dark-color);
    margin-bottom: 15px;
}

.case-details p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: clamp(14px, 1.8vw, 16px);
}

.case-features {
    margin-bottom: 20px;
}

.case-features h4 {
    font-size: clamp(15px, 2vw, 16px);
    color: var(--dark-color);
    margin-bottom: 10px;
}

.case-features ul {
    list-style: none;
}

.case-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--gray-color);
    font-size: clamp(13px, 1.6vw, 14px);
}

.case-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: clamp(20px, 3vw, 24px);
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--gray-color);
    font-size: clamp(14px, 1.8vw, 16px);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #e9f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: clamp(14px, 1.8vw, 16px);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: clamp(40px, 6vw, 60px) 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: clamp(16px, 2.5vw, 18px);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-col p {
    color: #adb5bd;
    margin-bottom: 15px;
    font-size: clamp(12px, 1.6vw, 14px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    font-size: clamp(12px, 1.6vw, 14px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: clamp(12px, 1.6vw, 14px);
}

/* 隐藏地图广告 */
.amap-info {
    display: none !important;
}

/* 响应式断点 */
@media (max-width: 992px) {
    /* 平板设备样式调整 */
    .header-container {
        padding: 10px 0;
    }
    
    .hero {
        margin-top: 60px;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* 移动设备样式调整 */
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 15px 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-top: 50px;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-text, .contact-info {
        margin-bottom: 30px;
    }
    
    .submit-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* 小屏幕手机样式调整 */
    .hero {
        padding: 80px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .case-tab {
        padding: 8px 15px;
    }
    
    .product-image, .case-image {
        height: 150px;
    }
}
/* AI助手按钮样式 */
.ai-assistant-btn {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
  }
  
  .ai-assistant-btn:hover {
    transform: translateY(50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* AI助手模态框样式 */
  .ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
  }
  
  .ai-modal {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .ai-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
  }
  
  .ai-modal-close:hover {
    background-color: var(--secondary-color);
    transform: rotate(90deg);
  }
  
  .ai-iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* 防止背景滚动 */
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .ai-assistant-btn {
      width: 50px;
      height: 50px;
      font-size: 20px;
      right: 15px;
    }
    
    .ai-modal {
      width: 95%;
      height: 70vh;
    }
  }
  
  @media (max-width: 480px) {
    .ai-assistant-btn {
      width: 45px;
      height: 45px;
      font-size: 18px;
      right: 10px;
    }
    
    .ai-modal {
      height: 90vh;
    }
  }