/*
 * ============================================================================
 * 著作权声明 | COPYRIGHT NOTICE
 * 作品名称：河南省保密协会官方网站 WordPress 主题（hnbmxh-theme）
 * 著作权人：刘云龙（Liu Yunlong）　当前版本：v2.12
 * 未经著作权人书面许可，不得复制、修改、传播或用于商业用途。
 * All Rights Reserved. (C) Liu Yunlong.
 * ============================================================================
 */

/* ========================================================================
   区块样板（Block Patterns）前台样式
   分类：新闻动态 / 通知公告 / 规章制度 / 通用附件
   ======================================================================== */

/* ---------- 通用公文容器（红头通知、规章制度共用） ---------- */
.hnbmxh-doc { margin: 8px 0 24px; }
.hnbmxh-doc p { font-size: 16px; line-height: 1.9; }

/* 红头：发文机关标志（红色大字） */
.hnbmxh-doc-head {
  font-family: "STZhongsong", "Songti SC", "SimSun", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--c-accent, #c8161d);
  letter-spacing: 5px;
  margin: 12px 0 4px;
  line-height: 1.4;
}

/* 发文字号 */
.hnbmxh-doc-no {
  font-family: "SimSun", "Songti SC", serif;
  font-size: 15px;
  color: var(--c-text, #1f2d3d);
  margin: 0 0 10px;
}

/* 红色分隔线（反线） */
.hnbmxh-doc-rule {
  border: 0;
  border-top: 3px solid var(--c-accent, #c8161d);
  margin: 4px 0 26px;
  opacity: 1;
}

/* 公文标题 */
.hnbmxh-doc-title {
  font-family: "STZhongsong", "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text, #1f2d3d);
  margin: 0 0 20px;
  line-height: 1.7;
  letter-spacing: 1px;
}

/* 主送单位（顶格） */
.hnbmxh-doc-recipient { font-weight: 600; margin-top: 4px; }

/* 落款（右侧署名 + 成文日期） */
.hnbmxh-doc-sign {
  margin-top: 40px;
  padding-right: 3em;
  line-height: 2.1;
}

/* ---------- 规章制度（章条式） ---------- */
.hnbmxh-reg-info {
  color: var(--c-text-soft, #5b6b7e);
  font-size: 14px;
  margin: 2px 0 6px;
}
.hnbmxh-reg-chapter {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary-dark, #0a3573);
  margin: 28px 0 14px;
  letter-spacing: 2px;
}
.hnbmxh-reg-item { text-indent: 2em; margin-bottom: 10px; }

/* ---------- 新闻动态 · 图文新闻正文 ---------- */
.hnbmxh-news .hnbmxh-lead {
  font-size: 16.5px;
  line-height: 1.9;
  padding: 14px 18px;
  background: var(--c-primary-light, #e8f0fb);
  border-left: 4px solid var(--c-primary, #0e4da4);
  border-radius: 6px;
  margin-bottom: 22px;
}
.hnbmxh-news .hnbmxh-cover img {
  width: 100%;
  border-radius: var(--radius, 8px);
}
.hnbmxh-caption {
  font-size: 13px;
  color: var(--c-text-mute, #93a1b3);
  margin: 8px 0 20px;
}
.hnbmxh-news-footer {
  font-size: 13px;
  color: var(--c-text-mute, #93a1b3);
  border-top: 1px dashed var(--c-border, #e3e8ef);
  padding-top: 12px;
  margin-top: 30px;
}

/* ---------- 新闻动态 · 三栏卡片 ---------- */
.hnbmxh-cards-title {
  font-size: 22px;
  margin: 8px 0 18px;
  padding-left: 14px;
  position: relative;
}
.hnbmxh-cards-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--c-accent, #c8161d);
  border-radius: 2px;
}
.hnbmxh-news-cards { gap: 24px; }
.hnbmxh-news-card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e3e8ef);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 45, 90, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.hnbmxh-news-card:hover {
  box-shadow: 0 6px 22px rgba(15, 45, 90, 0.12);
  transform: translateY(-3px);
}
.hnbmxh-news-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}
.hnbmxh-news-card-body { padding: 14px 16px 16px; }
.hnbmxh-news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-mute, #93a1b3);
  margin: 0;
}
.hnbmxh-tag {
  background: var(--c-primary, #0e4da4);
  color: #fff;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.hnbmxh-news-card-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 8px;
  color: var(--c-text, #1f2d3d);
}
.hnbmxh-news-card-excerpt {
  font-size: 14px;
  color: var(--c-text-soft, #5b6b7e);
  margin-bottom: 10px;
}
.hnbmxh-more {
  color: var(--c-primary, #0e4da4);
  font-weight: 600;
  font-size: 14px;
}
.hnbmxh-more:hover { color: var(--c-primary-dark, #0a3573); }

/* ---------- 通知公告 · 置顶公告横幅 ---------- */
.hnbmxh-notice-banner {
  background: #fdf1f1;
  border: 1px solid #f3c7c9;
  border-left: 4px solid var(--c-accent, #c8161d);
  border-radius: var(--radius, 8px);
  padding: 14px 18px;
  margin: 8px 0 24px;
  gap: 12px;
}
.hnbmxh-notice-banner-main { gap: 10px; }
.hnbmxh-notice-badge {
  background: var(--c-accent, #c8161d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin: 0;
  white-space: nowrap;
}
.hnbmxh-notice-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--c-text, #1f2d3d);
  margin: 0;
}
.hnbmxh-notice-banner-side { gap: 14px; }
.hnbmxh-notice-deadline {
  color: var(--c-text-soft, #5b6b7e);
  font-size: 13.5px;
  margin: 0;
  white-space: nowrap;
}
.hnbmxh-notice-btn .wp-block-button__link {
  background: var(--c-accent, #c8161d);
  color: #fff;
  font-size: 13.5px;
  padding: 6px 16px;
  border-radius: 6px;
}
.hnbmxh-notice-btn .wp-block-button__link:hover {
  background: var(--c-accent-dark, #9e1117);
  color: #fff;
}

/* ---------- 通用 · 附件下载区 ---------- */
.hnbmxh-attach {
  background: #f7f9fc;
  border: 1px solid var(--c-border, #e3e8ef);
  border-radius: var(--radius, 8px);
  padding: 16px 20px;
  margin: 24px 0;
}
.hnbmxh-attach-title {
  font-size: 16px;
  color: var(--c-primary-dark, #0a3573);
  margin: 0 0 6px;
}
.hnbmxh-attach-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-border, #e3e8ef);
}
.hnbmxh-attach-list li:last-child { border-bottom: 0; }
.hnbmxh-attach-list li::before {
  content: "↓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex: 0 0 auto;
  background: var(--c-primary-light, #e8f0fb);
  color: var(--c-primary, #0e4da4);
  font-weight: 700;
  border-radius: 4px;
}
.hnbmxh-attach-list a {
  color: var(--c-primary, #0e4da4);
  font-weight: 600;
}
.hnbmxh-attach-list a:hover {
  color: var(--c-primary-dark, #0a3573);
  text-decoration: underline;
}
.hnbmxh-attach-meta {
  color: var(--c-text-mute, #93a1b3);
  font-size: 13px;
  margin-left: 8px;
}
.hnbmxh-attach-tip {
  font-size: 13px;
  color: var(--c-text-mute, #93a1b3);
  margin: 10px 0 0;
}
