/* 盛廷荣誉资质 article page (show-rongyu.php): column banner and 盛廷荣誉 sub-navigation come from
   n_big.php and site-section-navigation.php; this file styles the certificate, previous/next and the 更多荣誉资质 grid.
   Same layout as the 客户锦旗 page (css/pennant-detail.css); certificates are shown whole on paper, as in the
   盛廷荣誉 overview (css/honors.css). */
.honor-detail-page {
    --hd-red: #a51e25;
    --hd-red-deep: #7d161c;
    --hd-ink: #23282f;
    --hd-text: #494949;
    --hd-muted: #5f666e;
    --hd-faint: #9a9fa5;
    --hd-line: #ece4e0;
    --hd-paper: #faf7f5;
    --hd-ease: cubic-bezier(.16, 1, .3, 1);
}
.honor-detail-page .main_warp { background: #fff; }
/* style.css keeps .main at a fixed 1200px from 769px up, which clips its right side on narrower screens. */
.honor-detail-page .main { width: min(1200px, calc(100% - 32px)); margin-bottom: 0; }

.honor-detail { max-width: 960px; margin: 0 auto; padding: 48px 0 0; color: var(--hd-ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.honor-detail-heading { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--hd-line); }
.honor-detail-heading h1 { margin: 0 auto; max-width: 880px; color: var(--hd-ink); font-size: 30px; font-weight: 500; line-height: 1.6; overflow-wrap: break-word; text-wrap: balance; }

.honor-detail-content { padding: 36px 0 0; color: var(--hd-text); font-size: 16px; line-height: 1.9; overflow-wrap: break-word; }
.honor-detail-content p { margin-bottom: 20px; }
.honor-detail-photo { margin: 0; }
.honor-detail-content img { display: block; width: auto !important; height: auto !important; max-width: 100%; margin: 0 auto; border-radius: 4px; }
.honor-detail-content iframe, .honor-detail-content video, .honor-detail-content table { max-width: 100%; }

.honor-detail-pagination { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hd-line); font-size: 14px; line-height: 1.8; }
.honor-detail-page-link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; color: var(--hd-muted); }
.honor-detail-page-link + .honor-detail-page-link { margin-top: 12px; }
.honor-detail-page-link a { color: var(--hd-text); overflow-wrap: anywhere; }
.honor-detail-page-empty { color: var(--hd-faint); }

/* 更多荣誉资质: the other honours in list order, as the overview's certificate cards (whole, on paper). */
.honor-detail-more { padding: 64px 0 72px; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.honor-detail-more-head { position: relative; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--hd-line); }
.honor-detail-more-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--hd-red); }
.honor-detail-more-head h2 { margin: 0; color: var(--hd-ink); font-size: 22px; font-weight: 600; line-height: 1.4; }
.honor-detail-more-head h2 span { margin-left: 12px; color: var(--hd-muted); font-size: 12px; font-weight: 400; letter-spacing: .12em; white-space: nowrap; }
.honor-detail-more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.honor-detail-more-item { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.honor-detail-more-frame { display: block; box-sizing: border-box; overflow: hidden; aspect-ratio: 10 / 7; padding: 12px; border: 1px solid var(--hd-line); border-radius: 4px; background: var(--hd-paper); }
.honor-detail-more-frame img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--hd-ease); }
.honor-detail-more-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--hd-ink); font-size: 14px; line-height: 1.6; text-align: center; transition: color .2s ease; }
.honor-detail-more-all { margin: 40px 0 0; text-align: center; }
.honor-detail-more-all a { display: inline-flex; align-items: center; gap: 4px; padding: 11px 28px; border: 1px solid var(--hd-red); border-radius: 4px; color: var(--hd-red); font-size: 15px; line-height: 1.4; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.honor-detail-more-count { margin-left: 4px; font: 400 17px/1 Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums tabular-nums; }
.honor-detail-more-all svg { width: 16px; height: 16px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .24s var(--hd-ease); }

.honor-detail-page-link a:focus-visible, .honor-detail-more-item:focus-visible, .honor-detail-more-all a:focus-visible { outline: 2px solid var(--hd-red); outline-offset: 4px; border-radius: 2px; }

@media (hover: hover) {
    .honor-detail-page-link a:hover { color: var(--hd-red-deep); }
    .honor-detail-more-item:hover .honor-detail-more-frame img { transform: scale(1.04); }
    .honor-detail-more-item:hover .honor-detail-more-title { color: var(--hd-red-deep); }
    .honor-detail-more-all a:hover { background: var(--hd-red); color: #fff; }
    .honor-detail-more-all a:hover svg { transform: translateX(3px); }
}

@media (max-width: 1023px) {
    .honor-detail-more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 767px) {
    .honor-detail { padding-top: 28px; }
    .honor-detail-heading { padding-bottom: 24px; }
    .honor-detail-heading h1 { font-size: 22px; line-height: 1.65; }
    .honor-detail-content { padding-top: 24px; font-size: 15px; }
    .honor-detail-pagination { margin-top: 28px; padding-top: 20px; }
    .honor-detail-page-link { grid-template-columns: 56px minmax(0, 1fr); }
    .honor-detail-more { padding: 44px 0 48px; }
    .honor-detail-more-head { padding-bottom: 10px; margin-bottom: 16px; }
    .honor-detail-more-head::after { width: 36px; }
    .honor-detail-more-head h2 { font-size: 19px; }
    .honor-detail-more-head h2 span { display: block; margin: 2px 0 0; font-size: 11px; }
    .honor-detail-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .honor-detail-more-item { gap: 8px; }
    .honor-detail-more-frame { padding: 8px; }
    .honor-detail-more-title { font-size: 13px; }
    .honor-detail-more-all { margin-top: 28px; }
    .honor-detail-more-all a { padding: 10px 24px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .honor-detail-more-frame img, .honor-detail-more-all svg { transition: none; }
}
