/* ==========================================================================
   Enterprise Skills Library 页面独有样式
   ========================================================================== */

/* ---------- Skill 结构图 ---------- */
.skill-structure-diagram {
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.skill-structure-diagram img {
    max-width: 100%;
    height: auto;
}

/* ---------- Skill 组成卡片 ---------- */
.skill-component-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-bottom: 60px;
}

.skill-component-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    width: 332px;
    height: 120px;
    /* background: var(--color-bg-light-blue); */
    border-radius: 8px;
    border: 1px solid #E9E9E9;  
}

.skill-component-title {
    font-family: var(--font-pingfang);
    font-size: 22px;
    font-weight: 700;
    line-height: 31px;
    color: #303133;
    letter-spacing: 3%;
}

.skill-component-desc {
    font-family: var(--font-pingfang);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #606266;
    letter-spacing: 3%;
}

.loop-stage-arrow {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(48, 49, 51, 0.35);
}

.loop-stage-arrow svg {
    width: 22px;
    height: 56px;
}

.skill-example {
    letter-spacing: 3%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* text-align: center; */
}
.skill-example .title {
    font-size: 22px;
    font-weight: 700;
    color: #303133;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skill-example .content {
    font-size: 16px;
    /* font-weight: 700; */
    color: #606266;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-example-flow-chart {
    margin-top: 67px;
}

/* ---------- 核心优势卡片 ---------- */
.advantage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.advantage-card {
    flex: 1 1 auto;
    padding: 32px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

/* 大屏：1 行 4 个 */
@media (min-width: 1400px) {
    .advantage-card {
        width: calc(25% - 18px);
    }
}

/* 中屏：2 行 2 个 */
@media (max-width: 1399px) and (min-width: 768px) {
    .advantage-card {
        width: calc(50% - 12px);
    }
}

/* 小屏：4 行 1 个 */
@media (max-width: 767px) {
    .advantage-card {
        width: 100%;
        padding: 24px;
    }
}

.advantage-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light-blue);
    border-radius: 10px;
    color: var(--color-primary);
}

.advantage-card-icon svg {
    width: 24px;
    height: 24px;
}

.advantage-card-title {
    font-family: var(--font-pingfang);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4em;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.advantage-card-desc {
    font-family: var(--font-pingfang);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
    color: var(--color-text-gray);
}

/* ==========================================================================
   桌面端 3 + 4 卡片布局（>=1200px）
   ========================================================================== */
@media (min-width: 1200px) {
    .skill-component-cards {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 16px;
    }
    .skill-component-card {
        width: auto;
    }
    .skill-component-card:nth-child(-n+3) {
        grid-column: span 4;
    }
    .skill-component-card:nth-child(n+4) {
        grid-column: span 3;
    }
}

/* ==========================================================================
   响应式布局
   ========================================================================== */
@media (max-width: 1200px) {
    .skill-component-cards {
        justify-content: center;
    }
    .skill-component-card {
        width: calc(50% - 8px);
        min-width: 240px;
        flex: 1 1 auto;
    }
}
@media (max-width: 768px) {
    .skill-component-cards {
        flex-direction: column;
        align-items: center;
    }
    .skill-component-card {
        width: 100%;
        max-width: 400px;
    }
}
