:root {
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #ffffff;
  --gray: #6c757d;
  --orange: #fd7e14;
  --yellow: #FFD700;
  --pink: #FF007F;
  --blue: #0073E6;
  --green: #00B140;
  --font-primary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* 布局容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  color: var(--white);
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.8em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

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

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--orange);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* 导航栏 */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--dark);
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* 英雄区块 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

/* 部分共用样式 大模块之间的距离调整*/
.section {
  padding: 30px 0; /* 从80px减小到30px */
}

.section-title {
  text-align: center;
  margin-bottom: 30px; /* 框架内部下边距 */
  margin-top: 30px; /* 框架内部上边距 */
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* 服务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.service-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.service-content {
  padding: 25px;
  text-align: center;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.service-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--orange);
}

.service-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-content .btn {
  display: inline-block;
  margin: 0 auto;
}

/* 行业服务 */
.industry-tabs {
  margin-top: 30px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-nav li {
  margin: 0 5px 10px;
}

.tab-nav button {
  background: var(--light);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-nav button.active {
  background: var(--orange);
  color: var(--white);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 客户案例 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.case-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 20px;
  text-align: center;
}

.case-item:hover .case-overlay {
  opacity: 1;
}

.case-item:hover .case-image {
  transform: scale(1.1);
}

/* 新闻部分 */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--blue);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-item h3 {
  margin-bottom: 15px;
}

/* 联系我们 */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-info {
  background: var(--light);
  padding: 30px;
  border-radius: 10px;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--orange);
}

.contact-details p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details i {
  margin-right: 10px;
  color: var(--blue);
  font-size: 1.2rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: var(--dark);
  background-color: var(--white);
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 底部 */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--orange);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #CCC;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  list-style: none;
  margin-top: 20px;
}

.social-links li {
  margin-right: 15px;
}

.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: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--orange);
  transform: translateY(-3px);
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-btn-container {
  position: relative;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.social-btn:hover {
  background-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 156, 0, 0.3);
}

.work-wechat-btn {
  position: relative;
}

.work-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
  background-color: var(--orange);
  color: #fff;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-popup {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  width: 200px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.qr-popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.social-btn-container:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.qr-popup img {
  width: 150px;
  height: 150px;
  border: 1px solid #eee;
}

.qr-popup p {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 30px;
    transition: all 0.5s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }