/**
 * 界面美观优化样式
 * 包含色彩、排版、组件和动画效果的增强
 */

/* 色彩优化 */
:root {
  /* 主色调增强 */
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --primary-light: #3395ff;
  
  /* 辅助色添加 */
  --secondary-color: #6c757d;
  --accent-color: #17a2b8;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* 中性色优化 */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #868e96;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  
  /* 阴影增强 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
  
  /* 过渡动画时间 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 全局样式增强 */
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* 容器样式优化 */
.container {
  padding: 0 24px;
}

/* 导航栏样式增强 */
header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

header:hover {
  box-shadow: var(--shadow-md);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 16px; /* 明确设置导航链接字体大小 */
  font-weight: 500;
  transition: color var(--transition-fast);
}

/* Logo文本样式 */
.logo-text {
  margin-left: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

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

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

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  color: #333;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* 联系信息样式优化 */
.contact-content {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

/* 确保联系方式和留言板在同一高度 */
.contact-info,
.message-board {
  flex: 1;
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.contact-info:hover,
.message-board:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 地图区域样式 */
.map-section {
  margin-top: 60px; /* 增加与上方板块的距离 */
}

/* 联系页面h3标题统一样式 */
.contact-info .contact-header h3,
.social-contact h3,
.message-board h3 {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

/* 地图区域h3标题与h2保持一致 */
.map-section h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  color: #333;
  font-size: 36px; /* 与h2保持一致的字体大小 */
  font-weight: 700;
}

.map-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* 公众号二维码样式 */
.wechat-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.qrcode-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block; /* 确保是块级元素 */
    border: 1px solid #f0f0f0; /* 添加轻微边框 */
}

.qrcode-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.contact-info {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-items {
  margin-top: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  font-size: 28px;
  color: var(--primary-color);
  margin-right: 20px;
  min-width: 35px;
  text-align: center;
  transition: all var(--transition-normal);
}

.contact-item:hover i {
  transform: scale(1.15);
  color: var(--primary-dark);
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.contact-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  transition: color var(--transition-normal);
}

.contact-item:hover .contact-text p {
  color: var(--primary-color);
}

/* 图片画廊样式 */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 10px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-image {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    height: 250px;
  }
}

/* 首页联系信息样式优化 */
.index-page .contact-content {

/* 服务项目板块优化样式 */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

/* 服务项目背景装饰 */
.services-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.services-section h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

/* 服务项目描述文本优化 */
.services-section .section-intro {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* 服务项目网格布局优化 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 70px; /* 进一步增加服务项目之间的间距 */
  margin-top: 70px;
  margin-bottom: 100px; /* 恢复并增加底部间距 */
}

/* 首页服务项目样式调整 */
.index-page .services-section .services-grid {
  gap: 45px;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* 首页服务项目卡片样式优化 */
.index-page .services-section .service-item {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.index-page .services-section .service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

.index-page .services-section .service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.index-page .services-section .service-item:hover::before {
  height: 6px;
}

/* 首页服务项目图标样式 */
.index-page .services-section .service-item i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(0, 123, 255, 0.05);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  transition: all 0.3s ease;
}

.index-page .services-section .service-item:hover i {
  transform: scale(1.1);
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-dark);
}

/* 首页服务项目标题样式 */
.index-page .services-section .service-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.index-page .services-section .service-item h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.index-page .services-section .service-item:hover h3::after {
  width: 50px;
}

/* 首页服务项目描述文本样式 */
.index-page .services-section .service-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

/* 服务项目卡片样式优化 */
.service-item {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-item:hover::before {
  height: 6px;
}

/* 服务项目图标优化 */
.service-item i {
  font-size: 56px;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(0, 123, 255, 0.05);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  transition: all var(--transition-normal);
}

.service-item:hover i {
  transform: scale(1.1);
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-dark);
}

/* 服务项目标题优化 */
.service-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.service-item h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.service-item:hover h3::after {
  width: 60px;
}

/* 服务项目描述文本优化 */
.service-item p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* 服务项目详情列表优化 */
.service-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.service-details li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.service-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.service-item:hover .service-details li {
  color: var(--text-primary);
}

/* 服务流程样式优化 - 增强流程感 */
.service-process {
  background-color: var(--bg-white);
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 200px; /* 调整为更合理的下移距离 */
  margin-bottom: 120px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px 16px 0 0;
}
}

.service-process h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  color: #333;
  font-size: 28px;
  font-weight: 700;
  left: 0;
  transform: none;
  margin-bottom: 60px;
}

.service-process h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  border-radius: 0;
}

/* 水平流程布局 */
.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  gap: 40px; /* 进一步增加步骤之间的间距 */
}

/* 流程步骤 */
.flow-step {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 180px;
  position: relative;
  margin: 0 15px;
}

/* 步骤内容 */
.step-content {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 0 0 0 60px;
}

.step-content:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  background-color: white;
}

/* 步骤头部 - 序号和标题在同一行 */
.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* 步骤序号 */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.step-content:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* 步骤标题 */
.step-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* 步骤描述 */
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 流程箭头 */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: var(--primary-color);
  font-size: 20px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.flow-step:hover .flow-arrow {
  opacity: 1;
}

/* 最后一个步骤不显示箭头 */
.flow-step:last-child .flow-arrow {
  display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  /* 服务流程响应式调整 */
  .process-flow {
    align-items: center;
    gap: 35px; /* 进一步调整响应式下的间距 */
  }
  
  .flow-step {
    min-width: 160px;
  }
  
  .step-content {
    padding: 18px;
    min-height: 110px;
  }
  
  .step-header h4 {
    font-size: 16px;
  }
  
  /* 服务项目响应式调整 */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px; /* 进一步调整响应式下的服务项目间距 */
    margin-bottom: 90px;
  }
  
  .service-item {
    min-height: 450px;
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .service-process {
    padding: 40px 20px;
    margin-top: 60px;
  }
  
  .service-process h3 {
    font-size: 24px;
    margin-bottom: 40px;
  }
  
  /* 移动端垂直排列 */
  .process-flow {
    flex-direction: column;
    gap: 0;
  }
  
  .flow-step {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }
  
  .step-content {
    width: 100%;
    min-height: auto;
    margin-bottom: 0;
  }
  
  /* 移动端箭头调整为垂直向下 */
  .flow-arrow {
    width: 100%;
    height: 30px;
    transform: rotate(90deg);
    margin: 10px 0;
    justify-content: center;
  }
  
  .step-header h4 {
    font-size: 18px;
  }
  
  .step-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .service-process {
    padding: 30px 15px;
    margin-top: 50px;
  }
  
  .service-process h3 {
    font-size: 22px;
  }
  
  .step-content {
    padding: 15px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-right: 10px;
  }
  
  .step-header h4 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 80px 0;
  }
  
  .services-section h2 {
    font-size: 28px;
  }
  
  .service-process {
    padding: 40px 20px;
    margin: 0 -20px;
    border-radius: 0;
  }
  
  .process-step {
    flex: 0 0 calc(50% - 15px);
    min-width: unset;
  }
  
  .step-number {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
  
  .process-step h4 {
    font-size: 16px;
  }
  
  .process-step p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .process-step {
    flex: 0 0 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-process h3 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 80px 0;
  }
  
  .services-section h2 {
    font-size: 28px;
  }
  
  .services-section .section-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-item {
    min-height: auto;
    padding: 30px 20px;
  }
  
  .service-item i {
    width: 100px;
    height: 100px;
    font-size: 48px;
    padding: 15px;
  }
  
  .service-process {
    padding: 30px 20px;
  }
  
  .service-process h3 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .process-step {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 80px;
    height: 80px;
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .process-step h4 {
    font-size: 16px;
  }
  
  .process-step p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 60px 0;
  }
  
  .service-item {
    padding: 25px 15px;
  }
  
  .service-item i {
    width: 80px;
    height: 80px;
    font-size: 40px;
    padding: 12px;
  }
  
  .service-item h3 {
    font-size: 20px;
  }
  
  .service-details li {
    font-size: 14px;
    padding-left: 20px;
  }
}
  align-items: center;
}

.index-page .contact-info {
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.index-page .contact-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color-light);
}

.index-page .contact-item i {
  font-size: 24px;
  margin-right: 15px;
  min-width: 30px;
}

.index-page .contact-item span {
  font-size: 16px;
  color: var(--text-secondary);
  transition: color var(--transition-normal);
}

.index-page .contact-item:hover span {
  color: var(--primary-color);
}

/* 新闻页面样式优化 */
.news-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 新闻筛选器样式优化 */
.news-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* 新闻列表样式优化 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-image {
  flex: 0 0 280px;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-date::before {
  content: '📅';
}

.news-category {
  padding: 2px 10px;
  background-color: var(--bg-light);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.news-item[data-category="activity"] .news-category,
.news-detail[data-category="activity"] .news-category {
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
}

.news-item[data-category="competition"] .news-category,
.news-detail[data-category="competition"] .news-category {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--accent-color);
}

.news-item[data-category="achievement"] .news-category,
.news-detail[data-category="achievement"] .news-category {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.news-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.news-item:hover .news-title {
  color: var(--primary-color);
}

.news-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.news-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.news-link i {
  transition: transform var(--transition-normal);
}

.news-link:hover i {
  transform: translateX(3px);
}

/* 回到顶端按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* 新闻详情部分样式 */
.news-details-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.news-detail {
  margin-bottom: 60px;
  padding: 30px;
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.news-detail h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.news-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--text-light);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.detail-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.news-detail-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.news-detail-content p:last-child {
  margin-bottom: 0;
}

/* 分页样式优化 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.page-btn.prev-btn, .page-btn.next-btn {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* 页脚样式优化 */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
}

.footer-info p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
  font-weight: 500;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-icons {
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-normal);
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* 卡片样式通用优化 */
.service-item,
.product-item,
.info-item {
  border-radius: 12px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.service-item:hover,
.product-item:hover,
.info-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 产品展示区域通用样式 */
.products-section {
  padding: 80px 0;
}

.products-section h2 {
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.products-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* 首页产品展示样式 */
.index-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.index-page .product-item {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.index-page .product-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform var(--transition-normal);
  border-radius: 6px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  padding: 15px;
}

.index-page .product-item:hover img {
  transform: scale(1.05);
}

.index-page .product-item h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.index-page .product-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
  flex-grow: 1;
}

.index-page .product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 产品页面样式 */
.products-page .section-intro {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
}

.products-page .products-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.products-page .product-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
  transition: all var(--transition-fast);
  position: relative;
  padding: 20px;
}

.products-page .product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.products-page .product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
}

.products-page .product-image {
  flex: 0 0 340px;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  position: relative;
}

.products-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.products-page .product-item:hover .product-image img {
  transform: scale(1.05);
}

.products-page .product-info {
  flex: 1;
  padding: 0 30px;
  min-width: 0;
}

.products-page .product-info h3 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.products-page .product-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.products-page .product-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.products-page .feature-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.products-page .feature-item i {
  color: var(--primary-color);
  margin-right: 8px;
  font-size: 16px;
}

/* 按钮样式增强 */
.page-button {
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.page-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-button:active:not(:disabled) {
  transform: translateY(0);
}

/* 表单样式优化 */
.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.form-group input,
.form-group textarea {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.submit-btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

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

/* 滚动监听动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .news-section {
    padding: 80px 0;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    flex: 0 0 200px;
    width: 100%;
  }
  
  .news-content {
    padding: 20px;
  }
  
  .news-title {
    font-size: 18px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .news-section {
    padding: 60px 0;
  }
  
  .news-filter {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  .news-content {
    padding: 16px;
  }
  
  .news-title {
    font-size: 17px;
  }
  
  .news-excerpt {
    font-size: 14px;
  }
}

/* 产品页面响应式设计增强 */
@media (max-width: 1024px) {
  .product-item {
    flex-direction: column;
    align-items: center;
  }
  
  .product-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: 280px;
  }
  
  .product-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
  
  .product-features {
    justify-content: center;
  }
  
  .feature-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-image {
    height: 240px;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .product-image {
    height: 200px;
  }
  
  .case-gallery {
    grid-template-columns: 1fr;
  }
  
  .case-gallery img {
    height: 180px;
  }
}

/* 产品应用案例样式优化 */
.product-cases {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.product-cases h3 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.product-cases h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.case-item {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.case-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
}

.case-gallery img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  transition: all var(--transition-normal);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: white;
}

.case-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.case-item h4 {
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.case-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

/* 产品咨询样式优化 */
.product-consultation {
  margin-top: 60px;
  padding: 50px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  overflow: hidden;
}

.consultation-content {
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;
}

.consultation-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
}

.consultation-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.95;
}

.consultation-content .btn-primary {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultation-content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background-color: #f8f9fa;
}

/* 产品案例卡片样式增强 */
.case-item {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  padding: 20px;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.case-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.case-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 响应式设计 - 产品案例 */
@media (max-width: 768px) {
  .case-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
  }
  
  .case-gallery img {
    height: 120px;
    object-fit: contain;
    background-color: #f9f9f9;
  }
}

/* 轮播图优化样式 */
.carousel-section {
  max-height: 50vh; /* 设置轮播图最大高度为视口高度的50% */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  width: 100%;
}

/* 轮播图容器样式 */
#mainCarousel {
  width: 100%;
  max-height: 100%;
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* 轮播项样式 */
.carousel-inner {
  height: 50vh; /* 固定轮播图高度为视口高度的50% */
}

.carousel-item {
  height: 100%;
}

/* 轮播图图片样式 */
.carousel-item img {
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.carousel-item:hover img {
  transform: scale(1.02);
}

/* 轮播图标题和描述样式 - 统一字体颜色 */
.carousel-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  color: white !important; /* 统一字体颜色为白色 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h2 {
  color: white !important;
  font-size: 2rem; /* 标题减小一号 */
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0;
}

.carousel-caption h2::after {
  display: none; /* 移除标题下划线 */
}

.carousel-caption p {
  color: white !important;
  font-size: 1.2rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* 轮播图切换按钮样式 - 移至左右两侧，底色透明 */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%; /* 垂直居中 */
  width: 40px;
  height: 40px;
  background-color: transparent; /* 底色透明 */
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.5); /* 添加边框以确保可见性 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-control-prev {
  left: 20px;
  transform: translateY(-50%); /* 垂直居中 */
}

.carousel-control-next {
  right: 20px;
  transform: translateY(-50%); /* 垂直居中 */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1); /* 确保图标为白色 */
}

/* 轮播图指示器样式 */
.carousel-indicators {
  bottom: 0;
  padding-bottom: 10px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  margin: 0 6px;
  transition: all var(--transition-normal);
}

.carousel-indicators button.active {
  background-color: white;
  width: 24px;
  border-radius: 6px;
}

.carousel-indicators button:hover {
  background-color: rgba(255,255,255,0.8);
}

/* 轮播图动画效果增强 */
.carousel-item {
  transition: transform var(--transition-slow);
}

/* 响应式设计优化 */
@media (max-width: 992px) {
  .carousel-section {
    max-height: 45vh;
  }
  
  .carousel-inner {
    height: 45vh;
  }
  
  .carousel-caption h2 {
    font-size: 1.75rem; /* 标题减小一号 */
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-section {
    max-height: 40vh;
  }
  
  .carousel-inner {
    height: 40vh;
  }
  
  .carousel-caption {
    padding: 30px 15px 15px;
  }
  
  .carousel-caption h2 {
    font-size: 1.25rem; /* 标题减小一号 */
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    opacity: 0.7;
  }
  
  .carousel-control-prev {
    left: 10px;
    transform: translateY(-50%);
  }
  
  .carousel-control-next {
    right: 10px;
    transform: translateY(-50%);
  }
}

@media (max-width: 576px) {
  .carousel-section {
    max-height: 35vh;
  }
  
  .carousel-inner {
    height: 35vh;
  }
  
  .carousel-caption h2 {
    font-size: 1rem; /* 标题减小一号 */
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 32px;
    height: 32px;
    top: 50%;
    opacity: 0.6;
  }
  
  .carousel-control-prev {
    left: 5px;
    transform: translateY(-50%);
  }
  
  .carousel-control-next {
    right: 5px;
    transform: translateY(-50%);
  }
  
  .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  .carousel-indicators button.active {
    width: 18px;
  }
}