* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

body {
  background-color: #f8f9fa;
  max-width: 100vw;
  overflow-x: hidden;
}

/* 轮播Banner */
.banner {
  width: 100vw;
  height: 60vw;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("https://xcx.amcarebsh.com/static/hmbanner.jpg") center/cover no-repeat;
  padding: 8vw 5vw;
  position: relative;
}

.banner-title-1 {
  font-size: 6vw;
  color: #2b5494;
  line-height: 8vw;
  margin-bottom: 2vw;
}

.banner-title-2 {
  font-size: 6vw;
  color: #243b55;
  line-height: 8vw;
  margin-bottom: 4vw;
}

.banner-subtitle {
  font-size: 3vw;
  color: #6482b4;
  line-height: 4vw;
}

.banner-dots {
  position: absolute;
  bottom: 8vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3vw;
}

.dot {
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  background: #e0e0e0;
}

.dot.active {
  background: #6464c8;
}

/* 功能入口模块 */
.func-card {
  width: 90vw;
  margin: 5vw auto 5vw auto;
  background: #ffffff;
  border-radius: 4vw;
  padding: 4vw;
  box-shadow: 0 2vw 8vw rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  overflow: hidden;
}

.func-big {
  grid-row: 1 / 3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("https://xcx.amcarebsh.com/static/docbg500.jpg") center/cover no-repeat;
  border-radius: 2vw;
  padding: 5vw 3vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.func-title {
  font-size: 4vw;
  color: #222;
  margin-bottom: 1vw;
}

.func-desc {
  font-size: 2.5vw;
  color: #666;
  margin-bottom: 5vw;
}

.func-btn {
  width: fit-content;
  padding: 1vw 3vw;
  border: 1px solid #6464c8;
  border-radius: 10vw;
  color: #6464c8;
  font-size: 3vw;
  text-decoration: none;
}

.func-small {
  background: #f8f9fc;
  border-radius: 2vw;
  padding: 4vw 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.func-small.blue {
  background: #e8f4fc;
}

.func-icon {
  width: 14vw;
  height: 14vw;
  border-radius: 1vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8vw;
}

.func-icon.purple {
}

.func-icon.blue {
}

.consult-card {
  width: 90vw;
  margin: 0 auto 6vw auto;
  background: linear-gradient(90deg, #f0f4fc, #ffffff);
  border-radius: 3vw;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.consult-bg {
  width: 15vw;
  height: 18vw;
  background: url("https://xcx.amcarebsh.com/static/cxn.png") top/cover
    no-repeat;
}

.consult-info {
  padding: 0 4vw;
}

.consult-title {
  font-size: 5vw;
  color: #333;
  margin-bottom: 2vw;
}

.consult-desc {
  font-size: 3.5vw;
  color: #aaa;
}

.consult-btn {
  width: 20vw;
  margin-left: 16vw;
  padding: 2vw 2vw;
  background: linear-gradient(90deg, #7986e8, #5a67c9);
  color: white;
  border-radius: 4vw;
  font-size: 2.5vw;
  text-decoration: none;
  text-align: center;
}

/* 科普文章模块 */
.article-section {
  width: 90vw;
  margin: 0 auto;
  padding-bottom: 4vw;
}

.section-title {
  font-size: 5vw;
  color: #333;
  margin-bottom: 1vw;
  display: flex;
  align-items: center;
  gap: 2vw;
}

.section-title::before {
  content: "";
  width: 1.5vw;
  height: 6vw;
  background: linear-gradient(180deg, #79aef0, #c064c8);
  border-radius: 1vw;
}

.section-subtitle {
  font-size: 3.5vw;
  color: #999;
}
a.func-small{
  text-decoration: none;
}

/* 可横向滑动的标签栏 */
.tab-container {
  width: 100%;
  overflow-x: auto;
  margin: 5vw auto;
  -webkit-overflow-scrolling: touch;
}

.tab-container::-webkit-scrollbar {
  display: none;
}

.tab-wrapper {
  display: flex;
  gap: 3vw;
  min-width: fit-content;
}

.tab-item {
  padding: 2vw 5vw;
  border-radius: 5vw;
  font-size: 3.5vw;
  background: #f1f3f5;
  color: #999;
  white-space: nowrap;
}

.tab-item.active {
  background: #52bcd4;
  color: white;
}

/* 文章列表 */
.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
}
.article-list img {
  width: 45vw;
}

.article-card {
  background: white;
  border-radius: 2vw;
  overflow: hidden;
  box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.05);
}

.article-img {
  width: 100%;
  height: 45vw;
}

.article-title {
  padding: 3vw;
  font-size: 3vw;
  color: #333;
  line-height: 6.5vw;
}

.article-list-more {
  margin-top: 6vw;
  display: flex;
  flex-direction: column;
  gap: 5vw;
  padding: 0 2vw;
  text-align: center;
}

.article-item-more {
  display: block;
  font-size: 3vw;
  width: 33vw;
  height: 6vw;
  text-align: center;
  margin: 0 auto;
  background: #d4d4d4;
  line-height: 6vw;
  border-radius: 3vw;
}
/* 底部导航 */
.footer-nav {
  position: fixed;
  bottom: 0;
  width: 100vw;
  height: 16vw;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1vw 5vw rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
  color: #999;
  text-decoration: none;
  font-size: 4vw;
}

.nav-item.active {
  color: #6464c8;
}

.nav-icon {
  font-size: 8vw;
}

.nav-center {
  width: 15vw;
  height: 15vw;
  border-radius: 50%;
  background: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8vw;
  color: white;
  margin-bottom: 8vw;
}

/* 占位高度避免内容被底部导航遮挡 */
.placeholder {
  height: 20vw;
}

.headnav {
    display: block;
    width: 100%;
    height: 8vw;
    color: #333;
    top: 0;
    text-decoration: none;
    background: #fff;
    text-align: center;
    position: fixed;
    font-size: 3vw;
    line-height: 8vw;
    border-bottom: 1px solid #00000045;
    position: fixed;
}
.headnav .iconfont{
  float: left;
}
.detail .title{
  font-size: 4vw;
  font-weight: bold; 
  width: 90vw;
  margin: 0 5vw;
  margin-top: 15vw;
  margin-bottom: 5vw;
  line-height: 10vw;
  text-align: center;
}
.detail .content{
  width: 80vw;
  margin: 0 10vw;
  font-size: 3vw;
  margin-bottom: 20vw;
}

.detail .content img{
  width: 80vw;
  margin-bottom: 5vw;
}
.detail .content div{
  display: block;
  float: left;
}
