/* =========================================
   自定义图文块 Pro - 基础样式
   ========================================= */

/* 容器基础 */
.custom-feature-box-wrapper {
    box-sizing: border-box;
    width: auto;
    /* 必须 visible，否则 translateY 上浮会被父级截断 */
    overflow: visible;
    /* CSS 级别 transition 兜底，PHP inline style 会覆盖但保留此作用域 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* 图标盒子 */
.custom-feature-box-wrapper .cfb-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-feature-box-wrapper .cfb-icon-box img {
    display: block;
    height: auto;
}

/* 内容区域 */
.custom-feature-box-wrapper .cfb-content {
    flex-grow: 1;
    min-width: 0;
    word-wrap: break-word;
}

.custom-feature-box-wrapper .cfb-title {
    line-height: 1.2;
}

.custom-feature-box-wrapper .cfb-desc {
    line-height: 1.6;
}

.custom-feature-box-wrapper .cfb-desc p:last-child {
    margin-bottom: 0;
}

/* =========================================
   响应式优化
   ========================================= */

@media (max-width: 768px) {
    .custom-feature-box-wrapper {
        flex-direction: column !important;
    }

    .custom-feature-box-wrapper .cfb-icon-box {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }
}
