@charset "UTF-8";
/* ==========================================================================
   保定市农业农村局 · 便民服务平台
   二级页面（政策法规 / 金融产品 / 便民服务）与文档详情页补充样式
   通用变量与组件沿用 style.css，本文件只追加子页面独有样式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 子页面头部：返回按钮
   -------------------------------------------------------------------------- */
.brand__back {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: background .2s ease;
}

.brand__back svg {
  width: 18px;
  height: 18px;
}

.brand__back:active {
  background: rgba(255, 255, 255, .3);
}

/* 子页面品牌行略收紧左右留白，为返回按钮腾出空间 */
.app-header--sub .brand {
  padding-left: 16px;
  padding-right: 16px;
}

/* --------------------------------------------------------------------------
   1.5 子页面主内容区
   子页面无底部导航，收收起 style.css 中为其预留的 100px 底部留白
   -------------------------------------------------------------------------- */
.app-main--sub {
  padding-bottom: 24px;
}

/* --------------------------------------------------------------------------
   2. 列表计数与分组标签
   -------------------------------------------------------------------------- */
.list-count {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 20px;
  color: var(--c-text-faint);
}

.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--c-text-sub);
}

.group-label::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
}

/* --------------------------------------------------------------------------
   3. 金融产品列表（二级页补充）
   -------------------------------------------------------------------------- */
.finance-card__desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 19px;
  color: var(--c-text-muted);
}

.finance-card__badge--orange { background: var(--c-orange-tint); }
.finance-card__badge--blue { background: var(--c-blue-tint); }
.finance-card__badge--red { background: var(--c-red-tint); }
.finance-card__badge--purple { background: var(--c-purple-tint); }

/* --------------------------------------------------------------------------
   4. 便民服务列表（二级页补充徽标色）
   -------------------------------------------------------------------------- */
.service-item__badge--purple { background: var(--c-purple-tint); }
.service-item__badge--teal { background: #E1F1EE; }

/* --------------------------------------------------------------------------
   4.5 科普分类列表页：分类横幅 + 文章列表
   -------------------------------------------------------------------------- */
.knowledge-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 4px;
  padding: 14px 16px;
  border-radius: var(--r-card);
}

.knowledge-banner--green { background: var(--c-green-tint); }
.knowledge-banner--orange { background: var(--c-orange-tint); }
.knowledge-banner--blue { background: var(--c-blue-tint); }
.knowledge-banner--purple { background: var(--c-purple-tint); }

.knowledge-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: var(--c-surface);
  border-radius: 14px;
}

.knowledge-banner__icon svg {
  width: 26px;
  height: 26px;
}

.knowledge-banner__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--c-text);
}

.knowledge-banner__desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 20px;
  color: var(--c-text-muted);
}

/* 文章列表（科普各分类通用） */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.article-item {
  background: var(--c-surface);
  border-radius: var(--r-item);
  box-shadow: var(--shadow-card);
}

.article-item__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 16px;
}

.article-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.article-item__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--c-text);
}

.article-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  color: var(--c-text-faint);
}

.article-item__arrow {
  flex: 0 0 auto;
  color: #C2CFC6;
}

.article-item__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   5. 文档详情页
   -------------------------------------------------------------------------- */
.article {
  padding: 18px 16px 22px;
  background: var(--c-surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.article__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.article__cat {
  font-size: 13px;
  line-height: 20px;
  color: var(--c-text-faint);
}

.article__title {
  font-size: 23px;
  font-weight: 700;
  line-height: 33px;
  color: var(--c-text);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 10px;
  padding-bottom: 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--c-text-faint);
  border-bottom: 1px solid var(--c-line);
}

/* 正文 */
.doc-body {
  margin-top: 14px;
}

.doc-body p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 30px;
  color: var(--c-text);
  text-align: justify;
}

.doc-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--c-text);
}

.doc-body h3::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--c-green);
}

/* 要点列表 */
.doc-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
  font-size: 16px;
  line-height: 28px;
  color: var(--c-text-sub);
  text-align: justify;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green-bright);
}

/* 插图 */
.doc-figure {
  margin: 4px 0 18px;
}

.doc-figure__frame {
  overflow: hidden;
  background: var(--c-green-tint);
  border-radius: 14px;
}

.doc-figure__frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.doc-figure__cap {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  color: var(--c-text-hint);
  text-align: center;
}

/* 产品要素（金融产品） */
.doc-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.doc-kv__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--c-surface-soft);
  border-radius: 12px;
}

.doc-kv__label {
  font-size: 12px;
  line-height: 18px;
  color: var(--c-text-faint);
}

.doc-kv__value {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--c-text);
}

/* 办理流程 */
.doc-steps {
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.doc-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
}

.doc-steps__item:last-child {
  padding-bottom: 0;
}

.doc-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--c-green);
  border-radius: 50%;
}

.doc-steps__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: var(--c-text);
}

.doc-steps__desc {
  font-size: 14px;
  line-height: 24px;
  color: var(--c-text-sub);
}

/* 提示框 */
.doc-note {
  margin: 6px 0 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-green-dark);
  background: var(--c-green-tint);
  border-radius: 12px;
}

.doc-note__label {
  margin-right: 6px;
  font-weight: 600;
}

/* 空状态 */
.doc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  text-align: center;
}

.doc-empty__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
}

.doc-empty__desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-text-muted);
}

.doc-empty__btn {
  margin-top: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--c-green);
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   6. 小屏适配：详情页标题与正文略收
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  .article__title {
    font-size: 21px;
    line-height: 31px;
  }

  .doc-body p {
    font-size: 16px;
    line-height: 28px;
  }

  .doc-kv {
    grid-template-columns: 1fr;
  }
}
