@charset "UTF-8";
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

<!-- @media screen and (max-width: 1200px){
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 1600px !important;
  }
} -->

.header-container {
  background: #4CAF50;
  color: white;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.banner {
  width: 100%;
  margin-bottom: 80px;
  overflow: hidden;
  position: relative;
}
.banner .carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.banner .carousel .img-cover {
   min-width: 100%;
   height: auto;
  display: block;
  user-select: none;
}
.banner .carousel-indicators {
  position: absolute;
  margin: 0 auto;
  bottom: 10px;
  display: flex;
}
.banner .carousel-indicators .indicator {
  width: 60px;
  height: 60px;
  background-color: rgba(199, 210, 214, 0.5);
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  line-height: 60px;
  color: white;
  font-size: 30px;
  font-style: italic;
   margin: 20px;
}
.banner .carousel-indicators .indicator.active {
  background-color: #333;
}

.banner img {
  width: 100%;
  height: auto;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.guidance-container, .news, .departments-container, .experts-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  margin: 10px 0;
}

.guidance-item, .news-item, .department-item, .expert-item {
  text-align: center;
}

footer {
  background: #4CAF50;
  color: white;
  text-align: center;
  padding: 10px 0;
}

h2 {
  font-size: 38px;
  color: rgb(1, 131, 59);
  margin-left:200px;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", serif;
}

.medical-guide {
  margin-bottom: 130px;
}
.medical-guide .medical-container {
  margin: 0 auto;
  margin-bottom: 240px;
  max-width: 80vw;
}
.medical-guide .medical-container > h2 {
  margin-bottom: 20px;
  margin-left: 15px;
}
.medical-guide .medical-container .pictures-container {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --tip-width: 35%;
}
.medical-guide .medical-container .pictures-container .tip {
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
  text-align: center;
  flex-direction: column;
  color: white;
  white-space: nowrap;
}
.medical-guide .medical-container .pictures-container .tip div:nth-of-type(2) {
  font-size: 20px;
}
.medical-guide .medical-container .pictures-container .tip div:nth-of-type(3) {
  font-size: 12px;
}
.medical-guide .medical-container .pictures-container .tip div {
  width: 100%;
}
.medical-guide .medical-container .pictures-container .tip .img-container {
  /*
  图片占据文本块外剩余的空间
   */
  flex: 1;
}
.medical-guide .medical-container .pictures-container .tip .img-container .tip-img {
  position: relative;
  transform: translateY(3px);
  width: 70px;
  height: 70px;
  object-fit: fill;
}
.medical-guide .medical-container .pictures-container .top-left, .medical-guide .medical-container .pictures-container .bottom-left {
  width: 38%;
}
.medical-guide .medical-container .pictures-container .top-right, .medical-guide .medical-container .pictures-container .bottom-right {
  width: 38%;
}
.medical-guide .medical-container .pictures-container .top-left {
  height: 380px;
  position: relative;
}
.medical-guide .medical-container .pictures-container .top-left .tip-emergency {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 47%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(39, 116, 229, 0.5), rgba(134, 116, 188, 0.5));
}
.medical-guide .medical-container .pictures-container .top-right {
  --top-right-height: 250px;
  height: var(--top-right-height);
  position: relative;
  top: -50px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.medical-guide .medical-container .pictures-container .top-right .tip {
  width: 50%;
  height: 58%;
}
.medical-guide .medical-container .pictures-container .top-right .tip:nth-of-type(1) {
  background-color: rgb(16, 174, 237);
}
.medical-guide .medical-container .pictures-container .top-right .tip:nth-of-type(2) {
  background-color: rgb(245, 195, 100);
}
.medical-guide .medical-container .pictures-container .top-right .tip:nth-of-type(3) {
  background-color: rgb(35, 120, 245);
}
.medical-guide .medical-container .pictures-container .top-right .tip:nth-of-type(4) {
  background-color: rgb(13, 216, 213);
}
.medical-guide .medical-container .pictures-container .bottom-left {
  --bottom-left-height: 150px;
  height: var(--bottom-left-height);
  display: flex;
  justify-content: start;
}
.medical-guide .medical-container .pictures-container .bottom-left .tip .img-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.medical-guide .medical-container .pictures-container .bottom-left .tip:nth-of-type(1) {
  background-color: rgb(13, 216, 213);
}
.medical-guide .medical-container .pictures-container .bottom-left .tip:nth-of-type(1) .img-container img {
  width: 55px;
}
.medical-guide .medical-container .pictures-container .bottom-left .tip:nth-of-type(2) {
  background-color: rgb(35, 120, 245);
}
.medical-guide .medical-container .pictures-container .bottom-left .tip-top-left {
  width: 180px;
  height: 180px;
}
.medical-guide .medical-container .pictures-container .bottom-right {
  height: 250px;
}
.medical-guide .medical-container .pictures-container .bottom-right .img-container {
  position: relative;
  top: -75px;
}
.medical-guide .medical-container .pictures-container .bottom-right .info-box {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
}
.medical-guide .medical-container .pictures-container .bottom-right .info-box div {
  display: inline-block;
  height: 60%;
  border-radius: 20px;
  padding: 1.5%;
  /*设置文字方向垂直且保持直立*/
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
  line-height: 1.5;
  color: white;
  font-size: 17px;
  background-color: rgb(0, 117, 170);
}
.medical-guide .medical-container .pictures-container .bottom-right .info-box div span {
  letter-spacing: 5px;
  display: block;
  position: relative;
  transform: translateX(-2px);
}
.medical-guide .medical-news {
  max-width: 80vw;
  margin: 0 auto;
  display: flex;
  <!-- flex-wrap: wrap; -->
  justify-content: space-evenly;
}
.medical-guide .medical-news .medical-news-card {
  display: grid;
  margin: 0 20px;
  grid-template-rows: 270px 290px;
  flex-grow: 1;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  transition: transform 1s, box-shadow 1s;
}
.medical-guide .medical-news .medical-news-card:hover {
  transform: translateY(-5px); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
}

.medical-guide .medical-news .medical-news-card .img-container {
  width: inherit;
}
.medical-guide .medical-news .medical-news-card .news-content {
  padding: 30px;
  box-sizing: border-box;
}
.medical-guide .medical-news .medical-news-card .news-content .news-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.medical-guide .medical-news .medical-news-card .news-content .news-title div {
  color: rgb(1, 131, 59);
  font-weight: bold;
  letter-spacing: 2px;
}
.medical-guide .medical-news .medical-news-card .news-content .news-title div:nth-of-type(1) {
  font-size: 30px;
}
.medical-guide .medical-news .medical-news-card .news-content .news-title div:nth-of-type(2) {
  font-size: 16px;
  font-weight: 400;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.medical-guide .medical-news .medical-news-card .news-content .news-entry {
  line-height:56px;
  box-sizing: border-box;
  border-bottom: 2px solid rgb(238, 238, 238);
  /*隐藏超出范围的文字*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.department-navigation {
  margin-bottom: 100px;
}
.department-navigation .screen-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}
.department-navigation .screen-bar div {
  margin-right: 5%;
}
.department-navigation .screen-bar div form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}
.department-navigation .screen-bar div select {
  height: 39px;
  width: 250px;
  border: 1px solid rgb(222, 222, 222);
  outline: none;
}
.department-navigation .screen-bar div button {
  height: 39px;
  padding: 5px 10px;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 30px;
  color: white;
  background-color: rgb(235, 187, 103);
  border: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
.department-navigation .screen-bar div button img {
  margin-right: 3px;
  height: 62%;
}
.department-navigation .department-content {
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 80%;
  transition: all 0.3s ease;
  height: 560px;
}
.department-navigation .department-content .department-entry,
.department-navigation .department-content .department-list {
  transition: all 0.3s ease;
}
.department-navigation .department-content .department-entry {
  padding: 10px;
  display: grid;
  grid-template-rows: 200px 190px 100px;
  justify-content: center;
  align-items: center;
  background-color: rgb(1, 131, 59);
  color: white;
  width: 200px;
}
.department-navigation .department-content .department-entry img {
  width:107px;
  height: 50%;
}
.department-navigation .department-content .department-entry span {
  padding-bottom: 30px;
  font-size: 28px;
  font-family: 微软雅黑, serif;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  line-height: 107px;
}
.department-navigation .department-content .department-entry button {
  margin: 0 auto;
  display: block;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: rgb(235, 187, 103);
  background-size: auto;
}



.department-navigation .department-content .department-list {
    width: 50vw;
    padding: 0 2vw;
    display: flex;
    flex-direction: column; /* 确保盒子上下排列 */
    gap: 10px;  
}
.department-list .renminStreet-box,
.department-list .happyStreet-box {
    text-align: center;
    overflow: hidden;
    overflow-y: auto;
    background-color: #f9f9f9; 
    border: 1px solid #ccc;   
    border-radius: 8px;        
    padding: 20px;            
    margin: 10px 15px;             
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.department-list .renminStreet-box .streetBox,
.department-list .happyStreet-box .streetBox{
    display: flex;               /* 使用 Flexbox */
    flex-wrap: wrap;            /* 允许换行 */
    gap: 10px;
}
.department-list .renminStreet-box .animated-text,
.department-list .happyStreet-box .animated-text{
    flex: 0 0 calc(50% - 10px); /* 每个文本占用一半宽度，减去间距 */
    box-sizing: border-box
}

/* 隐藏滚动条 */
.department-list .renminStreet-box::-webkit-scrollbar,
.department-list .happyStreet-box::-webkit-scrollbar {
    display: none; /* 完全隐藏滚动条 */
}

/* 如果需要为 Firefox 添加支持 */
 .department-list .renminStreet-box,
 .department-list .happyStreet-box {
 scrollbar-width: none; /* 隐藏滚动条 */
}
.department-list .renminStreet-box:hover,
.department-list .happyStreet-box:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}

.animated-text {
    display: inline-block; /* 使得 transform 能生效 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.department-list .renminStreet-box   .animated-text:hover ,
.department-list .happyStreet-box   .animated-text:hover {
    <!-- border-bottom: 1px solid #999; -->
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); 
}
.department-navigation .department-content .department-list > div {
  flex: 0 0 calc(50% - 10px); /* 每个子项宽度为50%减去间隙 */
  box-sizing: border-box; /* 包含边距和填充在内的总宽度计算 */
  margin:5px 0;
}
.department-navigation .department-content .department-list.hidden {
  flex: 0;
  opacity: 0;
  transform: scaleX(0);
  overflow: hidden;
}



.famous-doctors {
  margin-bottom: 100px;
}
.famous-doctors .screen-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 100px;
}
.famous-doctors .screen-bar div:nth-of-type(1) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}
.famous-doctors .screen-bar div:nth-of-type(1) button:nth-of-type(1), .famous-doctors .screen-bar div:nth-of-type(1) button:nth-of-type(2) {
  font-family: 黑体, serif;
  padding: 9px 15px;
}
.famous-doctors .screen-bar form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.famous-doctors .screen-bar form select {
  height: 39px;
  width: 250px;
  border: 1px solid rgb(222, 222, 222);
}
.famous-doctors .screen-bar form button img {
  width: 21%;
}
.famous-doctors .screen-bar button {
  border-radius: 20px;
  background-color: rgb(1, 131, 59);
  padding: 8px 15px;
  color: white;
  border: none;
  font-size: 15px;
}
.famous-doctors .doctors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  margin-bottom: 50px;
  height: 1000px;
}
.famous-doctors .doctors > div {
  width: 520px;
  height: 445px;
  padding: 20px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
}
.famous-doctors .doctors > div > div {
  --img-size: 115px;
  display: grid;
  grid-template-columns: var(--img-size) 1fr;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.famous-doctors .doctors > div > div img {
  border-radius: 50%;
  width: var(--img-size);
  height: var(--img-size);
}
.famous-doctors .doctors > div > div > div > p {
  font-weight: bold;
  margin-bottom: 7px;
  margin-left: 10px;
}
.famous-doctors .doctors > div > p {
  margin-left: 10px;
}
.famous-doctors .see-more {
  text-align: end;
  color: rgb(1, 131, 59);
  font-weight: bold;
  margin-bottom: 100px;
}
.famous-doctors .famous-doctors-others {
            display: flex;
            flex-wrap: wrap;
            align-content: space-between;
            justify-content: center;
  height: 455px;
}
.famous-doctors .famous-doctors-others > div {
  flex-basis: 33.3%;
  width: 235px;
  height: 180px;
  background-size: 280px 180px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  cursor: pointer;
}
.famous-doctors .famous-doctors-others > div > p {
  width: 100%;
  color: white;
  text-align: center;
  white-space: nowrap;
  margin-block-start: 5px;
  margin-block-end: 5px;
}
.famous-doctors .famous-doctors-others > div > p:nth-of-type(1) {
  font-weight: bold;
  font-size: 33px;
  letter-spacing: 8px;
}
.famous-doctors .famous-doctors-others > div > p:nth-of-type(2) {
  text-decoration: underline white;
  font-style: italic;
}

.friendship-link {
  margin-bottom: 30px;
}
.friendship-link .link-content {
  display: grid;
  grid-template-columns: 55fr 45fr;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
  background-color: rgb(1, 131, 59);
  height: 400px;
  padding: 40px;
}
.friendship-link .link-content .link-left {
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.friendship-link .link-content .link-left img {
  <!-- height: 110px; -->
}
.friendship-link .link-content .link-right {
  display: grid;
  grid-template-columns: repeat(2, 0.8fr);
  gap: 30px;
}

.index-footer {
  position: relative;
  display: grid;
  grid-template-columns: 4fr 5fr;
  justify-content: center;
  background-color: transparent;
  color: black;
}
.index-footer .footer-left, .index-footer .footer-right {
  box-sizing: content-box;
}
.index-footer .footer-left {
  display: grid;
  grid-template-columns: repeat(3, 125px);
  grid-template-rows: repeat(2, 125px);
  gap: 20px;
}
.index-footer .footer-left > img:nth-of-type(1) {
  grid-column: 1/4;
  padding: 0px;
height:100%;
}
<!-- .index-footer .footer-left > .imgTeg {
  height:100%;
} -->
.index-footer .footer-right {
  display: grid;
  grid-template-columns: 350px 160px;
  grid-template-rows: 90px 55px;
  justify-content: center;
  align-items: center;
  column-gap: 40px;
  position: relative;
  top: 80px;
  right: -45px;
}
.index-footer .footer-right div:first-child div:first-child {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 5px;
}
.index-footer .footer-right div:first-child p {
  margin-bottom: 5px;
}
.index-footer .footer-right > img:nth-of-type(2) {
  grid-area: 1/2/3/3;
}

.medical-guide, .department-navigation, .famous-doctors, .friendship-link {
  width: 100%;
}

