body.shangzuo-news-detail-page { background: var(--cream, #f8f0e7) !important; color: var(--ink, #1f201f) !important; font-family: RobotoLocal, Arial, sans-serif !important; }
body.shangzuo-news-detail-page .wp-site-blocks { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
body.shangzuo-news-detail-page .shangzuo-news-detail-main { padding-top:96px; background:var(--cream,#f8f0e7); font-family:RobotoLocal,Arial,sans-serif; overflow:hidden; }
body.shangzuo-news-detail-page .neiye_content { background:var(--cream,#f8f0e7)!important; }
body.shangzuo-news-detail-page .neiye_content_middle { width:min(1300px,calc(100% - 64px))!important; max-width:1300px!important; }
@media (max-width:900px) { body.shangzuo-news-detail-page .shangzuo-news-detail-main { padding-top:68px; } body.shangzuo-news-detail-page .neiye_content_middle { width:calc(100% - 36px)!important; } }


/* News detail content rail and dynamic recommendation cards. */
#news-detail-page .neiye_content{background:var(--cream,#f8f0e7)!important;}
#news-detail-page .neiye_content_middle{display:grid!important;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start;width:min(1600px,calc(100% - 120px))!important;max-width:1600px!important;margin:0 auto!important;}
#news-detail-page .neiye_content_middle_left,#news-detail-page .neiye_content_middle_right{width:auto!important;min-width:0!important;margin:0!important;}
#news-detail-page .neiye_content_middle_left_under{padding:clamp(24px,4vw,64px)!important;border-radius:12px;background:#fff;box-shadow:0 0 24px rgba(0,0,0,.06);}
#news-detail-page .neiye_content_middle_left_under h1{margin:0 0 20px!important;color:#1f201f!important;font-family:RobotoLocal,Arial,sans-serif!important;font-size:clamp(30px,3.2vw,54px)!important;font-weight:700!important;line-height:1.1!important;}
#news-detail-page .contents_remarks,#news-detail-page .contents_remarks p,#news-detail-page .contents_remarks li{color:#5f5a55!important;font-family:GoogleSansFlex,RobotoLocal,Arial,sans-serif!important;font-size:clamp(15px,1.05vw,18px)!important;line-height:1.75!important;}
#news-detail-page .contents_remarks img{display:block;max-width:100%;height:auto;margin:24px auto;}
#news-detail-page .news_category.RECOMMEND{position:sticky;top:24px;padding:24px!important;border-radius:12px;background:#fff!important;box-shadow:0 0 20px rgba(0,0,0,.05);}
#news-detail-page .news_category.RECOMMEND .news_category_under ul{display:grid;gap:22px;margin:0;padding:0;}
#news-detail-page .news_category.RECOMMEND .news_category_under li{margin:0!important;padding:0 0 18px;border-bottom:1px solid #e5ddd6;}
#news-detail-page .news_category.RECOMMEND .news_category_under_img img{display:block;width:100%;height:150px;object-fit:cover;border-radius:8px;}
#news-detail-page .news_category.RECOMMEND .news_category_under_img_name{margin-top:10px;line-height:1.35;}
#news-detail-page .news_category.RECOMMEND .news_category_under_img_name a{color:#1f201f!important;font-family:RobotoLocal,Arial,sans-serif;font-size:16px;}
#news-detail-page .news_category.RECOMMEND .news_category_under_img_name a:hover{color:#ff6a00!important;}
@media(max-width:900px){#news-detail-page .neiye_content_middle{grid-template-columns:1fr;width:calc(100% - 36px)!important;gap:28px;}#news-detail-page .news_category.RECOMMEND{position:static;}#news-detail-page .news_category.RECOMMEND .news_category_under ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}#news-detail-page .news_category.RECOMMEND .news_category_under_img img{height:120px;}}
@media(max-width:640px){#news-detail-page .news_category.RECOMMEND .news_category_under ul{grid-template-columns:1fr;}#news-detail-page .news_category.RECOMMEND .news_category_under_img img{height:180px;}}

/* News detail reference orange layout and responsive content. */
body.shangzuo-news-detail-page { --theme:#ff6a00; --minor:#ff6a00; }
body.shangzuo-news-detail-page .bread a:hover,body.shangzuo-news-detail-page .news_prev_next a:hover { color:#ff6a00!important; }
body.shangzuo-news-detail-page .contents_remarks { overflow-wrap:anywhere; }
body.shangzuo-news-detail-page .contents_remarks img { display:block; max-width:100%; height:auto; margin:0 auto 22px; border-radius:8px; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_top { color:#2b211c; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img img { display:block; width:100%; height:150px; object-fit:cover; border-radius:8px; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img_name a:hover { color:#ff6a00!important; }
body.shangzuo-news-detail-page .wpcf7-submit { background:#ff6a00!important; border-color:#ff6a00!important; color:#fff!important; }
body.shangzuo-news-detail-page .wpcf7-submit:hover { background:#e9500d!important; border-color:#e9500d!important; }
@media(max-width:900px){body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img img{height:120px;}}
@media(max-width:640px){body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img img{height:auto;aspect-ratio:1.6;}}


/* News detail reference polish: banner, metadata row and sidebar alignment. */
body.shangzuo-news-detail-page .neiye_content_banner { margin-top:0!important; padding-top:0!important; }
body.shangzuo-news-detail-page .neiye_banner_img { margin-top:0!important; padding-top:0!important; }
body.shangzuo-news-detail-page .neiye_content_middle { display:grid!important; grid-template-columns:minmax(0,71fr) minmax(0,26fr); gap:3%!important; align-items:start; width:min(1300px,calc(100% - 96px))!important; max-width:1300px!important; margin:0 auto!important; }
body.shangzuo-news-detail-page .neiye_content_middle_left { width:100%!important; min-width:0; }
body.shangzuo-news-detail-page .neiye_content_middle_right { width:100%!important; min-width:0; margin-top:90px!important; }
body.shangzuo-news-detail-page .neiye_content_middle_left_top { width:100%!important; height:90px; line-height:90px; }
body.shangzuo-news-detail-page .neiye_content_middle_left_top > span:first-child img { display:inline-block; width:18px; height:18px; object-fit:contain; margin:0 6px 0 0; vertical-align:-3px; }
body.shangzuo-news-detail-page .news_remarks_list { display:flex!important; align-items:center!important; justify-content:center!important; gap:24px; width:100%; margin:18px 0 0!important; text-align:center!important; }
body.shangzuo-news-detail-page .news_remarks_list > span { display:inline-flex!important; align-items:center; gap:6px; white-space:nowrap; color:#81766f; font:400 13px/1.4 RobotoLocal,Arial,sans-serif; }
body.shangzuo-news-detail-page .news_remarks_list > span img { display:block; width:16px; height:16px; object-fit:contain; margin:0!important; }
body.shangzuo-news-detail-page .news_category.RECOMMEND { width:100%!important; margin-top:0!important; padding:8% 8% 14%!important; border-radius:20px!important; background:#fff!important; box-shadow:0 0 16px 12px rgba(0,0,0,.03); box-sizing:border-box; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_top { display:flex; align-items:center; justify-content:space-between; margin:0; color:#2b211c; font:700 clamp(20px,1.7vw,28px)/1.25 RobotoLocal,Arial,sans-serif; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under ul { display:block; margin:0; padding:0; list-style:none; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under li { margin:6% 0 0!important; padding:0; border:0; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:20px; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img_name { margin-top:2%; padding:4% 6%; text-align:center; line-height:1.3; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img_name a { color:#2b211c!important; font:500 clamp(15px,1.2vw,20px)/1.3 RobotoLocal,Arial,sans-serif; }
body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img_name a:hover { color:#ff6a00!important; }
@media(max-width:900px){ body.shangzuo-news-detail-page .neiye_content_middle { grid-template-columns:minmax(0,1fr); width:calc(100% - 36px)!important; } body.shangzuo-news-detail-page .neiye_content_middle_right { margin-top:28px!important; } body.shangzuo-news-detail-page .news_remarks_list { gap:16px; } body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; } body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under li { margin:0!important; } }
@media(max-width:640px){ body.shangzuo-news-detail-page .neiye_content_middle { width:calc(100% - 28px)!important; } body.shangzuo-news-detail-page .neiye_content_middle_left_top { height:72px; line-height:72px; } body.shangzuo-news-detail-page .news_remarks_list { gap:12px; flex-wrap:wrap; } body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under ul { grid-template-columns:minmax(0,1fr); } body.shangzuo-news-detail-page .news_category.RECOMMEND .news_category_under_img img { border-radius:14px; } }

/* 2026-10-30: align RECOMMEND with the detail content rail on desktop. */
@media (min-width:901px){
  body.shangzuo-news-detail-page .neiye_content_middle_right{margin-top:0!important;}
}

/* 2026-10-30: final detail rail alignment override. */
@media (min-width:901px){
  body.shangzuo-news-detail-page #news-detail-page .neiye_content_middle,
  body.shangzuo-news-detail-page .shangzuo-news-detail-embed .neiye_content_middle{display:grid!important;grid-template-columns:minmax(0,71fr) minmax(0,26fr)!important;gap:3%!important;align-items:start!important;}
  body.shangzuo-news-detail-page #news-detail-page .neiye_content_middle_right,
  body.shangzuo-news-detail-page .shangzuo-news-detail-embed .neiye_content_middle_right{margin-top:0!important;align-self:start!important;}
}

/* 2026-10-30: match reference news-detail middle layout; header/footer untouched. */
@media (min-width:901px){
 body.shangzuo-news-detail-page .neiye_content_middle{
  display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:flex-start!important;
  width:min(1300px,calc(100% - 96px))!important;max-width:1300px!important;margin:0 auto!important;padding-bottom:5%!important;gap:3%!important;
 }
 body.shangzuo-news-detail-page .neiye_content_middle_left{width:71%!important;min-width:0!important;margin:0!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{width:26%!important;min-width:0!important;margin:90px 0 0!important;position:static!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left_under{width:100%!important;box-sizing:border-box!important;padding:5%!important;border-radius:20px!important;background:#fff!important;box-shadow:0 0 1em .8em rgba(0,0,0,.03)!important;}
 body.shangzuo-news-detail-page .news_category.RECOMMEND{width:100%!important;margin:0!important;padding:8% 8% 14%!important;box-sizing:border-box!important;border-radius:20px!important;}
}
@media (max-width:900px){
 body.shangzuo-news-detail-page .neiye_content_middle{display:block!important;width:calc(100% - 36px)!important;padding-bottom:10%!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left,body.shangzuo-news-detail-page .neiye_content_middle_right{width:100%!important;min-width:0!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{margin:32px 0 0!important;position:static!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left_under{width:100%!important;box-sizing:border-box!important;padding:28px 24px!important;border-radius:14px!important;}
}
@media (max-width:600px){
 body.shangzuo-news-detail-page .neiye_content_middle{width:calc(100% - 28px)!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left_under{padding:22px 18px!important;}
}

/* 2026-10-30: keep the reference detail rail at tablet/zoom widths. */
@media (min-width:761px){
 body.shangzuo-news-detail-page .neiye_content_middle{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;width:min(1300px,calc(100% - 64px))!important;max-width:1300px!important;gap:3%!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left{display:block!important;width:71%!important;min-width:0!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{display:block!important;width:26%!important;min-width:0!important;margin:90px 0 0!important;position:static!important;}
 body.shangzuo-news-detail-page .news_category.RECOMMEND{display:block!important;width:100%!important;margin:0!important;}
}
@media (max-width:760px){
 body.shangzuo-news-detail-page .neiye_content_middle{display:block!important;width:calc(100% - 28px)!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left,body.shangzuo-news-detail-page .neiye_content_middle_right{display:block!important;width:100%!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{margin:32px 0 0!important;}
}

/* 2026-10-30: match Contact breadcrumb typography. */
body.shangzuo-news-detail-page .neiye_content_middle_left_top,
body.shangzuo-news-detail-page .neiye_content_middle_left_top .bread,
body.shangzuo-news-detail-page .neiye_content_middle_left_top .bread a{font-size:15px!important;line-height:1.4!important;}
@media(max-width:600px){body.shangzuo-news-detail-page .neiye_content_middle_left_top,body.shangzuo-news-detail-page .neiye_content_middle_left_top .bread,body.shangzuo-news-detail-page .neiye_content_middle_left_top .bread a{font-size:14px!important;}}

/* 2026-10-30: desktop/tablet rail remains two-column down to 601px CSS width. */
@media (min-width:601px){
 body.shangzuo-news-detail-page .neiye_content_middle{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;width:calc(100% - 48px)!important;max-width:1300px!important;gap:3%!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left{display:block!important;width:71%!important;min-width:0!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{display:block!important;width:26%!important;min-width:0!important;margin:90px 0 0!important;position:static!important;}
 body.shangzuo-news-detail-page .news_category.RECOMMEND{display:block!important;width:100%!important;margin:0!important;}
}
@media (max-width:600px){
 body.shangzuo-news-detail-page .neiye_content_middle{display:block!important;width:calc(100% - 28px)!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_left,body.shangzuo-news-detail-page .neiye_content_middle_right{display:block!important;width:100%!important;}
 body.shangzuo-news-detail-page .neiye_content_middle_right{margin:32px 0 0!important;}
}

/* 2026-10-30: remove detail Recommend and use full-width article rail. */
body.shangzuo-news-detail-page .neiye_content_middle_right{display:none!important;}
body.shangzuo-news-detail-page .neiye_content_middle{display:block!important;width:min(1300px,calc(100% - 64px))!important;max-width:1300px!important;}
body.shangzuo-news-detail-page .neiye_content_middle_left{display:block!important;width:100%!important;min-width:0!important;}
@media(max-width:600px){body.shangzuo-news-detail-page .neiye_content_middle{width:calc(100% - 28px)!important;}}

/* 2026-10-30: full-width article rail after removing Recommend. */
body.shangzuo-news-detail-page .neiye_content_middle{display:block!important;width:calc(100% - 64px)!important;max-width:none!important;margin:0 auto!important;}
body.shangzuo-news-detail-page .neiye_content_middle_left{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;}
body.shangzuo-news-detail-page .neiye_content_middle_left_under{width:100%!important;max-width:none!important;box-sizing:border-box!important;}
@media(max-width:600px){body.shangzuo-news-detail-page .neiye_content_middle{width:calc(100% - 28px)!important;}body.shangzuo-news-detail-page .neiye_content_middle_left_under{padding:22px 18px!important;}}
