/* 设计变量 */
:root {
  --c-primary: #00c389;
  --c-bg: #f5f7fa;
  --c-text: #222;
  --c-light: #fff;
  --c-muted: #666;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --transition: all .3s ease;
}

/* 重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
}

/* 工具 */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70%;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-light);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

/* 1. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url(img/btn.png) center/cover no-repeat;
  z-index: -1;
}

.hero__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero__logo {
  margin-top: 70px;
  height: 80%;
  width: 40%;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--c-light);
  margin: .5em 0;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--c-light);
  margin-bottom: 2em;
}

.hero__actions {
  margin-right: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.qrcode {
  display: flex;
  flex-direction: row;
}

.qrcode__tip {
  padding: 0 10px;
  color: var(--c-light);
  font-size: 2rem;
}

.qrcode__img {
  width: 150px;
  height: 190px;
  margin-top: .5rem;
}

.hero__addr {
  margin-left: 2rem;
  padding: auto;
  font-size: 2rem;
  color: var(--c-light);
  font-style: normal;
}

.hero__addr a {
  color: inherit;
}

.homtBottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: #222;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* 2. News */
.flex_row {
  display: flex;
  flex-direction: row;
}

.consultationContent {
  margin: 70px 0 0 20px;
  background-color: #0300c3;
  /* width: 500px;
  height: 500px; */
  /* height: 100vh; */
}

/* ----------内容一---------- */
.consultationContent .content01 {
  width: 820px;
  color: #ffffff;
  padding: 10px;
  background-color: #0300c3;

}

.consultationContent .content01 .contentTitle {
  font-size: 30px;
  font-weight: bold;
  padding: 20px 0;
  text-align: center;

}

.consultationContent .content01 .image01 {
  width: 800px;
  height: 400px;
}

.consultationContent .content01 .image02 {
  width: 800px;
  /* height: 400px; */
}

.consultationContent .content01 .text {
  background-color: #ffffff;
  color: #222;
  font-size: 15px;
  width: 800px;
  padding: 15px;
}

.text-right {
  width: 710px;
  /* 弹性盒模型里靠右 */
  margin-left: auto;
  /* 内部文字右对齐 */
  text-align: right;

}

.consultationContent .content01 .text .textContent {
  padding-bottom: 15px;
}

.consultationContent .content01 .text .img {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.consultationContent .content01 .text .imgSize {
  display: flex;
  flex-direction: column;
  width: 200px;
  height: 250px;
  padding: 5px 0;
  margin: 50px 0 0 50px;
}

.consultationContent .content01 .text .activeHighlight {
  width: 300px;
  font-weight: bold;
  background-color: #015de7;
  color: #ffffff;
  text-align: center;
  border-radius: 200px;
  padding: 5px 10px 5px 10px;
}

.consultationContent .content01 .text .ai {
  width: 760px;
  height: 300px;
}

.consultationContent .content01 .text .contentImg {
  width: 700px;
  height: 400px;
}

.consultationContent .content01 .code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.consultationContent .content01 .code img {
  width: 200px;
  height: 200px;
}

.consultationContent>div {
  display: none;
}

.consultationContent>.active {
  display: block;
}

/* ----------内容二---------- */
.content02 {
  width: 820px;
  background-color: #eee2bc;
  padding: 0 30px;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
}

.content02 .content02Title {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content02 .content02Title .bookback {
  width: 600px;
  height: 500px;
}

.content02 .content02Title .title02 {
  position: absolute;
  top: 30%;
  left: 26%;
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  color: #e92005d8;
}

.content02 .picture {
  width: 750px;
  margin: 10px 0;
}

.content02 .wenZi {
  font-size: 20px;
  margin-bottom: 20px;
  /* font-weight: bold; */
}

.content02 .wenZi2 {
  font-size: 20px;
}

.content02 .wenZi3 {
  font-size: 20px;
  margin: 20px 0;
}

.content02 .topic {
  width: 230px;
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  background-color: #fff;
  color: #e92005d8;
}

.content02 .topic02 {
  width: 400px;
  margin: 20px 0;
  padding: 10px;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  background-color: #e92005d8;
  color: #fff;
  border-radius: 30px;
}

.content02 .whiteBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 10px 10px;
}

.content02 .code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}


/* ------------------------- */
.news__card {
  height: 200px;
  width: 500px;
  background: var(--c-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 70px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.news__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.news__date {
  display: block;
  padding: 1rem 1.5rem 0;
  color: var(--c-muted);
  font-size: .9rem;
}

.newsContent {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.news__title {
  /* padding: .5rem 0; */
  font-size: 1.25rem;
  font-weight: 600;
}

.news__thumb {
  width: 200px;
  height: 100px;
  object-fit: cover;
  padding-bottom: 20px;
}

.news__content {
  /* border-top: 0.5px solid #929090;
  width: 98%; */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s, opacity .4s;
  padding: 0 1.5rem;
  /* background-color: #c5c1c1; */
}

.news__content p {
  margin: 1rem 0;
}

.news__card.active .news__content {
  max-height: 300px;
  opacity: 1;
}

/* 3. About */
.aboutWe {
  /* width: 90%; */
  background: url('./img/image_02.png') center/cover no-repeat;
  margin: 60px 0;
  display: flex;
  flex-direction: row;
  /* text-align: center; */
}

.aboutWe img {
  width: 600px;
}

.about {
  /* background: #222; */
  color: #ffffff;
  padding: 3rem 0;
  font-size: 2.2rem;
  line-height: 1.5;
  margin: 0 auto;
}

.about__subtitle {
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero__wrap {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* -------------- 导航栏 -------------- */
:root {
  --nav-h: 64px;
  --primary: #00c389;
}

.navbar {
  background: #666;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}

.navbarContainer {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  /* height: 70%; */
}

.navbarContainer img {
  margin-left: 40px;
  width: 55px;
  height: 55px;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* .nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  
} */

.navbar.scrolled .nav-logo {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color .3s;
}

.navbar.scrolled .nav-menu a {
  color: #222;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

/* 下划线动画 */
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: .3s;
}

.navbar.scrolled .nav-hamburger span {
  background: #222;
}

/* 轮播图 */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide {
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

/* 回到顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  background: #00c389;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 35px;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* ------------- 移动端 ------------- */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: 70%;
    max-width: 240px;
    height: calc(100% - var(--nav-h));
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    transition: right .3s;
    box-shadow: -4px 0 12px rgba(0, 0, 0, .08);
  }

  .nav-toggle:checked~.nav-menu {
    right: 0;
  }

  .nav-menu a {
    color: #222;
  }
}