/* ============================================================
   新闻列表-4 (news_list_4) 专属样式
   还原自 eco-tableware.com 新闻页(C:/tmp/eco-ref/news-list.html 的
   .left_outer/.wrapper-right): 左栏 = 新闻分类 + Related News(上下结构),
   右栏 = 新闻横幅图 + 页面名称条(border-left 色块) + 新闻列表(.item 照原站
   .ueeshop_responsive_info_list.s1 去掉图: 标题 + 右侧日期块(竖线) + 简介 + a.link) + 翻页。
   取值出处(C:/tmp/eco-ref/style.css + responsive.css):
     .wrap-menu .cate-top      绿底 #94c33b 白字 18px 高47px 行高47px text-indent 15px
     .wrap-menu .name          高55px 行高55px padding 0 15px margin 10px 0 border-bottom #eee
     .wrap-menu .name a        17px #333, hover #94c33b
     .related .r_title         同 cate-top 绿条
     .related .r_list .item    margin-top 20px; .img 块级整宽; .title 16px 行高20px margin-top 11px;
                               .time 14px #989898 行高20px margin-top 11px
     .wrapper-right .page-name border-left 5px #94c33b, padding 5px 0 5px 30px, 30px #333, margin 50px 0
     .ueeshop_responsive_info_list .item        下边框 #e5e5e5, margin/padding 35px(responsive 213-236)
     .ueeshop_responsive_info_list.s1 覆盖       .info padding-right:300px, .time 175x71 右侧
                                               border-left #eaeaea, h2 30px #757575, .desc 45px #666,
                                               .item padding-bottom:40px(style.css 227-232)
     移动端                                      .time display:none, .info padding-right:30px,
                                               .item padding-bottom:15px(style.css 245-250)
   实例级样式(颜色/字号/间距)由模板内联输出 CSS 变量, 这里只放固定版式。
   引入方: templates/sitebuilder/modules/news_list_4.html
   ============================================================ */

.ly_news_list_4 { background-color: #fff; }
.ly_news_list_4 * { box-sizing: border-box; }
.ly_news_list_4 a { text-decoration: none; color: inherit; }
.ly_news_list_4 img { max-width: 100%; }

.ly_news_list_4 .nl4_wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

/* ---------- 标题条(cate-top / r_title 同款): 原站 .wrap-menu .cate-top ---------- */
.ly_news_list_4 .top_title {
    height: 47px;
    line-height: 47px;
    /* 分类名称条背景 / 相关新闻标题条背景各走配置, 默认保持 eco 绿 */
    background-color: var(--nl4-cate-bg, #94C33B);
    text-indent: 15px;
    font-size: 18px;
    font-weight: normal;
    font-family: Verdana, Arial, sans-serif;
    color: var(--nl4-box-title-color, #FFFFFF);
}

/* ---------- 左栏: 分类 + Related News ---------- */
.ly_news_list_4 .left_side { width: 22%; }
.ly_news_list_4 .left_side ul.list { margin: 0; padding: 0; list-style: none; }
.ly_news_list_4 .left_side ul.list li {
    list-style: none;
    margin: 10px 0;                       /* .wrap-menu .name */
    border-bottom: 1px solid #eee;
}
.ly_news_list_4 .left_side ul.list li a {
    display: block;
    height: 55px;                         /* .wrap-menu .name */
    line-height: 55px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 17px;                      /* .wrap-menu .name a */
    color: var(--nl4-cate-color, #333333);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ly_news_list_4 .left_side ul.list li a:hover,
.ly_news_list_4 .left_side ul.list li.cur a {
    color: var(--nl4-cate-hover-color, #94C33B);
}
.ly_news_list_4 .left_side .category_empty { padding: 16px 0; font-size: 14px; color: #999; }

/* Related News: 上下结构(图 -> 标题 -> 时间), 同原站 .related .r_list .item */
.ly_news_list_4 .relate_box { margin-top: 22px; padding-bottom: 20px; }  /* .related */
.ly_news_list_4 .relate_box .r_list { margin-top: 20px; }
.ly_news_list_4 .relate_box .related_item { margin-top: 20px; }
.ly_news_list_4 .relate_box .related_item:first-child { margin-top: 0; }
.ly_news_list_4 .relate_box .related_item .pic_box {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
}
.ly_news_list_4 .relate_box .related_item .pic_box img {
    display: block;
    width: 100%;
    height: auto;
}
.ly_news_list_4 .relate_box .related_item .g_name {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 11px;
    width: 100%;
    line-height: 20px;
    font-size: 16px;
    color: var(--nl4-news-title-color, #222222);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ly_news_list_4 .relate_box .related_item .g_name:hover {
    color: var(--nl4-cate-hover-color, #94C33B);
}
.ly_news_list_4 .relate_box .related_item .g_time {
    margin-top: 11px;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: var(--nl4-time-color, #989898);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 右栏: 横幅图 + 页面名称条 + 列表 ---------- */
.ly_news_list_4 .right_side { width: 75%; }
.ly_news_list_4 .right_side.full { width: 100%; }
.ly_news_list_4 .right_side .banner { margin-bottom: 24px; }
/* 第四轮验收: 横幅按图片实际分辨率展示 —— 不拉伸不裁剪, 图自然尺寸,
   超宽才被 max-width:100% 兜底缩放, 高度自适应 */
.ly_news_list_4 .right_side .banner img {
    display: block;
    width: 100%;
    height: auto;
}
/* 相关新闻标题条: 背景独立配置(默认同分类条) */
.ly_news_list_4 .relate_box .r_title {
    background-color: var(--nl4-related-bg, #94C33B);
}

/* 页面名称条: 原站 .wrapper-right .page-name(border-left 色块, 非 cate-top 绿条) */
.ly_news_list_4 .right_side .page-name {
    position: relative;
    border-left: 5px solid var(--nl4-title-block, #94C33B);
    padding: 5px 0 5px 30px;
    font-size: 30px;
    color: #333333;
    margin: 50px 0;
}
.ly_news_list_4 .right_side .page-name h1 {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
/* 分类抽屉的开关只在移动端出现 */
.ly_news_list_4 .right_side .page-name i { display: none; }

/* ---------- 新闻列表: 原站 .ueeshop_responsive_info_list.s1 口径逐条照搬 ----------
   基础版式(responsive.css 213-236): .item 下边框 #e5e5e5 + margin/padding 35px、
   .info 右浮(fr); 覆盖(style.css 227-232, body 前缀那组):
   .info padding-right:300px 给右侧日期块让位、.time 定位在条目右侧(175x71, 竖线
   border-left 1px #eaeaea)、.desc 高 45px #666、.item padding-bottom:40px。
   两处差异说明(其余数值与原站一致):
     * 原站 .time 用 left:627px —— 那是原站右栏定宽 876px 下的坐标; 这里等价换算成
       right 锚定(时间块右缘距条目右缘 74px = 876-627-175), 右栏列宽变化时版式不变;
     * 原站 responsive.css:229 把 .s1 的 .img display:none, 按验收口径列表项不显示图片,
       取该条: 不输出 .img, .info 占满整行(padding-left 25px 原是给左图让的间隙, 一并去掉)。
   .time 内 h1 英文日期: 原站 responsive.css:232 在 PC 把 h1 display:none, DOM 照原站
   保留(英文日期口径在 Related News 与 h1 内容里沿用), 展示的是 h2 "MM-DD"+span 年。 */
.ly_news_list_4 .info_list { margin: 30px 0; overflow: hidden; }
.ly_news_list_4 .info_list .item {
    position: relative;
    min-height: 50px;
    margin-bottom: 35px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}
.ly_news_list_4 .info_list .item:last-child { margin-bottom: 0; }
.ly_news_list_4 .info_list .item .info {
    width: 100%;
    float: right;
    padding: 0 300px 0 0;
}
.ly_news_list_4 .info_list .item .info .title {
    max-height: 57px;
    overflow: hidden;
    line-height: 180%;
    padding-bottom: 5px;
    margin: 0;
    font-weight: bold;
}
.ly_news_list_4 .info_list .item .info .title a {
    font-size: var(--nl4-pc-title-size, 18px);
    color: var(--nl4-news-title-color, #222222);
}
.ly_news_list_4 .info_list .item .info .title a:hover {
    color: var(--nl4-cate-hover-color, #94C33B);
}
/* 日期块: 竖线挂 .time 上(原站 style.css:228), h2 大号数字 + span 年 */
.ly_news_list_4 .info_list .item .info .time {
    position: absolute;
    right: 74px;
    top: 0;
    width: 175px;
    height: 71px;
    padding-top: 16px;
    border-left: 1px solid #eaeaea;
    text-align: center;
}
.ly_news_list_4 .info_list .item .info .time h1 {
    display: none;
    margin: 0;
    font-weight: normal;
}
.ly_news_list_4 .info_list .item .info .time h2 {
    margin: 0;
    font-size: 30px;
    line-height: normal;
    color: #757575;
    font-family: Verdana, Arial, sans-serif;
    font-weight: normal;
}
.ly_news_list_4 .info_list .item .info .time h2 span {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #666;
    text-indent: 55px;
    font-weight: normal;
}
/* 简介: 原站 .desc 是整块可点的 <a>(height:45px #666, responsive.css:223 截断) */
.ly_news_list_4 .info_list .item .info .desc {
    display: block;
    height: 45px;
    overflow: hidden;
    margin: 5px 0 10px 0;
    line-height: 150%;
    font-size: 14px;
    color: #666;
    font-family: Verdana, Arial, sans-serif;
    word-break: break-all;
}
.ly_news_list_4 .info_list .item .info .desc:hover { text-decoration: none; }
/* 条目级链接/右侧箭头: 原站 a.link 用 icon_link.png 贴图, 无素材, 用同形 CSS chevron;
   验收口径: 箭头(::before)所有尺寸参数在上轮基础上等比放大 2 倍 */
.ly_news_list_4 .info_list .item .link {
    display: block;
    width: 20px;
    height: 70%;
    position: absolute;
    right: 0;
    top: 0;
}
.ly_news_list_4 .info_list .item .link::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-top: 4px solid #b5b5b5;
    border-right: 4px solid #b5b5b5;
    transform: translate(-50%, -50%) rotate(45deg);
}
/* 原站 global.css:53 */
.ly_news_list_4 .info_list .clear {
    margin: 0 auto;
    clear: both;
    height: 0;
    font-size: 0;
    overflow: hidden;
}

/* ---------- 翻页(同 news_list_2) ---------- */
.ly_news_list_4 .turn_page { margin-bottom: 60px; text-align: center; }
/* 一页装得下时 JS 不输出页码, 空容器不留白 */
.ly_news_list_4 .turn_page:empty { display: none; }
.ly_news_list_4 .turn_page a,
.ly_news_list_4 .turn_page span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    margin: 0 4px;
    padding: 0 6px;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
    font-size: 14px;
    color: #555;
    text-align: center;
    text-decoration: none;
}
.ly_news_list_4 .turn_page span.cur { border-color: #222; color: #222; }
/* JS 控制显隐用的工具类 */
.ly_news_list_4 .nl4_hide { display: none !important; }

/* 编辑态左上角有模块名 label(editor.css 的绝对定位浮层), 默认上间距只有 20px,
   左栏 News 标题条会被压住。编辑态整体下移一个 label 高度, 发布态不受影响。 */
.deco-edit-mode .ly_news_list_4 .nl4_wrapper { padding-top: 24px; }

/* ============================================================
   移动端
   ============================================================ */
@media screen and (max-width: 1000px) {
    /* 左栏收成标题条下方的下拉抽屉, 由 .right_side .page-name i 触发;
       宽度与标题条一致(JS 展开时按标题条实测盒模型对齐 left/width/top) */
    .ly_news_list_4 .left_side {
        display: none;
        position: absolute;
        left: 0;
        background-color: #fff;
        z-index: 10001;
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px 0 15px;
        border: 1px solid #484a4e;
    }
    .ly_news_list_4 .left_side.show { display: block; }
    .ly_news_list_4 .left_side .cate-top { display: none; }
    .ly_news_list_4 .left_side ul.list { padding: 0; height: 225px; overflow: auto; }
    .ly_news_list_4 .left_side ul.list li a { height: 45px; line-height: 45px; font-size: 14px; }
    /* 左栏 Related News 在移动端隐藏(数据与右栏列表重复, 留给列表) */
    .ly_news_list_4 .left_side .relate_box { display: none; }

    .ly_news_list_4 .right_side,
    .ly_news_list_4 .right_side.full { width: 100%; }
    .ly_news_list_4 .right_side .banner { margin-bottom: 16px; }
    .ly_news_list_4 .right_side .page-name {
        padding: 0 45px 0 10px;
        height: 43px;
        line-height: 41px;
        border: 1px solid #e8e8e8;
        border-left: 5px solid var(--nl4-title-block, #94C33B);
        font-size: 15px;
        margin: 12px 0 0 0;
    }
    .ly_news_list_4 .right_side .page-name i {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 14px;
        width: 16px;
        height: 16px;
        cursor: pointer;
        font-style: normal;
    }
    .ly_news_list_4 .right_side .page-name i::before,
    .ly_news_list_4 .right_side .page-name i::after {
        content: '';
        position: absolute;
        background-color: currentColor;
    }
    .ly_news_list_4 .right_side .page-name i::before { top: 7px; left: 2px; width: 12px; height: 2px; }
    .ly_news_list_4 .right_side .page-name i::after { top: 2px; left: 7px; width: 2px; height: 12px; }
    /* 抽屉展开时把 + 变成 - */
    .ly_news_list_4 .right_side .page-name i.cur::after { display: none; }

    /* 移动端列表(原站 style.css 245-250 行 @media max-768 那组 body 规则):
       时间块隐藏、.info 右侧收 30px(列表项不放图, 左 padding 不再保留)、
       条目 padding-bottom 15px、简介 word-break 换行 */
    .ly_news_list_4 .info_list .item { min-height: auto; padding-bottom: 15px; }
    .ly_news_list_4 .info_list .item .info { padding: 0 30px 0 0; }
    .ly_news_list_4 .info_list .item .info .time { display: none; }
    .ly_news_list_4 .info_list .item .info .title a { font-size: var(--nl4-mobile-title-size, 16px); }
    .ly_news_list_4 .info_list .item .info .desc { display: block; word-break: break-all; }

    .ly_news_list_4 .turn_page { margin-bottom: 30px; }
}
