/* ============================================================
   新闻详情-3 (news_detail_3) 专属样式
   还原自 eco-tableware.com 新闻详情页(C:/tmp/eco-ref/news-detail.html 的
   .left_outer/.wrapper-right): 左栏 = 新闻分类 + Related News(上下结构, 第二轮验收去掉了顶部
   cate-top "News" 标题条), 右栏 = 新闻横幅图 + 页面名称条(纯文字 16px #888, 无色块)
   + 详情区(标题/时间/浏览次数居中 + 正文)。
   取值出处:
     C:/tmp/eco-ref/style.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/.r_list .item  同 news_list_4 左栏
       .wrapper-right .page-name border-left 5px #94c33b, padding 5px 0 5px 30px, 30px #333, margin 50px 0
     C:/tmp/eco-ref/responsive.css:
       .ueeshop_responsive_info_detail>.title  20px 居中 #222
       .ueeshop_responsive_info_detail>.contents 16px #555 行高180%
     C:/tmp/eco-ref/themes.css:
       .ueeshop_responsive_info_detail .ext_mes  居中; .ext_mes div inline-block 14px #333
   实例级样式(颜色/字号/间距)由模板内联输出 CSS 变量, 这里只放固定版式。
   引入方: templates/sitebuilder/modules/news_detail_3.html
   ============================================================ */

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

.ly_news_detail_3 .nd3_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_detail_3 .top_title {
    height: 47px;
    line-height: 47px;
    background-color: #94C33B;
    text-indent: 15px;
    font-size: 18px;
    font-weight: normal;
    font-family: Verdana, Arial, sans-serif;
    color: var(--nd3-box-title-color, #FFFFFF);
}

/* ---------- 左栏: 分类 + Related News(与 news_list_4 同版式) ---------- */
.ly_news_detail_3 .left_side { width: 22%; }
.ly_news_detail_3 .left_side ul.list { margin: 0; padding: 0; list-style: none; }
.ly_news_detail_3 .left_side ul.list li {
    list-style: none;
    margin: 10px 0;                       /* .wrap-menu .name */
    border-bottom: 1px solid #eee;
}
.ly_news_detail_3 .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(--nd3-cate-color, #333333);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ly_news_detail_3 .left_side ul.list li a:hover,
.ly_news_detail_3 .left_side ul.list li.cur a {
    color: var(--nd3-cate-hover-color, #94C33B);
}
.ly_news_detail_3 .left_side .category_empty { padding: 16px 0; font-size: 14px; color: #999; }

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

/* ---------- 右栏: 横幅图 + 页面名称条 + 详情区 ---------- */
.ly_news_detail_3 .right_side { width: 75%; }
.ly_news_detail_3 .right_side.full { width: 100%; }
.ly_news_detail_3 .right_side .banner { margin-bottom: 24px; }
/* 第四轮验收: 横幅按图片实际分辨率展示 —— 不拉伸不裁剪, 图自然尺寸,
   超宽才被 max-width:100% 兜底缩放, 高度自适应 */
.ly_news_detail_3 .right_side .banner img {
    display: block;
    width: 100%;
    height: auto;
}
/* 页面名称条: 纯文字 16px #888(第二轮验收修订: 去 border-left 色块, 不再 30px/#333) */
.ly_news_detail_3 .right_side .page-name {
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #888888;
    margin: 0 0 18px 0;
}

.ly_news_detail_3 .detail_empty { padding: 60px 0; color: #999; text-align: center; }

/* 详情区: 标题/时间/浏览次数居中(原站 .ueeshop_responsive_info_detail>.title 与 .ext_mes) */
.ly_news_detail_3 .nd3_detail { padding: 6px 0 30px 0; margin: 30px 0; }
.ly_news_detail_3 .nd3_detail .title {
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    text-align: center;
    font-size: var(--nd3-pc-title-size, 20px);
    font-weight: 600;
    color: var(--nd3-news-title-color, #222222);
}
.ly_news_detail_3 .nd3_detail .ext_mes {
    text-align: center;
    margin: 8px 0 10px 0;
    font-size: 14px;
    color: var(--nd3-time-color, #333333);
}
.ly_news_detail_3 .nd3_detail .ext_mes > div {
    display: inline-block;
    margin: 0 8px;
}
/* 正文富文本: 首尾子元素的默认 margin 撑出多余空白 */
.ly_news_detail_3 .nd3_detail .contents {
    padding: 20px 0;
    margin-top: 0;
    line-height: 1.8;
    font-size: 16px;
    color: var(--nd3-content-color, #555555);
    word-break: break-word;
}
.ly_news_detail_3 .nd3_detail .contents > :first-child { margin-top: 0; }
.ly_news_detail_3 .nd3_detail .contents > :last-child { margin-bottom: 0; }
.ly_news_detail_3 .nd3_detail .contents img { max-width: 100%; height: auto; }
.ly_news_detail_3 .nd3_detail .contents:empty { display: none; }

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

/* ============================================================
   移动端
   ============================================================ */
@media screen and (max-width: 1000px) {
    /* 左栏在移动端隐藏: 详情页分类入口交给面包屑/页尾导航, 版面留给正文 */
    .ly_news_detail_3 .left_side { display: none; }
    .ly_news_detail_3 .right_side,
    .ly_news_detail_3 .right_side.full { width: 100%; }
    .ly_news_detail_3 .right_side .banner { margin-bottom: 16px; }
    .ly_news_detail_3 .right_side .page-name {
        padding: 0;
        font-size: 16px;
        margin: 15px 0 12px 0;
    }
    .ly_news_detail_3 .nd3_detail { padding: 4px 0 20px 0; margin: 10px 0; }
    .ly_news_detail_3 .nd3_detail .title { font-size: var(--nd3-mobile-title-size, 16px); }
    .ly_news_detail_3 .nd3_detail .ext_mes { margin: 6px 0 8px 0; font-size: 13px; }
    .ly_news_detail_3 .nd3_detail .contents { padding: 14px 0; font-size: 14px; }
}
