:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-bg: #f3f4f6;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: transform 0.3s ease;
  transform: translateY(-100%);
}

nav.visible {
  transform: translateY(0);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

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

/* 头部样式 */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imgs/header.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  animation: fadeInUp 1s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

header p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  animation: fadeInUp 1s ease 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
  animation: fadeInUp 1s ease 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 服务部分样式 */
.services {
  padding: 8rem 2rem;
  background: var(--white);
}

.services h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: var(--text-color);
  position: relative;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service i {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.service h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

/* 为什么选择我们部分 */
.why-us {
  padding: 8rem 2rem;
  background: var(--light-bg);
}

.why-us h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
}

.why-us h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.why-us-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why-us-content > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
}

.why-us-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.why-us-feature {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.why-us-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.why-us-feature i {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.why-us-feature h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.why-us-feature p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

/* 客户评价部分 */
.testimonials {
  padding: 8rem 2rem;
  background: var(--white);
}

.testimonials h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
}

.testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonial {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.testimonial p:first-child {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.testimonial p:last-child {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

/* 数据统计部分 */
.statistics {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.statistics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.statistic-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.statistic-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.statistic-item i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.statistic-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.statistic-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 服务流程部分 */
.process {
  padding: 8rem 2rem;
  background: var(--white);
}

.process h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
}

.process h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.process-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.process-container::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  z-index: 1;
}

.process-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

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

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.process-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.process-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.process-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* 合作伙伴部分 */
.partners {
  padding: 8rem 2rem;
  background: var(--light-bg);
}

.partners h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
}

.partners h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.partner-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-category h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 0.5rem;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-logo i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.partner-logo span {
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .statistics-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-container {
    grid-template-columns: 1fr;
  }

  .process-container::before {
    display: none;
  }

  .partners-container {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 联系我们左右顺序互换 */
@media (min-width: 993px) {
  .contact-container {
    display: flex;
    align-items: flex-start;
  }
  .contact-form {
    order: 1;
    flex: 1.5;
  }
  .contact-info {
    order: 2;
    flex: 1;
  }
}

/* 页脚样式 */
footer {
  background: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-info i {
  color: var(--primary-color);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-copyright p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .services h2,
  .why-us h2,
  .testimonials h2,
  .contact h2 {
    font-size: 2rem;
  }

  .service-container,
  .why-us-features,
  .testimonial-container {
    grid-template-columns: 1fr;
  }
}
