/* BOX信息框小部件样式 */

/* 重要：重置Elementor可能的干扰样式 */
.elementor-widget-geniatech_box_info .elementor-widget-container {
    position: relative !important;
    overflow: visible !important;
}

.geniatech-box-info2-container {
    width: 100% !important;
    height: 80vh;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 桌面舞台容器：用于整体等比缩放，防止两侧被裁切 */
.geniatech-box-info2-stage {
    position: relative;
    width: 1200px; /* 设计参考宽度 */
    height: 800px; /* 设计参考高度 */
    transform-origin: center center;
}

/* 圆圈背景 */
.geniatech-box-info2-container .geniatech-box-info2-circle {
    width: 700px;
    height: 700px;
    border-radius: 50%;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    background: no-repeat center center;
    background-size: contain;
}

/* 中心图片 */
.geniatech-box-info2-container .geniatech-box-info2-hand-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 4;
}

.geniatech-box-info2-hand-img img {
    width: 370px;
    height: auto;
    display: block;
    max-width: 100%;
}

/* 移动端线性信息列表（默认隐藏，仅移动端显示） */
.geniatech-box-info2-mobile-list { display: none; }

/* 移动端独立中心图容器（默认隐藏，仅移动端显示） */
.geniatech-box-info2-mobile-hero { display: none; }
.geniatech-box-info2-mobile-hero img {
    display: block;
    width: 260px;
    height: auto;
    margin: 0 auto 16px auto;
}

/* 图标样式 */
.geniatech-box-info2-container .geniatech-box-info2-icon {
    width: 60px;
    height: 60px;
    background-color: #e63946;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    position: absolute !important;
    z-index: 3;
    transition: all 0.3s ease;
}

.geniatech-box-info2-container .geniatech-box-info2-icon:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.geniatech-box-info2-container .geniatech-box-info2-icon i,
.geniatech-box-info2-container .geniatech-box-info2-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* 图标位置（仅在未启用JS定位时使用） */
.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-icon.geniatech-box-info2-top-right {
    left: calc(50% + 329px - 30px) !important;
    top: calc(50% - 264px + 30px) !important;
    transform: translate(-50%, -50%) !important;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-icon.geniatech-box-info2-top-left {
    left: calc(50% - 380px) !important;
    top: calc(50% + 9px) !important;
    transform: translate(-50%, -50%) !important;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-icon.geniatech-box-info2-bottom-left {
    left: calc(50% - 245px + 30px) !important;
    top: calc(50% + 264px - 30px) !important;
    transform: translate(-50%, -50%) !important;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-icon.geniatech-box-info2-bottom-right {
    left: calc(50% + 329px - 30px) !important;
    top: calc(50% + 264px - 30px) !important;
    transform: translate(-50%, -50%) !important;
}

/* 信息框样式 */
.geniatech-box-info2-container .geniatech-box-info2-info-box {
    width: 440px;
    height: 190px;
    padding: 25px;
    
    position: absolute !important;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/*.geniatech-box-info2-container .geniatech-box-info2-info-box:hover {*/
/*    transform: translateY(-5px) !important;*/
/*    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;*/
/*}*/

/* 左侧信息框箭头 */
/*.geniatech-box-info2-info-box.geniatech-box-info2-top-left::after,*/
/*.geniatech-box-info2-info-box.geniatech-box-info2-bottom-left::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    right: -15px;*/
/*    border-top: 15px solid transparent;*/
/*    border-bottom: 15px solid transparent;*/
/*    border-left: 15px solid #fff;*/
/*}*/

/*.geniatech-box-info2-info-box.geniatech-box-info2-top-left::after {*/
/*    top: 25%;*/
/*}*/

/*.geniatech-box-info2-info-box.geniatech-box-info2-bottom-left::after {*/
/*    bottom: 22%;*/
/*}*/

/* 右侧信息框箭头 */
/*.geniatech-box-info2-info-box.geniatech-box-info2-top-right::after,*/
/*.geniatech-box-info2-info-box.geniatech-box-info2-bottom-right::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    left: -15px;*/
/*    border-top: 15px solid transparent;*/
/*    border-bottom: 15px solid transparent;*/
/*    border-right: 15px solid #fff;*/
/*}*/

/*.geniatech-box-info2-info-box.geniatech-box-info2-top-right::after {*/
/*    top: 25%;*/
/*}*/

/*.geniatech-box-info2-info-box.geniatech-box-info2-bottom-right::after {*/
/*    bottom: 22%;*/
/*}*/

/* 信息框位置（仅在未启用JS定位时使用） */
.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-info-box.geniatech-box-info2-top-left {
    left: calc(50% - 340px - 20px) !important;
    top: calc(50% + 70px) !important;
    transform: translate(-100%, -50%) !important;
    animation-delay: 0.1s;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-info-box.geniatech-box-info2-top-right {
    left: calc(50% + 340px + 20px) !important;
    top: calc(50% - 200px) !important;
    transform: translate(0, -50%) !important;
    animation-delay: 0.2s;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-info-box.geniatech-box-info2-bottom-left {
    left: calc(50% - 340px - 20px) !important;
    top: calc(50% + 200px) !important;
    transform: translate(-100%, -50%) !important;
    animation-delay: 0.3s;
}

.geniatech-box-info2-container:not(.js-positioning-enabled) .geniatech-box-info2-info-box.geniatech-box-info2-bottom-right {
    left: calc(50% + 340px + 20px) !important;
    top: calc(50% + 200px) !important;
    transform: translate(0, -50%) !important;
    animation-delay: 0.4s;
}

/* 标题样式 */
.geniatech-box-info2-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* 描述样式 */
.geniatech-box-info2-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .geniatech-box-info2-container {
        height: 70vh;
    }
    
    .geniatech-box-info2-circle {
        width: 600px;
        height: 600px;
    }
    
    .geniatech-box-info2-hand-img img {
        width: 320px;
    }
    
    .geniatech-box-info2-info-box {
        width: 380px;
        height: 170px;
        padding: 20px;
    }
    
    .geniatech-box-info2-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    /* 调整图标位置 */
    .geniatech-box-info2-container .geniatech-box-info2-icon.geniatech-box-info2-top-right {
        left: calc(50% + 210px - 25px) !important;
        top: calc(50% - 226px + 25px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-icon.geniatech-box-info2-top-left {
        left: calc(50% - 210px + 25px) !important;
        top: calc(50% - 226px + 25px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-icon.geniatech-box-info2-bottom-left {
        left: calc(50% - 210px + 25px) !important;
        top: calc(50% + 226px - 25px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-icon.geniatech-box-info2-bottom-right {
        left: calc(50% + 210px - 25px) !important;
        top: calc(50% + 226px - 25px) !important;
    }
    
    /* 调整信息框位置 */
    .geniatech-box-info2-container .geniatech-box-info2-info-box.geniatech-box-info2-top-left {
        left: calc(50% - 290px - 20px) !important;
        top: calc(50% - 170px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-info-box.geniatech-box-info2-top-right {
        left: calc(50% + 290px + 20px) !important;
        top: calc(50% - 170px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-info-box.geniatech-box-info2-bottom-left {
        left: calc(50% - 290px - 20px) !important;
        top: calc(50% + 170px) !important;
    }
    
    .geniatech-box-info2-container .geniatech-box-info2-info-box.geniatech-box-info2-bottom-right {
        left: calc(50% + 290px + 20px) !important;
        top: calc(50% + 170px) !important;
    }
}

@media (max-width: 768px) {
    .geniatech-box-info2-container {
        height: auto;
        flex-direction: column;
        padding: 20px;
        overflow: visible;
    }
    
    .geniatech-box-info2-circle { display: none !important; }
    
    .geniatech-box-info2-hand-img { display: none !important; }
    
    .geniatech-box-info2-hand-img img {
        width: 250px;
    }
    
    /* 显示移动端独立中心图与线性信息列表（顺序：图片 -> 列表） */
    .geniatech-box-info2-mobile-hero { display: block; }
    .geniatech-box-info2-mobile-list {
        display: block;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .geniatech-box-info2-mobile-item {
        width: 100%;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        padding: 20px;
        margin-bottom: 16px;
    }

    .geniatech-box-info2-icon {
        display: none !important; /* 移动端隐藏图标 */
    }
    
    .geniatech-box-info2-info-box {
        display: none !important; /* 隐藏绝对定位的盒子，改用mobile-list渲染 */
    }
    
    .geniatech-box-info2-info-box::after {
        display: none;
    }
    
    .geniatech-box-info2-title {
        font-size: 1.1em;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .geniatech-box-info2-description {
        font-size: 0.9em;
        text-align: center;
    }
    
    /* 移动端布局：垂直排列（中心图在上，信息框一行一个） */
    .geniatech-box-info2-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
}

/* 桌面端：允许可见以配合缩放显示完整内容 */
@media (min-width: 769px) {
    .geniatech-box-info2-container {
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .geniatech-box-info2-container {
        padding: 15px;
    }
    
    .geniatech-box-info2-circle {
        width: 300px;
        height: 300px;
    }
    
    .geniatech-box-info2-hand-img img {
        width: 200px;
    }
    
    .geniatech-box-info2-info-box {
        padding: 15px;
    }
    
    .geniatech-box-info2-title {
        font-size: 1em;
    }
    
    .geniatech-box-info2-description {
        font-size: 0.85em;
    }
}

/* Elementor编辑器预览优化 */
.elementor-editor-active .geniatech-box-info2-container {
    min-height: 600px;
}

.elementor-editor-active .geniatech-box-info2-info-box {
    animation: none;
    opacity: 1;
}
