/* ===== 健保资讯 Resources（独立页，仅主内容区） ===== */

.page-resources-info {
  --res-teal: #009a96;
  --res-teal-hover: #008a86;
  --res-purple: #7b61ff;
  --res-hero-bg: #f5f7f9;
  --res-text: #333333;
  --res-text-secondary: #666666;
  --res-text-muted: #999999;
  --res-border: #e8ebef;
  background: #ffffff;
  color: var(--res-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

.page-resources-info h1,
.page-resources-info h2 {
  color: var(--res-text);
}

/* 双端文案：默认桌面 */
.res-copy-m {
  display: none;
}

.res-copy-pc {
  display: inline;
}

.res-card__summary .res-copy-pc,
.res-card__title .res-copy-pc {
  display: inline;
}

/* ---------- 1. Hero：PC 左文 + 右图左缘淡入浅底 ---------- */
.res-hero {
  position: relative;
  background: var(--res-hero-bg);
  min-height: 360px;
  padding: 40px 0;
  overflow: hidden;
}

.res-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 280px;
}

.res-hero__text {
  position: relative;
  z-index: 3;
  max-width: 540px;
  min-width: 0;
}

.res-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
}

.res-hero__title-zh {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
}

.res-hero__title-en {
  font-size: 38px;
  font-weight: 400;
  color: #222222;
}

.res-hero__desc {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
}

/* 右图贴齐视口右缘，左缘渐变淡入浅底（非圆角浮卡） */
.res-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 1;
}

.res-hero__media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--res-hero-bg) 0%,
    rgba(245, 247, 249, 0.88) 32%,
    rgba(245, 247, 249, 0.35) 68%,
    rgba(245, 247, 249, 0) 100%
  );
}

.res-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ---------- 2. Toolbar：Tab + 搜索 ---------- */
.res-toolbar {
  padding: 32px 0 12px;
  background: #ffffff;
}

.res-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.res-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.res-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #444444;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.res-tabs__btn.is-active {
  background: var(--res-teal);
  color: #ffffff;
}

.res-tabs__btn:not(.is-active):hover {
  color: var(--res-teal);
}

/* 搜索：胶囊输入 + CSS 放大镜（无 SVG） */
.res-search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.res-search__submit {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 28px;
  height: 28px;
  margin: 0;
  margin-top: -14px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.res-search__submit:focus-visible {
  outline: 2px solid var(--res-teal);
  outline-offset: 2px;
  border-radius: 4px;
}


.res-search__submit .res-search__icon {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
}

.res-search > .res-search__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  margin-top: -8px;
  margin-left: 0;
}

.res-search__input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 18px;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  color: var(--res-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.res-search__input::placeholder {
  color: #b0b7c0;
}

.res-search__input:focus {
  border-color: var(--res-teal);
}

.res-search__icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid #9aa3ad;
  border-radius: 50%;
  pointer-events: none;
}

.res-search__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: #9aa3ad;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* ---------- 3. 卡片网格 ---------- */
.res-list {
  padding: 16px 0 4px;
  background: #ffffff;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.res-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--res-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.res-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f5;
}

.res-card__media--video {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.res-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.res-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}

.res-card__tag--article {
  background: var(--res-teal);
}

.res-card__tag--video {
  background: var(--res-purple);
}

/* 播放按钮：半透明白圆 + CSS 三角（无 SVG） */
.res-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.res-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #4a5560;
}

.res-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.res-card__date {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--res-text-muted);
}

.res-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #2a2a2a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-card__summary {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--res-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.res-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--res-teal);
  line-height: 1.4;
}

.res-card__link:hover {
  color: var(--res-teal-hover);
}

/* ---------- 视频弹层 ---------- */
body.res-video-open {
  overflow: hidden;
}

.res-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.res-video-modal[hidden] {
  display: none;
}

.res-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.res-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.res-video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.res-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.res-video-modal__player {
  display: block;
  width: 100%;
  max-height: min(80vh, 560px);
  background: #000;
  border-radius: 12px;
}

/* ---------- 4. 分页 ---------- */
.res-pagination {
  padding: 40px 0 64px;
  background: #ffffff;
}

.res-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.res-pagination__item,
.res-pagination__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-size: 14px;
  color: #666666;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.res-pagination__control {
  font-size: 20px;
  color: #888888;
}

.res-pagination__item:hover,
.res-pagination__control:hover {
  color: var(--res-teal);
}

.res-pagination__item.is-active {
  background: var(--res-teal);
  color: #ffffff;
  font-weight: 600;
}

.res-pagination__item.is-active:hover {
  color: #ffffff;
}

.res-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: var(--res-text-muted);
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .res-hero__media {
    width: 48%;
  }
}

/* 手机端：按设计图 1:1（版心 --page-pad: 20px） */
@media (max-width: 768px) {
  .page-resources-info {
    --res-teal: #37a392;
    --res-teal-hover: #2f9284;
    --res-purple: #7b61ab;
  }

  .res-copy-pc {
    display: none;
  }

  .res-copy-m {
    display: inline;
  }

  /* --- Hero：全宽底图 + 左侧叠字 --- */
  .res-hero {
    position: relative;
    padding: 0;
    background: #f3f5f7;
    overflow: hidden;
    min-height: 180px;
  }

  .res-hero__inner {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 180px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .res-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    flex: none;
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .res-hero__media::before {
    display: none;
  }

  .res-hero__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 78% center;
  }

  /* 左侧浅罩，保证黑字可读、右侧图可见 */
  .res-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(248, 249, 250, 0.96) 0%,
        rgba(248, 249, 250, 0.88) 38%,
        rgba(248, 249, 250, 0.35) 62%,
        rgba(248, 249, 250, 0) 100%);
  }

  .res-hero__text {
    position: relative;
    z-index: 2;
    max-width: 56%;
  }

  .res-hero__title {
    gap: 6px;
    margin: 0 0 10px;
  }

  .res-hero__title-zh {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
  }

  .res-hero__title-en {
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
  }

  .res-hero__desc {
    font-size: 12px;
    line-height: 1.7;
    color: #666666;
  }

  /* --- Toolbar：Tab 上 + 搜索下 --- */
  .res-toolbar {
    padding: 18px 0 14px;
    background: #ffffff;
  }

  .res-toolbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .res-tabs {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .res-tabs__btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    color: #333333;
  }

  .res-search {
    max-width: none;
  }

  .res-search__input {
    height: 42px;
    border-radius: 8px;
    padding: 0 40px 0 14px;
    border-color: #e2e8f0;
    font-size: 14px;
  }

  .res-search__input::placeholder {
    color: #a0aec0;
  }

  /* --- 列表：左图右文横排 --- */
  .res-list {
    padding: 2px 0 28px;
    background: #f7f8fa;
  }

  .res-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .res-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #eeeeee;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: visible;
    background: #ffffff;
  }

  .res-card__media {
    flex: 0 0 36%;
    width: 36%;
    max-width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    align-self: flex-start;
  }

  .res-card__tag {
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
  }

  .res-card__play {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
  }

  .res-card__play::after {
    margin: -5px 0 0 -3px;
    border-width: 5px 0 5px 9px;
  }

  .res-card__body {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    justify-content: flex-start;
  }

  .res-card__date {
    margin-bottom: 4px;
    font-size: 11px;
    color: #999999;
  }

  .res-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    -webkit-line-clamp: 2;
  }

  .res-card__summary {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #666666;
    -webkit-line-clamp: 2;
  }

  /* summary 内双端文案需参与行数截断 */
  .res-card__summary .res-copy-m {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .res-card__link {
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
  }

  /* --- 分页：手机设计图无此模块 --- */
  .res-pagination {
    display: none;
  }
}


/*详情页*/
.position {
  margin:20px 0 20px 0;
}
.text-center{
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.text-secondary{
  margin-top: 64px;
}
.text-secondary p{
  width: 50%;
  float: left;
  
}
.text-secondary p a{
  color: #35aff7;
}
.search_h2{
  display: block;
  margin-bottom: 36px;
}