/* ==========================================================================
   Enterprise CLI Builder 页面独有样式
   ========================================================================== */

/* ---------- 软件生态图 ---------- */
.software-ecosystem {
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.software-ecosystem img {
    max-width: 100%;
    height: auto;
}

/* ---------- 统计数据卡片 ---------- */
.stats-cards {
    display: flex;
    gap: 24px;
    width: 100%;
    justify-content: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 24px;
    width: 332px;
    background: var(--color-bg-white);
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-pingfang);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--color-primary);
}

.stat-number span {
    font-size: 32px;
}

.stat-label {
    font-family: var(--font-pingfang);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-dark);
}

.stat-sublabel {
    font-family: var(--font-pingfang);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-light-gray);
}

/* ==========================================================================
   服务路径图（Figma新设计）
   ========================================================================== */

/* 外层容器 */
.service-path-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 60px;
    background: #F8FAFF;
    border-radius: 16px;
    overflow: hidden;
}

/* 背景装饰 */
.service-path-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 三张卡片行 */
.service-path-cards-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    z-index: 1;
}

/* 卡片项 */
.service-path-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 28px;
    width: 350px;
    min-height: 220px;
    background: var(--color-bg-white);
    border: 1px solid #EBF3FF;
    border-radius: 12px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.service-path-card-item:hover {
    box-shadow: 0px 8px 24px rgba(37, 110, 255, 0.08);
}

/* 卡片图标 */
.service-path-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.service-path-card-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}

/* 卡片标题 */
.service-path-card-title {
    font-family: var(--font-pingfang);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4em;
    color: var(--color-text-dark);
    white-space: nowrap;
}

/* 卡片描述 */
.service-path-card-desc {
    font-family: var(--font-pingfang);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6em;
    color: var(--color-text-gray);
    max-width: 290px;
}

/* 箭头连接器 */
.service-path-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 98px 12px 0;
}

.service-path-arrow svg {
    display: block;
}

/* 装饰元素 */
.service-path-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.service-path-deco-1 {
    top: -10px;
    right: 40px;
}

.service-path-deco-2 {
    bottom: -10px;
    left: 40px;
}

/* ==========================================================================
   核心功能卡片（Figma 93:9431 设计）
   ========================================================================== */
.core-functionality-cards {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    align-items: stretch;
}

.core-functionality-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
    flex: 1;
    min-width: 0;
    background: var(--color-bg-white);
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.core-functionality-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(37, 110, 255, 0.10);
}

.core-functionality-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.core-functionality-icon svg {
    display: block;
    width: 46px;
    height: 46px;
}

.core-functionality-desc {
    font-family: var(--font-pingfang);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: 0.03em;
    color: var(--color-text-gray);
    margin: 0;
}

/* ==========================================================================
   已对接工业软件生态（Figma 93:9433 设计）
   ========================================================================== */

/* ---------- 系统类型卡片网格 ---------- */
.ecosystem-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 67px;
}

.ecosystem-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-white);
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    overflow: hidden;
}

.ecosystem-card-header {
    font-family: var(--font-pingfang);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-dark);
    text-align: center;
    padding: 16px 0;
}

.ecosystem-card-body {
    background: #FCFCFC;
    border-top: 1px solid #E9E9E9;
    padding: 32px 24px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 品牌词云占位样式（以文字tag形式呈现，后续可替换为图片） ---------- */
.ecosystem-brands-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-family: var(--font-pingfang);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-gray);
    border: 1px solid #E9E9E9;
    border-radius: 24px;
    background: var(--color-bg-white);
    white-space: nowrap;
}

/* ---------- 统计数据行 ---------- */
.ecosystem-stats {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    margin-top: 80px;
}

.ecosystem-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    flex: 1;
    min-width: 0;
    background: var(--color-bg-white);
    border: 1px solid #E9E9E9;
    border-radius: 10px;
}

.ecosystem-stat-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecosystem-stat-label {
    font-family: var(--font-pingfang);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-dark);
}

.ecosystem-stat-sublabel {
    font-family: var(--font-pingfang);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text-gray);
}

.ecosystem-stat-number {
    font-family: "D-DIN-PRO", "PingFang SC", sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 0.03em;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

/* ==========================================================================
   响应式 - 合并断点
   ========================================================================== */

@media (max-width: 1400px) {
    .service-path-cards-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    .service-path-arrow {
        display: none;
    }
    .service-path-card-item {
        width: calc(50% - 8px);
        max-width: 350px;
    }

    .ecosystem-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .stats-cards {
        flex-wrap: wrap;
    }
    .stat-card {
        width: calc(50% - 12px);
        min-width: 280px;
        flex: 1 1 auto;
    }

    .service-path-wrapper {
        padding: 32px 24px;
    }
    .service-path-card-item {
        width: 100%;
        max-width: 100%;
    }

    .core-functionality-cards {
        flex-wrap: wrap;
    }
    .core-functionality-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .stats-cards {
        flex-direction: column;
        align-items: center;
    }
    .stat-card {
        width: 100%;
        max-width: 450px;
    }

    .service-path-wrapper {
        padding: 24px 16px;
    }
    .service-path-cards-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .service-path-card-item {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
        min-height: auto;
    }
    .service-path-card-title {
        font-size: 18px;
    }
    .service-path-card-desc {
        font-size: 14px;
    }
    .service-path-deco {
        display: none;
    }

    .core-functionality-cards {
        flex-direction: column;
        align-items: center;
    }
    .core-functionality-card {
        width: 100%;
        max-width: 450px;
        padding: 24px 20px;
    }
    .core-functionality-desc {
        font-size: 16px;
    }

    .ecosystem-stats {
        flex-direction: column;
        align-items: center;
    }
    .ecosystem-stat {
        width: 100%;
        max-width: 450px;
    }
    .ecosystem-stat-label {
        font-size: 18px;
    }
    .ecosystem-stat-number {
        font-size: 28px;
    }
    .ecosystem-card-body {
        padding: 24px 16px;
        min-height: 160px;
    }
}

@media (max-width: 480px) {
    .core-functionality-card {
        padding: 20px 16px;
    }
    .core-functionality-desc {
        font-size: 15px;
    }

    .ecosystem-card-header {
        font-size: 18px;
        padding: 12px 0;
    }
    .brand-tag {
        font-size: 14px;
        padding: 6px 14px;
    }
}