/* ============================================
   开放接口页面样式 - show_function_kfjk.css
   ============================================ */

/* 通用容器 */
.kfjk-section {
    position: relative;
}

.max-w-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Section 1: 三列功能卡片
   ============================================ */
.kfjk-feature-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E6EB;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all .3s;
}

.kfjk-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22,93,255,0.12);
    border-color: #D4E3FF;
}

.kfjk-feature-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.kfjk-feature-content {
    padding: 28px 28px 32px;
}

.kfjk-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1D2129;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.kfjk-feature-desc {
    font-size: 14px;
    font-weight: 400;
    color: #4E5969;
    line-height: 1.8;
}

/* ============================================
   Section 2: 分组模块卡片
   ============================================ */
.kfjk-module-group {
    margin-bottom: 48px;
}

.kfjk-module-group:last-child {
    margin-bottom: 0;
}

.kfjk-module-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid #165DFF;
    line-height: 1;
}

.kfjk-module-item {
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 10px;
    padding: 24px 18px;
    transition: all .3s;
    cursor: default;
}

.kfjk-module-item:hover {
    border-color: #165DFF;
    background: #F7FAFF;
    box-shadow: 0 6px 20px rgba(22,93,255,0.1);
    transform: translateY(-3px);
}

.kfjk-module-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.kfjk-module-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.kfjk-module-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin: 12px 0 6px 0;
    line-height: 1.3;
}

.kfjk-module-item-desc {
    font-size: 14px;
    font-weight: 400;
    color: #86909C;
    line-height: 1.6;
}

/* ============================================
   核心业务流程：横向一行展示（7列网格）
   ============================================ */
.kfjk-horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
}

.kfjk-module-item-horizontal {
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 10px;
    padding: 20px 12px;
    transition: all .3s;
    cursor: default;
}

.kfjk-module-item-horizontal:hover {
    border-color: #165DFF;
    background: #F7FAFF;
    box-shadow: 0 6px 20px rgba(22,93,255,0.1);
    transform: translateY(-3px);
}

.kfjk-module-item-horizontal .kfjk-module-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 12px 0;
}

.kfjk-module-item-horizontal .kfjk-module-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.kfjk-module-item-horizontal .kfjk-module-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 6px;
    line-height: 1.3;
    text-align: left;
}

.kfjk-module-item-horizontal .kfjk-module-item-desc {
    font-size: 14px;
    font-weight: 400;
    color: #86909C;
    line-height: 1.6;
    text-align: left;
}

/* ============================================
   Section 3: 场景应用卡片
   ============================================ */
.kfjk-case-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E6EB;
    transition: all .35s;
}

.kfjk-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0067FC, #03B8FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
    z-index: 2;
}

.kfjk-case-card:hover {
    box-shadow: 0 16px 40px rgba(22,93,255,0.12);
    transform: translateY(-6px);
    border-color: #D4E3FF;
}

.kfjk-case-card:hover::before {
    transform: scaleX(1);
}

.kfjk-case-header {
    position: relative;
    z-index: 1;
    padding: 26px 28px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kfjk-case-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #165DFF, #3C7EFF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(22,93,255,0.28);
}

.kfjk-case-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.kfjk-case-title {
    font-size: 17px;
    font-weight: 600;
    color: #1D2129;
    margin: 0;
}

.kfjk-case-body {
    position: relative;
    z-index: 1;
    padding: 0 28px 26px;
}

.kfjk-case-desc {
    font-size: 14px;
    color: #4E5969;
    line-height: 1.7;
    margin: 0;
}

.kfjk-case-tag {
    display: inline-block;
    background: #F2F6FF;
    color: #165DFF;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 14px;
    font-weight: 500;
}

/* ============================================
   Section 4: 技术特性（左图 + 右2x3网格卡片）
   ============================================ */
.kfjk-tech-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: center;
}

.kfjk-tech-visual img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(14,66,210,0.22);
}

.kfjk-tech-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    counter-reset: tech-card;
}

.kfjk-tech-feature {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 13px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 12px;
    transition: all .3s;
    counter-increment: tech-card;
}

.kfjk-tech-feature::before {
    content: counter(tech-card, decimal-leading-zero);
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 34px;
    font-weight: 800;
    color: rgba(22, 93, 255, 0.08);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: color .3s;
}

.kfjk-tech-feature:hover::before {
    color: rgba(22, 93, 255, 0.15);
}

.kfjk-tech-feature > div {
    position: relative;
    z-index: 1;
}

.kfjk-tech-feature:hover {
    border-color: #165DFF;
    box-shadow: 0 8px 24px rgba(22,93,255,0.1);
    transform: translateY(-3px);
}

.kfjk-tech-icon {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E8F3FF, #D4E3FF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kfjk-tech-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.kfjk-tech-feature h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #1D2129;
}

.kfjk-tech-feature p {
    font-size: 14px;
    color: #4E5969;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   通用工具类
   ============================================ */
.py-16 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.bg-white {
    background-color: #fff;
}

.bg-gray-50 {
    background-color: #F5F7FA;
}

/* 三步接入：连接线不超出左右圆点 */
#workflow #steps-desktop > .workflow-connector {
    left: calc(100% / 6);
    right: calc(100% / 6);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 1024px) {
    .kfjk-horizontal-scroll {
        grid-template-columns: repeat(4, 1fr);
    }

    .kfjk-tech-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .kfjk-tech-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .py-16 {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .kfjk-feature-card {
        padding: 24px 16px;
    }

    .kfjk-feature-content {
        padding: 20px;
    }

    .kfjk-feature-title {
        font-size: 18px;
    }

    .kfjk-horizontal-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .kfjk-module-group {
        margin-bottom: 32px;
    }

    .kfjk-module-group-title {
        font-size: 18px;
    }

    .kfjk-module-item {
        padding: 16px;
    }

    .kfjk-module-item-title {
        font-size: 16px;
    }

    .kfjk-case-header {
        padding: 20px 20px 12px;
    }

    .kfjk-case-body {
        padding: 0 20px 20px;
    }

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

    .kfjk-security-icon-large {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .kfjk-security-icon-large img {
        width: 48px;
        height: 48px;
    }

    .kfjk-security-text-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .kfjk-feature-title {
        font-size: 16px;
    }

    .kfjk-feature-desc {
        font-size: 13px;
    }

    .kfjk-horizontal-scroll {
        grid-template-columns: 1fr;
    }

    .kfjk-module-group-title {
        font-size: 16px;
    }

    .kfjk-module-item-title {
        font-size: 14px;
    }

    .kfjk-module-item-desc {
        font-size: 12px;
    }

    .kfjk-case-title {
        font-size: 15px;
    }

    .kfjk-case-desc {
        font-size: 13px;
    }
}