@font-face {
  font-family: "YouSheBiaoTiHei";
  src: url("./fonts/YouSheBiaoTiHei/YouSheBiaoTiHei.woff") format("woff"),
    url("./fonts/YouSheBiaoTiHei/YouSheBiaoTiHei.ttf") format("truetype"),
    url("./fonts/YouSheBiaoTiHei/YouSheBiaoTiHei.eot") format("embedded-opentype");
}

body {
  background: #f6f7f9;
  margin: 0;
  padding: 0;
  font-family: "Source Han Sans CN", sans-serif;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

.flex {
  display: flex;
}

/* 顶部导航栏 */
.header {
  background: #fff;
}

/* 首页个性化 头 */
.indexheader {
  color: #fff;
  background: transparent !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
}

.indexheader .main-header {
  background: transparent !important;
  backdrop-filter: none;
}

.indexheader .language-link {
  color: #fff;
}

.indexheader .smart-service {
  color: #fff;
  background: url("/newwz/images/icon_wh_w.png") no-repeat left center;
}

.indexheader .search-box {
  background: #fff;
}

.indexheader .nav-item.active {
  color: #fff;
}

.indexheader .nav-item.active::after {
  background: #fff;
}

.indexheader .nav-item {
  color: #fff;
}

.indexheader .ewb-nav-spec {
  background: url("/newwz/images/img_jingan2.png") no-repeat;
}

/* end */

.top-bar {
  height: 72px;
  margin-bottom: 8px;
}

.top-bar-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
}

.language-links {
  min-width: 273px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 200px;
}

.language-link {
  color: #6f7f9a;
  font-size: 16px;
  line-height: 1.5;
}

.accessibility-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
}

.accessibility-link {
  padding: 8px 24px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.375;
}

.accessibility-link:first-child {
  background: #e5f0fd;
  color: #1764ce;
}

.accessibility-link:last-child {
  background: #fff3e3;
  color: #db7c01;
}

.search-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.smart-service {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 24px;
  background: url("/newwz/images/icon_wh.png") no-repeat left center;
  border-radius: 99px;
  color: #6f7f9a;
  font-size: 16px;
  line-height: 1.375;
}

.ai-icon {
  width: 16px;
  height: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 358px;
  height: 40px;
  padding: 8px 2px 8px 16px;
  border: 1px solid #dadada;
  border-radius: 99px;
  box-sizing: border-box;
}

.search-input {
  width: 176px;
  border: none;
  outline: none;
  color: #999;
  font-size: 16px;
  line-height: 1.375;
  background: transparent;
  margin-right: 10px;
}

.search-input::placeholder {
  color: #999;
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.search-icon-group {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.search-icon {
  width: 100%;
  height: 100%;
}

.divider {
  width: 1px;
  height: 18px;
  background: #b3c1d5;
}

.ewb-nav-spec {
  width: 56px;
  height: 30px;
  display: inline-block;
  background: url("/newwz/images/img_jingan.png") no-repeat center;
}

.recommend-btn {
  position: relative;
  width: 96px;
  height: 36px;
  padding: 0px 16px;
  background: linear-gradient(-44deg, #ff7b00 7%, #ffa01b 100%);
  border-radius: 99px;
  color: #fff;
  font-size: 16px;
  line-height: 36px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.recommend-btn:hover .recommend-tooltip {
  display: block;
}

/* 智能推荐悬浮框 */
.recommend-tooltip {
  position: absolute;
  top: 20px;
  right: 0;
  width: 1200px;
  display: none;
  box-sizing: border-box;
}

.recommend-tooltip.show {
  display: block;
}

.guess-section-box::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.9) 100%);
  transform: rotate(45deg);
  border: 1px solid #e5e5e5;
  border-right: none;
  border-bottom: none;
}

.guess-section-box {
  position: relative;
  display: flex;
  gap: 20px;
  width: 1200px;
  margin-top: 30px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 16px 20px;
  z-index: 100;
  box-sizing: border-box;
}

.guess-section {}

.guess-header h2>span,
.guess-header h2 {
  margin: 0;
  font-family: "YouSheBiaoTiHei";
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  margin: 0 0 12px 0;
  color: #fff;
  -webkit-text-stroke: 2px;
}

.guess-header h2::before {
  content: attr(data-text);
  position: absolute;
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: #333333;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guess-header h2>span::before {
  content: attr(data-text);
  position: absolute;
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: #ff960c;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guess-content {
  display: flex;
  gap: 20px;
}

.guess-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 275px;
}

.tag-item {
  width: calc(50% - 6px);
  height: 52.6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 12px 12px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.tag-item:hover {
  border: 1px solid #1764ce;
}

.tag-icon .icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 20px;
}

.icon-bg.bg-blue {
  background: #5ab9e6;
}

.icon-bg.bg-yellow {
  background: #ffd065;
}

.icon-bg.bg-purple {
  background: #d06fc6;
}

.icon-bg.bg-green {
  background: #75b866;
}

.icon-bg.bg-pink {
  background: #f37b87;
}

.icon-bg.bg-blue-light {
  background: #5ab9e6;
}

.tag-text {
  font-family: "Source Han Sans CN";
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
}

.tag-item:hover .tag-text {
  color: #1764ce;
  font-weight: 500;
}

.guess-questions {
  display: flex;
  flex-direction: column;
  width: 275px;
  border-radius: 4px;
  background: #ffffff;
  padding: 0 16px;
  box-sizing: border-box;
}

.question-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px dashed #cbd0d7;
  cursor: pointer;
}

.question-item:last-child {
  border-bottom: none;
}

.question-item a {
  font-family: "Source Han Sans CN";
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-item:hover a {
  color: #1764ce;
  font-weight: 500;
}

.icon-search {
  width: 24px;
  height: 24px;
  background: url("/newwz/images/icon_search.png") no-repeat;
}

/* 主导航 */
.main-header {
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(100.2px);
  position: relative;
}

.main-header-container {
  display: flex;
  justify-content: center;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 1200px;
}

.nav-item {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #194279;
  padding: 0 10px 20px 10px;
}

.nav-item.active {
  position: relative;
  font-weight: 700;
  color: #1764ce;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #1764ce;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: #1764ce;
}

.menu-toggle {
  position: absolute;
  right: 360px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 30px;
}

/* 页脚顶部 */
.footer-top {
  background: #495873;
  height: 74px;
}

.footer-top-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.government-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.government-link {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  height: 42px;
  background: #fff;
  border-radius: 5px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

/* 关怀版样式 */
.old-care-style .top-bar {
  height: auto;
}

.old-care-style .top-bar-container {
  justify-content: center;
  width: 100%;
}

.old-care-style .language-links {
  margin-right: 0;
}

.old-care-style .search-box {
  width: auto;
}

.old-care-style .recommend-btn {
  width: auto;
}

.old-care-style .main-header-container {
  width: 100%;
}

.old-care-style .indexheader .main-header {
  height: auto;
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .top-bar {
    height: auto;
    padding: 10px 0;
    margin-bottom: 0;
  }

  .top-bar-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    align-items: stretch;
  }

  .language-links {
    min-width: auto;
    gap: 10px;
    margin-right: 0;
    justify-content: center;
  }

  .language-link {
    font-size: 14px;
  }

  .accessibility-links {
    gap: 8px;
    margin-right: 0;
    justify-content: center;
  }

  .accessibility-link {
    padding: 6px 16px;
    font-size: 14px;
  }

  .search-area {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .smart-service {
    font-size: 14px;
    justify-content: center;
  }

  .search-box {
    width: 100%;
    height: 36px;
  }

  .search-input {
    width: 100%;
    font-size: 14px;
  }

  .main-header {
    height: auto;
  }

  .main-header-container {
    justify-content: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 10px;
    width: 100%;
    justify-content: start;
  }

  .nav-item {
    font-size: 16px;
    padding: 5px;
    padding: 8px 5px;
    flex: 1;
    text-align: center;
    min-width: 25%;
  }

  .nav-item.active::after {
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
  }

  .nav-divider {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .footer-top {
    height: auto;
    padding: 15px 0;
  }

  .footer-top-container {
    flex-wrap: wrap;
    padding: 0 15px;
  }

  /* 首页头部特殊样式 */
  .indexheader {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  }

  .government-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .government-link {
    padding: 4px 10px;
    font-size: 14px;
    height: 36px;
  }

  /* 智能推荐适配 */
  .recommend-btn {
    height: 32px;
    font-size: 14px;
    line-height: 32px;
    padding: 0 12px;
  }

  .recommend-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
  }

  .recommend-tooltip.show {
    display: block;
  }

  .guess-section-box {
    width: calc(100% - 30px);
    margin: 60px 15px 15px;
    padding: 12px 15px;
    gap: 15px;
  }

  .guess-section-box::before {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .guess-header h2,
  .guess-header h2>span {
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 10px 0;
  }

  .guess-content {
    flex-direction: column;
    gap: 15px;
  }

  .guess-tags,
  .guess-questions {
    width: 100%;
  }

  .tag-item {
    height: auto;
    padding: 8px 0 8px 8px;
  }

  .tag-text {
    font-size: 14px;
  }
}