/* 导航栏样式 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1001;
  cursor: pointer;
}
#nav {
  background: #4f8fe8; /* 天蓝色，可根据需要调整 */
  border-radius: 6px;
}
#nav ul {
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav ul li {
  position: relative;
}
#nav ul li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #ffe4ec; /* 粉色 */
  min-width: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-direction: column;
  z-index: 1000;
  padding: 0;
  width: auto;
  row-gap: 5px; /* 新增：子菜单项垂直间距为5px */
}
/* 让二级及多级子菜单在右侧弹出 */
#nav ul li ul li ul {
  top: 0;
  left: 100%;
  background: #fff200; /* 三级子菜单黄色 */
}
/* 保持悬停显示 */
#nav ul li:hover > ul,
#nav ul li ul li:hover > ul {
  display: flex;
}
#nav ul li a {
  display: block;
  padding: 8px 16px;
  color: #111 !important;  /* 黑色菜单文字 */
  text-decoration: none;
  white-space: nowrap;
}
#nav ul li ul li a {
  padding-left: 5px;
  padding-right: 5px;
}
#nav ul li a:hover {
  background: #3576c5;
  color: #fff !important;
}
@media (max-width: 900px) {
  #nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: 0;
  }
  #nav.open ul,
  #nav ul.open {
    display: flex;
  }
  #nav ul li ul {
    position: static;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }
  .nav-toggle {
    display: block;
  }
}

/* 手机端二级菜单宽度优化 */
@media (max-width: 700px) {
  #nav ul ul {
    min-width: 0 !important;
    width: 90vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box;
  }
  #nav ul ul li {
    white-space: normal;
    word-break: break-all;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 轮播图样式 */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 320px;
}
.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  display: none;
}
.carousel-item.active {
  display: block;
}
.carousel-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}
.carousel-img.active {
  opacity: 1;
  z-index: 2;
}
.carousel-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(79,143,232,0.7);
  color: #fff;
  font-size: 1.2em;
  padding: 16px 24px;
  box-sizing: border-box;
  text-align: left;
  z-index: 3;
  letter-spacing: 1px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(79,143,232,0.7);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 11;
}
.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #4f8fe8;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.3s, opacity 0.3s;
}
.carousel-dots .dot.active {
  background: #4f8fe8;
  opacity: 1;
}

/* 内容区段落美化 */
#content p {
  font-size: 1.08em;
  color: #000;
  line-height: 1;
  margin: 12px 0 0 0;
  padding: 0 8px;
  letter-spacing: 0.2px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(79,143,232,0.04);
}
#content h3 {
  font-size: 1.5em;
  color: #b204f6;
  margin: 0;
  padding: 0;
  font-weight: bold;
}
#content p:first-child {
  margin-top: 0;
}
      html, body {
        margin: 0;
        padding: 0;
        font-size: 16px;
        background: #f6f8fa;
      }
      #content.container {
        width: 96%;
        max-width: 900px;
        margin: 0 auto;
        padding: 0 2vw;
      }
      /* 地图自适应 */
      #baidu-map {
        width: 100%;
        min-width: 220px;
        max-width: 600px;
        height: 40vw;
        max-height: 360px;
        min-height: 220px;
        margin: 24px auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      }
      @media (max-width: 600px) {
        #content.container {
          padding: 0 4vw;
        }
        #baidu-map {
          height: 220px;
          max-width: 100vw;
        }
      }
      /* 联系我们自适应 */
      .contact-box {
        background: #f8faff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        padding: 24px 18px;
        background-color: rgb(159, 159, 246);
        margin-bottom: 24px;
        font-size: 1.05em;
        word-break: break-all;
      }
      .contact-box p {
        margin-bottom: 12px;
        font-size: 1.1em;
      }
/* tese 特色优势样式 */
#tese {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 10px;
}
#tese ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
#tese ul li {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  background: #f8faff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  padding: 24px 10px 18px 10px;
  margin: 0;
  font-size: 1.08em;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
}
#tese ul li.fts {
  background: #4f8fe8;
  color: #fff;
}
#tese ul li h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 1px;
}
#tese ul li p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}
#tese ul li:hover {
  box-shadow: 0 4px 16px rgba(79,143,232,0.15);
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 700px) {
  #tese ul {
    flex-direction: column;
    gap: 14px;
  }
  #tese ul li {
    max-width: 100%;
    min-width: 0;
    padding: 18px 8px 14px 8px;
    font-size: 1em;
  }
}

/* service 服务内容样式 */
#service {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 10px;
}
#service .width {
  max-width: 1000px;
  margin: 0 auto;
}
#service .indextitle {
  font-size: 2em;
  color: #4f8fe8;
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: bold;
  letter-spacing: 2px;
}
#service .indexline {
  width: 60px;
  height: 4px;
  background: #4f8fe8;
  margin: 0 auto 10px auto;
  border-radius: 2px;
}
#service .indexdisc {
  text-align: center;
  color: #888;
  font-size: 1em;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
#service .slist {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
#service .slist li {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 180px;
  background: #f8faff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
  padding: 24px 14px 18px 14px;
  margin: 0;
  font-size: 1.05em;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#service .slist li h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #4f8fe8;
  letter-spacing: 1px;
}
#service .slist li p {
  margin: 0 0 6px 0;
  font-size: 1em;
  line-height: 1.7;
  color: #444;
}
#service .slist li:hover {
  box-shadow: 0 4px 16px rgba(79,143,232,0.15);
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 900px) {
  #service .slist {
    flex-direction: column;
    gap: 14px;
  }
  #service .slist li {
    max-width: 100%;
    min-width: 0;
    padding: 18px 10px 14px 10px;
    font-size: 1em;
  }
}

/* cases 部分案例样式 */
#cases {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto 0;
  padding: 0 10px;
}
#cases .width {
  max-width: 1200px;
  margin: 0 auto;
}
#cases .indextitle {
  font-size: 2em;
  color: #4f8fe8;
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: bold;
  letter-spacing: 2px;
}
#cases .indexline {
  width: 60px;
  height: 4px;
  background: #4f8fe8;
  margin: 0 auto 10px auto;
  border-radius: 2px;
}
#cases .indexdisc {
  text-align: center;
  color: #888;
  font-size: 1em;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
#cases ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
#cases ul li {
  flex: 1 1 180px;
  min-width: 100px;
  max-width: 300px;
  background: #f8faff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  padding: 18px 10px 14px 10px;
  margin: 0;
  font-size: 1.08em;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#cases ul li a {
  display: block;
  color: inherit;
  text-decoration: none;
}
#cases ul li img {
  width: 100%;
  max-width: 200px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}
#cases ul li h4 {
  margin: 0;
  font-size: 1em;
  font-weight: bold;
  color: #222;
  line-height: 1;
}
#cases ul li:hover {
  box-shadow: 0 4px 10px rgba(79,143,232,0.15);
  transform: translateY(-2px) scale(1);
  background: #eaf2ff;
}
@media (max-width: 900px) {
  #cases ul {
    flex-direction: column;
    gap: 14px;
  }
  #cases ul li {
    max-width: 100%;
    min-width: 0;
    padding: 5px 5px 5px 5cqw;
    font-size: 1em;
  }
  #cases ul li img {
    height: 80px;
  }
}

/* advantage 我们的优势样式 */
#advantage {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 10px;
}
#advantage .width {
  max-width: 1000px;
  margin: 0 auto;
}
#advantage .indextitle {
  font-size: 2em;
  color: #4f8fe8;
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: bold;
  letter-spacing: 2px;
}
#advantage .indexline {
  width: 60px;
  height: 4px;
  background: #4f8fe8;
  margin: 0 auto 10px auto;
  border-radius: 2px;
}
#advantage .indexdisc {
  text-align: center;
  color: #888;
  font-size: 1em;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
#advantage ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
#advantage ul li {
  background: #f8faff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 22px 18px 18px 54px;
  margin-bottom: 18px;
  position: relative;
  min-height: 80px;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
}
#advantage ul li i {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 24px;
  height: 24px;
  background: #4f8fe8;
  border-radius: 50%;
  display: inline-block;
}
#advantage ul li h3 {
  margin: 0 0 8px 0;
  font-size: 1.15em;
  font-weight: bold;
  color: #4f8fe8;
  letter-spacing: 1px;
}
#advantage ul li p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #444;
}
#advantage ul li:hover {
  box-shadow: 0 4px 16px rgba(79,143,232,0.15);
  transform: translateY(-4px) scale(1.03);
  background: #eaf2ff;
}
@media (max-width: 500px) {
  #advantage ul li {
    padding: 18px 10px 14px 44px;
    font-size: 1em;
    min-height: 60px;
  }
  #advantage ul li i {
    left: 10px;
    top: 18px;
    width: 18px;
    height: 18px;
  }
}

/* about 关于我们样式 */
#about {
  width: 100%;
  min-height: 480px;
  position: relative;
  background: #222;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
#about .vertical-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
  z-index: 2;
}
#about .slider-caption {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 40px 18px 30px 18px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
#about .slider-caption h2 {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#about .slider-caption p {
  font-size: 1.08em;
  color: #f3f3f3;
  line-height: 2;
  margin: 0;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#about .video-wrap {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
#about .video-wrap video {
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
}
#about .video-overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 900px) {
  #about .slider-caption {
    padding: 24px 8px 18px 8px;
    font-size: 1em;
  }
  #about .slider-caption h2 {
    font-size: 1.2em;
    margin-bottom: 14px;
  }
  #about .slider-caption p {
    font-size: 0.98em;
    line-height: 1.7;
  }
}

/* price 网站建设价格样式 */
#price {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 10px;
}
#price .width {
  max-width: 1000px;
  margin: 0 auto;
}
#price .indextitle {
  font-size: 2em;
  color: #4f8fe8;
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: bold;
  letter-spacing: 2px;
}
#price .indexline {
  width: 60px;
  height: 4px;
  background: #4f8fe8;
  margin: 0 auto 10px auto;
  border-radius: 2px;
}
#price .indexdisc {
  text-align: center;
  color: #888;
  font-size: 1em;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
#price img {
  display: inline-block;
  width: 200px;
  max-width: 100%;
  margin: 12px 12px 0 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  vertical-align: top;
  transition: box-shadow 0.2s, transform 0.2s;
}
#price img:hover {
  box-shadow: 0 4px 16px rgba(79,143,232,0.15);
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 900px) {
  #price img {
    width: 100%;
    margin: 10px 0 0 0;
  }
}
/* Optimized Language Selector */
.language-selector {
    position: relative;
    margin-left: 15px;
  }
  
  .language-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 30px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2224%22%20height%3D%2215%22%20viewBox%3D%220%200%2024%2015%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2015L0.000488281%200L23.9995%200L12%2015Z%22%20fill%3D%22%23333%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .language-select:hover {
    border-color: #888;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
