/* =================================================================
   ===== INDUSTRIES PAGE — 行业页面专用样式 =====
   ================================================================= */

/* 行业导航卡片网格 */
.ind-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 8px;
}
.ind-nav-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1.5px solid var(--c-line);
    transition: all .25s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.ind-nav-card:hover {
    border-color: var(--c-primary);
    box-shadow: 0 8px 28px rgba(22,93,255,.12);
    transform: translateY(-3px);
}
.ind-nav-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.ind-nav-img svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .4s ease;
}
.ind-nav-card:hover .ind-nav-img svg {
    transform: scale(1.05);
}
.ind-nav-info {
    padding: 18px 20px 20px;
}
.ind-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-title);
    margin: 0 0 6px;
    line-height: 1.3;
}
.ind-nav-desc {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0;
    line-height: 1.55;
}

/* 行业详情区域 */
.ind-detail {
    scroll-margin-top: 80px;
}
.ind-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    margin-bottom: 28px;
    align-items: stretch;
}
.ind-grid-rev .about-img {
    order: 2;
}
.ind-grid-rev .about-text {
    order: 1;
}
.ind-img {
    min-height: 420px;
    aspect-ratio: auto !important;
    height: 100% !important;
    width: 100%;
}
.ind-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
}
.ind-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.ind-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.ind-carousel-slide svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ind-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.ind-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all .3s ease;
}
.ind-carousel-dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 客户引语条 */
.ind-client-ref {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--c-line);
    max-width: 960px;
    margin-top: 12px;
}
.ind-client-logo {
    flex-shrink: 0;
    padding-top: 2px;
}
.ind-client-quote {
    flex: 1;
}
.ind-client-quote p {
    font-size: 14.5px;
    color: var(--c-title);
    line-height: 1.7;
    margin: 0 0 6px;
    font-style: italic;
}
.ind-client-quote p strong {
    color: var(--c-primary);
    font-weight: 700;
}
.ind-client-quote span {
    font-size: 12.5px;
    color: var(--c-muted);
    font-weight: 500;
}

/* 行业详情：分区标题 */
.about-scope-head,
.ind-caps-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-title);
    margin: 0 0 12px;
}
.about-scope-head span,
.ind-caps-head span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-muted);
}
/* 行业详情：工艺 / 装备能力卡 */
.ind-caps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.ind-cap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--c-primary);
    border-radius: var(--r-sm);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ind-cap:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
    border-top-color: var(--c-primary-d);
}
.ind-cap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 8px;
    background: var(--c-primary-l);
    color: var(--c-primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ind-cap-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-title);
}

/* 总结网格 */
.ind-summary-grid .about-highlight {
    justify-content: center;
}

/* ===== RESPONSIVE — 行业页 ===== */
@media (max-width: 960px) {
    .ind-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ind-nav-card {
        padding: 22px 14px 18px;
    }
    .ind-nav-title {
        font-size: 14px;
    }
    .ind-nav-desc {
        font-size: 12px;
    }
    .ind-grid {
        gap: 28px;
    }
    .ind-grid-rev .about-img { order: 1; }
    .ind-grid-rev .about-text { order: 2; }
    .ind-img {
        min-height: 300px;
    }
    .ind-client-ref {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 18px 16px;
    }
    .ind-client-quote p {
        font-size: 13.5px;
    }
    .ind-summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ind-caps {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 行业照片墙 */
.ind-samples {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--c-line);
}
.ind-samples-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-title);
    margin: 0 0 16px;
}
.ind-samples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.ind-sample-card {
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    transition: all .25s ease;
    cursor: pointer;
}
.ind-sample-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22,93,255,.12);
    border-color: var(--c-primary);
}
.ind-sample-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.ind-sample-img svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .4s ease;
}
.ind-sample-card:hover .ind-sample-img svg {
    transform: scale(1.06);
}
.ind-sample-card span {
    display: block;
    padding: 10px 14px 12px;
    font-size: 13px;
    color: var(--c-text);
    font-weight: 500;
    line-height: 1.4;
}

.ind-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ind-lightbox.open { display: flex; }
.ind-lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
}
.ind-lightbox-close,
.ind-lightbox-prev,
.ind-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ind-lightbox-close:hover,
.ind-lightbox-prev:hover,
.ind-lightbox-next:hover { background: rgba(255,255,255,.25); }

.ind-lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}
.ind-lightbox-prev,
.ind-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}
.ind-lightbox-prev { left: 30px; }
.ind-lightbox-next { right: 30px; }

.ind-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}
.ind-lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    width: auto;
    height: 75vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.ind-lightbox-img-wrapper {
    cursor: grab;
    touch-action: none;
}
.ind-lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 15px;
    opacity: .85;
}
.ind-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    opacity: .7;
    z-index: 3;
}

/* 灯箱缩放控件（与产品详情页 lightbox 一致） */
.ind-lightbox-zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: 11px;
    z-index: 3;
    white-space: nowrap;
}
.ind-lightbox-zoom-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 3;
    background: rgba(0,0,0,.45);
    padding: 4px 8px;
    border-radius: 10px;
}
.ind-lightbox-zoom-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.ind-lightbox-zoom-btn:hover {
    background: rgba(255,255,255,.25);
}
.ind-lightbox-zoom-level {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    min-width: 40px;
    text-align: center;
}

@media (max-width: 900px) {
    .ind-samples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .ind-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ind-nav-card {
        padding: 0;
    }
    .ind-nav-info {
        padding: 12px 14px 14px;
    }
    .ind-nav-title {
        font-size: 13px;
    }
    .ind-nav-desc {
        font-size: 11px;
    }
    .ind-grid {
        gap: 22px;
    }
    .ind-img {
        min-height: 240px;
    }
    .ind-client-ref {
        padding: 14px 12px;
    }
    .ind-client-quote p {
        font-size: 12.5px;
    }
    .ind-client-quote span {
        font-size: 11px;
    }
    .ind-samples-grid {
        grid-template-columns: 1fr;
    }
    .ind-samples-title {
        font-size: 16px;
    }
    .ind-sample-card span {
        font-size: 12px;
    }
}

/* =================================================================
   ===== RESPONSIVE — 行业详情移动端修复（补充）=====
   说明：industries.css 在 base.css 之后加载，需用本文件内的媒体查询
   覆盖 base.css 的 .about-grid 移动端规则，并把固定 min-height 的
   轮播图改为随宽度按比例（aspect-ratio）显示，避免小屏比例失调。
   ================================================================= */
@media (max-width: 960px) {
    .ind-grid { grid-template-columns: 1fr; gap: 28px; }
    .ind-grid-rev .about-img { order: 1; }
    .ind-grid-rev .about-text { order: 2; }
    .ind-img {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 11 !important;
    }
    .ind-carousel { min-height: 0 !important; }
}
@media (max-width: 560px) {
    .ind-grid { gap: 22px; }
    .ind-img { aspect-ratio: 4 / 3 !important; }
    .ind-caps { grid-template-columns: 1fr; }
    .about-scope { grid-template-columns: 1fr; }
}



