/* 基础样式 */
:root {
  --primary-color: #233a5e;
  --secondary-color: #ffb300;
  --text-color: #333;
  --light-bg: #f7f9fb;
  --border-radius: 4px;
  --box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #666;
}

/* 导航栏 */
.navbar {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
}

nav {
  display: flex;
}

nav a {
  margin: 0 15px;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

nav a i {
  font-size: 12px;
  margin-left: 5px;
}

nav a:hover {
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: var(--transition);
}

.social-icons a:nth-child(1) {
  background-color: #1DA1F2;
}

.social-icons a:nth-child(2) {
  background-color: #0077B5;
}

.social-icons a:nth-child(3) {
  background-color: #4267B2;
}

.social-icons a:nth-child(4) {
  background-color: #FF0000;
}

.search-icon {
  margin: 0 15px;
  font-size: 18px;
  color: var(--text-color);
}

.lang-selector {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
}

.lang-selector i {
  margin-left: 5px;
  font-size: 12px;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(90deg, rgba(35,58,94,0.9) 0%, rgba(35,58,94,0.8) 100%), url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0;
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-text .subtitle {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.cta-btn:hover {
  background-color: #e6a200;
  transform: translateY(-2px);
}

/* 行业应用 */
.industry {
  background-color: #fff;
}

.industry-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.industry-card {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.industry-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card-content p {
  margin-bottom: 15px;
  color: #666;
}

.learn-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.learn-more:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.learn-more:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
}

.pagination span.active {
  background-color: var(--primary-color);
}

/* 为什么选择我们 */
.why-us {
  background-color: var(--light-bg);
}

.why-us-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.why-us-image {
  flex: 1;
}

.why-us-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.why-us-text {
  flex: 1;
}

.why-us-text p {
  margin-bottom: 20px;
}

.why-us-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #1a2d4a;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #e6a200;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* 产品优势 */
.benefits {
  background-color: #fff;
}

.benefits-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.benefits-text {
  flex: 1;
}

.benefits-image {
  flex: 1;
}

.benefits-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  color: #fff;
}

.stat-item h3 {
  font-size: 28px;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

/* 知识中心 */
.knowledge {
  background-color: var(--light-bg);
}

.knowledge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.knowledge-header h2 {
  color: var(--primary-color);
}

.knowledge-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  color: var(--primary-color);
  cursor: pointer;
  margin-left: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.knowledge-nav button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.knowledge-card {
  display: flex;
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.knowledge-card img {
  width: 40%;
  object-fit: cover;
}

.knowledge-card .card-content {
  padding: 30px;
  flex: 1;
}

/* 服务流程 */
.service-steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.step {
  flex: 1;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.step p {
  margin-bottom: 20px;
  color: #666;
}

/* 联系我们 */
.contact {
  background-color: var(--light-bg);
  text-align: center;
}

.contact-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 底部导航 */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
  color: rgba(255,255,255,0.7);
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  margin-left: 15px;
  transition: var(--transition);
}

.footer-social a:hover {
  color: #fff;
}

/* 在线客服 */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-button {
  display: flex;
  align-items: center;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: var(--transition);
}

.chat-button:hover {
  background-color: #e6a200;
  transform: translateY(-2px);
}

.chat-button i {
  margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .nav-container {
    height: 70px;
  }
  
  nav {
    display: none; /* 在小屏幕上隐藏主导航，可以替换为汉堡菜单 */
  }
  
  .industry-cards,
  .why-us-content,
  .benefits-content,
  .service-steps,
  .footer-nav {
    flex-direction: column;
  }
  
  .industry-card {
    margin-bottom: 20px;
  }
  
  .why-us-image,
  .why-us-text,
  .benefits-text,
  .benefits-image {
    width: 100%;
  }
  
  .stats {
    flex-wrap: wrap;
  }
  
  .stat-item {
    width: 50%;
    margin-bottom: 20px;
  }
  
  .knowledge-card {
    flex-direction: column;
  }
  
  .knowledge-card img {
    width: 100%;
    height: 200px;
  }
  
  .step {
    margin-bottom: 20px;
  }
  
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }
  
  .hero-text .subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-buttons a {
    width: 80%;
    margin-bottom: 15px;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  .copyright {
    margin-bottom: 15px;
  }
  
  .footer-social {
    margin-top: 15px;
  }
  
  .stat-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .nav-container {
    height: 60px;
  }
  
  .logo img {
    height: 36px;
  }
  
  .social-icons {
    display: none;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .why-us-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-col {
    width: 100%;
  }
  
  .chat-button span {
    display: none; /* 在超小屏幕上只显示图标 */
  }
  
  .chat-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }
  
  .chat-button i {
    margin-right: 0;
    font-size: 20px;
  }
}

/* 添加简单的动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeIn 0.8s ease-out;
}

/* 添加汉堡菜单样式 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* 移动端导航菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  color: var(--text-color);
  font-weight: 500;
}

.mobile-nav a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* 添加简单的JavaScript交互 */
document.addEventListener('DOMContentLoaded', function() {
  // 汉堡菜单交互
  const mobileMenuToggle = document.querySelector('.mobile-menu-toggle');
  const mobileNav = document.querySelector('.mobile-nav');
  
  if (mobileMenuToggle && mobileNav) {
    mobileMenuToggle.addEventListener('click', function() {
      mobileNav.classList.toggle('active');
    });
  }
  
  // 行业应用轮播
  const paginationDots = document.querySelectorAll('.pagination span');
  if (paginationDots.length) {
    paginationDots.forEach((dot, index) => {
      dot.addEventListener('click', function() {
        // 移除所有active类
        paginationDots.forEach(d => d.classList.remove('active'));
        // 添加当前点击的active类
        this.classList.add('active');
        // 这里可以添加轮播逻辑
      });
    });
  }
  
  // 在线客服点击事件
  const chatButton = document.querySelector('.chat-button');
  if (chatButton) {
    chatButton.addEventListener('click', function() {
      alert('感谢您的咨询，我们的客服人员将很快与您联系！');
      // 这里可以替换为实际的在线客服系统
    });
  }
});
