/* Awards & Certifications page / product-page certificate bar (batch 424 layout rebuild) · EN variant
   .hn- 命名空间，只在 /honor.html 与 products 页的资质条上生效。
   本批次改动（P1116-honor-1）：
   1) 容器 1120 → 1320，卡片墙桌面 3 列 → 4 列；
   2) .hn-tabs 去掉 overflow（原 overflow:auto 遇上 1px 高度差，Windows 会同时冒出纵/横两条滚动条）；
      移动端 4 等分，任何宽度都不横滚；
   3) 字号按全站标尺重排（body 15px）：卡片标题回到 15px，副标题 13，编号 12，表格 14；
   4) 主题在 ≤767.98 有 `section:not(.page-footer) h2/h3 {20px!important-like}` 规则，
      特异性高于单类，本页用 !important 夺回控制权（仅此一处，见文件末）。 */

/* 变量放 :root：抽屉(.hn-drawer)在 section 之外，产品页资质条(.hn-bar)不在 .hn-sec 内，
   挂在 .hn-sec 上会让这两个块拿到未定义变量、边框/文字色失效 */
:root {
    --hn-ink: #29293a;
    --hn-ink-2: #5c5c6e;
    --hn-ink-3: #6f6f7e;
    --hn-line: #e6e6ea;
    --hn-line-2: #f0f0f3;
    --hn-brand: #3d29a4;
    --hn-bg: #f3f3f6;
}
.hn-sec { padding-top: 34px; }

/* ---------- 导语 + 数字 ---------- */
.hn-intro { display: grid; grid-template-columns: 1.28fr 1fr; gap: 56px; align-items: start; padding: 12px 0 44px; }
.hn-intro-txt h2 { margin: 0 0 18px; font-size: 27px; line-height: 1.4; font-weight: 600; color: var(--hn-ink); letter-spacing: .01em; text-align: left; }
.hn-intro-txt h2 em { font-style: normal; color: var(--hn-brand); }
.hn-intro-txt p { margin: 0; font-size: 14.5px; line-height: 1.85; font-weight: 400; color: var(--hn-ink-2); text-align: left; }
.hn-intro-txt p + p { margin-top: 10px; }

.hn-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hn-line); border: 1px solid var(--hn-line); border-radius: 8px; overflow: hidden; }
.hn-stat { background: #fff; padding: 20px 22px; }
.hn-n { font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--hn-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hn-k { font-size: 13.5px; line-height: 1.5; color: var(--hn-ink-2); margin-top: 9px; letter-spacing: .01em; }
/* 批次430：说明里的括号清单原来挤在主标签里，只能整体压到 13px（lubin：太小、不美观）。
   现在拆成独立副行 12px，主标签才能放大到 14px 并压深一档色。 */
.hn-sub { margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--hn-ink-3); letter-spacing: .02em; }

/* ---------- 页签 ---------- */
.hn-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--hn-line); margin-bottom: 30px; flex-wrap: wrap; }
/* 关键：这里不能有 overflow。auto 会在 tab 内容比容器高 1px 时唤起双向滚动条 */
.hn-tabs { display: flex; align-items: flex-end; gap: 34px; overflow: visible; flex: 0 1 auto; }
.hn-tab {
    appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0 0 14px; margin: 0; cursor: pointer;
    font-family: inherit; font-size: 15px; line-height: 1.2; font-weight: 400; color: var(--hn-ink-2);
    position: relative; white-space: nowrap; transition: color .15s;
}
.hn-tab:hover { color: var(--hn-ink); }
.hn-tab.on { color: var(--hn-brand); font-weight: 600; }
.hn-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hn-brand); }
.hn-cnt { font-size: 12.5px; color: #8a8a9a; margin-left: 6px; font-weight: 400; font-variant-numeric: tabular-nums; }
.hn-tab.on .hn-cnt { color: var(--hn-brand); opacity: .72; }
.hn-hint { font-size: 12.5px; line-height: 1.4; color: var(--hn-ink-3); padding-bottom: 15px; }

.hn-panel { display: none; }
.hn-panel.show { display: block; }

/* ---------- 卡片墙 ---------- */
.hn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.hn-card {
    background: #fff; border: 1px solid var(--hn-line); border-radius: 8px; overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.hn-card:hover, .hn-card:focus-visible { border-color: rgba(61, 41, 164, .42); box-shadow: 0 10px 26px rgba(41, 41, 58, .11); transform: translateY(-2px); outline: 0; }

.hn-frame {
    position: relative; aspect-ratio: 1 / 1.09; min-height: 262px; max-height: 356px;
    background: var(--hn-bg); border-bottom: 1px solid var(--hn-line-2);
    display: flex; align-items: center; justify-content: center; padding: 12px;
}
/* 横竖混排的唯一解：框等比 + contain，不裁图不错位 */
.hn-frame img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: 0 6px 22px rgba(41, 41, 58, .15); outline: 7px solid #fff; transition: transform .25s ease; }
.hn-card:hover .hn-frame img { transform: scale(1.018); }

.hn-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11.5px; letter-spacing: .06em; line-height: 1.5; color: #fff; padding: 2px 7px; border-radius: 2px; }
.hn-tag.cert { background: #2c7a7b; }
.hn-tag.honor { background: #c9822b; }
.hn-tag.patent { background: var(--hn-brand); }
.hn-tag.tm { background: #6a6a7c; }

.hn-meta { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hn-t { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--hn-ink); text-align: left; }
.hn-s { margin: 0; font-size: 13px; line-height: 1.65; color: var(--hn-ink-3); }
.hn-s.mono { font-family: Consolas, "Liberation Mono", monospace; font-size: 12px; color: var(--hn-ink-2); letter-spacing: 0; }
.hn-s.warn { color: #b06a00; }

/* ---------- 清单表 ---------- */
.hn-tbl-wrap { border: 1px solid var(--hn-line); border-radius: 8px; overflow: hidden; background: #fff; }
table.hn-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
table.hn-tbl thead th { background: #fafafb; text-align: left; font-weight: 500; color: var(--hn-ink-2); font-size: 13px; padding: 13px 18px; border-bottom: 1px solid var(--hn-line); }
table.hn-tbl tbody td { padding: 12px 18px; border-bottom: 1px solid var(--hn-line-2); vertical-align: middle; color: var(--hn-ink-2); word-break: break-word; line-height: 1.65; }
table.hn-tbl tbody tr:last-child td { border-bottom: 0; }
table.hn-tbl tbody tr { cursor: pointer; }
table.hn-tbl tbody tr:hover { background: #fbfbfd; }
table.hn-tbl td.nm { color: var(--hn-ink); font-weight: 500; }
.hn-exp { display: inline-block; margin-left: 8px; font-size: 11.5px; color: #8a8a9a; background: var(--hn-line-2); border-radius: 2px; padding: 1px 6px; vertical-align: 1px; }
.hn-na { color: #a8a8b6; font-size: 12.5px; }
/* 列宽：模板 th 上写了 inline width（专利 170 / 商标 300），1320 容器下专利号会被折成两行，
   这里用 !important 压过 inline style。改的是宽度，不改数据。 */
#hn-patent table.hn-tbl thead th:nth-child(1) { width: 215px !important; }
/* 批次433：种类列要放「意大利发明专利」这种 7 字标签（td.pt 是 nowrap，窄了会顶出格子） */
#hn-patent table.hn-tbl thead th:nth-child(2) { width: 132px !important; }
#hn-patent table.hn-tbl thead th:nth-child(4) { width: 250px !important; }
/* 批次426：专利表加了「种类」列（广告法第十二条要求标明专利号与种类）。
   4 列在 390 屏放不下，窄屏收起权利人 —— 号码、种类、名称三项必须可见。 */
#hn-patent td.pt { color: var(--hn-ink-2); font-size: 13px; white-space: nowrap; }
#hn-trademark table.hn-tbl thead th:nth-child(1) { width: 330px !important; }
#hn-trademark table.hn-tbl thead th:nth-child(2) { width: 130px !important; }
/* 30~50 行的长清单，加斑马纹才好横向对行 */
table.hn-tbl tbody tr:nth-child(even) { background: #f8f8fb; }
table.hn-tbl tbody tr:nth-child(even):hover { background: #f2f2f8; }
table.hn-tbl tbody td:last-child { color: var(--hn-ink-2); }
.mono { font-family: Consolas, "Liberation Mono", monospace; font-size: 13px; }

/* ---------- 抽屉 ---------- */
.hn-mask { position: fixed; inset: 0; background: rgba(20, 18, 38, .44); z-index: 1090; opacity: 0; pointer-events: none; transition: .22s; }
.hn-mask.on { opacity: 1; pointer-events: auto; }
.hn-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 94vw; background: #fff; z-index: 1100;
    transform: translateX(102%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(20, 18, 38, .16);
}
.hn-drawer.on { transform: none; }
.hn-dw-head { padding: 18px 20px 18px 26px; border-bottom: 1px solid var(--hn-line-2); display: flex; align-items: flex-start; gap: 16px; flex: 0 0 auto; background: #fff; }
.hn-dw-tt { flex: 1; }
.hn-dw-k { font-size: 11.5px; letter-spacing: .12em; color: var(--hn-ink-3); text-transform: uppercase; }
.hn-dw-head h4 { margin: 6px 0 0; font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--hn-ink); text-align: left; }
/* 批次428：关闭按钮原来是 32px 白底细边，落在白色抽屉头上等于隐形（用户找不到出口）。
   改成 36px 浅灰圆底 + 深一点的图标；窄屏再放大到 40px。 */
.hn-dw-close { appearance: none; border: 0; background: #f1f1f6; width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; color: #4b4b5e; display: grid; place-items: center; flex: 0 0 auto; margin-left: auto;
    transition: background .16s ease, color .16s ease, transform .16s ease; }
.hn-dw-close svg { width: 18px; height: 18px; }
.hn-dw-close:hover { background: #e4e4ee; color: var(--hn-ink); }
.hn-dw-close:active { transform: scale(.94); }
.hn-dw-close:focus-visible { outline: 2px solid var(--hn-brand); outline-offset: 2px; }
.hn-dw-body { overflow-y: auto; padding: 22px 26px 34px; -webkit-overflow-scrolling: touch; }
.hn-dw-img { background: #fafafb; border: 1px solid var(--hn-line-2); border-radius: 8px; padding: 22px; display: flex; justify-content: center; margin-bottom: 22px; }
.hn-dw-img img { max-height: 44vh; max-width: 100%; width: auto; height: auto; box-shadow: 0 8px 26px rgba(41, 41, 58, .16); outline: 10px solid #fff; }
/* 表格行的证书图：不占位、不预加载，点开抽屉时才取 data-src */
.hn-rowpic { display: none; }

.hn-fields { border-top: 1px solid var(--hn-line-2); }
.hn-field { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hn-line-2); font-size: 14px; line-height: 1.7; }
.hn-field .k { color: var(--hn-ink-3); font-size: 13px; }
.hn-field .v { color: var(--hn-ink); word-break: break-word; }
.hn-field .v a { color: var(--hn-brand); word-break: break-all; }

.hn-desc { margin-top: 20px; background: #fbfbfc; border: 1px solid var(--hn-line-2); border-radius: 8px; padding: 16px 18px; }
.hn-desc .h { font-size: 12.5px; color: var(--hn-ink-3); letter-spacing: .06em; margin-bottom: 7px; }
.hn-desc p { margin: 0; font-size: 14px; color: var(--hn-ink-2); line-height: 1.85; text-align: left; }

.hn-scope { margin-top: 16px; border: 1px solid var(--hn-line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.hn-scope summary { cursor: pointer; padding: 13px 16px; font-size: 13.5px; color: var(--hn-ink); font-weight: 500; display: flex; align-items: center; gap: 8px; list-style: none; user-select: none; }
.hn-scope summary::-webkit-details-marker { display: none; }
.hn-scope summary::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--hn-ink-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .18s ease; flex: 0 0 auto; }
.hn-scope[open] summary::before { transform: rotate(90deg); }
.hn-scope summary .cnt { margin-left: auto; font-size: 12.5px; color: var(--hn-ink-3); font-variant-numeric: tabular-nums; }
.hn-sc-rows { border-top: 1px solid var(--hn-line-2); }
.hn-sc-row { display: grid; grid-template-columns: 1fr 40px 140px; align-items: center; padding: 9px 16px; font-size: 12.5px; border-bottom: 1px solid #f2f2f5; }
.hn-sc-row:last-child { border-bottom: 0; }
.hn-sc-row:hover { background: #fbfbfc; }
.hn-sc-row .l { color: var(--hn-ink); }
.hn-sc-row .l i { font-style: normal; color: var(--hn-ink-3); font-size: 11.5px; margin-left: 6px; }
.hn-sc-row .n { color: var(--hn-ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.hn-sc-row .c { color: var(--hn-brand); font-size: 12px; text-align: right; }
.hn-sc-foot { padding: 10px 16px; font-size: 12px; color: var(--hn-ink-3); line-height: 1.7; background: #fbfbfc; }

/* ---------- 产品分类页资质条 ---------- */
.hn-bar { margin: 40px 0 0; border: 1px solid var(--hn-line); border-radius: 8px; background: #fff; padding: 18px 22px; }
.hn-bar-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hn-bar-h b { font-size: 14.5px; color: var(--hn-ink); font-weight: 600; }
.hn-bar-h a { font-size: 13px; color: var(--hn-brand); }
.hn-bar-list { display: flex; flex-wrap: wrap; gap: 10px; }
.hn-bar-item { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hn-line); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--hn-ink); background: #fff; }
.hn-bar-item:hover { border-color: var(--hn-brand); color: var(--hn-brand); }
.hn-bar-item i { font-style: normal; color: var(--hn-ink-3); font-size: 12px; font-family: Consolas, monospace; }
.hn-bar-item .ok { color: #2c7a7b; }

/* ---------- 容器宽度（本页自己的约束，不依赖主题 container 行为） ---------- */
/* 主题同时挂了 .container(1200) 与 .container-wide(1800)，后者后定义会赢；这里统一压到 1320 */
.hn-sec > .container { max-width: 1320px; width: 100%; margin-left: auto; margin-right: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .hn-intro { grid-template-columns: 1fr; gap: 28px; }
    .hn-stats { max-width: 580px; }
    .hn-grid { grid-template-columns: repeat(3, 1fr); }
    .hn-frame { max-height: 340px; }
}
@media (max-width: 991px) {
    .hn-grid { grid-template-columns: repeat(2, 1fr); }
    .hn-frame { max-height: 360px; }
}
@media (max-width: 767px) {
    .hn-sec { padding-top: 22px; }
    .hn-intro { padding: 6px 0 28px; }
    .hn-intro-txt h2 { font-size: 20px; line-height: 1.5; margin-bottom: 14px; }
    .hn-intro-txt p { font-size: 14px; line-height: 1.85; }
    .hn-stat { padding: 16px 18px; }
    .hn-n { font-size: 26px; }
    .hn-k { font-size: 12.5px; }
    .hn-sub { font-size: 11.5px; }
    .hn-toolbar { gap: 0; margin-bottom: 22px; }
    /* 4 等分，永不横滚 */
    .hn-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 0; width: 100%; }
    .hn-tab { width: 100%; padding-bottom: 13px; text-align: center; font-size: 14.5px; }
    .hn-tab.on::after { left: 50%; right: auto; width: 26px; margin-left: -13px; }
    .hn-cnt { margin-left: 4px; font-size: 12px; }
    .hn-hint { display: none; }
    .hn-grid { grid-template-columns: 1fr; gap: 14px; }
    .hn-frame { max-height: none; min-height: 0; }
    .hn-t { font-size: 16px; }
    .hn-tbl-wrap { overflow-x: auto; }
    /* 批次433：固定列 215 + 132 + 250 已经占满 620，名称列会被压成一条；抬到 780 让名称有空间，
       701–767 之间横滚，≤700 已切卡片式不受影响 */
    table.hn-tbl { min-width: 780px; font-size: 13.5px; }
    .hn-dw-head { padding: 16px 18px; }
    .hn-dw-body { padding: 18px 18px 30px; }
    .hn-field { grid-template-columns: 88px 1fr; gap: 10px; }
}

/* EN-only: language note */
.hn-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--hn-ink-3); text-align: left; }

/* ---------- 无证书图时的排版占位（类别 + 编号，不写「图片待补」） ---------- */
.hn-txtmark { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 12px; }
.hn-txtmark .k { font-size: 12.5px; letter-spacing: .24em; color: var(--hn-ink-2); }
.hn-txtmark .v { font-family: Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.5; color: var(--hn-ink-2); word-break: break-all; }
.hn-txtmark .v.dim { color: var(--hn-ink-2); letter-spacing: .10em; font-size: 12.5px; }

/* 无证书图的紧凑版画框：不要把空框撑满整屏（44 张里 42 张没有图时的默认态） */
.hn-frame--txt { aspect-ratio: auto; height: 152px; min-height: 0; max-height: 152px; background: linear-gradient(155deg, #f8f7fc 0%, #f2f2f7 100%); }
.hn-frame--txt .hn-txtmark { align-items: flex-start; text-align: left; padding-left: 2px; }
.hn-frame--txt .hn-txtmark .v { font-size: 12.5px; }

/* 字重兜底：主题对小字用了 300，8~13px 会发虚，本页统一 400 */
.hn-k, .hn-sub, .hn-s, .hn-hint, .hn-na, .hn-field .k, .hn-sc-row, .hn-sc-foot, .hn-note,
.hn-txtmark .k, .hn-txtmark .v, .hn-tag, .hn-cnt, .hn-dw-k { font-weight: 400; }

/* 主题在 ≤767.98 用 `section:not(.page-footer) h2/h3` 强制 20px/700，特异性高于单类选择器，
   会把卡片标题（14px）顶成 20px、导语 h2 也被改字重。这里夺回控制权。 */
@media (max-width: 767.98px) {
    .hn-sec .hn-intro-txt h2 { font-size: 20px !important; font-weight: 600 !important; line-height: 1.5 !important; }
    .hn-sec .hn-card .hn-t { font-size: 16px !important; font-weight: 600 !important; line-height: 1.5 !important; }
    .hn-sec .hn-dw-head h4 { font-size: 17px !important; font-weight: 600 !important; }
}

/* ---------- 批次426：≤700 清单卡片化 ----------
   必须放在 767 断点之后：那条规则给 table.hn-tbl 写了 min-width:620px、给
   .hn-tbl-wrap 写了 overflow-x:auto（原本是为了横滚看长表）。这里要的是不要横滚，
   用 !important 压掉最小宽度，并把表格拆成「一条一卡」：号码 / 种类标签 / 名称 / 权利人。 */
@media (max-width: 700px) {
    .hn-tbl-wrap { overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
    table.hn-tbl, table.hn-tbl tbody, table.hn-tbl tr, table.hn-tbl td {
        display: block !important; width: auto !important; min-width: 0 !important;
    }
    table.hn-tbl { table-layout: auto !important; font-size: 14px; }
    table.hn-tbl thead { display: none !important; }
    table.hn-tbl tbody tr { margin: 0 0 10px; padding: 13px 15px 12px; background: #fff !important;
        border: 1px solid var(--hn-line); border-radius: 8px; }
    table.hn-tbl tbody td { padding: 0 !important; border: 0 !important; }
    table.hn-tbl tbody td.mono { font-size: 12px; color: var(--hn-ink-3); letter-spacing: .02em; line-height: 1.5; }
    table.hn-tbl tbody td.pt { display: inline-block !important; margin-top: 6px; padding: 1px 7px; font-size: 11.5px;
        color: var(--hn-brand); background: #f4f1fe; border: 1px solid #e6e0f8 !important; border-radius: 3px; }
    table.hn-tbl tbody td.nm { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
    table.hn-tbl tbody td:last-child { margin-top: 4px; font-size: 12.5px; color: var(--hn-ink-3); }
}

/* ---------- 批次428：抽屉的出口要一眼看得见 ----------
   桌面端问题：关闭按钮白底细边，压在白抽屉头上等于隐形（lubin 反馈「最好加个关闭按钮」，
   其实按钮一直都在，只是看不见）。已在上方把按钮改成 36px 浅灰圆底。
   窄屏问题：抽屉 max-width:94vw 时左右只剩 10~24px 遮罩，手指根本点不到「左侧空白」，
   所以窄屏直接把抽屉铺满，靠放大的按钮退出。 */
@media (max-width: 767.98px) {
    .hn-drawer { width: 100%; max-width: 100%; }
    .hn-dw-head { padding: 14px 14px 14px 16px; gap: 12px; }
    .hn-dw-close { width: 40px; height: 40px; }
    .hn-dw-close svg { width: 20px; height: 20px; }
}
/* ============================================================
   批次458 · 「卡片 / 清单」双视图（lubin 提：这个切换功能挺好，可以加入）
   · .hn-mode-card（JS 默认挂上）—— 专利 / 商标表格转成卡片，与认证 / 荣誉卡片墙统一
   · .hn-mode-list             —— 认证 / 荣誉卡片墙转成一行一条的清单
   · 两个 class 都由 JS 挂在 .hn-sec 上；JS 不执行时都不存在 = 当前版式，
     所以这套样式纯属增强，不依赖脚本也能正常阅读。
   位置必须在批次426 的 ≤700「清单卡片化」之后：那段用 !important 把表格拆成卡片，
   是手机端唯一正确形态，本批不改它的行为（手机端表格两种模式同形）。
   ============================================================ */

/* ---------- 切换控件（工具条右侧） ---------- */
.hn-aside { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; }
.hn-aside .hn-hint { padding-bottom: 0; }
.hn-view {
    display: inline-flex; flex: 0 0 auto; background: #fff;
    border: 1px solid var(--hn-line); border-radius: 6px; overflow: hidden;
}
.hn-view-btn {
    appearance: none; -webkit-appearance: none; border: 0; margin: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
    font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.35;
    color: var(--hn-ink-2); letter-spacing: .02em; white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}
.hn-view-btn + .hn-view-btn { border-left: 1px solid var(--hn-line); }
.hn-view-btn svg { display: block; flex: 0 0 auto; }
.hn-view-btn:hover { background: #f7f5fe; color: var(--hn-brand); }
.hn-view-btn.on, .hn-view-btn.on:hover { background: var(--hn-brand); color: #fff; font-weight: 500; }
.hn-view-btn:focus-visible { outline: 2px solid var(--hn-brand); outline-offset: -3px; }

/* ---------- 清单模式：认证 / 荣誉卡片墙 → 一行一条 ---------- */
.hn-mode-list .hn-grid { display: block; }
.hn-mode-list .hn-card {
    flex-direction: row; align-items: center;
    margin: 0 0 10px; border-radius: 8px;
}
.hn-mode-list .hn-card:last-child { margin-bottom: 0; }
.hn-mode-list .hn-card:hover { transform: none; box-shadow: 0 6px 18px rgba(41, 41, 58, .08); }
/* 缩略图定成 96×96 的小相框：证书是竖幅，不定高就会被原图比例撑到 160px+ 一行，
   清单就失去「快速扫编号」的意义。定高后图片等比缩进框里，行高统一。 */
.hn-mode-list .hn-frame {
    flex: 0 0 80px; width: 80px; height: 80px; aspect-ratio: auto; min-height: 0; max-height: none;
    align-self: center; margin: 9px 0 9px 9px; padding: 5px;
    border: 1px solid var(--hn-line-2); border-radius: 4px; background: var(--hn-bg);
}
.hn-mode-list .hn-frame img {
    max-height: 100%; max-width: 100%; width: auto; height: auto;
    outline: 0; box-shadow: 0 1px 4px rgba(41, 41, 58, .12);
}
.hn-mode-list .hn-card:hover .hn-frame img { transform: none; }
/* 无图条目（文字占位框）在清单里不必留空相框；页签已经说明类别，角标也可省 */
.hn-mode-list .hn-frame--txt { display: none; }
.hn-mode-list .hn-tag { display: none; }
/* 一行横排：名称 ｜ 授予/签发方 ｜ 编号（编号右对齐，形成表格感） */
.hn-mode-list .hn-meta {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; justify-content: flex-start;
    gap: 2px 16px; padding: 14px 18px;
}
.hn-mode-list .hn-t { flex: 0 1 auto; min-width: 0; font-size: 14.5px; }
.hn-mode-list .hn-s { flex: 0 0 auto; font-size: 12.5px; }
.hn-mode-list .hn-s.mono { margin-left: auto; padding-left: 12px; }
.hn-mode-list .hn-s.warn { color: #b06a00; }

/* ---------- 卡片模式：专利 / 商标表格 → 卡片 ----------
   只在 ≥701px 生效：≤700 由批次426 的规则统一拆成竖排卡片，两边同时写会打架。 */
@media (min-width: 701px) {
    .hn-mode-card .hn-tbl-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
    .hn-mode-card table.hn-tbl,
    .hn-mode-card table.hn-tbl tbody,
    .hn-mode-card table.hn-tbl tr,
    .hn-mode-card table.hn-tbl td { display: block; width: auto; min-width: 0; }
    .hn-mode-card table.hn-tbl { table-layout: auto; }
    .hn-mode-card table.hn-tbl thead { display: none; }
    .hn-mode-card table.hn-tbl tbody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hn-mode-card table.hn-tbl tbody tr {
        display: flex; flex-direction: column; margin: 0; padding: 15px 17px 16px;
        background: #fff; border: 1px solid var(--hn-line); border-radius: 8px;
        transition: border-color .18s, box-shadow .18s, transform .18s;
    }
    .hn-mode-card table.hn-tbl tbody tr:hover {
        background: #fff; border-color: rgba(61, 41, 164, .42);
        box-shadow: 0 10px 26px rgba(41, 41, 58, .11); transform: translateY(-2px);
    }
    .hn-mode-card table.hn-tbl tbody td { padding: 0; border: 0; line-height: 1.6; }
    .hn-mode-card table.hn-tbl td.nm { order: 1; font-size: 14.5px; font-weight: 600; color: var(--hn-ink); line-height: 1.55; }
    .hn-mode-card table.hn-tbl td.pt {
        order: 2; align-self: flex-start; margin-top: 9px; padding: 1px 8px;
        font-size: 11.5px; color: var(--hn-brand); background: #f4f1fe;
        border: 1px solid #e6e0f8; border-radius: 3px; white-space: nowrap;
    }
    .hn-mode-card table.hn-tbl td.mono { order: 3; margin-top: 9px; font-size: 12px; color: var(--hn-ink-3); letter-spacing: .01em; }
    .hn-mode-card table.hn-tbl tbody td:last-child { order: 4; margin-top: 6px; font-size: 12.5px; color: var(--hn-ink-3); }

    /* 商标：类别号做成品牌色 pill，补上「第 N 类 / Class N」才看得懂 */
    .hn-mode-card #hn-trademark table.hn-tbl td.mono {
        align-self: flex-start; margin-top: 9px; padding: 1px 8px; font-size: 11.5px;
        color: var(--hn-brand); background: #f4f1fe; border: 1px solid #e6e0f8; border-radius: 3px;
    }
    /* 值本身已是「17 类 / Class 17」，不再拼前缀 */
}
@media (min-width: 1200px) {
    .hn-mode-card table.hn-tbl tbody { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 小屏：控件独占一行放最上，卡片图缩小 ---------- */
@media (max-width: 767px) {
    .hn-aside { order: -1; width: 100%; justify-content: flex-end; padding: 0 0 10px; }
    .hn-view-btn { padding: 6px 11px; font-size: 12.5px; }
    .hn-mode-list .hn-frame { flex-basis: 84px; width: 84px; height: 84px; margin: 8px 0 8px 8px; padding: 5px; }
    .hn-mode-list .hn-meta { padding: 11px 14px; gap: 2px 12px; }
    /* 主题在 ≤767.98 用 `section:not(.page-footer) h3` + !important 把卡片标题顶到 17px，
       清单模式下 17px 会把名称折成两行、行高失控，这里同样要 !important 夺回 */
    .hn-sec.hn-mode-list .hn-card .hn-t { font-size: 15px !important; font-weight: 600 !important; line-height: 1.45 !important; }
    /* 小屏表格（专利 / 商标）在「清单」下压成扁平行：
       批次426 的 ≤700 规则把表格拆成带边框的竖排卡片，那是「卡片」形态；
       清单模式要的是连续分隔线，两种形态在手机上也必须能看出区别，
       否则用户点了「清单」会以为按钮没反应。 */
    .hn-sec.hn-mode-list .hn-tbl-wrap {
        border: 1px solid var(--hn-line) !important; border-radius: 8px !important;
        background: #fff !important; padding: 0 14px;
    }
    .hn-sec.hn-mode-list table.hn-tbl tbody tr {
        margin: 0 !important; padding: 11px 0 !important;
        background: transparent !important; border: 0 !important;
        border-bottom: 1px solid var(--hn-line-2) !important; border-radius: 0 !important;
    }
    .hn-sec.hn-mode-list table.hn-tbl tbody tr:last-child { border-bottom: 0 !important; }
    .hn-sec.hn-mode-list table.hn-tbl tbody td.nm { margin-top: 5px; }
}
