/*
 * 产品详情页公共模块样式（步骤 / 应用场景双栏 / 案例 / 常见问题）
 * 类名前缀 itz- 为历史命名，全产品详情共用。
 * 公共切图：/product-skin-new/assets/product-common/
 */

/* 步骤：全宽灰底，与蓝湖 group_1 一致 */
.itz-steps {
    width: 100%;
    min-height: 360px;
    background: #F7F9FF;
    box-sizing: border-box;
    padding: 56px 0 48px;
}

.itz-steps-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.itz-steps .section-title2 {
    margin-bottom: 36px;
}

.itz-steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 44px;
    row-gap: 24px;
    position: relative;
    z-index: 1;
    align-items: start;
    /* 对齐蓝湖 group_2 高度约 106px */
    min-height: 106px;
}

/*
 * 设计图：序号在左、文案在右。
 * 模板输出 .itz-step > img.itz-step-num + .itz-step-body；编辑器只提供 h3+p 文案。
 */
.itz-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    min-height: 106px;
}

.itz-step-num {
    position: static;
    flex-shrink: 0;
    align-self: flex-start;
    width: auto;
    height: 105px;
    max-width: 110px;
    object-fit: contain;
    object-position: left top;
    display: block;
    pointer-events: none;
    transform: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.itz-step-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding-top: 0;
    margin: 0;
    align-self: flex-start;
}

.itz-step-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #045AFE;
    margin: 0 0 11px;
    line-height: 1;
    white-space: nowrap;
}

.itz-step-body p {
    font-size: 14px;
    color: #333;
    line-height: 24px;
    margin: 0;
    max-width: 196px;
}

.itz-steps-timeline {
    display: block;
    width: 100%;
    max-width: 1280px;
    height: auto;
    min-height: 12px;
    object-fit: contain;
    object-position: center;
    /* 与步骤文案拉开一点，避免贴在文字下方 */
    margin: 52px auto 0;
}

/* 应用场景：左图 + 适合 / 不太适合 */
.itz-scenes {
    padding: 60px 120px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.itz-scenes .section-title2 {
    margin-bottom: 40px;
}

.itz-scenes-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.itz-scenes-visual {
    border-radius: 20px;
    overflow: hidden;
    background: #0a1628;
    min-height: 280px;
}

.itz-scenes-visual img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.itz-scenes-card {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.itz-scenes-card .itz-scenes-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 24px;
}

.itz-scenes-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.itz-scenes-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
    flex: 1;
}

.itz-scenes-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 160px;
    height: 50px;
    background: #045afe;
    color: #fff !important;
    border-radius: 25px;
    font-size: 16px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.itz-scenes-cta:hover {
    background: #0346c9;
    transform: translateY(-2px);
}

.itz-scenes-cta img {
    width: 12px;
    height: 12px;
}

/* 案例依据：整块统一灰底，上下一致 */
.itz-cases {
    padding: 80px 120px;
    background: #F7F9FF;
}

.itz-cases-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.itz-cases .section-title2 {
    margin-bottom: 40px;
}

.itz-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* 蓝湖 block_1 列高约 444px */
    height: 444px;
}

.itz-cases-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
}

.itz-case-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.02);
    padding: 32px 40px 28px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    /* 默认两卡均分 */
    flex: 1 1 0;
    transition: flex 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

/* 悬停当前卡变高（约 270），同列另一张变矮（约 153） */
.itz-cases-col:hover .itz-case-card {
    flex: 0.55 1 0;
}

.itz-cases-col:hover .itz-case-card:hover {
    flex: 1.85 1 0;
    box-shadow: 0 12px 28px rgba(4, 90, 254, 0.12);
}

.itz-case-logo-wrap {
    width: 160px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.itz-case-logo-wrap img {
    width: auto;
    max-width: 100%;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.itz-case-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.itz-case-card p {
    font-size: 16px;
    color: #333;
    line-height: 24px;
    margin: 0;
    overflow: hidden;
    opacity: 1;
    max-height: 72px;
    transition: opacity 0.28s ease, max-height 0.35s ease, margin 0.35s ease;
}

.itz-case-more {
    margin-top: auto;
    padding-top: 16px;
    font-size: 16px;
    color: #1e54ec;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, max-height 0.35s ease, padding 0.35s ease;
}

/* 被压矮的卡：收起简介 */
.itz-cases-col:hover .itz-case-card:not(:hover) {
    padding-top: 28px;
    padding-bottom: 20px;
    justify-content: center;
}

.itz-cases-col:hover .itz-case-card:not(:hover) p,
.itz-cases-col:hover .itz-case-card:not(:hover) .itz-case-more {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* 展开的卡：露出「查看更多」 */
.itz-cases-col:hover .itz-case-card:hover .itz-case-more {
    opacity: 1;
    max-height: 40px;
    pointer-events: auto;
}

.itz-case-more:hover {
    text-decoration: underline;
}

/* 常见问题：竖卡横排 + 线上同款斜梯形蓝底（productFoot） */
.itz-faq {
    position: relative;
    padding: 60px 120px 140px;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible;
    /* 双保险：元素自身也铺梯形底，避免伪元素被父级裁切 */
    background: url(/product-skin-new/assets/product-common/faq/productFoot.png) no-repeat center bottom;
    background-size: 100% 420px;
}

/* 斜梯形背景：与线上 scenes-section / productFoot.png 一致 */
.itz-faq::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1920px;
    height: 420px;
    background: url(/product-skin-new/assets/product-common/faq/productFoot.png) no-repeat center bottom;
    background-size: 100% 100%;
    z-index: 0;
    pointer-events: none;
}

.itz-faq .section-title2,
.itz-faq-list {
    position: relative;
    z-index: 1;
}

.itz-faq .section-title2 {
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.itz-faq-list {
    display: grid !important;
    /* 默认一排 3 张 */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* 有第 4 条及以上：一排 4 张，卡片自动变窄 */
.itz-faq-list:has(> .itz-faq-card:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
    max-width: 1480px;
}

.itz-faq-list:has(> .itz-faq-card:nth-child(4)) .itz-faq-card {
    min-height: 300px;
    padding: 28px 20px 24px;
}

.itz-faq-list:has(> .itz-faq-card:nth-child(4)) .itz-faq-title h3 {
    font-size: 16px;
    line-height: 24px;
}

/* 竖向卡片背景：蓝湖 linear-gradient(0deg, #F5FBFF, #FFFFFF) */
.itz-faq-card {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    min-height: 287px;
    height: 100%;
    background: linear-gradient(0deg, #F5FBFF, #FFFFFF);
    border-radius: 20px;
    opacity: 0.96;
    padding: 36px 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* 序号 + 问句同一行；整块编辑可不写「问题N」，由 nth-child 自动带 */
.itz-faq-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.itz-faq-list > .itz-faq-card > .itz-faq-title:not(:has(.itz-faq-badge))::before {
    content: "问题1";
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    height: 26px;
    line-height: 26px;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #0759FE;
    background: linear-gradient(131deg, #0759FE 0%, #359AFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.itz-faq-list > .itz-faq-card > .itz-faq-title:not(:has(.itz-faq-badge))::after {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: -18px;
    background: #DAEDFF;
    box-shadow: 2px 4px 6px 0px rgba(1, 13, 59, 0.03);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.itz-faq-list > .itz-faq-card:nth-child(1) > .itz-faq-title:not(:has(.itz-faq-badge))::before { content: "问题1"; }
.itz-faq-list > .itz-faq-card:nth-child(2) > .itz-faq-title:not(:has(.itz-faq-badge))::before { content: "问题2"; }
.itz-faq-list > .itz-faq-card:nth-child(3) > .itz-faq-title:not(:has(.itz-faq-badge))::before { content: "问题3"; }
.itz-faq-list > .itz-faq-card:nth-child(4) > .itz-faq-title:not(:has(.itz-faq-badge))::before { content: "问题4"; }
.itz-faq-list > .itz-faq-card:nth-child(5) > .itz-faq-title:not(:has(.itz-faq-badge))::before { content: "问题5"; }

/* 兼容旧结构里手写的「问题N」徽章 */
.itz-faq-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 26px;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.itz-faq-badge::before {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #DAEDFF;
    box-shadow: 2px 4px 6px 0px rgba(1, 13, 59, 0.03);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.itz-faq-badge-text {
    position: relative;
    z-index: 1;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    color: #0759FE;
    background: linear-gradient(131deg, #0759FE 0%, #359AFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 问题标题：渐变字 */
.itz-faq-title h3 {
    flex: 1;
    min-width: 0;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    margin: 0;
    color: #FFFFFF;
    background: linear-gradient(131deg, #0759FE 0%, #359AFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 答案 */
.itz-faq-card > p {
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 24px;
    margin: 0;
    flex: 1;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .itz-steps-inner,
    .itz-scenes,
    .itz-cases,
    .itz-faq {
        padding-left: 40px;
        padding-right: 40px;
    }

    .itz-step {
        gap: 14px;
    }

    .itz-step-num {
        height: 88px;
        max-width: 90px;
    }

    .itz-step-body h3 {
        font-size: 20px;
    }

    .itz-step-body p {
        max-width: none;
    }

    .itz-scenes-row {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .itz-scenes-visual {
        grid-column: 1 / -1;
    }

    .itz-scenes-card h3 {
        font-size: 24px;
    }

    .itz-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        height: 520px;
    }

    .itz-faq-list,
    .itz-faq-list:has(> .itz-faq-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .itz-steps {
        min-height: 0;
        padding: 40px 0;
    }

    .itz-steps-inner {
        padding: 0 20px;
    }

    .itz-scenes,
    .itz-cases,
    .itz-faq {
        padding: 40px 20px;
    }

    .itz-steps-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .itz-step {
        gap: 10px;
    }

    .itz-step-num {
        height: 64px;
        max-width: 68px;
    }

    .itz-step-body h3 {
        font-size: 16px;
        white-space: normal;
    }

    .itz-step-body p {
        max-width: none;
    }

    .itz-steps-timeline {
        display: none;
    }

    .itz-scenes-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .itz-scenes-visual {
        min-height: 200px;
    }

    .itz-scenes-visual img {
        min-height: 200px;
    }

    .itz-scenes-card h3 {
        font-size: 22px;
    }

    .itz-cases-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 16px;
    }

    .itz-cases-col {
        height: 360px;
    }

    .itz-case-card {
        padding: 24px 20px;
    }

    .itz-faq-list,
    .itz-faq-list:has(> .itz-faq-card:nth-child(4)) {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .itz-faq-card,
    .itz-faq-list:has(> .itz-faq-card:nth-child(4)) .itz-faq-card {
        min-height: 0;
        padding: 24px 20px;
    }

    .itz-faq-title h3 {
        font-size: 16px;
        line-height: 24px;
    }

    .itz-faq-badge-text {
        font-size: 14px;
        line-height: 22px;
    }
}
