/* ==========================================================================
   企业展示（关于我们下四栏目）—— /factory-tour /testing-center
                                /meetings-training /honors-certificates
   共用一套样式：浅色页头 + 页头横带 + 说明 + 图墙（灯箱）+ 口径条 + 栏目互链
   作用域 .showcase-page，类前缀 sc-，避免碰公共样式
   ========================================================================== */

/* ---------------- 页头 ---------------- */
.showcase-page .sc-hero {
    padding: 34px 0 40px;
    background: linear-gradient(180deg, #f6f9fd 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}

.showcase-page .sc-hero__inner { max-width: 980px; }

/* 面包屑落在页头里：去掉公共 .crumbs 的底色与边框 */
.showcase-page .sc-hero__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 22px;
    color: var(--ink-4);
    font-size: 13.5px;
    height: auto;
}

.showcase-page .sc-hero__crumbs a { color: var(--ink-3); }
.showcase-page .sc-hero__crumbs a:hover { color: var(--brand); }

.showcase-page .sc-hero__kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand);
}

.showcase-page .sc-hero__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -1px;
    color: var(--ink);
}

.showcase-page .sc-hero__sub {
    margin: 14px 0 0;
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink-2);
    font-weight: 500;
    /* 中文长副标题（资质页）在窄屏会被切成「…中小企 / 业」→ 让浏览器均衡断行 */
    text-wrap: balance;
}

.showcase-page .sc-hero__lead {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink-3);
}

.showcase-page .sc-hero__ops {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.showcase-page .sc-hero__count {
    font-size: 13px;
    color: var(--ink-4);
    padding-left: 4px;
}

/* ---------------- 页头（横带图作背景，白字压图上） ---------------- */
.showcase-page .sc-hero--dark {
    background: linear-gradient(135deg, #06172c 0%, #0e2b4f 62%, #123a67 100%);
    border-bottom: 0;
}

.showcase-page .sc-hero--img {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 62px 0 66px;
    background: #06172c;
    border-bottom: 0;
}

.showcase-page .sc-hero__bg { position: absolute; inset: 0; z-index: 0; }

.showcase-page .sc-hero__bg picture,
.showcase-page .sc-hero__bg img { display: block; width: 100%; height: 100%; }

.showcase-page .sc-hero__bg img { object-fit: cover; object-position: 62% center; }

/* 左侧压深保证白字可读，右侧留亮让设备细节还看得见 */
.showcase-page .sc-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(4, 16, 32, .93) 0%,
        rgba(4, 16, 32, .86) 38%,
        rgba(4, 16, 32, .55) 66%,
        rgba(4, 16, 32, .24) 100%);
}

.showcase-page .sc-hero--dark .sc-hero__inner { position: relative; z-index: 1; }

.showcase-page .sc-hero--dark .sc-hero__kicker { color: #56cbe9; }

.showcase-page .sc-hero--dark .sc-hero__title {
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 8, 20, .5);
}

.showcase-page .sc-hero--dark .sc-hero__sub { color: rgba(255, 255, 255, .88); }

.showcase-page .sc-hero--dark .sc-hero__lead { color: rgba(255, 255, 255, .74); }

.showcase-page .sc-hero--dark .sc-hero__crumbs { color: rgba(255, 255, 255, .6); }

.showcase-page .sc-hero--dark .sc-hero__crumbs a { color: rgba(255, 255, 255, .82); }

.showcase-page .sc-hero--dark .sc-hero__crumbs a:hover { color: #fff; }

.showcase-page .sc-hero--dark .sc-hero__crumbs [aria-current] { color: rgba(255, 255, 255, .66); }

.showcase-page .sc-hero--dark .btn--outline {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .52);
}

.showcase-page .sc-hero--dark .btn--outline:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

/* ---------------- 说明 ---------------- */
.showcase-page .sc-body { padding: 62px 0 70px; }

.showcase-page .sc-intro {
    max-width: 900px;
    margin: 0 auto 44px;
    display: grid;
    gap: 14px;
}

.showcase-page .sc-intro p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

/* ---------------- 图墙 ---------------- */
.showcase-page .sc-grid {
    display: grid;
    gap: 26px 24px;
    grid-template-columns: repeat(3, 1fr);
}

.showcase-page .sc-grid--cols2 { grid-template-columns: repeat(2, 1fr); }

.showcase-page .sc-item { margin: 0; }

.showcase-page .sc-item__pic {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-tint);
    aspect-ratio: 4 / 3;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    border: 1px solid var(--line);
}

.showcase-page .sc-item__pic picture { display: block; width: 100%; height: 100%; }

.showcase-page .sc-item__pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.showcase-page .sc-item__pic:hover img,
.showcase-page .sc-item__pic:focus-visible img { transform: scale(1.04); }

.showcase-page .sc-item__pic:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* 放大角标 */
.showcase-page .sc-item__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(7, 26, 51, .62);
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
    backdrop-filter: blur(2px);
}

.showcase-page .sc-item__zoom svg { width: 19px; height: 19px; }

.showcase-page .sc-item__pic:hover .sc-item__zoom,
.showcase-page .sc-item__pic:focus-visible .sc-item__zoom { opacity: 1; transform: translateY(0); }

/* 图注 */
.showcase-page .sc-item__cap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 12px 2px 0;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5;
}

.showcase-page .sc-item__n {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 4px;
    padding: 2px 6px;
    transform: translateY(-1px);
}

.showcase-page .sc-item__t { font-weight: 500; }

.showcase-page .sc-item__meta {
    flex-basis: 100%;
    font-size: 12.5px;
    color: var(--ink-4);
    line-height: 1.6;
}

/* 资质页单元用 5:3（牌匾是 1200×710） */
.showcase-page .sc-grid--honor .sc-item__pic { aspect-ratio: 5 / 3; background: #fff; }

/* 口径条 */
.showcase-page .sc-note {
    margin: 42px auto 0;
    max-width: 900px;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-3);
    background: var(--bg-tint);
    border-left: 3px solid var(--brand-line);
    border-radius: 0 6px 6px 0;
}

/* ---------------- 其余栏目 ---------------- */
.showcase-page .sc-more { padding: 60px 0 66px; }

.showcase-page .sc-more__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.showcase-page .sc-more__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.showcase-page .sc-more__card:hover {
    border-color: var(--brand-line);
    box-shadow: 0 10px 26px rgba(11, 94, 215, .10);
    transform: translateY(-2px);
}

.showcase-page .sc-more__n {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -.5px;
}

.showcase-page .sc-more__t {
    font-size: 16px;
    color: var(--ink);
    font-weight: 600;
}

.showcase-page .sc-more__d {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ink-4);
}

.showcase-page .sc-more__d svg { width: 15px; height: 15px; transition: transform .25s; }

.showcase-page .sc-more__card:hover .sc-more__d { color: var(--brand); }
.showcase-page .sc-more__card:hover .sc-more__d svg { transform: translateX(3px); }

.showcase-page .sc-more__card--plain { justify-content: center; }

/* ---------------- 灯箱 ---------------- */
.sc-lb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    background: rgba(5, 14, 28, .93);
    padding: 24px;
}

.sc-lb[hidden] { display: none; }

.sc-lb__fig {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sc-lb__fig img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #fff;
}

.sc-lb__cap {
    font-size: 14px;
    color: #d5e2f2;
    text-align: center;
    line-height: 1.6;
    max-width: 780px;
}

.sc-lb__btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.sc-lb__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.sc-lb__btn svg { width: 22px; height: 22px; }

.sc-lb__nav--prev { justify-self: start; }
.sc-lb__nav--next { justify-self: end; }

.sc-lb__close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; }

.sc-lb__idx {
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
    letter-spacing: .5px;
}

body.sc-lb-open { overflow: hidden; }

/* ---------------- 入场动画 ---------------- */
@media (prefers-reduced-motion: no-preference) {
    .showcase-page .sc-item {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .5s ease, transform .5s ease;
    }

    .showcase-page .sc-item.is-in { opacity: 1; transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .showcase-page .sc-hero__title { font-size: 36px; }
    .showcase-page .sc-grid,
    .showcase-page .sc-grid--cols2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .showcase-page .sc-hero { padding: 26px 0 32px; }
    .showcase-page .sc-hero__title { font-size: 29px; letter-spacing: -.6px; }
    .showcase-page .sc-hero__sub { font-size: 16.5px; }
    .showcase-page .sc-hero__lead { font-size: 14.5px; line-height: 1.8; }
    .showcase-page .sc-hero__ops .btn { flex: 1 1 auto; text-align: center; }

    /* 背景版页头：手机上压低高度，蒙版改竖向加重，取景右移避免主体钻到文字底下 */
    .showcase-page .sc-hero--img { min-height: 0; padding: 34px 0 38px; }

    .showcase-page .sc-hero__bg img { object-position: 58% center; }

    .showcase-page .sc-hero__bg::after {
        background: linear-gradient(180deg,
            rgba(4, 16, 32, .88) 0%,
            rgba(4, 16, 32, .80) 46%,
            rgba(4, 16, 32, .58) 100%);
    }

    .showcase-page .sc-body { padding: 40px 0 48px; }
    .showcase-page .sc-intro { margin-bottom: 30px; gap: 11px; }
    .showcase-page .sc-intro p { font-size: 14.5px; line-height: 1.85; }

    .showcase-page .sc-grid { gap: 20px 12px; }
    .showcase-page .sc-item__pic { border-radius: 8px; }
    .showcase-page .sc-item__cap { font-size: 13px; gap: 6px; padding-top: 9px; }
    .showcase-page .sc-item__t { flex-basis: 100%; }
    .showcase-page .sc-item__n { font-size: 11px; padding: 1px 5px; }
    .showcase-page .sc-item__meta { font-size: 12px; }
    .showcase-page .sc-item__zoom { display: none; }

    .showcase-page .sc-note { margin-top: 30px; font-size: 13px; padding: 12px 14px; }

    .showcase-page .sc-more { padding: 40px 0 46px; }
    .showcase-page .sc-more__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .showcase-page .sc-more__card { padding: 16px 14px; }
    .showcase-page .sc-more__n { font-size: 22px; }
    .showcase-page .sc-more__t { font-size: 14.5px; }

    .sc-lb { padding: 14px; grid-template-columns: 44px 1fr 44px; }
    .sc-lb__btn { width: 38px; height: 38px; }
    .sc-lb__btn svg { width: 18px; height: 18px; }
    .sc-lb__fig img { max-height: calc(100vh - 130px); }
    .sc-lb__cap { font-size: 13px; }
}

@media (max-width: 420px) {
    .showcase-page .sc-more__grid { grid-template-columns: 1fr; }
}
