/* 基础样式重置与设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #343A40;
  background-color: #F8F9FA;
  line-height: 1.6;
  padding-top: 70px; /* 为固定导航栏预留空间 */
  -webkit-text-size-adjust: 100%; /* 防止iOS横屏时字体放大 */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
}

.btn-primary {
  background-color: #0F52BA;
  color: white;
}

.btn-primary:hover {
  background-color: #0a3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 82, 186, 0.3);
}

/* 通用区块样式 */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #6C757D;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.divider {
  width: 50px;
  height: 3px;
  background-color: #0F52BA;
  margin: 0 auto 2rem;
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 一键一键返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0F52BA;
  color: white;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #0a3a8a;
  transform: translateY(-3px);
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
}

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

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

.logo i {
  color: #0F52BA;
  font-size: 24px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

/* 桌面导航 */
.desktop-nav {
  display: none;
  gap: 24px;
}

.desktop-nav a {
  color: #495057;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}

.desktop-nav a:hover {
  color: #0F52BA;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

/* 移动端菜单按钮 */
.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #495057;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* 移动端导航菜单 */
.mobile-menu {
  background-color: white;
  border-top: 1px solid #E9ECEF;
  margin-top: 16px;
  padding: 16px 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  color: #495057;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #0F52BA;
  background-color: #f8f9fa;
}

/* 关于我区域 */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
  }
}

.about-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-image {
    margin: 0;
    flex: 1;
  }
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #E9ECEF;
}

@media (min-width: 768px) {
  .about-stats {
    justify-content: flex-start;
  }
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0F52BA;
  margin-bottom: 0.25rem;
}

.stat-number i {
  margin-right: 8px;
}

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

.about-text p {
  color: #495057;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 12px;
}

.feature-icon {
  background-color: rgba(15, 82, 186, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0F52BA;
}

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: #6C757D;
  margin-bottom: 0;
}

/* 服务内容区域 */
.services {
  background-color: #F8F9FA;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.5rem;
}

.service-icon {
  background-color: rgba(15, 82, 186, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #0F52BA;
  font-size: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #6C757D;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #495057;
}

.service-list i {
  color: #0F52BA;
  font-size: 0.75rem;
}

/* 成功案例区域 */
.case {
  background-color: white;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (max-width: 375px) {
  .case-card img {
    height: 160px;
  }
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-image {
  overflow: hidden;
}

.case-content {
  padding: 1.25rem;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.case-type {
  background-color: rgba(15, 82, 186, 0.1);
  color: #0F52BA;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.case-date {
  font-size: 0.75rem;
  color: #6C757D;
}

.case-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.case-description {
  font-size: 0.9rem;
  color: #6C757D;
  line-height: 1.7;
}

/* 客户评价区域 */
.testimonials {
  background-color: #F8F9FA;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-rating {
  color: #B8860B;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #495057;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.author-title {
  font-size: 0.75rem;
  color: #6C757D;
}

/* 联系我区域 - 联系方式并排显示且无彩色边框 */
.contact {
  background-color: white;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #F8F9FA;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 确保三个联系方式始终并排显示 */
.contact-methods {
  display: flex;
  flex-direction: row; /* 强制横向排列 */
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* 响应式调整，在小屏幕上保持并排但适当缩小 */
@media (max-width: 767px) {
  .contact-methods {
    flex-wrap: nowrap; /* 不换行 */
    overflow-x: auto; /* 允许横向滚动 */
    padding-bottom: 1rem;
  }
  
  .contact-method {
    flex: 0 0 280px; /* 固定最小宽度 */
  }
}

.contact-method {
  flex: 1; /* 平均分配空间 */
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* 统一灰色边框，无彩色效果 */
  border: 1px solid #E9ECEF;
  box-shadow: none;
  min-width: 0; /* 允许内容收缩 */
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 24px;
  color: #495057; /* 统一深灰色图标 */
  background-color: #F8F9FA; /* 浅灰色背景 */
  border: 1px solid #E9ECEF; /* 统一灰色边框 */
  box-shadow: none; /* 去除彩色阴影 */
}

/* 确保没有任何彩色特色效果 */
.contact-method:nth-child(1),
.contact-method:nth-child(2),
.contact-method:nth-child(3) {
  box-shadow: none;
}

.method-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap; /* 防止标题换行 */
}

.method-detail {
  color: #495057;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.method-note {
  font-size: 0.85rem;
  color: #6C757D;
}

.tel-link {
  color: #28A745;
  font-weight: 500;
}

/* 页脚样式 */
footer {
  background-color: #212529;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  text-align: center;
  font-size: 0.875rem;
  color: #ADB5BD;
  padding: 0 16px;
  line-height: 1.6;
}

/* 针对小屏手机优化 */
@media (max-width: 375px) {
  .section {
    padding: 2rem 0;
  }
  
  .about-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .btn {
    width: 100%;
    padding: 10px 0;
  }
}

/* 仅修改联系方式在移动端的布局，不影响其他样式 */
.contact-methods {
  /* 移动端垂直排列 */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 桌面端保持原有水平排列 */
@media (min-width: 768px) {
  .contact-methods {
    flex-direction: row;
  }
}

/* 菜单遮罩层样式 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* 防止页面滚动 */
.overflow-hidden {
  overflow: hidden;
}
