/* =====================================================================
   世纪缘官网 样式修复补丁  2026-10-23
   ---------------------------------------------------------------------
   修复内容：
   1. 横向滚动条：页脚图标行固定 980px、内页容器固定 1200px 导致窄屏溢出
   2. 首页产品图"查看详情"悬浮样式：黑色幕布下拉改为淡入遮罩+居中文字
   3. 内页悬浮色统一为品牌橙 #e05717（原来混入蓝色 #015198）
   ---------------------------------------------------------------------
   回滚方法：删除 head.html / index.html 中对本文件的 <link> 引用即可，
   或直接删除本文件。原文件备份见 /www/backup/sjono_style_backup_20261023_092612
   ===================================================================== */

/* ---------------- 0. wow.js 入场动画兜底 ---------------- */
/* wow.js 初始化时将 .wow 元素设为 visibility:hidden，滚动进入视口才触发
   动画显示；实际环境中存在触发失败（滚动节奏/性能/脚本时序）导致内容
   永久停留在隐藏态——表现为"页面打开几秒后中间全部空白，鼠标悬停才
   出现文字"。此处强制动画元素始终可见：动画照常播放，但任何情况下
   不允许卡在 hidden。 */
.wow {
    visibility: visible !important;
}

/* ---------------- 1. 横向滚动条 ---------------- */

/* 全局兜底：禁止页面横向滚动 */
html,
body {
    overflow-x: hidden;
}

/* 页脚品牌图标行：固定 980px 改为自适应，窄屏不再溢出 */
.footer_other .imglink {
    width: auto;
    max-width: 980px;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
}

.footer_other .imglink img {
    max-width: 100%;
    height: auto;
    max-height: 35px;
}

.footer_other .consult a {
    width: auto;
    max-width: 488px;
}

/* 内页 1200px 固定容器：平板/小窗口下改为可收缩 */
@media (max-width: 1220px) {

    .n_head_box,
    .n_nav_box,
    .n_new_position,
    .n_new_list,
    .n_team_top,
    .n_anli_con_box {
        width: auto;
        max-width: 1200px;
    }
}

/* 平板：新闻卡片改两列 */
@media (max-width: 1024px) {

    .n_new_list li {
        width: 47.5%;
        margin-right: 5%;
    }

    .n_new_list li:nth-child(2n) {
        margin-right: 0;
    }

    .n_new_li {
        width: 100%;
        height: auto;
    }

    .n_new_li_img {
        width: 100%;
        height: auto;
        min-height: 165px;
    }

    .n_new_li_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        left: 0 !important;
    }
}

/* 手机：新闻列表单列、推荐位上下堆叠 */
@media (max-width: 768px) {

    .n_new_list li {
        width: 100%;
        margin-right: 0;
    }

    .n_new_position {
        height: auto;
        padding: 20px;
    }

    .n_new_position_img {
        float: none;
        width: 100%;
        height: auto;
    }

    .n_new_position_img img {
        position: static;
        width: 100%;
        height: auto;
        left: 0 !important;
    }

    .n_new_position_con {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .n_new_position_more {
        margin-left: 0;
    }
}

/* ---------------- 2. 首页产品图"查看详情"悬浮 ---------------- */
/* 2026-10-23 二次修订：第一版对 span 使用 display:flex 导致产品图
   背景渲染异常（整卡空白），已废弃。本版改用 ::before 伪元素做遮罩、
   span 仅作文字层（top:50% + translateY 居中），不改变任何元素的
   display 模型，已通过浏览器逐项截图验证。 */

/* 遮罩层：常驻但透明，悬浮淡入 */
.i-case-content .i-case-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}

/* 文字层：垂直居中，不参与布局撑高（height:auto） */
.i-case-content .i-case-img span {
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    z-index: 2;
    transition: opacity .3s ease;
}

/* 文字下方的品牌色短线 */
.i-case-content .i-case-img span::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: 12px auto 0;
    background-color: #e05717;
}

/* 悬浮态：遮罩与文字同时淡入 */
.i-case-content li:hover .i-case-img::before {
    opacity: 1;
}

.i-case-content li:hover .i-case-img span {
    height: auto;
    visibility: visible;
    opacity: 1;
    line-height: 1.6;
}

/* 小屏触屏：无 hover 概念，遮罩与文字一并隐藏（与模板原有行为一致） */
@media (max-width: 840px) {

    .i-case-content .i-case-img::before,
    .i-case-content .i-case-img span {
        display: none;
    }
}

/* ---------------- 3. 内页悬浮色统一品牌橙 ---------------- */

/* 新闻推荐位"查看详情"按钮 */
.n_new_position_more {
    border: 1px solid #e05717;
    color: #e05717;
}

.n_new_position:hover .n_new_position_more {
    border: 1px solid #e05717;
    color: #ffffff;
    background: #e05717 url(../images/new_position_more2.png) no-repeat 78px center;
}

/* 新闻卡片悬浮文字 */
.n_new_list li:hover .n_new_li_time,
.n_new_list li:hover .n_new_li_js {
    color: #e05717;
}

/* 店面形象图库：标题、时间、底部下划线 */
.n_anli_con_list li:hover .n_anli_con_li_name,
.n_anli_con_list li:hover .n_anli_con_li_time {
    color: #e05717;
}

.n_anli_con_list li:hover .n_anli_con_li_position {
    background-color: #e05717;
}
