.gallery-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 92px) 0 52px; background: #f2f6f3; }
.gallery-hero::before { content: ""; position: absolute; right: 2%; bottom: 0; width: min(46%, 600px); height: 290px; background: url("../images/about-industry-lines.svg") right bottom / contain no-repeat; z-index: -1; pointer-events: none; }
.gallery-hero p { width: 55%; }
.gallery-breadcrumb { display: flex; gap: 12px; color: var(--text-light); font-size: 13px; margin-bottom: 28px; }
.gallery-breadcrumb a:hover { color: var(--green); }
.gallery-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.25; letter-spacing: 2px; }
.gallery-hero p { margin-top: 18px; max-width: 850px; line-height: 1.9; color: var(--text-light); }
.gallery-nav { border-bottom: 1px solid var(--line); }
.gallery-nav .container { display: flex; gap: 32px; overflow-x: auto; }
.gallery-nav a { flex-shrink: 0; padding: 22px 0; border-bottom: 3px solid transparent; }
.gallery-nav a[aria-current], .gallery-nav a:hover { color: var(--green); border-color: var(--green); }
.gallery-content { scroll-margin-top: calc(var(--header-h) + 60px); padding-top: 40px; padding-bottom: 80px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.gallery-card { min-width: 0; margin: 0; }
.gallery-card[hidden] { display: none; }
.gallery-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: #f5f7f5; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-image[data-preview] { cursor: zoom-in; }
.gallery-image[data-preview]:hover img { transform: scale(1.035); }
.gallery-card figcaption { padding: 18px 0; }
.gallery-card h2 { font-size: 18px; font-weight: 600; }
.gallery-card p { margin-top: 8px; color: var(--text-light); font-size: 14px; line-height: 1.8; }
.gallery-honor .gallery-image { aspect-ratio: 1; padding: 24px; }
.gallery-honor .gallery-image img, .gallery-partner .gallery-image img, .gallery-client .gallery-image img { object-fit: contain; }
.gallery-partner .gallery-grid, .gallery-client .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.gallery-partner .gallery-image, .gallery-client .gallery-image { aspect-ratio: auto; height: 112px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.gallery-partner figcaption, .gallery-client figcaption { text-align: center; padding: 12px 0; }
.gallery-partner .gallery-card h2, .gallery-client .gallery-card h2 { font-size: 15px; }
.gallery-partner .gallery-card p { font-size: 12px; margin-top: 5px; }
.gallery-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.gallery-pagination button { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; }
.gallery-pagination button[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.gallery-pagination button:disabled { opacity: .4; cursor: default; }
.gallery-dialog { margin: auto; width: min(1000px, 94vw); max-height: 92vh; padding: 48px 20px 20px; border: 0; border-radius: 12px; background: #fff; }
.gallery-dialog::backdrop { background: rgba(10, 22, 16, .82); }
.gallery-dialog img { display: block; max-width: 100%; max-height: 62vh; object-fit: contain; margin: auto; }
.gallery-dialog p { text-align: center; margin-top: 16px; }
.gallery-preview-stage { display: flex; align-items: center; justify-content: center; height: 62vh; min-height: 160px; }
.gallery-preview-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; }
.gallery-preview-controls button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); }
.gallery-preview-controls button:disabled { opacity: .4; }
.gallery-preview-controls span { color: var(--text-light); font-variant-numeric: tabular-nums; }
.gallery-close { position: absolute; top: 4px; right: 12px; font-size: 32px; width: 40px; height: 40px; }
.about-gallery :focus-visible, .client-showcase :focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.client-showcase { position: relative; }
.client-controls { display: contents; }
.client-controls button { position: absolute; z-index: 2; top: 88px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green); font-size: 22px; cursor: pointer; }
.client-controls button[data-client-step="-1"] { left: 16px; }
.client-controls button[data-client-step="1"] { right: 16px; }
.client-controls button:disabled { opacity: .3; cursor: default; }
.client-controls button:not(:disabled):hover { border-color: var(--green); }
.client-scroller { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.client-scroller::-webkit-scrollbar { display: none; }
.client-track { display: flex; gap: 20px; width: max-content; padding: 4px 0 18px; }
.client-logo-card { flex: 0 0 260px; width: 260px; margin: 0; text-align: center; scroll-snap-align: start; }
.client-logo-card img { display: block; box-sizing: border-box; width: 100%; height: 168px; padding: 10px 14px; border: 1px solid var(--line); background: white; border-radius: 10px; object-fit: contain; }
.client-logo-card figcaption { font-size: 15px; color: var(--text); margin-top: 14px; line-height: 1.6; }
@media(max-width: 992px) {
 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .gallery-partner .gallery-grid, .gallery-client .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media(max-width: 600px) {
 .gallery-hero::before { width: 70%; right: -18%; height: 200px; opacity: .25; }
 .gallery-hero p { width: 100%; }
 .gallery-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; }
 .gallery-nav .container { gap: 24px; }
 .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
 .gallery-honor .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
 .gallery-honor .gallery-image { padding: 10px; }
 .gallery-card h2 { font-size: 15px; }
 .gallery-partner .gallery-grid, .gallery-client .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
 .gallery-partner .gallery-image, .gallery-client .gallery-image { padding: 8px; height: 94px; }
 .gallery-preview-controls { gap: 12px; }
 .gallery-preview-stage { height: 45vh; }
 .gallery-dialog img { max-height: 45vh; }
 .gallery-preview-controls button { padding: 10px; }
 .client-controls button { width: 30px; height: 30px; top: 79px; font-size: 18px; }
 .client-logo-card { flex-basis: min(220px, calc(100vw - 112px)); width: min(220px, calc(100vw - 112px)); }
 .client-logo-card img { height: 150px; }
}
@media(prefers-reduced-motion: reduce) { .gallery-image img { transition: none; } }

/* 客户列表只缩小标志，保留卡片尺寸及留白。 */
.gallery-client .gallery-image img { transform: scale(.7); }

/* Image format wrappers retain the existing image box. */
.gallery-image > picture { display: block; width: 100%; height: 100%; }
.gallery-preview-stage > picture { display: contents; }
