@charset "utf-8";

.logo-link {
  display: flex;
  align-items: center;
  margin-left: -40px;;
}

.logo-img {
  height: 80px;
  width: auto;
}

#all-content { 
  width: 100%;
  color: #333333;
  font-family: 'Inter', sans-serif;
}

#title {
  font-weight: bold;
  color: #4C6A49; 
  margin-bottom: 4px;
}

#all-content h2 {
  font-weight: bold;
  font-size: 18px; 
  margin-bottom: 0;
  color: #333;
}

#all-content h3 {
  font-size: 16px; 
  color: #E58C6C; 
  margin-bottom: 12px;
  font-weight: normal; 
}

#all-content p {
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #333;
}

:root {
    --color-bg: #F7F3EA;
    --color-primary: #4C6A49;
    --color-accent: #E58C6C;
    --color-white: #FFFFFF;
    --color-gray-light: #E0DDDA;
    --color-text: #333333;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
  }
  
  body {
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    padding: 20px 16px;
    margin: 0 auto;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    max-width: 1200px; 
    margin: 0 auto;
    border-bottom: 1px solid #545454;  
    padding-bottom: 10px;         
    margin-bottom: 10px;           
  }
  
  .logo {
    color: var(--color-primary);
    font-weight: 700;
  }

  /* 导航栏 */
  
  li {
    display: inline-block;
    position: relative; 
    list-style-type: none;
    margin: 0;
}

#navigation {
    font-family: Georgia, serif; 
    font-size: 100%;
    text-align: center; 
    margin: 0 auto;
    padding: 0px; 
    display: flex;
    justify-content: space-between; 
    gap: 20px;
    flex-wrap: nowrap; 
    white-space: nowrap; 
    margin-left: 400px;
}

#navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

a:link, a:visited, a:active {
    color: #4C6A49; 
    text-decoration: none; 
    font-weight: bold; 
    padding: 8px 12px;
    display: inline-block;
}
    a:hover {
    color: #E58C6C; 
    text-decoration: underline; 
    font-weight: bold;
} 

#navigation .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 80%;
  background-color: #E58C6C;
  opacity: 0.9;
  border-radius: 10px;
  padding: 0;
  z-index: 1000;
  width: 179px;
}

#navigation .submenu li {
  padding: 0;
  margin: 0;
}

#navigation .submenu a {
  padding: 8px 16px;
  color: #333;
}

#navigation li:hover .submenu {
  display: block;
}
  
  /* 按钮通用样式 */
  .btn-primary {
    background: var(--color-accent);
    color: white !important;
    padding: 12px 24px;
    border-radius: 32px;
    font-weight: 600;
  }
  
  .hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 0;
  }
  
  .hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
  }
  
  .hero-text p {
    max-width: 500px;
    margin-bottom: 24px;
    flex: 0 0 50%;
    min-width: 300px;

  }
    
  .large-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, 360px); /* 每列宽度固定 */
    justify-content: center; 
    gap: 32px;
    margin: 32px 0;
    width: 100%;
    max-width: 1200px;
    padding: 0 32px;
  }
  
  .small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-content: center; 
    gap: 24px;
    margin: 32px 0;
    width: 100%;
    max-width: 1200px;
    padding: 0 32px;
  }
  
  /* 大卡片 */
  .large-card {
    height: 480px;
    width: 100%;
    max-width: 360px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
  }
  
  /* 小卡片 */
  .small-card {
    height: 360px;
    width: 100%;
    max-width: 270px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
  }
  
  /* 公共图片 */
  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0; 
  }
  
  .large-card img {
    height: 300px;
    object-position: top;
  }
  
  .small-card img {
    height: 160px;
  }

  .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px; 
    margin-top: auto;
  }
  
  .card-body h3,
  .card-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
  }
  
  .card-body p {
    font-size: 16px;
    margin-bottom: 16px;
    flex-grow: 1;
    overflow: hidden;
  }
  
  .btn-card {
    margin-top: -10px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 8px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
  }
  
  footer {
    text-align: center;
    padding: 32px 0;
    font-size: 16px;
    color: var(--color-primary);
  }

  /* contact us */
  input[type="text"],
  textarea {
  width: 100%;
  box-sizing: border-box; 
  padding: 8px;          
  font-size: 16px;      
  border: 1px solid #ccc; 
  border-radius: 4px; 
  resize: vertical;     
  font-family: Arial, sans-serif; 
}

fieldset {
  max-width: 600px;   
  margin: 0 auto;      
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

p {
  margin-bottom: 16px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

p label {
  font-size: 16px;   
  font-weight: normal;
}

.button-wrapper {
  text-align: center !important;
}

p input[type="submit"],
p input[type="reset"] {
  background-color: #4C6A49;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  display: inline-block;
}

p input[type="submit"]:hover,
p input[type="reset"]:hover {
  background-color: ;
}

input[type="date"] {
  font-size: 18px;         
  padding: 10px 12px;     
  height: 45px;            
  width: 250px;  
  box-sizing: border-box;  
  border: 1px solid #ccc; 
  border-radius: 5px; 
  font-family: Arial, sans-serif; 
}

.footer {
  display: flex;
  justify-content: space-between;
  background-color: #f0f0f0; 
  padding: 20px;
  font-family: Arial, sans-serif;
}

.footer-column {
  width: 25%;
  padding: 0 10px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-column p, .footer-column a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
}
video, iframe {
  display: block;
  margin-top: 20px;
  border-radius: 10px;
}

.people-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.person {
  flex: 1;
  max-width: 50%;
  box-sizing: border-box;
  padding: 10px;
  background-color: #f9f9f9;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.person img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.person p {
  text-align: center !important;
}

.main-container {
  display: flex; 
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

/* 左边图片区域 */
.image-gallery {
  position: relative;
  flex: 1;
  max-width: 50%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 图片样式 */
.image-gallery img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 左右箭头按钮 */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 1;
}
.nav-button.left {
  left: 10px;
}
.nav-button.right {
  right: 10px;
}

/* 右边文字区域 */
.text-content {
  flex: 1;
  max-width: 50%;
  padding: 40px;
  box-sizing: border-box;
  background-color: #ffffff;
  display: flex;              
  flex-direction: column;  
  justify-content: center;
}

.carousel {
  width: 100%;
  overflow: hidden;
  border: 2px solid #ccc;
  background: white;
}

.carousel-track {
  display: flex;
  width: calc(200%);
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 25%; 
  object-fit: cover;
}


@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

  @media screen and (max-width: 960px){
    .container {
      width: 95%;
      flex-wrap: wrap; 
      gap: 60px;
    }
  }
  
  @media screen and (max-width: 640px){
    .container {
      width: 95%;
      gap: 30px;
    }
  
    h1, h2, h3, h4, p {
      word-wrap: break-word;
    }
  
    header {
      flex-direction: column;
      gap: 16px;
    }
  }

  @media (max-width: 480px) {
    .small-grid {
      grid-template-columns: 1fr; 
      padding: 0 16px;
    }
  }