/* 盛廷荣誉 (jieshao-63): each sub-column in navigation order, its newest items, a link to its full list.
   Same palette and heading mark as the 盛廷大事记 page (css/milestones.css). */
.st-honors-page {
    --hn-red: #a51e25;
    --hn-red-deep: #7d161c;
    --hn-ink: #23282f;
    --hn-muted: #5f666e;
    --hn-line: #ece4e0;
    --hn-dash: #e4d6d2;
    --hn-paper: #faf7f5;
    --hn-well: #f2eeeb;
    --hn-ease: cubic-bezier(.16, 1, .3, 1);
}
/* style.css keeps .main at a fixed 1200px from 769px up, which clips its right side on narrower screens. */
.st-honors-page .main { width: min(1200px, calc(100% - 32px)); }

.st-honors { padding: 48px 40px 64px; color: var(--hn-ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.st-honors ::selection { background: rgba(165, 30, 37, .16); }
.st-honors h2, .st-honors p { margin: 0; letter-spacing: 0; }
.st-honors ul { list-style: none; margin: 0; padding: 0; }
.st-honors-group + .st-honors-group { margin-top: 64px; }

/* Heading row: the sub-column name on a hairline, its red mark sitting on that line, the full-list link opposite. */
.st-honors-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--hn-line); }
.st-honors-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--hn-red); }
.st-honors-head h2 { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--hn-ink); }
.st-honors-head h2 span { margin-left: 12px; font-size: 12px; font-weight: 400; letter-spacing: .12em; color: var(--hn-muted); white-space: nowrap; }
.st-honors-more { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--hn-red); text-decoration: none; }
.st-honors-count { margin-left: 4px; font: 400 16px/1 Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums tabular-nums; }
.st-honors-more 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(--hn-ease); }
.st-honors-more:focus-visible, a.st-honors-item:focus-visible { outline: 2px solid var(--hn-red); outline-offset: 4px; border-radius: 2px; }

/* Items: one grid for every sub-column; the frame's shape and fit follow the kind of material. */
.st-honors-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.st-honors-item { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.st-honors-frame { display: block; overflow: hidden; aspect-ratio: 10 / 7; border-radius: 4px; background: var(--hn-well); }
.st-honors-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hn-ease); }
.is-news .st-honors-frame { aspect-ratio: 16 / 9; }
/* Certificates are read, not glanced at: show the whole plaque on paper instead of cropping it. */
.is-certificate .st-honors-frame { box-sizing: border-box; padding: 12px; border: 1px solid var(--hn-line); background: var(--hn-paper); }
.is-certificate .st-honors-frame img { object-fit: contain; }
.st-honors-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.6; color: var(--hn-ink); transition: color .2s ease; }
.is-certificate .st-honors-title, .is-photo .st-honors-title { text-align: center; }
.is-news .st-honors-title { font-size: 15px; font-weight: 600; }
.st-honors-date { margin-top: -4px; font-size: 12px; line-height: 1.4; color: var(--hn-muted); font-variant-numeric: tabular-nums; }

.st-honors-empty { padding: 40px 16px; border: 1px dashed var(--hn-dash); border-radius: 4px; background: var(--hn-paper); color: var(--hn-muted); font-size: 15px; line-height: 1.8; text-align: center; }

@media (hover: hover) {
    .st-honors-more:hover { color: var(--hn-red-deep); }
    .st-honors-more:hover svg { transform: translateX(3px); }
    a.st-honors-item:hover .st-honors-frame img { transform: scale(1.04); }
    a.st-honors-item:hover .st-honors-title { color: var(--hn-red-deep); }
}

/* Two rows per sub-column at every width: 4 + 4, then 3 + 3, then 2 + 2. */
@media (max-width: 1023px) {
    .st-honors { padding: 32px 24px 48px; }
    .st-honors-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
    .st-honors-list > li:nth-child(n+7) { display: none; }
    .is-news .st-honors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .st-honors { padding: 24px 16px 40px; }
    .st-honors-group + .st-honors-group { margin-top: 40px; }
    .st-honors-head { align-items: flex-end; gap: 16px; padding-bottom: 10px; margin-bottom: 16px; }
    .st-honors-head::after { width: 36px; }
    .st-honors-head h2 { font-size: 19px; }
    .st-honors-head h2 span { display: block; margin: 2px 0 0; font-size: 11px; }
    .st-honors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .st-honors-list > li:nth-child(n+5) { display: none; }
    .st-honors-item { gap: 8px; }
    .is-certificate .st-honors-frame { padding: 8px; }
    .st-honors-title { font-size: 13px; }
    /* Programmes read as a list on a phone: frame beside the title and date. */
    .is-news .st-honors-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .is-news .st-honors-item { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 6px; }
    .is-news .st-honors-frame { grid-row: 1 / span 2; }
    .is-news .st-honors-title { font-size: 14px; line-height: 1.5; }
    .is-news .st-honors-date { margin: 0; align-self: end; }
}
@media (prefers-reduced-motion: reduce) {
    .st-honors-frame img, .st-honors-more svg { transition: none; }
}
