/* 页面基础 */
body {
  min-width: 1200px;
  overflow-x: hidden;
  background: url(../images/zsk-bg-body-26.png) no-repeat;
  background-size: 100%;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #2e2e2e;
}

.container {
  margin: 0 auto;
  padding: 0;
  width: calc(1200vw / 19.2);
}

/* 头部区域 */
.header {
  margin-top: calc(40vh / 10.8);
  background: none;
}

.header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo-box {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.header-logo {
  display: block;
  align-self: flex-start;
  width: calc(317vw / 19.2);
  margin-bottom: calc(20vh / 10.8);
}

.header-title-box {
  margin-top: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-title-text {
  margin-top: 45px;
}

.header-title-text img {
  height: 140px;
}

/* 搜索区域 */
.zsk-search-wrap {
  margin-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: calc(30vh / 10.8);
  text-align: center;
}

.zsk-search-box {
  position: unset;
  display: flex;
  align-items: stretch;
  width: 490px;
  height: 52px;
  max-width: 100%;
  margin-bottom: 0;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.zsk-search-box:before{
  display: none;
}

.zsk-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 12px;
  box-sizing: border-box;
}

.zsk-search-icon {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  flex-shrink: 0;
  display: block;
}

.header .zsk-search-input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: normal;
  color: #333;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.header .zsk-search-input::placeholder {
  color: #c0c0c0;
}

.header .zsk-search-btn {
  position: unset;
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 100%;
  min-height: 52px;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  border-radius: 0;
  background: #3b8cff;
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  font-family: inherit;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s;
}

.header .zsk-search-btn:hover,
.header .zsk-search-btn:focus {
  background: #2a76e8;
  color: #fff;
  outline: none;
  box-shadow: none;
}

.header .zsk-search-btn:active {
  background: #1f66d4;
}

/* 热词 */
.hot-words {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 490px;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
}

.hot-label,
.hot-item {
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.hot-label {
  color: #5e5e5e;
  margin-right: 16px;
}

.hot-item {
  color: #5e5e5e;
  margin: 0 16px;
  text-decoration: none;
  transition: color 0.3s;
}

.hot-item:hover {
  color: #2357c7;
}

/* 主内容区 */
.main {
  margin-top: 80px;
  padding-bottom: calc(60vh / 10.8);
}

/* 知识库切换 Tab */
.tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin-bottom: calc(40vh / 10.8);
}

.tab-nav .tab-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 34px;
  padding: 0 40px;
  font-size: 28px;
  line-height: 1;
  color: #595959;
  text-decoration: none;
  border: none;
  background: none;
  box-sizing: border-box;
}

.tab-nav .tab-item:hover,
.tab-nav .tab-item:focus,
.tab-nav .tab-item:active {
  text-decoration: none;
  border: none;
  outline: none;
}

.tab-nav .tab-item.active {
  color: #2357c7;
  font-weight: bold;
}

.tab-nav .tab-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/zsk-tab-active.png) no-repeat;
  background-size: 100% 100%;
  z-index: 0;
}

.tab-nav .tab-item span {
  position: relative;
  z-index: 1;
}

/* 主题分类 + 问答整体容器 */
.knowledge-panel {
  position: relative;
}

/* 主题分类 */
.filter-panel {
  display: flex;
  align-items: center;
  min-height: 128px;
  padding: 37px 35px 35px 41px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 2px 4px 49px 0px #aaccf3;
}

.filter-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
  font-size: 20px;
  font-weight: bold;
  color: #2e2e2e;
}

.filter-label img {
  width: 22px;
  height: 20px;
  margin-right: 8px;
}

.filter-tags-box {
  flex: 1;
  min-width: 0;
}

.filter-tags-box > .filter-tags {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.filter-tags-box > .filter-tags.is-show {
  display: flex;
}

.filter-tag {
  display: inline-block;
  height: 49px;
  line-height: 49px;
  padding: 0 20px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #2357c7;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  background: #e8f0f8;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s;
}

.filter-tag.active {
  color: #fff;
  background: #2b64ce;
  box-shadow: 0 4px 14px rgba(43, 100, 206, 0.35);
}

.filter-tag:hover:not(.active) {
  background: #dce8f6;
}

/* 上下卡片连接装饰 */
.panel-connect {
  position: relative;
  height: 65px;
  margin-top: -25px;
  margin-bottom: -15px;
  z-index: 2;
  pointer-events: none;
}

.staple {
  position: absolute;
  top: 0;
  width: 16px;
  height: 75px;
}

.staple-left {
  left: 255px;
}

.staple-right {
  right: 255px;
}

/* 问答列表面板 */
.content-panel {
  padding: 24px 27px 30px;
  background: #fff;
  border: 1px solid #c5daf5;
  border-radius: 16px;
  box-shadow: 2px 4px 49px 0px 
  #aaccf3;
}

/* 问答列表 */
.qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-item {
  padding: 22px 0;
  border-bottom: 1px dashed #d8e0ea;
}

.qa-item.qa-empty {
  padding: 40px 0;
  text-align: center;
}

.qa-empty-text {
  margin: 0;
  font-size: 16px;
  color: #999;
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.qa-row:last-of-type {
  margin-bottom: 14px;
}

.qa-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 18px;
  color: #fff;
  border-radius: 4px;
  margin-right: 16px;
}

.qa-badge-q {
  background: #e6a23c;
}

.qa-badge-a {
  background: #2b64ce;
}

.qa-question .qa-text,
.qa-answer .qa-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.qa-question .qa-text {
  font-size: 18px;
  font-weight: bold;
  color: #2e2e2e;
  line-height: 1.5;
  margin: 0;
}

.qa-detail-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.qa-detail-link:hover {
  color: #133df0;
}

.qa-answer .qa-text {
  font-size: 16px;
  font-weight: normal;
  color: #2e2e2e;
  line-height: 26px;
  margin: 0;
}

.qa-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding-left: 46px;
  font-size: 15px;
  line-height: 1.6;
}

.meta-item {
  color: #999;
  margin-right: 36px;
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-item:first-child {
  color: #959595;
}

.meta-link {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  color: #133df0;
  text-decoration: none;
  transition: opacity 0.3s;
}

.meta-link:hover {
  opacity: 0.8;
}

/* 业务知识库不展示「相关政策」 */
.knowledge-panel.is-business .meta-link {
  display: none;
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
}

.page-btn,
.page-num {
  display: inline-block;
  min-width: 50px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  text-align: center;
  font-size: 14px;
  color: #2357c7;
  text-decoration: none;
  border: 1px solid #d0e4fd;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition: all 0.3s;
}

.page-num.active {
  color: #fff;
  background: #2b64ce;
  border-color: #2b64ce;
}

.page-btn:hover,
.page-num:hover:not(.active) {
  background: #f0f5ff;
}

/* 平板适配 */
@media screen and (max-width: 992px) {
  body {
    min-width: 0;
    background-size: auto;
  }

  .container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .header-title-box img{
    width: 100%;
    object-fit: contain;
  }

  .header-title-text {
    margin-top: 10px;
  }

  .zsk-search-wrap {
    margin-top: 15px;
  }

  .tab-nav {
    gap: 40px;
  }

  .staple-left {
    left: 80px;
  }

  .staple-right {
    right: 80px;
  }

  .qa-meta {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .meta-link {
    margin-left: 46px;
  }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .header {
    margin-top: 20px;
  }

  .header-logo {
    width: 220px;
    align-self: center;
    margin-bottom: 16px;
  }

  .zsk-search-wrap {
    margin-bottom: 24px;
    padding: 0;
  }

  .zsk-search-box {
    width: 100%;
    height: 44px;
  }

  .header .zsk-search-btn {
    width: 60px;
    min-height: 44px;
    font-size: 14px;
  }

  .header .zsk-search-input {
    font-size: 14px;
  }

  .hot-words {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .hot-label {
    margin-right: 8px;
  }

  .hot-item {
    margin: 4px 8px;
    font-size: 13px;
  }

  .main {
    margin-top: 10px;
    padding-bottom: 40px;
  }

  .tab-nav {
    gap: 20px;
    margin-bottom: 24px;
  }

  .tab-nav .tab-item {
    min-width: 110px;
    height: 32px;
    padding: 0 16px;
    font-size: 18px;
  }

  .filter-panel {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 20px 16px;
  }

  .filter-label {
    margin-right: 0;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .filter-tags-box {
    width: 100%;
  }

  .filter-tags-box > .filter-tags {
    gap: 10px;
  }

  .filter-tag {
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .panel-connect {
    height: 50px;
    margin-top: -20px;
    margin-bottom: -12px;
  }

  .staple {
    width: 12px;
    height: 55px;
  }

  .staple-left {
    left: 24px;
  }

  .staple-right {
    right: 24px;
  }

  .content-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .qa-item {
    padding: 18px 0;
  }

  .qa-badge {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 15px;
    margin-right: 10px;
  }

  .qa-question .qa-text {
    font-size: 16px;
  }

  .qa-answer .qa-text {
    font-size: 14px;
    line-height: 24px;
  }

  .qa-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
    padding-left: 36px;
    font-size: 13px;
  }

  .meta-item,
  .meta-link {
    width: auto;
    margin-right: 0;
    margin-left: 0;
    white-space: normal;
  }

  .meta-link {
    text-align: left;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
  }

  .page-btn,
  .page-num {
    min-width: 44px;
    height: 32px;
    line-height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-logo {
    width: 180px;
  }

  .zsk-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .zsk-search-input-wrap {
    padding: 0 10px 0 8px;
  }

  .header .zsk-search-btn {
    width: 52px;
    min-height: 44px;
    font-size: 13px;
  }

  .hot-label,
  .hot-item {
    font-size: 12px;
  }

  .hot-item {
    margin: 2px 6px;
  }

  .tab-nav {
    gap: 12px;
  }

  .tab-nav .tab-item {
    min-width: 96px;
    padding: 0 10px;
    font-size: 16px;
  }

  .filter-tag {
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .staple-left {
    left: 12px;
  }

  .staple-right {
    right: 12px;
  }

  .qa-meta {
    padding-left: 0;
    column-gap: 8px;
    row-gap: 6px;
  }

  .meta-item,
  .meta-link {
    font-size: 12px;
  }

  .page-btn,
  .page-num {
    min-width: 38px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
  }
}
