/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

a:hover {
  color: #007bff;
}

ul {
  list-style: none;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}

.nav-menu {
  display: flex;
}

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

.nav-menu li a {
  font-size: 16px;
  font-weight: 500;
}

.nav-menu li a.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 面包屑导航 */
.breadcrumb {
  height: 50px;
  line-height: 50px;
  background-color: #f5f5f5;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #007bff;
}

/* 通用板块样式 */
.section {
  margin-bottom: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 30px;
  color: #333;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  z-index: 99;
}

.back-to-top:hover {
  background-color: #0056b3;
  color: #fff;
}

/* 首页轮播图（已适配） */
.carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
  background-color: #333;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 80%;
}

.carousel-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.carousel-content p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.carousel-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
}

.carousel-btn:hover {
  background-color: #0056b3;
  color: #fff;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-indicators .indicator.active {
  background-color: #fff;
}

/* 首页核心优势（6块布局） */
.advantage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.advantage-icon {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.advantage-card p {
  color: #666;
  line-height: 1.7;
}

/* 首页核心服务 */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

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

.service-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0f8ff;
  color: #007bff;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* 首页合作案例（4块布局） */
.case-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: rgba(0, 123, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-overlay .case-link {
  color: #fff;
  font-size: 16px;
  border: 2px solid #fff;
  padding: 8px 20px;
  border-radius: 4px;
}

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

.case-content {
  padding: 20px;
}

.case-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.case-content p {
  color: #666;
  line-height: 1.7;
}

/* 首页数据展示 */
.stats-section {
  background-color: #007bff;
  padding: 60px 0;
  color: #fff;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 18px;
}

/* 首页客户评价 */
.testimonial-slider {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-wrapper {
  text-align: center;
}

.testimonial-item {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.testimonial-position {
  color: #999;
  font-size: 14px;
}

/* 关于我们页面 */
.about-intro {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.concept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.concept-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.concept-icon {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 20px;
}

.concept-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.concept-card p {
  color: #666;
  line-height: 1.7;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #007bff;
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-year {
  width: 50%;
  text-align: right;
  padding-right: 30px;
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
}

.timeline-content {
  width: 50%;
  padding-left: 30px;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #666;
  line-height: 1.7;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-position {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 14px;
}

.team-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 服务介绍页面 */
.service-hero {
  background-color: #007bff;
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 60px;
}

.service-hero-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.service-hero-content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.service-hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #fff;
  color: #007bff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
}

.service-detail {
  display: flex;
  gap: 30px;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.service-detail.reverse {
  flex-direction: row-reverse;
}

.service-detail-img {
  flex: 1;
}

.service-detail-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-detail-content {
  flex: 1;
}

.service-detail-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.service-detail-content h4 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #444;
}

.service-list {
  color: #666;
  line-height: 1.8;
  padding-left: 20px;
}

.service-list li {
  list-style: disc;
  margin-bottom: 8px;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.process-number {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-weight: bold;
}

.process-icon {
  font-size: 30px;
  color: #007bff;
  margin-bottom: 15px;
}

.process-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.process-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.guarantee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.guarantee-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.guarantee-icon {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 20px;
}

.guarantee-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.guarantee-card p {
  color: #666;
  line-height: 1.7;
}

/* 联系方式页面 */
.contact-hero {
  background-color: #f5f5f5;
  padding: 40px 0;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 60px;
}

.contact-hero-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-hero-content p {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-icon {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.contact-card p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-tips {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.contact-tips p {
  font-size: 14px;
  color: #999;
}

.contact-map {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .form-group {
  flex: 1;
}

.contact-form .form-group.full-width {
  flex: 100%;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.required {
  color: #ff0000;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.checkbox-label input {
  width: auto;
  margin-top: 4px;
}

.form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
  background-color: #0056b3;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-answer {
  padding: 0 20px 20px;
  color: #666;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 页脚样式 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
}

.footer-col p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: #555;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
}

.footer-social a:hover {
  background-color: #007bff;
}

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

.footer-links li a {
  color: #ccc;
}

.footer-links li a:hover {
  color: #007bff;
}

.footer-links li i {
  margin-right: 10px;
  color: #007bff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #555;
  color: #ccc;
  font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .container,
  .nav,
  .footer-container {
    width: 95%;
  }
  
  .advantage-cards,
  .guarantee-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .carousel {
    height: 400px;
  }
  
  .carousel-content h1 {
    font-size: 30px;
  }
  
  .carousel-content p {
    font-size: 16px;
  }
  
  .advantage-cards,
  .service-cards,
  .case-cards,
  .concept-cards,
  .contact-cards,
  .guarantee-cards {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-intro {
    flex-direction: column;
  }
  
  .service-detail,
  .service-detail.reverse {
    flex-direction: column;
  }
  
  .process-cards {
    grid-template-columns: 1fr;
  }
  
  .team-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .contact-form .form-row {
    flex-direction: column;
    gap: 10px;
  }
}