/* ============================================================
   INDUSTRY DETAIL PAGE – 专属样式
   仅包含 .page-content 及其子元素
   ============================================================ */

/* 核心防溢出与等比例缩放全局约束 */
.page-content * {
    box-sizing: border-box;
}

.page-content img,
.page-content iframe,
.page-content video,
.page-content object,
.page-content embed {
    max-width: 100% !important;
    height: auto;
}

.page-content {
    flex: 1;
    padding: 32px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden; /* 防止富文本元素导致横向滚动条 */
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--slate-500);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--blue-500);
}

.breadcrumb .sep {
    color: var(--slate-300);
    font-size: 10px;
}

.breadcrumb .current {
    color: var(--slate-900);
    font-weight: 600;
}

/* ---- Industry Hero ---- */
.industry-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
    margin-bottom: 48px;
    align-items: stretch;
}

.industry-hero-text {
    flex: 1 1 380px;
    min-width: 0; /* 防止子元素挤压宽度溢出 */
}

.industry-hero-text .badge {
    display: inline-block;
    background: rgba(0, 104, 204, 0.08);
    color: var(--blue-500);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.industry-hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px 0;
}

.industry-hero-text .subhead {
    font-size: 17px;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 20px 0;
}

.industry-hero-text .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-top: 8px;
}

/* 消除空 stats 标签带来的外边距空间 */
.industry-hero-text .hero-stats:empty {
    margin-top: 0;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.hero-stats .stat .label {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

/* Hero 图片区域修复：等比例正方形/满幅充填 */
.industry-hero-image {
    flex: 0 0 360px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--slate-100);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    aspect-ratio: 1 / 1; /* 保持区域为正方形 */
}

.industry-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* 铺满整个区域，不留白 */
    display: block;
}

/* ---- Section Common ---- */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}

.section-sub {
    font-size: 16px;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 0 28px 0;
}

.content-section {
    margin-bottom: 56px;
}

.content-section:last-of-type {
    margin-bottom: 0;
}

/* ---- Content Body (来自 the_content 富文本编辑区) ---- */
.content-body {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-700);
    overflow-x: auto; /* 防止大表格破坏布局 */
}

.content-body p {
    margin-bottom: 1em;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.content-body ul,
.content-body ol {
    margin: 0 0 1em 1.5em;
}

.content-body li {
    margin-bottom: 0.25em;
}

.content-body h3,
.content-body h4 {
    margin: 1.5em 0 0.5em 0;
    color: var(--slate-900);
}

.content-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 1em auto;
}

.content-body table {
    width: 100% !important;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* ---- Application Grid ---- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 24px 20px 22px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card:hover {
    border-color: var(--blue-500);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.app-card .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 104, 204, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--blue-500);
    margin-bottom: 14px;
}

.app-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 6px 0;
}

.app-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--slate-500);
    margin: 0;
}

/* ---- Product Showcase ---- */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 18px 16px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--blue-500);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--slate-100);
    margin: 0 auto 10px;
    max-width: 100px;
}

.product-card .prod-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 2px 0;
}

.product-card .prod-spec {
    font-size: 12px;
    color: var(--slate-400);
    margin: 0;
}

/* ---- Tech Specs Table ---- */
.specs-table-wrap {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    overflow-x: auto;
    margin-top: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table th {
    text-align: left;
    padding: 14px 20px;
    background: var(--slate-50);
    font-weight: 600;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-200);
}

.specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-600);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--slate-700);
    width: 40%;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--slate-900);
    border-radius: 16px;
    padding: 40px 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}

.cta-banner .cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 6px 0;
}

.cta-banner .cta-text p {
    font-size: 15px;
    color: var(--slate-400);
    margin: 0;
}

.cta-banner .btn-request {
    background: var(--red-600);
    box-shadow: 0 4px 20px rgba(163, 0, 0, 0.30);
    flex-shrink: 0;
    padding: 12px 32px;
    font-size: 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-banner .btn-request:hover {
    background: var(--red-500);
    box-shadow: 0 8px 32px rgba(163, 0, 0, 0.40);
}

/* ============================================================
   响应式适配 (移动端及平板端精准优化)
   ============================================================ */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    .industry-hero-image {
        flex: 0 0 300px;
    }
}

@media (max-width: 820px) {
    .page-content {
        padding: 20px 16px 40px;
    }
    .industry-hero-image {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px 12px 32px;
    }

    .breadcrumb {
        font-size: 12px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    /* Hero 移动端优化：紧凑排版，收紧留白 */
    .industry-hero {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 32px;
    }

    .industry-hero-text {
        flex: 1 1 auto;
        width: 100%;
    }

    .industry-hero-text h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .industry-hero-text .subhead {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* Hero 移动端图片：宽度100%，自适应高度并完全铺满 */
    .industry-hero-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .hero-stats .stat .number {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
    }
    .section-sub {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .content-section {
        margin-bottom: 36px;
    }

    .app-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .app-card {
        padding: 20px 16px;
    }
    .app-card h4 {
        font-size: 15px;
    }

    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .product-card img {
        max-width: 80px;
    }
    .product-card .prod-title {
        font-size: 13px;
    }

    .specs-table {
        font-size: 13px;
    }
    .specs-table th,
    .specs-table td {
        padding: 10px 14px;
    }

    .cta-banner {
        padding: 28px 20px;
        flex-direction: column;
        text-align: center;
    }
    .cta-banner .btn-request {
        width: 100%;
        justify-content: center;
    }
    .cta-banner .cta-text h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 12px 12px 24px;
    }

    .breadcrumb {
        font-size: 11px;
        padding-bottom: 10px;
        margin-bottom: 16px;
        gap: 4px;
    }

    .industry-hero-text h1 {
        font-size: 20px;
        line-height: 1.25;
    }
    
    .industry-hero-text .subhead {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 18px;
    }
    .section-sub {
        font-size: 13px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .app-card {
        padding: 18px 16px;
    }

    .product-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card {
        padding: 14px 10px;
    }
    .product-card img {
        max-width: 70px;
    }
    .product-card .prod-title {
        font-size: 12px;
    }
    .product-card .prod-spec {
        font-size: 11px;
    }

    .specs-table {
        font-size: 12px;
    }
    .specs-table th,
    .specs-table td {
        padding: 8px 12px;
    }

    .cta-banner {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .cta-banner .cta-text h3 {
        font-size: 18px;
    }
    .cta-banner .cta-text p {
        font-size: 13px;
    }
    .cta-banner .btn-request {
        padding: 10px 24px;
        font-size: 13px;
    }
}