/*
Theme Name: 河南省保密协会
Theme URI: https://hnbmxh.org.cn
Description: 协会官方网站 WordPress 主题（深蓝主色 + 中国红点缀），含首页/文章/分类/页面模板，响应式。
Version: 2.94
Author: 协会秘书处 / WorkBuddy
License: MIT
Text Domain: hnbmxh
*/

/* ============================================================================
   著作权声明 | COPYRIGHT NOTICE
   ============================================================================
   作品名称：河南省保密协会官方网站 WordPress 主题（hnbmxh-theme）
   作品类型：计算机软件（网页前端主题程序）
   著作权人：刘云龙（Liu Yunlong）   版本：v2.11
   法律依据：《中华人民共和国著作权法》《计算机软件保护条例》
   未经书面许可，禁止复制、修改、传播、反向工程、商业使用。侵权必究。
   All Rights Reserved. (C) Liu Yunlong.
   ============================================================================ */

/* ========================================================================
   全局变量（改色只动这里）
   ======================================================================== */
:root {
  --c-primary: #0e4da4;
  --c-primary-dark: #0a3573;
  --c-primary-bright: #1a5fc4;
  --c-primary-bright-light: #2b7be0;
  --c-primary-light: #e8f0fb;
  --c-accent: #c8161d;
  --c-accent-dark: #9e1117;
  --c-accent-bright: #e63950;
  --c-bg: #f4f6f9;
  --c-surface: #ffffff;
  --c-border: #e3e8ef;
  --c-text: #1f2d3d;
  --c-text-soft: #5b6b7e;
  --c-text-mute: #93a1b3;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --maxw: 1240px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(15, 45, 90, 0.06);
  --shadow-hover: 0 6px 22px rgba(15, 45, 90, 0.12);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
/* 2026-09-04 移除全局平滑滚动：滚动动画进行中点击按钮会落空（点击坐标与元素位置错位），
   程序化滚动需要动画时由 JS scrollIntoView({behavior:'smooth'}) 自行指定。 */
body {
  margin: 0; font-family: var(--font-sans); color: var(--c-text);
  background: var(--c-bg); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--c-text); font-weight: 700; }
p { margin: 0 0 1em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-primary); outline-offset: 2px;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 顶部条 */
.topbar { background: var(--c-primary-dark); color: #cdd9ee; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #cdd9ee; }
.topbar a:hover { color: #fff; }
.topbar .tb-right a { margin-left: 16px; }
.topbar .tb-right .tb-nav { list-style: none; margin: 0; padding: 0; }
.topbar .tb-right .tb-nav li { display: inline; }

/* 站头 */
.site-header { background: var(--c-surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e8eef7; }
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .logo { width: 52px; height: 52px; flex: 0 0 auto; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand .titles { line-height: 1.2; min-width: 0; }
.brand .title-cn { font-size: 22px; font-weight: 800; color: var(--c-primary-dark); letter-spacing: 1px; white-space: nowrap; }
.brand .title-en { font-size: 12px; color: var(--c-text-mute); letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.header-contact { margin-left: auto; text-align: right; font-size: 13px; color: var(--c-text-soft); line-height: 1.55; flex-shrink: 0; }
.header-contact .hot { color: var(--c-accent); font-weight: 700; font-size: 16px; white-space: nowrap; }
@media (max-width: 1180px) {
  .brand .title-en { max-width: 200px; }
  .header-contact { font-size: 12px; }
  .header-contact .hot { font-size: 14px; }
}
@media (max-width: 980px) {
  .brand .title-en { display: none; }
  .header-contact .email-line { display: none; }
}

/* 主导航 */
.mainnav { background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); box-shadow: 0 2px 8px rgba(10,53,115,.15); }
.mainnav .container { display: flex; align-items: stretch; position: relative; }
.mainnav .nav-list { display: flex; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; flex: 1; }
.mainnav .nav-list > li { position: relative; flex: 0 0 auto; }
.mainnav .nav-list > li > a { color: #eaf1fb; padding: 0 24px; height: 56px; display: flex; align-items: center; font-size: 16px; font-weight: 500; position: relative; transition: background .2s, color .2s; border-bottom: 3px solid transparent; }
.mainnav .nav-list > li > a:hover,
.mainnav .nav-list > li > a.active,
.mainnav .nav-list > li.current-menu-item > a,
.mainnav .nav-list > li.current_page_item > a,
.mainnav .nav-list > li.current-menu-ancestor > a { background: var(--c-primary-dark); color: #fff; border-bottom-color: var(--c-accent); }
.mainnav .nav-list > li > a::before { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--c-accent); transition: left .25s ease, right .25s ease; }
.mainnav .nav-list > li > a:hover::before { left: 0; right: 0; }
.mainnav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--c-surface); box-shadow: var(--shadow-hover); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainnav .sub-menu a { color: var(--c-text); min-height: 44px; padding: 0 18px; font-size: 15px; display: flex; align-items: center; justify-content: center; text-align: center; }
.mainnav .sub-menu a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; color: #fff; border-radius: 4px; min-width: 44px; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; }
/* 子菜单展开箭头：仅移动端（900px 以下）显示，桌面保持悬停下拉 */
.nav-expand { display: none; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* 主导航右侧站内搜索框：默认只显示放大镜按钮，点击后向左展开并浮在菜单之上 */
.nav-search { margin-left: auto; display: flex; align-items: center; padding: 0 4px 0 16px; flex-shrink: 0; position: relative; z-index: 70; }
.nav-search .search-form { display: flex; align-items: center; justify-content: flex-end; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38); border-radius: var(--radius-pill); height: 38px; width: 38px; overflow: hidden; transition: width .25s ease, background .2s, border-color .2s, box-shadow .2s; }
.nav-search .search-form.is-open { width: 220px; background: #fff; border-color: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(200,22,29,.18), 0 4px 16px rgba(0,0,0,.18); position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.nav-search .search-field { border: 0; background: transparent; color: #fff; width: 0; height: 36px; padding: 0; font-size: 14px; outline: none; opacity: 0; transition: width .25s ease, opacity .2s, padding .25s ease; }
.nav-search .search-form.is-open .search-field { width: 150px; padding: 0 10px 0 14px; opacity: 1; color: var(--c-text); }
.nav-search .search-field::placeholder { color: rgba(255,255,255,.72); }
.nav-search .search-form.is-open .search-field::placeholder { color: #98a2ae; }
.nav-search .search-submit { border: 0; background: transparent; color: #fff; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; transition: color .2s; }
.nav-search .search-submit:hover { color: var(--c-accent); }
.nav-search .search-form.is-open .search-submit { color: var(--c-primary); }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0, transparent 30%), radial-gradient(circle at 80% 70%, rgba(225,29,38,.12) 0, transparent 35%); pointer-events: none; }
.hero-slides { position: relative; height: 440px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide .overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,53,115,.92) 0%, rgba(10,53,115,.55) 60%, rgba(10,53,115,.2) 100%); }
.hero-slide .slide-inner { position: relative; z-index: 2; max-width: 640px; padding: 0 20px; }
.hero-slide h1, .hero-slide h2 { color: #fff; font-size: 38px; margin-bottom: 16px; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-slide p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.7; }
.hero-slide .btn { margin-top: 22px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; transform: scale(1.15); }
.btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%); color: #fff; padding: 10px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 12px rgba(225,29,38,.25); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(225,29,38,.35); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 1px solid #fff; color: #fff; box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: none; box-shadow: none; }
.btn-secondary { background: transparent; border: 1px solid var(--c-primary); color: var(--c-primary); box-shadow: none; }
.btn-secondary:hover { background: var(--c-primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,77,164,.18); }

/* 区块 */
.section { padding: 48px 0; }
.section.alt { background: linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%); }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px dashed #d8e3f4; }
.section-title h2 { font-size: 24px; margin: 0; position: relative; padding-left: 14px; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: linear-gradient(180deg, var(--c-accent), var(--c-accent-dark)); border-radius: 2px; box-shadow: 0 0 8px rgba(225,29,38,.3); }
.section-title h2 small { display: block; font-size: 13px; font-weight: 400; color: var(--c-text-mute); letter-spacing: 1px; margin-top: 2px; }
.section-title .more { margin-left: auto; font-size: 14px; color: var(--c-text-soft); transition: color .2s, transform .2s; }
.section-title .more:hover { color: var(--c-primary); transform: translateX(2px); }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 20px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.layout-2col { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }

/* 卡片/列表 */
.card .card-body { padding: 18px; }
.news-list li { border-bottom: 0; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; }
.news-list .tag { flex: 0 0 auto; font-size: 12px; color: #fff; background: var(--c-primary); padding: 2px 8px; border-radius: 3px; }
.news-list .tag.red { background: var(--c-accent); }
.news-list .tt { flex: 1 1 auto; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover .tt { color: var(--c-primary); }
.news-list .date { flex: 0 0 auto; color: var(--c-text-mute); font-size: 13px; }

/* 服务入口 */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); transition: .2s; }
.service-item:hover { box-shadow: var(--shadow-hover); border-color: var(--c-primary); transform: translateY(-3px); }
.service-item .ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--c-primary-light); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-size: 26px; }
.service-item h3 { font-size: 18px; margin: 0 0 6px; }
.service-item p { font-size: 13px; color: var(--c-text-soft); margin: 0; }

/* 友情链接 */
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.links a { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; padding: 7px 18px; font-size: 14px; color: var(--c-text-soft); }
.links a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.links li { list-style: none; margin: 0; padding: 0; }

/* 内页 */
.page-banner { background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark)); color: #fff; padding: 30px 0; }
.page-banner h1 { color: #fff; font-size: 28px; margin: 0; }
.breadcrumb { font-size: 13px; color: #c4d3ea; margin-top: 8px; }
.breadcrumb a { color: #c4d3ea; }
.breadcrumb a:hover { color: #fff; }
.page-wrap { padding: 36px 0 56px; }
.sidebar { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.sidebar h3 { font-size: 16px; background: var(--c-primary); color: #fff; margin: 0; padding: 12px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.sidebar ul { margin: 0; padding: 0; }
.sidebar li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text-soft); font-size: 15px; }
.sidebar li:last-child a { border-bottom: 0; }
.sidebar li.current_page_item > a, .sidebar li.current-menu-item > a, .sidebar li a:hover { color: var(--c-primary); background: var(--c-primary-light); font-weight: 600; }

/* v2.16 会员服务侧边栏：三项条目居中加粗（水平+垂直居中） */
/* v2.17 该样式推广为通用「栏目侧边栏」（法规制度/科技工作/培训工作等勾选栏目共用） */
/* v2.53 会员证书查询页（body.page-id-6）：侧边栏标题居中（条目已由 .member-sidebar 居中） */
.page-id-6 .sidebar h3 { text-align: center; }
.sidebar.member-sidebar > ul > li > a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 8px; text-align: center; font-weight: bold; }

.prose { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); font-size: 17px; line-height: 1.9; }
.prose p { margin: 0 0 1.1em; }
/* v2.25 缩进只作用于段落 p，标题等元素即使误挂缩进类也不受影响（居中标题不再歪） */
.prose p.is-style-text-indent-2em,
.entry-content p.is-style-text-indent-2em,
p.is-style-text-indent-2em { text-indent: 2em; }
.prose h2 { font-size: 22px; border-left: 4px solid var(--c-accent); padding-left: 10px; margin-top: 30px; }
.prose h3 { font-size: 20px; margin-top: 24px; color: var(--c-primary-dark); }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose ul.bullets { padding-left: 22px; list-style: disc; }
.prose ul.bullets li { margin-bottom: 8px; }
.prose .entry-meta { color: var(--c-text-mute); font-size: 14px; }

/* 文章/分类列表条目（复用 news-list 样式） */
.post-item { padding: 14px 4px; border-bottom: 1px dashed var(--c-border); transition: background .2s, box-shadow .2s; }
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: var(--c-primary-light); box-shadow: inset 3px 0 0 var(--c-accent); }
.post-item a { display: flex; align-items: center; gap: 12px; }
.post-item .cat { flex: 0 0 auto; font-size: 12px; color: #fff; background: var(--c-primary); padding: 2px 8px; border-radius: 3px; }
.post-item .tt { flex: 1 1 auto; }
.post-item a:hover .tt { color: var(--c-primary); }
.post-item .date { flex: 0 0 auto; color: var(--c-text-mute); font-size: 13px; }

/* 联系/表单 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-card h3 { color: var(--c-primary); font-size: 18px; }
.info-card p { margin: 6px 0; color: var(--c-text-soft); }

/* v2.78 grid item min-width: auto 默认值是元凶——
   .info-stack 作为 .info-hub-layout 的 grid 子项，默认 min-width: auto，
   被内容（5 按钮 / 文章标题）撑大，无法按 1fr 收缩 →
   整页 .info-hub-layout 宽度 = 220 + max(content) > 视口 → 整体右溢出。
   设 min-width: 0 让子项允许收缩到比内容小，配合父级 .info-hub-layout 单列化就能限制在视口内。 */
.info-hub .info-stack { min-width: 0; }
.info-hub .info-card { min-width: 0; }
.info-hub .info-card-body { min-width: 0; }
.info-hub .news-subcats { min-width: 0; max-width: 100%; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--c-text-soft); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 16px; font-family: inherit; color: var(--c-text); background: #fff; }

/* 页脚 */
.site-footer { background: var(--c-primary-dark); color: #c4d3ea; padding: 40px 0 22px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-cols h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-cols a { color: #c4d3ea; display: block; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; text-align: center; color: #9fb2cf; font-size: 13px; }
.footer-bottom a { color: #9fb2cf; }
.footer-bottom .fl-nav { display: inline; list-style: none; margin: 0; padding: 0; }
.footer-bottom .fl-nav li { display: inline; }
.footer-bottom a:hover { color: #fff; }

.to-top { position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 0; cursor: pointer; font-size: 20px; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transition: .3s; z-index: 80; }
.to-top.show { opacity: 1; visibility: visible; }

.placeholder-note { background: #fff8e1; border: 1px dashed #e0a800; color: #8a6d00; font-size: 13px; padding: 8px 14px; border-radius: var(--radius); margin: 10px 0; }

/* v2.81 空栏目占位（访客友好，替代原先给管理员看的"请在后台添加"提示） */
.empty-tip {
  text-align: center;
  padding: 44px 24px;
  margin: 8px 0;
  color: var(--c-text-soft);
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  font-size: 15px;
  box-shadow: var(--shadow);
}

/* 文章正文排版（WordPress 内容） */
.entry-content { font-size: 17px; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content h2 { font-size: 20px; border-left: 4px solid var(--c-accent); padding-left: 10px; margin-top: 28px; }
.entry-content h3 { font-size: 18px; margin-top: 22px; color: var(--c-primary-dark); }
.entry-content ul { padding-left: 22px; list-style: disc; }
.entry-content ul li { margin-bottom: 8px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
/* 文章内表格基础样式（老站迁移宽表格不破版） */
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 8px 10px; text-align: left; font-size: inherit; }

/* v2.47 让区块编辑器表格的字号设置能作用到单元格 */
.entry-content .wp-block-table { font-size: 14px; }
.entry-content .wp-block-table table { font-size: inherit; }
.entry-content th { background: var(--c-primary-light); color: var(--c-primary-dark); font-weight: 600; }

/* v2.45 自定义表格样式：边框/表头/内边距/斑马纹/对齐 */
.entry-content .wp-block-table.hnbmxh-table-styled table {
    border-collapse: collapse;
    width: 100%;
}
.entry-content .wp-block-table.hnbmxh-table-styled table,
.entry-content .wp-block-table.hnbmxh-table-styled th,
.entry-content .wp-block-table.hnbmxh-table-styled td {
    border-style: solid;
    border-width: var(--hnbmxh-table-border-width, 1px);
    border-color: var(--hnbmxh-table-border-color, var(--c-border));
}
.entry-content .wp-block-table.hnbmxh-table-styled th,
.entry-content .wp-block-table.hnbmxh-table-styled td {
    padding: var(--hnbmxh-table-cell-padding, 8px) 12px;
}
.entry-content .wp-block-table.hnbmxh-table-styled thead th,
.entry-content .wp-block-table.hnbmxh-table-styled thead td {
    background: var(--hnbmxh-table-header-bg, var(--c-primary-light));
    color: var(--hnbmxh-table-header-color, var(--c-primary-dark));
}
.entry-content .wp-block-table.hnbmxh-table-styled.is-zebra tbody tr:nth-child(even) {
    background: #f5f7fa;
}
.entry-content .wp-block-table.hnbmxh-table-styled.is-align-left table { margin-left: 0; margin-right: auto; }
.entry-content .wp-block-table.hnbmxh-table-styled.is-align-center table { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-table.hnbmxh-table-styled.is-align-right table { margin-left: auto; margin-right: 0; }
/* v2.19 代码块/预格式文本兜底：不撑破移动端版心 */
.entry-content pre, .prose pre, .entry-content code, .prose code { overflow-x: auto; word-break: break-word; }

/* 响应式 */
@media (max-width: 980px) {
  .layout-2col { grid-template-columns: 1fr; }
  /* v2.19 移动端：普通内页侧边栏排到正文之后（aside 默认在 DOM 中位于 main 之前） */
  .layout-2col aside { order: 2; }
  /* v2.20 移动端：栏目导航（法规制度/科技工作/培训工作/会员服务等）移回正文上方，
     并由纵向列表改为横向标签条——先看到"能去哪"，且只占一行高度 */
  .layout-2col aside.aside-colnav { order: 0; margin-bottom: 14px; }
  .aside-colnav .sidebar.member-sidebar { padding: 6px; box-shadow: none; }
  .aside-colnav .sidebar.member-sidebar ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .aside-colnav .sidebar.member-sidebar > ul > li { flex: 1 1 30%; min-width: 92px; }
  .aside-colnav .sidebar.member-sidebar > ul > li > a {
    min-height: 40px; padding: 8px 4px; font-size: 14px;
    border-bottom: 0; border-radius: var(--radius);
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* 单列布局下侧栏不再吸顶，避免遮挡正文 */
  .sidebar { position: static; top: auto; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .header-contact { display: none; }
  .hero-slides { height: 300px; }
  .hero-slide h1, .hero-slide h2 { font-size: 24px; }
  .section { padding: 32px 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand .title-cn { font-size: 18px; }
  .prose { padding: 20px; }
  /* v2.19 移动端：输入控件字号≥16px，避免 iOS 聚焦时整页自动放大 */
  .form-row input, .form-row textarea, .form-row select,
  .wpcf7 input, .wpcf7 textarea, .wpcf7 select,
  .comment-form input, .comment-form textarea { font-size: 16px; }
  /* v2.19 移动端：宽表格不破版，容器内横向滚动（桌面保持全宽样式不变） */
  .entry-content table, .prose table {
    display: block; width: max-content; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   信息枢纽（首页 · 左索引 + 右卡片堆叠）
   透视堆叠：父级 perspective 1500px，子级 translateX/Y + scale + rotateY
   ===================================================================== */
.info-hub {
  padding: 56px 0;
  background: linear-gradient(180deg, #f4f7fc 0%, #e8eef8 100%);
}
.info-hub .section-title { margin-bottom: 22px; }
.info-hub .hint {
  font-size: 13px; color: #6b7a90; font-weight: 400;
  display: inline-flex; align-items: center; gap: 4px;
}
.info-hub .hint kbd {
  display: inline-block;
  min-width: 22px; height: 22px; line-height: 20px;
  padding: 0 5px; text-align: center;
  background: #fff; border: 1px solid #c8d3e3; border-bottom-width: 2px;
  border-radius: 4px; font-family: 'Courier New', monospace;
  font-size: 12px; color: #0e4da4;
}

/* 会员卡（高亮置顶） */
.member-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary-bright) 60%, var(--c-primary-bright-light) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10,53,115,0.22);
}
.member-hero::before {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.member-hero::after {
  content: ""; position: absolute; left: -60px; bottom: -60px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.member-hero-badge {
  display: inline-block;
  font-size: 12px;
  background: rgba(255,255,255,0.22);
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 20px;
  margin: 0 0 10px;
  letter-spacing: 1px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.35);
}
.member-hero h4 {
  font-size: 20px !important;
  margin: 0 0 8px;
  position: relative;
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.member-hero p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  color: #fff !important;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.member-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 22px;
  background: #fff;
  color: #0e4da4;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.member-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  background: var(--c-primary-light);
}
/* 会员中心卡片：登录/进入按钮并列（v2.92 首页会员登录入口） */
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.member-cta-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.member-cta-ghost:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* v2.31 证书查询 */
.cert-query-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.cert-query-box h3 { color: var(--c-primary); font-size: 18px; margin: 0 0 6px; }
.cert-query-box .cert-tip { color: var(--c-text-soft); font-size: 13px; margin: 0 0 14px; }
.cert-query-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-query-form input[type="text"] {
  flex: 1; min-width: 220px; padding: 10px 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 16px; font-family: inherit;
}
.cert-query-form input[type="text"]:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(26,95,196,0.12); }
.cert-query-form button {
  padding: 10px 30px; background: var(--c-primary); color: #fff; border: none;
  border-radius: var(--radius); font-size: 15px; cursor: pointer; font-family: inherit;
}
.cert-query-form button:hover { background: var(--c-primary-dark); }
.cert-result { margin-top: 16px; }
.cert-status { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; margin-bottom: 12px; line-height: 1.6; }
.cert-valid { background: #e8f7ee; color: #177245; border: 1px solid #bfe6cf; }
.cert-expired { background: #fdf3e3; color: #9a6700; border: 1px solid #f0dcb0; }
.cert-none { background: #fdeaea; color: var(--c-accent-dark); border: 1px solid #f0c4c2; }
.cert-loading { background: #eef3fb; color: var(--c-primary-bright); border: 1px solid #cddcf5; }
.cert-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cert-table th {
  text-align: left; width: 120px; color: var(--c-text-soft); font-weight: 500;
  padding: 9px 14px; background: #f7f9fc; border: 1px solid var(--c-border); white-space: nowrap;
}
.cert-table td { padding: 9px 14px; border: 1px solid var(--c-border); }
@media (max-width: 600px) {
  .cert-query-box { padding: 18px; }
  .cert-query-form button { width: 100%; }
}
/* v2.48：信息枢纽第6标签内嵌查询框时，去掉外框以融入信息卡（避免卡片套卡片） */
.info-card .cert-query-box { background: transparent; border: none; box-shadow: none; padding: 0; margin-bottom: 0; }

/* v2.52 会员证书查询框（证书查询栏目内，置于通用证书查询下方） */
.member-cert-query-box { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--c-border); }
.member-cert-query-box h3 { color: var(--c-primary); font-size: 18px; margin: 0 0 6px; }
.member-cert-query-box .mcq-tip { color: var(--c-text-soft); font-size: 13px; margin: 0 0 14px; }
.mcq-tabs { display: flex; width: fit-content; max-width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.mcq-tab { padding: 9px 18px; background: #f4f7fb; color: var(--c-text-soft); border: none; border-right: 1px solid var(--c-border); font-size: 14px; cursor: pointer; font-family: inherit; }
.mcq-tab:last-child { border-right: none; }
.mcq-tab.is-active { background: var(--c-primary); color: #fff; }
.mcq-form { display: flex; gap: 10px; flex-wrap: wrap; }
.mcq-form input[type="text"] { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 16px; font-family: inherit; }
.mcq-form input[type="text"]:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(26,95,196,0.12); }
.mcq-form button { padding: 10px 30px; background: var(--c-primary); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; cursor: pointer; font-family: inherit; }
.mcq-form button:hover { background: var(--c-primary-dark); }
.mcq-result { margin-top: 16px; }
.mcq-count { font-size: 13px; color: var(--c-text-soft); margin-bottom: 10px; }
@media (max-width: 600px) {
  .mcq-form button { width: 100%; }
  .mcq-tab { flex: 1; padding: 9px 8px; }
}

/* v2.53 首页证书查询栏目：明确区分通用真伪查询与会员证书查询，不再显示文章入口 */
.cert-tools { padding: 24px; }
.info-card[data-tab="cert"] .info-card-body { min-height: auto; }

/* ---- 两个查询区域的视觉区分 ---- */
.cert-tool-section {
    margin-bottom: 28px;
    padding: 20px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.cert-tool-section:last-child { margin-bottom: 0; }

/* ① 证书查询 — 蓝色主调 */
.cert-tool-section:first-of-type {
    border-left: 4px solid var(--c-primary);
    background: linear-gradient(90deg, rgba(14,77,164,.04) 0%, transparent 100%);
}
.cert-tool-section:first-of-type h4 {
    font-size: 18px;
    color: var(--c-primary-dark);
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-primary-light);
}

/* ② 会员证书查询 — 青绿色调 */
.cert-tool-section:last-of-type {
    border-left: 4px solid #0b7a5f;
    background: linear-gradient(90deg, rgba(11,122,95,.04) 0%, transparent 100%);
}
.cert-tool-section:last-of-type h4 {
    font-size: 18px;
    color: #0b7a5f;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(11,122,95,.18);
}
/* 会员证书查询的按钮也用青绿色 */
.cert-tool-section:last-of-type .mcq-form button {
    background: #0b7a5f;
}
.cert-tool-section:last-of-type .mcq-form button:hover {
    background: #085e48;
}

.cert-tool-desc {
    font-size: 13px;
    color: var(--c-text-soft);
    margin: 0 0 14px;
}
.cert-tool-section .cert-query-box,
.cert-tool-section .member-cert-query-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.cert-tool-section .member-cert-query-box {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* v2.49 移动端体验优化：触控目标、刘海安全区、点击反馈、正文防溢出 */
/* 触控目标 ≥44px，移动端更好点 */
.nav-toggle { padding: 11px; }
.cert-query-form button,
.member-cta { min-height: 44px; }
/* 去除移动端点击高亮，触感更干净 */
a, button, .info-index-btn, .nav-toggle { -webkit-tap-highlight-color: transparent; }
/* 刘海/状态栏安全区（配合 header.php 的 viewport-fit=cover） */
.site-header { padding-top: env(safe-area-inset-top); }
/* 正文内宽表格/图片不撑破版心 */
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content img,
.entry-content video { max-width: 100%; height: auto; }

/* v2.41 蜜罐字段：屏幕与读屏全部隐藏，机器人误填即静默拒收 */
.sf-hp { position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* v2.38 活动、培训报名 */
.signup-list { margin: 18px 0; }
.signup-section-title {
  color: var(--c-primary); font-size: 18px; margin: 22px 0 12px;
  padding-left: 10px; border-left: 4px solid var(--c-primary); line-height: 1.3;
}
.signup-section-title-end { color: var(--c-text-soft); border-left-color: #c3cbd8; }
.signup-empty {
  background: var(--c-surface); border: 1px dashed var(--c-border); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; color: var(--c-text-soft); font-size: 15px;
}
.signup-item {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 18px;
}
.signup-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.signup-item-head h4 { margin: 0; font-size: 18px; color: var(--c-text); flex: 1; min-width: 200px; }
.signup-type-badge {
  font-size: 12px; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-training { background: #e8f1fd; color: var(--c-primary-bright); border: 1px solid #cddcf5; }
.badge-activity { background: #fdf1ec; color: #b5471f; border: 1px solid #f2d5c9; }
.signup-state-chip { font-size: 12px; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.chip-open { background: #e8f7ee; color: #177245; border: 1px solid #bfe6cf; }
.chip-end { background: #f2f4f7; color: #78828e; border: 1px solid #dde2e9; }
.signup-meta { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; color: var(--c-text); }
.signup-meta li { margin: 5px 0; }
.signup-meta strong { color: var(--c-text-soft); font-weight: 500; }
.signup-desc {
  margin-top: 12px; padding: 12px 14px; background: #f7f9fc; border-radius: var(--radius);
  font-size: 14px; line-height: 1.8; color: var(--c-text);
}
.signup-actions { margin-top: 14px; }
.signup-toggle-btn, .signup-submit-btn {
  padding: 9px 28px; background: var(--c-primary); color: #fff; border: none;
  border-radius: var(--radius); font-size: 15px; cursor: pointer; font-family: inherit;
}
.signup-toggle-btn:hover, .signup-submit-btn:hover { background: var(--c-primary-dark); }
.signup-submit-btn:disabled { background: #9db9dd; cursor: not-allowed; }
.signup-form-wrap { margin-top: 16px; border-top: 1px dashed var(--c-border); padding-top: 16px; }
.signup-form-tip { font-size: 13px; color: var(--c-text-soft); margin: 0 0 12px; }
.signup-form-tip em { color: var(--c-accent-dark); font-style: normal; }
.signup-form .sf-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.signup-form .sf-row label {
  flex: 1; min-width: 200px; font-size: 14px; color: var(--c-text); display: block;
}
.signup-form .sf-row-note label { flex: none; width: 100%; }
.signup-form input[type="text"], .signup-form input[type="tel"], .signup-form input[type="email"], .signup-form select,
.signup-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 15px; font-family: inherit;
  box-sizing: border-box;
}
.signup-form input:focus, .signup-form select:focus, .signup-form textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(26,95,196,0.12);
}
.sf-custom-title {
  font-size: 13px; font-weight: 600; color: var(--c-text-soft);
  border-top: 1px dashed var(--c-border); padding-top: 12px;
}
.signup-result { margin-top: 12px; }
.su-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.6; }
.su-ok { background: #e8f7ee; color: #177245; border: 1px solid #bfe6cf; }
.su-err { background: #fdeaea; color: var(--c-accent-dark); border: 1px solid #f0c4c2; }
.su-loading { background: #eef3fb; color: var(--c-primary-bright); border: 1px solid #cddcf5; }
.signup-past-list {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 6px 18px;
}
.signup-past-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid #eef1f5; font-size: 14px;
}
.signup-past-item:last-child { border-bottom: none; }
.signup-past-title { color: var(--c-text-soft); flex: 1; min-width: 180px; }
.signup-past-meta { color: #98a2ae; font-size: 13px; }
@media (max-width: 600px) {
  .signup-item { padding: 16px; }
  .signup-form .sf-row label { min-width: 100%; }
  .signup-submit-btn { width: 100%; }
}

/* 响应式：移动端布局变单列，标签栏横滚，共享容器保留 */
@media (max-width: 900px) {
  /* 导航：平板竖屏即折叠为汉堡菜单，避免 9 个菜单项 nowrap 挤压溢出。
     v2.21 紧凑化：一级 42px / 子项 36px；子菜单改手风琴（点父项右侧箭头展开），默认收起 */
  .nav-toggle { display: flex; }
  .mainnav .container { flex-direction: column; align-items: stretch; }
  .mainnav .nav-list { display: none; flex-direction: column; }
  .mainnav .nav-list.open { display: flex; }
  .mainnav .nav-list > li > a { height: 42px; padding: 0 14px; font-size: 15px; }
  .mainnav .nav-list > li.menu-item-has-children > a { padding-right: 48px; }
  .mainnav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; display: none; }
  .mainnav .nav-list > li.expanded > .sub-menu { display: block; }
  .mainnav .sub-menu a { padding-left: 28px; min-height: 36px; font-size: 14px; background: var(--c-primary-light); justify-content: flex-start; }
  /* 展开箭头按钮（仅移动端显示） */
  .nav-expand { display: flex; align-items: center; justify-content: center; position: absolute; right: 0; top: 0; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; }
  .nav-expand span { width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-top: -4px; transition: transform .2s, margin-top .2s; }
  .mainnav .nav-list > li.expanded > .nav-expand span { transform: rotate(-135deg); margin-top: 4px; }

  /* 站内搜索：移动端全宽、排在汉堡按钮下方，始终可见 */
  .mainnav .container { flex-wrap: wrap; }
  .mainnav .nav-toggle { order: 0; }
  .mainnav .nav-search { order: 1; margin-left: 0; flex: 1 1 100%; margin-top: 8px; padding: 0; }
  .mainnav .nav-list { order: 2; width: 100%; }
  .mainnav .nav-search .search-form { width: 100%; height: 42px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
  .mainnav .nav-search .search-form.is-open,
  .mainnav .nav-search .search-form { width: 100%; }
  .mainnav .nav-search .search-field { width: 100%; opacity: 1; padding: 0 14px; color: #fff; }
  .mainnav .nav-search .search-field::placeholder { color: rgba(255,255,255,.75); }
  .mainnav .nav-search .search-submit { color: #fff; }
  .mainnav .nav-search .search-submit:hover { color: var(--c-accent); }

  /* 信息枢纽：标题与 hint 换行分两行，避免互相挤压；
     索引栏改为顶部 Tab 形式，不再横滚。v2.42 起改成 grid 3 列布局，
     5 个标签固定 3+2 两行 + 选中态 inset 高光（去掉浮起阴影）。 */
  .info-hub .section-title { flex-wrap: wrap; }
  .info-hub .hint { width: 100%; font-size: 12px; margin-top: 4px; }
  .info-hub .info-hub-layout {
    grid-template-columns: 1fr;
    perspective: none;
    perspective-origin: 50% 50%;
    min-height: auto;
  }
  /* v2.44: 5 个标签改成竖向单列堆叠。
     v2.42 的 grid repeat(3,…) 把标签横排成 3+2，第 2 行少 1 个造成
     右侧大片空白、不均衡；v2.43 在 360px 以下 4 字 label 还被 ellipsis
     截掉。改成竖向每个按钮占满一行后：
       - 文字永远完整，永远不会溢出 layout 容器
       - 触屏目标大，移动端可达性好
       - 不再依赖 min-width / ellipsis / 列数魔法
       - "5 报名"作为 CTA 独占一行更突出 */
  .info-hub .info-index {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: static;
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f8;
    width: 100%;
    box-sizing: border-box;
  }
  .info-hub .info-index-btn {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    justify-content: flex-start;
    gap: 12px;
    font-size: 15px;          /* v2.49：标签字号回升，移动端更易读 */
  }
  .info-hub .info-index-btn .num { width: 26px; height: 26px; font-size: 13px; flex: none; }
  .info-hub .info-index-btn .label {
    min-width: 0;
    text-align: left;
    flex: 1;
  }
  .info-hub .info-stack { min-height: 0; padding: 18px 20px; }
  .info-hub .info-card { padding: 8px 4px; }
  .info-hub .info-card-body { min-height: 0; }
  /* v2.44: 选中态恢复浮起 box-shadow。
     v2.42 当时因为 grid 3 列横排，浮起阴影会盖到下方 info-stack 卡片，
     看起来像穿透。竖向堆叠后所有按钮都在 info-stack 上方独立一列，
     浮起阴影不再冲突，重新启用浮起更有"选中态"的层级感 */
  .info-hub .info-index-btn.is-active {
    background: linear-gradient(135deg, #0e4da4 0%, var(--c-primary-bright) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14,77,164,0.28);
  }
}
@media (max-width: 480px) {
  .info-hub .info-stack { min-height: 0; padding: 14px 16px; }
  .info-hub .info-card-head h3 { font-size: 18px; }
  .prose { padding: 16px; }
  .page-banner h1 { font-size: 22px; }
  .hero-slide h1, .hero-slide h2 { font-size: 20px; }
  .hero-slide p { font-size: 15px; }
  .section-title { flex-wrap: wrap; }
  .section-title .more { margin-left: 0; }
  .news-list a { flex-wrap: wrap; }
  .news-list .date { margin-left: auto; }
  /* 小屏：键盘提示已冗余，标签上数字即是，直接隐藏 hint */
  .info-hub .hint { display: none; }
}

/* ============================================================
   v2.8 信息枢纽：左右布局，卡片完全无外框，直接填充进大容器
   ============================================================ */
.info-hub-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10,40,90,0.10);
  overflow: hidden;
  min-height: 520px;
  perspective: 1500px;
  perspective-origin: 30% 50%;
  align-items: stretch;
}
/* 左侧索引栏：完全无背景无边框，与右卡无缝相邻 */
.info-index {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 14px;
  background: transparent;
  border-right: 0;
  position: sticky;
  top: 80px;
  align-self: stretch;
}
.info-index-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #1a3d72;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  transition: background .25s ease, color .25s ease;
  position: relative;
  font-family: inherit;
}
.info-index-btn .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: #e1e8f3;
  color: var(--c-primary-bright);
  font-size: 13px; font-weight: 700;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  transition: background .25s ease, color .25s ease;
}
.info-index-btn .label { flex: 1; }
.info-index-btn:hover { background: rgba(14,77,164,0.07); }
.info-index-btn:hover .num { background: #d3def0; }
.info-index-btn.is-active {
  background: rgba(14,77,164,0.10);
  color: #0e4da4;
  font-weight: 700;
}
.info-index-btn.is-active .num {
  background: linear-gradient(135deg,#0e4da4,var(--c-primary-bright));
  color: #fff;
}
.info-index-btn:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }

/* 右侧卡片容器：普通文档流，不再是 3D 堆叠 */
.info-stack {
  position: relative;
  padding: 28px 32px 32px;
  min-height: 0;
}

/* 卡片：完全无外框，直接填充进大容器 */
.info-card {
  position: static;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: none;
}
.info-card.is-active { display: block; }
.info-card.is-active .info-card-head {
  border-top: 4px solid #0e4da4;
  border-bottom: 2px solid #eef2f8;
  padding-top: 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.info-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid #eef2f8;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.info-card-head h3 {
  font-size: 22px; color: var(--c-primary-dark); margin: 0; font-weight: 700;
  letter-spacing: 1px;
}
.info-card-head .more {
  font-size: 14px; color: var(--c-primary-bright); text-decoration: none;
  font-weight: 500;
}
.info-card-head .more:hover { text-decoration: underline; }
.info-card-body { min-height: 380px; }

/* 首页可自由设计区（后台「设置→阅读→主页」指定页面，用区块编辑器拖入的内容） */
.home-custom { padding: 26px 0; }

/* 新闻动态子分类快捷入口（首页信息枢纽「新闻动态」卡片内）
   样式参考顶部导航下拉菜单：白底卡片、分隔线、悬停蓝底白字 */
.news-subcats {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(14, 77, 164, .10);
    margin: 0 0 18px;
    overflow: hidden;
}
.news-subcats a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--c-primary);
    background: #fff;
    border-right: 1px solid #e8eef5;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.news-subcats a:last-child { border-right: none; }
.news-subcats a:hover {
    background: var(--c-primary);
    color: #fff;
}

/* v2.80 全站移动端通用防御（最后兜底） */
html, body { overflow-x: hidden; max-width: 100%; }
body { -webkit-text-size-adjust: 100%; }

/* 所有可能撑爆容器的元素 max-width: 100% */
img, video, iframe, embed, object, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* 表格 max-width + 横向滚动 */
table, .wp-block-table, .entry-content table, .prose table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表单控件 */
input, textarea, select, button {
    max-width: 100%;
    box-sizing: border-box;
}

/* pre / code 长内容横向滚动 */
pre, code, kbd, samp {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
    white-space: pre-wrap;
}

/* layout-2col 子项允许收缩（v2.78 同款修复，应用到所有 2 列布局） */
.layout-2col > * { min-width: 0; }

/* 正文长文本（中文不强制 break，但允许 break-word 兜底） */
.prose, .entry-content, .article-content, .post-content, .page-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.prose img, .entry-content img, .article-content img, .post-content img, .page-content img {
    max-width: 100%;
    height: auto;
}

/* article 列表项（首页新闻/通知列表）防止内容撑爆 */
.news-list, .notices-list, .post-list, .article-list {
    min-width: 0;
}
.news-list li, .notices-list li, .post-list li, .article-list li {
    min-width: 0;
    overflow-wrap: break-word;
}

/* 证书查询框 / 报名表单容器 */
.cert-query-box, .member-cert-query-box, .signup-form, .form-wrap {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.cert-query-box input, .member-cert-query-box input, .signup-form input, .signup-form select, .signup-form textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* 表格（页脚友情链接、协会结构等） */
.links, .footer-links, .table-wrap, .cert-result table {
    max-width: 100%;
    min-width: 0;
}

/* 移动端兜底：小屏下隐藏次要元素 */
@media (max-width: 480px) {
    .hide-mobile, .desktop-only { display: none !important; }
    .show-mobile { display: block !important; }
}
@media (min-width: 481px) {
    .show-mobile { display: none !important; }
}

/* v2.79 美化新闻动态标签：整体卡片化 + 标签 box-shadow + 活跃态渐变 + hover 动效
   保持 v2.78 的 5 按钮 3+2 自然换行布局，只改外观。 */
.news-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(180deg, #f8fafd 0%, #eef2f8 100%);
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    padding: 14px 14px;
    margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(14,77,164,0.05);
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.news-subcats a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 18px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--c-primary);
    background: #fff;
    border: 1px solid #d6e0ee;
    border-radius: 22px;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 1px 3px rgba(14,77,164,0.06);
    position: relative;
    white-space: nowrap;
    word-break: keep-all;
}
.news-subcats a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-primary);
    opacity: 0.35;
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.news-subcats a:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14,77,164,0.22);
}
.news-subcats a:hover::before {
    background: #fff;
    opacity: 0.8;
    transform: scale(1.3);
}
.news-subcats a.is-current {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-bright) 100%);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 4px 12px rgba(196,30,58,0.32);
    font-weight: 600;
}
.news-subcats a.is-current::before {
    background: #fff;
    opacity: 1;
    transform: scale(1.3);
}
@media (max-width: 768px) {
    .news-subcats { padding: 12px 12px; gap: 8px; border-radius: 12px; }
    .news-subcats a { padding: 8px 14px; font-size: 13px; }
}

.news-subcats a.is-current {
    background: var(--c-accent);
    color: #fff;
    border-right-color: rgba(255,255,255,.25);
}

/* v2.59 会员证书查询框：两个查询区（按编号 / 按单位名）分块 */
.member-cert-query-box .mquery { margin-bottom: 18px; }
.member-cert-query-box .mquery:last-child { margin-bottom: 0; }
.member-cert-query-box .mquery-label {
    display: block; font-weight: 600; color: var(--c-primary);
    font-size: 14px; margin-bottom: 8px;
}
/* ============================================================

/* ============================================================
   v2.74 移动/平板端换行兜底（断点 768→980px）+ 桌面端回退 v2.72（基类 inline-flex→flex，每按钮 33.333% 永远 3+2）
   根因：v2.71 的 flex: 1 1 33.333% 触发 flex 真实分配陷阱：
         5 × basis 33.333% = 166.665% > 100%，flex-shrink:1 等比收缩
         到每个 20%，5 个挤在一行 → overflow:hidden 切掉了后几个按钮。
   用户明确「跟下面的友情链接一样，换行就不行吗？」。
   解决方案：完全复刻首页底部 .links 友情链接的布局模式：
     .news-subcats { display: flex; flex-wrap: wrap; gap: 8px; }
     .news-subcats a { flex: 0 0 auto; padding: 9px 16px; border-radius: 20px; }
   每个按钮按文字内容自然宽度，容器一行放不下就自动 wrap 到下一行。
   永远不溢出、永远完整显示每个按钮（与友情链接一致）。
   ============================================================ */
@media (max-width: 768px) {
    .news-subcats {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }
    .news-subcats a {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        color: var(--c-primary) !important;
        background: #fff !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 20px !important;       /* 和 .links 友情链接一致 */
        text-decoration: none !important;
        box-sizing: border-box !important;
        word-break: keep-all !important;
        white-space: nowrap !important;        /* 单按钮内文字不换行 */
        transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    }
    .news-subcats a:hover {
        background: var(--c-primary) !important;
        color: #fff !important;
        border-color: var(--c-primary) !important;
    }
    .news-subcats a.is-current {
        background: var(--c-accent) !important;
        color: #fff !important;
        border-color: var(--c-accent) !important;
    }
}


/* v2.74 移动/平板端换行兜底（断点 768→980px）+ 桌面端回退 v2.72
   根因：基类 display: inline-flex → 容器宽=内容总宽，flex-wrap: wrap 没机会触发，第 5 个被 overflow:hidden 切尾
   v2.71/v2.72 只改了 @media (max-width:768px)，桌面端（用户截图实为 PC 浏览器）完全不受影响
   修复：基类 display: inline-flex → display: flex；.news-subcats a 加 flex: 0 0 33.333%
   效果：桌面端 5 个按钮 = 3 + 2 两行（每行 33.333%）；窄屏也 3 + 2（之前 v2.72 已 OK）
   bump Version 2.72 → 2.73 触发 wp_enqueue_style ?ver= 强制刷缓存
*/


/* v2.74 移动/平板端（≤980px）换行兜底
   背景：用户截图为"移动端"，但 v2.72 的 @media(max-width:768px) 没生效——
        其真实视口 > 768px（大屏手机横屏 / 平板 / 手机模拟器拉宽），
        走到桌面端 inline-flex 路线被切尾。
   修复：把换行断点从 768px 提到 980px，覆盖所有"用户认为是移动端"的视口。
   规则：复刻 v2.72 友情链接自然换行模式，加 !important 防覆盖。
   桌面端（>980px）保持 v2.72 原样（inline-flex），不动。
*/
@media (max-width: 980px) {
    .news-subcats {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }
    .news-subcats a {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        color: var(--c-primary) !important;
        background: #fff !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    }
    .news-subcats a:hover {
        background: var(--c-primary) !important;
        color: #fff !important;
        border-color: var(--c-primary) !important;
    }
    .news-subcats a.is-current {
        background: var(--c-accent) !important;
        color: #fff !important;
        border-color: var(--c-accent) !important;
    }
}


/* v2.76 移动/平板端（≤980px）.info-hub 单列化兜底
   根因：v2.75 用错字符串替换位置，把单列化插到了 768 块里导致语法错乱（嵌套选择器无匹配）。
   这次每个 { 都有 } 闭合，且插到 980 块内正确位置。
*/
@media (max-width: 980px) {
    .info-hub .info-hub-layout {
        grid-template-columns: 1fr !important;
        perspective: none !important;
        perspective-origin: 50% 50% !important;
        min-height: auto !important;
    }
    .info-hub .info-index {
        flex-direction: column !important;
        gap: 6px !important;
        position: static !important;
        padding: 14px 12px !important;
        border-bottom: 1px solid #eef2f8 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .info-hub .info-index-btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px 14px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        font-size: 15px !important;
    }
    .info-hub .info-index-btn .num {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
        flex: none !important;
    }
    .info-hub .info-index-btn .label {
        min-width: 0 !important;
        text-align: left !important;
        flex: 1 !important;
    }
    .info-hub .info-stack {
        min-height: 0 !important;
        padding: 18px 20px !important;
    }
    .info-hub .info-card {
        padding: 8px 4px !important;
    }
    .info-hub .info-card-body {
        min-height: 0 !important;
    }
    .info-hub .info-index-btn.is-active {
        background: linear-gradient(135deg, #0e4da4 0%, var(--c-primary-bright) 100%) !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(14,77,164,0.28) !important;
    }
}


/* v2.76 兜底：1100 块覆盖 981-1100 视口（用户实测视口可能 > 980）。
   同样把 .info-hub 单列化 + .news-subcats 换行都放进来。
*/
@media (max-width: 1100px) {
    .info-hub .info-hub-layout {
        grid-template-columns: 1fr !important;
        perspective: none !important;
        perspective-origin: 50% 50% !important;
        min-height: auto !important;
    }
    .info-hub .info-index {
        flex-direction: column !important;
        gap: 6px !important;
        position: static !important;
        padding: 14px 12px !important;
        border-bottom: 1px solid #eef2f8 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .info-hub .info-index-btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px 14px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        font-size: 15px !important;
    }
    .info-hub .info-index-btn .num {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
        flex: none !important;
    }
    .info-hub .info-index-btn .label {
        min-width: 0 !important;
        text-align: left !important;
        flex: 1 !important;
    }
    .info-hub .info-stack {
        min-height: 0 !important;
        padding: 18px 20px !important;
    }
    .info-hub .info-card {
        padding: 8px 4px !important;
    }
    .info-hub .info-card-body {
        min-height: 0 !important;
    }
    .info-hub .info-index-btn.is-active {
        background: linear-gradient(135deg, #0e4da4 0%, var(--c-primary-bright) 100%) !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(14,77,164,0.28) !important;
    }
    .news-subcats {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }
    .news-subcats a {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        color: var(--c-primary) !important;
        background: #fff !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    }
    .news-subcats a:hover {
        background: var(--c-primary) !important;
        color: #fff !important;
        border-color: var(--c-primary) !important;
    }
    .news-subcats a.is-current {
        background: var(--c-accent) !important;
        color: #fff !important;
        border-color: var(--c-accent) !important;
    }
}
