﻿/* ============================================================
   YINHAI MACHINERY - Foreign Trade Website
   Framework modeled on firstmach.com (green B2B layout)
   ============================================================ */

:root {
  --green: #81ce4c;
  --green-dark: #5ab21e;
  --green-deep: #329b00;
  --accent: #ffbb36;
  --red: #e63619;
  --bg: #f7f7f7;
  --bg2: #f5f5f5;
  --deco: #d5d5d5;
  --foot: #5c5c5c;
  --foot2: #424242;
  --text: #222;
  --muted: #999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px; line-height: 1.5;
  overflow-x: hidden; color: var(--text); background: #fff;
}
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; display: block; }
a { color: #000; text-decoration: none; transition: 0.3s; }
a:hover { color: var(--green); cursor: pointer; }
ul, li, dl, dt, dd { list-style: none; }
input, select, textarea { font-size: 14px; border: none; outline: none; font-family: inherit; }
button { font-family: inherit; cursor: pointer; }
.warper { width: 1320px; margin: 0 auto; position: relative; max-width: 100%; }
.changpic { width: 100%; overflow: hidden; }
.changpic img { width: 100%; transition: transform 0.5s; }
.w_p_main { background: #fff; overflow: hidden; }

.home_tit { font-size: 38px; text-transform: uppercase; color: var(--text); font-weight: bold; }
.page_tit { font-size: 32px; text-transform: uppercase; font-weight: bold; }

/* ============ Fixed header ============ */
header { width: 100%; height: 100px; background: #fff; z-index: 999; position: fixed; top: 0; left: 0; }
header:before { content: none; } /* removed green strip per client request - header all white */
.logo { position: absolute; left: 204px; top: 22px; z-index: 2; display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 56px; height: 56px; border-radius: 6px;
  background: #fff; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 26px; letter-spacing: -1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.logo-text strong { display: block; font-size: 21px; color: #fff; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 11px; color: rgba(255,255,255,0.85); letter-spacing: 1px; text-transform: uppercase; }
/* CMS 上传的 logo 图片：限制尺寸，防止压住导航（原图可能很宽） */
.logo img.logo-img { max-height: 46px; width: auto; max-width: 150px; object-fit: contain; display: block; }

#nav:after { content: ''; display: block; clear: both; }
#nav .nav-button { display: none; width: 35px; height: 35px; z-index: 5; border-radius: 3px; background: var(--green); color: #fff; position: absolute; right: 10px; top: 14px; line-height: 35px; text-align: center; }
.nav-button svg { width: 22px; height: 22px; }
.close-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0; visibility: hidden; transition: 0.5s; z-index: 88; }
.close-open { opacity: 0.5; visibility: visible; }

nav { float: right; margin-right: 394px; }
nav ul li { float: left; position: relative; margin: 0 22px; }
nav ul li > a { text-transform: uppercase; font-size: 17px; font-weight: bold; line-height: 100px; display: block; text-align: center; color: #222; }
nav ul li.on > a, nav ul li:hover > a { color: var(--green); }
nav dl { position: absolute; display: none; background: #fff; min-width: 200px; top: 100px; left: 0; z-index: 999; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
nav ul li:hover dl, nav ul li:focus-within dl { display: block; }
nav dl dd a { font-size: 15px; color: #666; display: block; padding: 12px 22px; text-align: left; white-space: nowrap; }
nav dl dd a:hover { background: var(--green); color: #fff !important; }

.head_rcon { position: absolute; right: 120px; top: 0; width: 248px; height: 100px; }
.h_email { height: 98px; line-height: 98px; float: left; width: 50px; }
.h_email svg { width: 22px; height: 22px; color: var(--green); }
.h_email a { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.searchform { position: absolute; right: 0; top: 34px; margin: 0; overflow: hidden; width: 170px; }
.searchform input { width: 100%; font-size: 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 30px; color: #333; line-height: 30px; padding: 0 40px 0 10px; }
.searchform button { width: 30px; height: 30px; line-height: 28px; border-radius: 30px; background: var(--green); border: 0; color: #fff; text-align: center; position: absolute; right: 1px; top: 1px; display: flex; align-items: center; justify-content: center; }
.searchform button svg { width: 15px; height: 15px; }

/* ============ Banner ============ */
.banner { margin-top: 100px; position: relative; overflow: hidden; height: calc(100vh - 100px); min-height: 560px; }
.banner .item { display: none; }
.banner .item.on { display: block; height: 100%; }
.banner .item a { display: block; height: 100%; }
.banner .item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.banner .slick-dots { position: absolute; bottom: 6%; width: 100%; z-index: 555; text-align: center; }
.banner .slick-dots button { font-size: 0; display: inline-block; width: 34px; height: 5px; margin: 0 10px; border: 0; background: #fff; cursor: pointer; }
.banner .slick-dots button.on { background: var(--green); }
.banner .banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 58px; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.35); color: #fff; cursor: pointer; transition: background 0.3s;
}
.banner .banner-arrow svg { width: 26px; height: 26px; }
.banner .banner-arrow:hover { background: var(--green); }
.banner .slick_prev { left: 0; border-radius: 0 4px 4px 0; }
.banner .slick_next { right: 0; border-radius: 4px 0 0 4px; }

/* ============ Homepage products (left list + right image) ============ */
.in_pline { background: var(--bg); padding: 72px 0 90px 0; width: 100%; overflow: hidden; }
.in_pline .warper { display: flex; align-items: stretch; }
.in_pline .lcon { width: 590px; flex: 0 0 590px; float: none; }
.in_pline .rcon { margin-left: 0; padding-left: 46px; flex: 1 1 auto; min-width: 0; }
.in_linewar { margin-top: 20px; }
.in_linewar > li { margin-bottom: 7px; overflow: hidden; }
.in_linewar > li:last-child { margin-bottom: 0; }
.in_liitem a { background: #fff; overflow: hidden; padding: 15px; display: block; width: 100%; border-right: 3px solid #fff; }
.in_liitem .i_liicon { float: left; width: 148px; }
.in_liitem .i_liicon .changpic { border: 1px solid #ebebeb; }
.in_liitem .i_liicon .changpic img { width: 100%; height: 148px; object-fit: cover; }
.in_liitem .i_riicon { margin-left: 148px; padding: 15px 15px 0 20px; }
.in_liitem .i_riicon p { font-size: 20px; height: 28px; line-height: 28px; overflow: hidden; text-transform: uppercase; font-weight: bold; }
.in_liitem .i_riicon span { font-size: 16px; display: block; line-height: 22px; height: 44px; overflow: hidden; color: #999; }
/* active / hover card: green bg, orange 3px right border (exact firstmach style) */
.in_liitem:hover > a, .in_linewar > li.on .in_liitem a { background: var(--green); color: #fff; border-right: 3px solid var(--accent); }
.in_liitem:hover > a .i_riicon span, .in_linewar > li.on .in_liitem a .i_riicon span { color: rgba(255,255,255,0.6); }
.in_liitem:hover .changpic img, .in_pline .rcon ul li.on .changpic img { transform: scale(1.15); }
.in_pline .rcon ul { height: 100%; }
.in_pline .rcon ul li { display: none; height: 100%; }
.in_pline .rcon ul li.on { display: block; }
.in_pline .rcon .changpic { height: 100%; }
.in_pline .rcon .changpic img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Stats bar ============ */
.in_num { width: 100%; background: linear-gradient(rgba(10,20,10,0.55), rgba(10,20,10,0.55)), url("../assets/images/hero-quarry.jpg") top center no-repeat; padding: 36px 0; background-size: cover; }
.in_numwar { width: 100%; overflow: hidden; }
.in_numwar > li { float: left; position: relative; width: 25%; padding: 22px 0 22px 4%; }
.in_numwar > li:before { content: ""; width: 1px; height: 100%; position: absolute; right: 0; top: 0; background: #6c7584; }
.in_numwar > li:last-child:before { display: none; }
.in_numwar .nicon { width: 60px; height: 60px; color: #fff; float: left; display: flex; align-items: center; justify-content: center; background: var(--green); }
.in_numwar .nicon svg { width: 32px; height: 32px; }
.in_numsz { margin-left: 75px; text-align: left; }
.in_numsz p { font-size: 16px; color: #fff; line-height: 42px; height: 42px; }
.in_numsz p b { font-size: 38px; vertical-align: -2px; }
.in_numsz span { color: #fff; font-size: 16px; display: inline-block; margin-top: 5px; }

/* ============ About card ============ */
.in_ab { width: 100%; background: var(--bg); padding: 38px 0 78px 0; }
.in_abbox { background: #fff; overflow: hidden; width: 100%; box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05); display: flex; align-items: stretch; }
.in_abbox .in_ablcon { flex: 0 0 46%; position: relative; }
.in_abbox .in_ablcon .changpic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.in_abbox .in_ablcon .changpic img { width: 100%; height: 100%; object-fit: cover; }
.in_abbox .in_abrcon { flex: 1; padding: 52px 40px 44px 60px; }
.in_abtxt { margin-top: 25px; }
.in_abtxt p { line-height: 26px; color: #555; font-size: 16px; margin-bottom: 14px; }
.ab_stats { margin-top: 26px; padding: 22px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; overflow: hidden; }
.ab_stats li { float: left; width: 33.33%; text-align: center; }
.ab_stats li + li { border-left: 1px solid #ececec; }
.ab_stats b { display: block; font-size: 30px; color: var(--green-dark); line-height: 36px; }
.ab_stats span { display: block; margin-top: 4px; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.about_more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 30px; background: var(--green); color: #fff; font-size: 15px; font-weight: bold; letter-spacing: 1px; transition: background 0.3s; }
.about_more svg { width: 18px; height: 18px; }
.about_more:hover { background: var(--green-dark); color: #fff; }
.icon-circle-arrow { display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s; margin-top: 30px; width: 35px; height: 35px; border-radius: 35px; background: var(--green); color: #fff; }
.icon-circle-arrow svg { width: 18px; height: 18px; }
.icon-circle-arrow:hover { transform: rotate(45deg); color: #fff; }

/* ============ Hot products ============ */
.in_hotpro { background: var(--bg); padding: 60px 0 110px 0; position: relative; }
.in_hotpro:before { content: ''; width: 60%; height: 235px; background: var(--deco); position: absolute; top: 0; left: 0; }
.in_hotswiper { margin-top: 20px; position: relative; }
.hot_viewport { overflow: hidden; }
.hot_track { display: flex; transition: transform 0.5s ease; }
.hot_track .item { flex: 0 0 25%; padding: 0 10px 18px; }
.in_proitem { background: #fff; transition: all 0.3s; box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05); position: relative; height: 100%; }
.in_proitem .changpic img { width: 100%; }
.in_protxt { padding: 30px 18px 34px 18px; }
.in_protxt h2 { font-size: 18px; line-height: 27px; overflow: hidden; color: #222; }
.in_protxt p { font-size: 15px; line-height: 22px; color: #999; height: 66px; overflow: hidden; margin-top: 10px; }
.in_proitem .i_arrow { position: absolute; bottom: -17px; right: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; width: 35px; height: 35px; border-radius: 35px; background: var(--green); color: #fff; z-index: 2; }
.in_proitem .i_arrow svg { width: 16px; height: 16px; }
.in_proitem:hover { background: var(--green); }
.in_proitem:hover .in_protxt h2, .in_proitem:hover .in_protxt p { color: #fff; }
.in_proitem:hover .i_arrow { transform: rotate(45deg); background: #fff; color: var(--green); }
.in_proitem:hover .changpic img { transform: scale(1.12); }
.custom_paging { position: absolute; top: 35%; left: 0; width: 100%; z-index: 5; }
.custom_paging .slick-arrow { cursor: pointer; width: 49px; height: 50px; text-align: center; display: flex; align-items: center; justify-content: center; background: #fff; }
.custom_paging .slick-arrow svg { width: 22px; height: 22px; color: #9ea2a2; }
.custom_paging .slick_prev { position: absolute; left: -70px; }
.custom_paging .slick_next { position: absolute; right: -70px; }
.custom_paging .slick-arrow:hover { background: var(--green); }
.custom_paging .slick-arrow:hover svg { color: #fff; }

/* ============ Solutions ============ */
.in_process { background: #fff; padding: 50px 0 96px 0; position: relative; }
.in_process:before { content: ''; width: 40%; height: 258px; background: var(--deco); position: absolute; top: 0; right: 0; }
.in_disbox { margin-top: 25px; display: flex; gap: 24px; }
.in_disbox > li { flex: 1; }
.in_disitem { position: relative; display: block; height: 430px; overflow: hidden; }
.in_disitem .changpic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.in_disitem .changpic img { width: 100%; height: 100%; object-fit: cover; }
.in_distxt { position: absolute; bottom: 0; color: #fff; width: 100%; left: 0; padding: 80px 34px 30px 34px; background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.78)); }
.in_distxt h4 { color: #fff; font-size: 20px; height: 30px; line-height: 30px; overflow: hidden; }
.in_distxt p { margin-top: 8px; line-height: 22px; font-size: 15px; color: rgba(255,255,255,0.8); height: 44px; overflow: hidden; }
.in_distxt span { display: inline-block; margin-top: 16px; padding: 4px 40px; border: 1px solid rgba(255,255,255,0.7); border-radius: 3px; color: rgba(255,255,255,0.7); font-size: 15px; }
.in_disitem:hover .changpic img { transform: scale(1.12); }
.in_disitem:hover .in_distxt h4 { color: var(--green); }
.in_disitem:hover .in_distxt span { color: #fff; border-color: var(--green); background: var(--green); }

/* ============ Cases ============ */
.in_case { background: var(--bg); padding: 90px 0 106px 0; position: relative; }
.in_case:before { content: ""; width: 100%; height: 280px; background: var(--deco); position: absolute; top: 0; left: 0; }
.in_caselist { width: 100%; overflow: hidden; }
.in_caselist > li { width: 32.3%; float: left; margin-right: 1.5%; margin-bottom: 18px; }
.in_caselist > li:nth-of-type(3n) { margin-right: 0; }
.in_caseitem { position: relative; display: block; }
.in_caseitem .i_ctxt { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; z-index: 55; top: 0; left: 0; background: rgba(146,227,84,0.8); transform: scaleX(0); transition: all 500ms ease; }
.i_ctxt h6 { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: all 500ms ease; background: #fff; border-radius: 60px; color: var(--green); }
.i_ctxt h6 svg { width: 24px; height: 24px; }
.in_caseitem:hover .i_ctxt, .in_caseitem:hover .i_ctxt h6 { transform: scaleX(1); }
.in_caseitem:hover .changpic img { transform: scale(1.12); }

/* ============ Homepage news ============ */
/* news carousel: head row with arrows + sliding track (3 per view) */
.news_head { display: flex; align-items: center; justify-content: space-between; }
.news_nav { display: flex; gap: 8px; }
.news_nav button { width: 42px; height: 42px; background: #fff; border: 1px solid #e3e3e3; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.news_nav button svg { width: 20px; height: 20px; color: #9ea2a2; }
.news_nav button:hover { background: var(--green); border-color: var(--green); }
.news_nav button:hover svg { color: #fff; }
.news_viewport { overflow: hidden; margin-top: 34px; }
.news_list.news_track { display: flex; transition: transform 0.5s ease; }
.news_track > li { flex: 0 0 33.333%; width: auto; float: none; margin: 0; padding: 0 8px; box-sizing: border-box; }
.news_track > li .newsitem { height: 100%; }
.newsitem { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.newsitem:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.newsitem .changpic { height: 220px; }
.newsitem .changpic img { width: 100%; height: 100%; object-fit: cover; }
.news_txt { padding: 22px 24px 26px 24px; }
.news_date { display: inline-block; font-size: 13px; color: var(--green-dark); font-weight: bold; letter-spacing: 1px; }
.news_txt h4 { margin-top: 10px; font-size: 18px; line-height: 26px; height: 52px; overflow: hidden; text-transform: uppercase; }
.news_txt p { margin-top: 10px; font-size: 14px; line-height: 22px; color: #999; height: 66px; overflow: hidden; }
.news_more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: bold; color: var(--green-dark); text-transform: uppercase; }
.news_more:after { content: " >"; }
.newsitem:hover .news_more { color: var(--accent); }
.newsitem:hover h4 { color: var(--green-dark); }

/* ============ Right fixed contact bar (below banner, expand leftward) ============ */
/* ============ Floating contact FAB (folded, bottom-right) ============ */
.yfab { position: fixed; right: 22px; bottom: 26px; z-index: 700; display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* 聊天主球：蓝紫渐变，展开后变 × */
.yfab-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #4f7dfa 0%, #8a5cf6 100%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(101, 88, 246, 0.4); transition: transform 0.3s, box-shadow 0.3s;
}
.yfab-btn svg { width: 26px; height: 26px; }
.yfab-btn .ico-close { display: none; }
.yfab-btn .dot { fill: #7c5cf6; stroke: none; }
.yfab.open .yfab-btn .ico-chat { display: none; }
.yfab.open .yfab-btn .ico-close { display: block; }
.yfab-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(101, 88, 246, 0.5); }
/* 回顶部球：纯蓝，始终在聊天气泡上方 */
.yfab-top {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #2f6bff; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(47, 107, 255, 0.35); transition: transform 0.3s, background 0.3s;
}
.yfab-top svg { width: 20px; height: 20px; }
.yfab-top:hover { background: #1f56d9; transform: scale(1.06); }
/* 上弹联系菜单 */
.yfab-menu { position: absolute; right: 8px; bottom: 122px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.yfab-item {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.8);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.yfab.open .yfab-item { opacity: 1; visibility: visible; transform: none; transition-delay: inherit; }
.yfab-item svg { width: 21px; height: 21px; }
.yfab-item.wa   { background: #25d366; }
.yfab-item.tel  { background: var(--red); }
.yfab-item.mail { background: #fea322; }
.yfab-item.home { background: #43506b; }
.yfab-item:hover { transform: scale(1.08); }
/* hover 提示标签（向左弹出） */
.yfab-tip {
  position: absolute; right: 52px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: #333; color: #fff; font-size: 13px; line-height: 1; padding: 8px 12px;
  border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.yfab-item:hover .yfab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.yfab-tip:after {
  content: ""; position: absolute; left: 100%; top: 50%; margin-top: -4px;
  border: 4px solid transparent; border-left-color: #333;
}
@media screen and (max-width: 1024px) {
  .yfab { right: 14px; bottom: 70px; } /* 避开移动端底部 footmenu 导航条 */
}

/* ============ Footer ============ */
footer { background: var(--foot); overflow: hidden; }
.f_top { border-bottom: 1px solid #747474; }
.f_top ul { width: 100%; overflow: hidden; }
.f_top ul > li { width: 33.333%; border-right: 1px solid #747474; float: left; padding: 35px 0 35px 38px; }
.f_top ul > li:last-child { border-right: 0; }
.f_lxitem { width: 100%; position: relative; padding-left: 54px; }
.f_lxitem svg { position: absolute; top: 0; left: 0; color: #fff; width: 35px; height: 35px; }
.f_lxitem p { color: rgba(255,255,255,0.6); }
.f_lxitem span { font-size: 24px; color: #fff; font-weight: bold; }
.f_lxitem span a { color: #fff; }
.f_lxitem:hover span, .f_lxitem:hover span a { color: #329b00; }
.f_nav { width: 100%; overflow: hidden; padding: 55px 0 40px 0; }
.f_item1 { float: left; width: 23%; }
.f_logo { display: flex; align-items: center; justify-content: center; gap: 10px; background: #6d6d6d; padding: 20px 0 18px 0; }
.f_logo .logo-mark { width: 46px; height: 46px; font-size: 20px; box-shadow: none; }
.f_logo strong { color: #fff; font-size: 16px; }
.f_item1 p.f_desc { margin-top: 20px; color: rgba(255,255,255,0.7); font-size: 15px; line-height: 22px; }
.f_nav h4 { font-size: 26px; margin-bottom: 32px; text-transform: uppercase; color: #fff; }
.f_navli li { line-height: 22px; margin-bottom: 20px; font-size: 15px; }
.f_navli li a { color: rgba(255,255,255,0.7); }
.f_navli li a:hover { color: #fff; text-decoration: underline; }
.f_nav .f_item2 { float: left; width: 20%; margin-left: 5%; padding-top: 32px; }
.f_nav .f_item3 { float: left; width: 19%; margin-left: 2%; padding-top: 32px; }
.f_nav .f_item4 { float: right; width: 22%; padding-top: 32px; }
.f_nav .f_item4 ul li { margin-bottom: 11px; position: relative; }
.f_nav .f_item4 input { width: 100%; border-radius: 3px; font-size: 15px; padding: 0 50px 0 18px; background: #9d9d9d; height: 42px; line-height: 42px; color: rgba(255,255,255,0.9); }
.f_nav .f_item4 input::placeholder { color: rgba(255,255,255,0.7); }
.f_nav .f_item4 button { position: absolute; right: 0; top: 0; width: 42px; height: 42px; border-radius: 3px; border: none; background: #fff; color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.f_nav .f_item4 button svg { width: 20px; height: 20px; }
.f_nav .f_item4 button:hover { opacity: 0.85; }
.f_msgok { display: none; color: #b6e79a; font-size: 14px; margin-top: 8px; }
footer .copyright { background: var(--foot2); margin-top: 40px; text-align: center; padding: 15px 0; font-size: 15px; clear: both; color: rgba(153,153,153,0.6); }

/* ============ Mobile bottom menu ============ */
.footmenu { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 5; display: none; }
.footmenu .con { background: #f39800; display: flex; }
.footmenu a { color: #fff; font-size: 14px; display: block; width: 25%; text-align: center; padding: 6px 0 8px 0; }
.footmenu svg { display: block; width: 24px; height: 24px; margin: 0 auto 2px; }

/* ============ Inner pages ============ */
.subbanner { margin-top: 100px; }
.sub_pic img { width: 100%; aspect-ratio: 1536 / 430; max-height: 560px; min-height: 180px; object-fit: cover; object-position: left top; }
.sub_link { background: var(--bg2); padding: 10px 0; position: relative; overflow: hidden; }
.sub_link .warper { display: flex; align-items: center; }
.sub_link .pos { display: flex; align-items: center; gap: 8px; color: #444; position: relative; z-index: 1; }
.sub_link .pos svg { width: 22px; height: 22px; color: var(--green); }
.sub_link .pos span { font-size: 17px; text-transform: uppercase; font-weight: bold; }
.sub_link:before { content: ""; position: absolute; right: 0; top: 0; width: 33%; background: var(--deco); height: 100%; }
.media { margin-left: auto; position: relative; z-index: 1; }
.media a { width: 35px; height: 35px; margin-left: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--green); border-radius: 38px; }
.media a svg { width: 17px; height: 17px; }
.media a:hover { background: var(--green); color: #fff; }
.paddt80 { padding-top: 80px; }

/* Products page: lion rows */
.pro_lion { padding-bottom: 80px; }
.lion_item { width: 100%; overflow: hidden; background: var(--bg2); margin-bottom: 24px; }
.lion_item .lcon { float: left; width: 48%; padding: 52px 48px 0 40px; }
.lion_item .rcon { float: right; width: 52%; }
.lion_item .lcon span { font-size: 17px; color: var(--green); text-transform: uppercase; font-weight: bold; }
.lion_item .lcon h3 { font-size: 32px; text-transform: uppercase; }
.lion_pp { margin-top: 35px; line-height: 22px; color: #999; }
.lion_pp p { margin-bottom: 18px; }
.lion_item .lion_more { display: inline-block; margin: 4px 0 40px 0; padding: 10px 38px; border: 1px solid var(--green); color: var(--green-deep); border-radius: 3px; font-size: 15px; }
.lion_item .lion_more:hover { background: var(--green); color: #fff; }

/* Products grid — CSS Grid 统一卡片高度（float 布局遇高度不齐会卡住错位） */
.pro_listwar { position: relative; padding-top: 92px; padding-bottom: 74px; background: var(--bg2); }
.pro_listwar:before { content: ''; position: absolute; width: 100%; top: 0; left: 0; height: 326px; background: var(--deco); }
.pro_listwar .home_tit { text-align: right; }
.pro_list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 26px; margin-top: 28px; }
.pro_list > li { margin: 0; }
.pro_list .changpic { height: 210px; }
.pro_list .changpic img { width: 100%; height: 100%; object-fit: cover; }
.pro_list .in_proitem { height: 100%; }
.pro_list .in_proitem .in_protxt h2 { white-space: normal; height: auto; line-height: 24px; }
/* 详情页相关产品：3 列 */
.pro_listwar.related .pro_list { grid-template-columns: repeat(3, 1fr); }
/* 分页 */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pager button { min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid #ddd; background: #fff; color: #333; font-size: 15px; line-height: 38px; cursor: pointer; border-radius: 3px; transition: all 0.3s; }
.pager button:hover { border-color: var(--green); color: var(--green); }
.pager button.on { background: var(--green); border-color: var(--green); color: #fff; }
.pager button:disabled { opacity: 0.45; cursor: default; }
@media screen and (max-width: 1024px) {
  .pro_list { grid-template-columns: repeat(3, 1fr); gap: 42px 18px; }
  .pro_list .changpic { height: 180px; }
}
@media screen and (max-width: 640px) {
  .pro_list { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .pro_list .changpic { height: 140px; }
  .pro_list .in_protxt { padding: 20px 14px 28px 14px; }
}

/* Product detail */
.del_picwar { width: 100%; overflow: hidden; padding-bottom: 80px; }
.del_picwar .lcon { width: 50%; float: left; padding-right: 28px; }
.del_picwar .rcon { margin-left: 50%; padding: 24px 0 0 45px; }
.del_picwar .rcon h1 { font-size: 32px; text-transform: uppercase; }
.del_desc { margin-top: 20px; }
.del_desc p { font-size: 18px; line-height: 26px; color: #333; }
.prodel_xl { margin-top: 40px; }
.prodel_xl ul { width: 100%; margin-top: 12px; }
.prodel_xl ul li { background: var(--bg2); width: 100%; margin-bottom: 5px; padding: 15px 0 15px 15px; font-size: 20px; }
.prodel_xl ul li h6 { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 38px; color: #fff; background: var(--green); margin-right: 8px; vertical-align: middle; }
.prodel_xl ul li h6 svg { width: 18px; height: 18px; }
.prodel_xl ul li a { color: #444; }
.prodel_xl ul li:hover a { color: var(--green); }
.del_block .del_item { padding: 62px 0 40px 0; position: relative; margin-bottom: 48px; overflow: hidden; }
.del_block .del_item:before { width: 50%; height: 256px; background: var(--deco); content: ""; position: absolute; top: 0; left: 0; }
.del_block .del_item:nth-of-type(even):before { left: auto; right: 0; }
.del_block .del_item:nth-of-type(even) h3 { text-align: right; }
.del_item h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 16px; }
/* keep real content above the :before deco block (positioned deco paints over static content) */
.del_item > h3, .del_item .pro_table { position: relative; z-index: 1; }
.del_item .del_txt { position: relative; z-index: 1; background: #fff; padding: 20px 26px; box-shadow: 0 1px 5px rgba(0,0,0,0.06); }
.del_txt p, .del_txt ul li { line-height: 22px; color: #666; font-size: 15px; margin-bottom: 10px; }
.del_txt ul { padding-left: 20px; }
.del_txt ul li { list-style: disc; margin-bottom: 6px; }
.pro_table { overflow-x: auto; background: var(--bg2); padding: 20px; }
.pro_table table { background: #fff; border-top: 1px solid #cfcfcf; border-left: 1px solid #cfcfcf; width: 100%; border-collapse: collapse; }
.pro_table table tr td { padding: 10px; color: #333; font-size: 15px; border-bottom: 1px solid #cfcfcf; border-right: 1px solid #cfcfcf; }
.pro_table table tr:first-child td { font-size: 16px; text-transform: uppercase; color: #fff; background: var(--green); font-weight: bold; }

/* Inquiry form */
.quiry_info { margin-top: 20px; overflow: hidden; background: var(--bg2); padding: 34px; }
.quiry_info li { float: left; width: 49.2%; margin-right: 1.6%; margin-bottom: 18px; position: relative; }
.quiry_info li:nth-of-type(even) { margin-right: 0; }
.quiry_info li.wide { width: 100%; }
.quiry_info li.btn-li { width: 100%; margin-bottom: 0; text-align: right; }
.quiry_info .spcl { position: absolute; top: 13px; left: 6px; color: var(--green); }
.quiry_info input, .quiry_info textarea { width: 100%; color: #000; resize: none; background: #fff; border: 1px solid #ccc; border-radius: 3px; font-size: 15px; line-height: 24px; padding: 12px 15px; }
.quiry_info textarea { height: 128px; }
.quiry_info input::placeholder, .quiry_info textarea::placeholder { color: #888; }
.quiry_info button { border: none; border-radius: 4px; width: 326px; max-width: 100%; font-size: 16px; background: var(--green); color: #fff; height: 50px; }
.quiry_info button:hover { opacity: 0.85; }
.form-ok { display: none; color: var(--green-deep); font-size: 15px; padding-top: 10px; }

/* Contact */
.con_ulbox { width: 100%; overflow: hidden; }
.con_ulbox > li { float: left; min-height: 160px; background: #f0f0f0; width: 32%; margin-right: 2%; padding: 40px 0 32px 40px; }
.con_ulbox > li:last-child { margin-right: 0; }
.con_ulbox li p { color: #999; padding-left: 85px; }
.con_ulbox li span { display: block; width: 100%; position: relative; padding-left: 85px; padding-top: 10px; color: #444; }
.con_ulbox li span a { color: #444; }
.con_ulbox li:hover span a { color: var(--green); }
.con_ulbox li h6 { width: 68px; transition: all 0.3s; border-radius: 68px; height: 68px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--green); }
.con_ulbox li h6 svg { width: 32px; height: 32px; }
.con_ulbox li:hover h6 { transform: rotate(-45deg); }
.con_ulbox li:first-child span { font-size: 17px; }
.con_ulbox li span a { font-size: 20px; font-weight: bold; }
.con_ulbox li span.addr { font-size: 20px; font-weight: bold; color: #444; }
.send_mess { margin-top: 58px; padding-bottom: 85px; }
.s_p { color: #999; }
.send_mess .quiry_info { background: #fff; margin-top: 25px; padding: 0; }
.map { background: var(--bg2); padding: 60px 0 90px 0; }
.map .changpic { border: 1px solid #e3e3e3; }
.map iframe { width: 100%; height: 480px; border: 0; display: block; }

/* News / Cases pages */
.case_war { padding-bottom: 80px; }
.case_war .home_tit { text-align: center; }
.case_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 2%; margin-top: 22px; }
.case_list > li { margin: 0; }
.case_item { position: relative; padding-bottom: 30px; display: block; }
.case_txt { position: absolute; transition: all 0.3s; bottom: 0; left: 50%; width: 80%; margin-left: -40%; background: #fff; box-shadow: 0 1px 10px 0 rgba(0,0,0,0.2); padding: 14px 10px; text-align: center; }
.case_txt p { font-size: 17px; height: 28px; line-height: 28px; overflow: hidden; color: #222; }
.case_txt small { color: #999; font-size: 13px; display: block; }
.case_list > li:hover .changpic img { transform: scale(1.12); }
.case_list > li:hover .case_txt { background: var(--green-dark); }
.case_list > li:hover .case_txt p { color: #fff; }
.case_list > li:hover .case_txt small { color: rgba(255,255,255,0.8); }

/* About factory gallery — Grid 统一格子高度（横幅比例图不裁切会破坏对齐） */
.ab_fact { padding: 80px 0 105px 0; background: #fff; }
.ab_fact .home_tit { text-align: center; }
.ab_factlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 2%; margin-top: 16px; }
.ab_factlist > li { margin: 0; }
.ab_factitem { position: relative; overflow: hidden; display: block; }
.ab_factitem .changpic { height: 350px; }
.ab_factitem .changpic img { width: 100%; height: 100%; object-fit: cover; }

/* Videos */
.video_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video_card { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.06); }
.video_card .changpic { position: relative; }
.video_card .changpic img { width: 100%; }
.video_card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(129,206,76,0.9); display: flex; align-items: center; justify-content: center; color: #fff; }
.video_card .play svg { width: 24px; height: 24px; }
.video_card h4 { font-size: 16px; padding: 14px 16px; }

/* ============ Products search tag ============ */
.search-tag {
  margin-top: 16px; padding: 10px 18px; background: #fff;
  border-left: 3px solid var(--green); font-size: 15px; color: #555;
  display: inline-block; box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.search-tag a { color: var(--green-deep); font-weight: bold; margin-left: 6px; }
.search-tag a:hover { text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media screen and (max-width: 1440px) {
  .warper { width: 90%; }
  .logo { left: 24px; }  /* 左移给导航让位：宽 logo（150px）不再压住 HOME */
  header:before { width: 22%; }
  .head_rcon { right: 60px; }
  nav { margin-right: 315px; }
  .home_tit { font-size: 32px; }
  .in_pline .lcon { width: 554px; flex-basis: 554px; }
  .in_pline .rcon { padding-left: 38px; }
  .in_pline, .in_case { padding: 60px 0; }
  .in_abbox .in_ablcon { flex-basis: 42%; }
  .in_abbox .in_abrcon { padding-left: 34px; padding-top: 42px; }
  .in_hotpro, .in_process { padding: 30px 0 60px 0; }
  .pro_list { gap: 42px 18px; }
}
@media screen and (max-width: 1280px) {
  nav ul li { margin: 0 10px; }
  nav ul li > a { font-size: 15px; }
  .head_rcon { width: 208px; }
  nav { margin-right: 294px; }
  .home_tit { font-size: 28px; }
  .in_pline .lcon { width: 500px; flex-basis: 500px; }
  .in_liitem .i_liicon { width: 130px; }
  .in_liitem .i_riicon { margin-left: 130px; }
  .hot_track .item { flex-basis: 33.333%; }
  .custom_paging .slick_prev { left: -40px; }
  .custom_paging .slick_next { right: -40px; }
  .lion_item .lcon h3 { font-size: 26px; }
}
@media screen and (max-width: 1024px) {
  #nav .nav-button { display: block; }
  header { height: 62px; background: #222; }
  header:before { width: 13%; }
  .logo { top: 9px; left: 12px; }
  .logo-mark { width: 44px; height: 44px; font-size: 20px; }
  .head_rcon { display: none; }
  .banner, .subbanner { margin-top: 62px; }
  .banner { height: calc(100vh - 62px); min-height: 420px; }
  .warper { width: 94%; }
  nav { position: fixed; left: 0; top: 0; bottom: 0; width: 310px; margin: 0; z-index: 99; overflow: auto; background: #222; transform: translateX(-310px); transition: 0.3s; }
  nav.nav-open { transform: translateX(0); }
  nav ul { padding: 10px 0; }
  nav ul li { float: none; margin: 0; }
  nav ul li > a { color: #fff; line-height: normal; font-size: 16px; padding: 15px 20px; border-bottom: 1px solid #2e2e2e; text-align: left; }
  nav ul li.on > a, nav ul li:hover > a { background: var(--green); color: #fff; }
  nav dl { position: static; display: block; background: #2e2e2e; box-shadow: none; min-width: 0; }
  nav dl dd a { padding: 10px 30px; font-size: 15px; color: rgba(255,255,255,0.75) !important; white-space: normal; }
  .l_fixed { display: none; }
  .in_pline .rcon { display: none; }
  .in_pline .lcon { width: 100%; flex-basis: 100%; }
  .news_track > li { flex: 0 0 100%; padding: 0; margin: 0 0 20px 0; }
  .in_abbox { flex-direction: column; }
  .in_abbox .in_ablcon { flex: none; }
  .in_abbox .in_ablcon .changpic { position: static; height: 380px; }
  .in_abbox .in_abrcon { padding: 30px 25px 34px 25px; }
  .in_numwar > li { width: 50%; padding: 12px 4%; }
  .in_numwar .nicon { float: none; margin: 0 auto; }
  .in_numsz { margin-left: 0; text-align: center; margin-top: 10px; }
  .in_abbox .in_ablcon .changpic { height: 280px; }
  .hot_track .item { flex-basis: 50%; }
  .news_track > li { flex: 0 0 50%; }
  .custom_paging .slick_prev { left: 0; }
  .custom_paging .slick_next { right: 0; }
  .in_disbox { flex-direction: column; gap: 20px; }
  .in_disitem { height: 320px; }
  .f_item1 { display: none; }
  .f_nav { padding-top: 25px; }
  .f_nav .f_item2 { width: 26%; margin-left: 0; padding-top: 0; }
  .f_nav .f_item3 { width: 28%; padding-top: 0; }
  .f_nav .f_item4 { width: 40%; padding-top: 0; }
  .f_nav h4 { font-size: 20px; margin-bottom: 15px; }
  .f_navli li { margin-bottom: 10px; }
  .footmenu { display: block; }
  body { padding-bottom: 56px; }
  .del_picwar .lcon { width: 100%; float: none; padding-right: 0; }
  .del_picwar .rcon { margin-left: 0; padding-left: 0; }
  .quiry_info li { width: 100%; margin-right: 0; }
  .con_ulbox > li { width: 100%; margin-right: 0; margin-bottom: 14px; }
  .ab_factlist { grid-template-columns: repeat(2, 1fr); }
  .ab_factitem .changpic { height: 240px; }
  .case_list { grid-template-columns: repeat(2, 1fr); }
  .video_grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
  .banner { height: calc(100vh - 62px); min-height: 340px; }
  .banner .banner-arrow { width: 36px; height: 46px; }
  .banner .banner-arrow svg { width: 20px; height: 20px; }
  .in_abbox .in_ablcon .changpic { height: 240px; }
  .in_abbox .in_abrcon { padding: 6px 20px 24px 20px; }
  .in_numsz p b { font-size: 28px; }
  .hot_track .item { flex-basis: 100%; }
  .lion_item .lcon { width: 100%; float: none; padding: 28px 24px 0 24px; }
  .lion_item .rcon { width: 100%; float: none; }
  .lion_pp { margin-top: 14px; }
  .f_nav .f_item2, .f_nav .f_item3, .f_nav .f_item4 { width: 100%; margin: 0; padding: 0; margin-top: 26px; }
  .f_top ul > li { width: 100%; border-right: 0; border-bottom: 1px solid #747474; padding: 20px 0 20px 38px; }
  .f_top ul > li:last-child { border-bottom: 0; }
  .case_list > li { width: 100%; margin-right: 0; }
  .ab_factlist { grid-template-columns: 1fr; }
  .ab_factitem .changpic { height: 220px; }
  .video_grid { grid-template-columns: 1fr; }
  .home_tit, .page_tit { font-size: 24px; }
  .quiry_info button { width: 100%; }
}


/* ---------- Friendly Links (CMS-driven, added 2026-09-25) ---------- */
.flinks { clear: both; padding: 30px 0 10px; }
.flinks h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.flinks ul { overflow: hidden; }
.flinks ul li { float: left; margin: 0 24px 14px 0; }
.flinks ul li a { color: rgba(255,255,255,0.7); font-size: 14px; }
.flinks ul li a:hover { color: #fff; text-decoration: underline; }

/* ---------- CMS logo image (replaces .logo-mark placeholder) ---------- */
/* 统一规则：限高限宽；multiply 让白底 logo 在白色 header 上不遮挡导航 */
.logo img.logo-img { max-height: 46px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.f_logo img.logo-img { max-height: 46px; width: auto; display: block; }
/* 深色背景(页脚/移动端深色头部)下 logo 反白为纯白剪影 */
.f_logo img.logo-img { filter: brightness(0) invert(1); }
@media screen and (max-width: 1024px) {
  .logo img.logo-img { filter: brightness(0) invert(1); }
}

/* ---------- 单页内容防护：CMS 单页内容误粘整页模板时，隐藏注入的悬浮条/页脚 ----------
   （l_fixed 里的裸 SVG 无尺寸约束会被渲染成满屏巨型图标，且常带旧联系方式） */
#page-body .l_fixed, #page-body footer { display: none !important; }

/* ---------- FAQ page (CMS FAQ module) ---------- */
.faq_war { max-width: 900px; margin: 0 auto; }

/* ---------- Article detail (news / cases / solutions 共用) ---------- */
.art_detail { max-width: 900px; margin: 0 auto; }
.art_tit { font-size: 28px; color: var(--text); line-height: 1.4; font-weight: bold; }
.art_meta { color: #999; font-size: 13px; margin: 12px 0 24px; letter-spacing: 0.5px; }
.art_cover { margin-bottom: 26px; }
.art_cover img { width: 100%; }
.art_content { font-size: 15px; color: #444; line-height: 1.9; }
.art_content p { margin-bottom: 14px; }
.art_content h3 { font-size: 20px; color: var(--text); margin: 28px 0 12px; }
.art_content h4 { font-size: 17px; color: var(--text); margin: 20px 0 8px; }
.art_content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.art_content li { margin-bottom: 6px; }
.art_content img { max-width: 100%; }
.art_cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg2); border-left: 4px solid var(--green); padding: 24px 28px; margin: 36px 0 10px; }
.art_cta_txt h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.art_cta_txt p { font-size: 14px; color: #666; line-height: 1.7; }
.art_cta_btn { flex-shrink: 0; background: var(--green); color: #fff; padding: 13px 28px; font-size: 15px; }
.art_cta_btn:hover { background: var(--green-dark); color: #fff; }
.art_related { margin-top: 56px; }
.lion_item .lcon h3 a { color: inherit; transition: color 0.2s; }
.lion_item .lcon h3 a:hover { color: var(--green); }
@media screen and (max-width: 768px) {
  .art_tit { font-size: 22px; }
  .art_cta { flex-direction: column; align-items: flex-start; }
}
.faq_item { background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.faq_q { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; }
.faq_q span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; }
.faq_q h4 { font-size: 16px; color: #222; line-height: 1.5; margin-top: 5px; }
.faq_a { padding: 0 22px 18px 68px; color: #666; font-size: 14px; line-height: 1.8; }
nav ul li { margin: 0 16px; }
