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

body {
  font-family: 'Avenir', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: all 0.3s ease;
  padding: 15px 0;
}

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

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
}

.nav ul li {
  margin: 0 15px;
  font-family: "Avenir";
}

.nav-link {
  font-weight: 500;
  position: relative;
  color: #2e2e2e;
  padding: 5px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #94683c;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #94683c;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  position: relative;
  color: #333;
  font-family: "Avenir";
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  font-family: "Avenir";
  background-color: #94683c;
}

/* 首页英雄区 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding-top: 80px;
}

.hero-content {
  max-width: 600px;
  position: absolute;
  bottom: 20px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* 项目区域 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  background-color: #f1f1f1;
  background-size: cover;
  background-position: center;
}

.project-card h3 {
  padding: 20px 20px 10px;
  font-size: 23px;
}

.project-card p {
  padding: 0 20px 20px;
  color: #666;
  font-size: 14px;
}

/* 案例展示区 */
.case-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.case {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.case-image {
  flex: 0 0 40%;
  background-color: #f1f1f1;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.case-content {
  flex: 0 0 60%;
  padding: 30px;
}

.case-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

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

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.slider-nav button {
  background-color: transparent;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 8px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slider-nav button:hover {
  background-color: #3498db;
  color: white;
}

/* 团队区域 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-photo {
  height: 200px;
  background-color: #f1f1f1;
  background-size: cover;
  background-position: center;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-weight: bold;
  margin-top: 20px;
  font-size: 23px;
}

.member-title {
  color: #3498db;
  font-weight: 600;
  margin: 5px 0 15px;
}

.team-member p {
  font-size: 14px;
  padding: 0 20px 20px;
  color: #666;
}

/* 联系区域 */
#contact {
  background-color: #f9f9f9;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3,
.contact-form h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #333;
}

.contact-info p {
  margin-bottom: 15px;
  color: #666;
}

.social-links {
  margin-top: 25px;
}

.social-link {
  display: inline-block;
  margin-right: 15px;
  font-weight: 500;
  color: #3498db;
}

.social-link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#form-status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
}

.success {
  background-color: #d4edda;
  color: #155724;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* 页脚区域 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 28px;
  color: #fff;
}

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

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

.footer-links ul li a:hover {
  color: #3498db;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #aaa;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  .section-title {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 40px;
  }

  .case {
    flex-direction: column;
  }

  .case-image {
    height: 200px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease;
    height: 0;
    overflow: hidden;
  }

  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    height: auto;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
  }

  .logo-desktop {
    display: none !important;
  }

  .logo-mobile {
    display: block !important;
    max-width: 40vw;
  }

  .lang-selector {
    margin-left: auto !important;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .project-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}