/* ========== 全局基础 ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}

/* ========== Header 顶部 LOGO ========== */
.header {
  background: #cee9fc;
  color: white;
}

/* Logo header */
.header-top {
   position: center;     
   margin: 0 auto;
   padding-left: 2rem;
   padding-right: 2rem;
   padding: 0;
   overflow: hidden; 
}

.logo {
  margin: 0; 
  padding: 0; 
  line-height: 0; 
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* navigation bar */
.header-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  background-color: #cee9fc;

}

/* 中文和英文菜单互斥 */
nav.lang.zh,
nav.lang.en {
  display: none;
  gap: 1rem;
}

/*header text*/
nav a {
  color: black;
  width: auto;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  margin-left: 2px;
  margin-right: 4px;
  border-radius: 4px;
  padding: 6px 5px;
  background-color: #faf3e0;

}

nav a.cta {
  font-weight: bold;
  color: #faa907;
}

/* 语言切换按钮 */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #cee9fc;
}

.lang-toggle button {
  padding: 0.3rem 0.5rem;
  margin-top: 5px;
  margin-bottom: 15px;
  margin-left: 2px;
  font-size: 0.85rem;
  border: none;
  background: #444;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.lang-toggle button:hover {
  background: #666;
}

/* ========== Hero 区块 ========== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: #faf3e0;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.btn {
  background-color: #333333; /* 深灰近黑 */
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn:hover {
  background-color: #4d4d4d; /* 稍亮一点 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* ========== 通用 Section 样式 ========== */
.section {
  padding: 0.1rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
}
.section h3{
  margin-bottom: 1rem;
}
#intro {
  padding-bottom: 0.1rem;
  background-color: whitesmoke;
}

#features,
#process,
#testimonials,
#about{
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: whitesmoke;
  margin-bottom: 0.5rem;
  border-radius: 12px;
}

#features video {
  width: 100%; /* 默认全宽 */
  height: auto;
  border-radius: 20px;
}
#testimonials video{
  width: 100%;
  height: auto;
  border-radius: 20px;
}



/* ========== Testimonials ========== */
blockquote {
  background: #f3f3f3;
  padding: 1rem;
  border-left: 4px solid #ccc;
  margin: 1rem 0;
}

/*social media link*/
.social-links {
  display: flex;
  justify-content: center; /* 置中 */
  gap: 40px; /* 图标间距 */
  margin: 30px 0;
}

.social-links a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.15);
}



/* ========== Contact ========== */
.contact {
  background: #cee9fc;
  text-align: center;
  margin-bottom: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  scroll-margin-top: 80px; 
}

/* ========== Footer ========== */
.footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

/*photo slide show*/
.slider {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: hidden;
  margin: auto;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.slide {
  width: 100%;
  flex: 0 0 100%;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  font-size: 1rem;
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/*slide show dots*/
.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dots span.active {
  opacity: 1;
  background-color: grey;
}

.profile_pic {
  text-align: center; /* 让图片居中 */
  margin: 1.5rem 0;
}

.profile_pic img {
  width: 90%;
  max-width: 400px; /* 限制最大大小 */
  height: auto;
  border-radius: 10px; /* 圆角处理，更温和 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 可选：轻微阴影 */
}

.map-container {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 可选：加阴影美化 */
}

.map-container iframe {
  width: 100%;
  height: 300px;
  display: block;
}




/* ========== 响应式（桌面增强） ========== */
/*tab version*/
@media (min-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .lang_en_h1{
    font-size: 20px;
  }
  .btn {
    font-size: 1.1rem;
  }

  nav a {
    color: black;
    width: auto;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    margin-left: 2px;
    margin-right: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 6px 30px;
    background-color: #faf3e0;
  }

  .section {
    padding: 3rem 4rem;
  }

  #testimonials video,
  #features video {
    width: 100%;
    max-width: 550px; /* 想多小就设多小 */
    height: auto;
    display: block;
    margin: 0 auto; /* 可选，让它置中 */
    margin-bottom: 1rem;
  }

  #testimonials .slider,
  #about .slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
  }

  #testimonials .slides,
  #about .slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }
  #testimonials .slide,
  #about .slide {
    width: 100%;
    flex: 0 0 100%;
  }

}

/*pc/laptop version*/
@media (min-width: 1024px) {
nav a {
  color: black;
  width: auto;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  margin-left: 2px;
  margin-right: 20px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 6px 50px;
  background-color: #faf3e0;
}
.logo img {
  width: 100%;
  height: 300px;
  object-fit: cover; 
  display: block;
}
  .lang_en_h1{
    font-size: 20px;
  }

  .features,
  ol {
    columns: 2;
    column-gap: 2rem;
  }
  .section,
  .body {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  #features video {
    max-width: 350px;
    height: auto;
    margin-left: 30%;
  }

  #testimonials video {
    max-width: 350px;
    height: auto;
    margin-left: 30%;
  }

  #about .slider {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
  }

  #about .slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }
  #about .slide {
    width: 100%;
    flex: 0 0 100%;
  }
  

}

