/* ==========================================================================
   Zhishuai 外贸站视觉增强层
   在原版 hvswl_style.css / public.css 之后加载，仅做质感增强，不改动原版栅格宽度；
   如需回退，在 head.php 中注释掉本文件引用即可。
   品牌蓝 #356da6 / 强调金 #e3b961
   ========================================================================== */

:root {
  --brand: #356da6;
  --brand-dark: #2a5686;
  --ink: #2b2f38;
  --muted: #66707d;
  --line: #eceef2;
  --bg: #f6f8fb;
  --gold: #e3b961;
}

/* ---------- 区块留白 ---------- */
.sy_untibg { padding: 70px 0 40px; background: var(--bg); }
.sy_tt h1, .cp_tt h1 { letter-spacing: .5px; }

/* ---------- 首页品类卡片：固定三列网格 ---------- */
.sy_untibg .qm_mainc { display: flex; flex-wrap: wrap; gap: 24px; }
.sy_untibg .sy_tt, .sy_untibg .clear { flex-basis: 100%; width: 100%; }
.sy_cpunti {
  width: calc((100% - 48px) / 3) !important;
  margin-left: 0 !important; margin-bottom: 0 !important;
  float: none !important;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.sy_cpunti > a { display: flex; flex-direction: column; height: 100%; }
.sy_cpunti:hover {
  transform: translateY(-6px);
  border-color: #dbe4ee;
  box-shadow: 0 16px 34px rgba(23, 45, 75, .14);
}
.sy_cpuntia {
  display: flex; align-items: center; justify-content: center;
  height: 230px; padding: 22px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  overflow: hidden;
}
.sy_cpuntia img { max-height: 100%; width: auto !important; object-fit: contain; transition: transform .45s ease; }
.sy_cpunti:hover .sy_cpuntia img { transform: scale(1.07); }
.sy_cpuntib { margin-top: auto; padding: 22px 18px 26px !important; }
.sy_cpuntib h1 {
  font-size: 19px !important; color: var(--ink) !important;
  font-weight: 600 !important; line-height: 1.4; position: relative; padding-bottom: 14px;
}
.sy_cpuntib h1::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 3px; background: var(--brand);
}
.sy_cpuntib h1 span { display: none; }

/* ---------- 列表产品卡片 ---------- */
.goods_list {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff; overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.goods_list:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(23, 45, 75, .14); }
.goods_lista {
  display: flex; align-items: center; justify-content: center;
  height: 200px; padding: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}
.goods_lista img { max-height: 100%; width: auto !important; object-fit: contain; }
.goods_list h1 {
  border-top: 1px solid var(--line) !important;
  font-size: 16px !important; color: var(--ink); line-height: 1.5; height: auto !important;
  padding: 16px 12px !important;
}
.goods_list:hover h1 { border-top-color: var(--brand) !important; color: var(--brand-dark); }

/* ---------- CTA 条 ---------- */
.sy_ma { background-color: var(--brand-dark); }
.sy_ma::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(26, 52, 84, .72) 0%, rgba(26, 52, 84, .42) 100%);
}
.sy_ma .qm_mainb, .sy_ma .qm_mainc, .sy_abright { position: relative; z-index: 1; }
.sy_abrighta h1 { letter-spacing: .5px; }
.sy_abrightb { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sy_abrightb .cta_inq, .sy_abrightb .cta_more {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 500px !important;
  padding: 13px 34px !important; font-weight: 600; letter-spacing: 1px; transition: all .3s ease;
}
.sy_abrightb .cta_inq { background: var(--gold) !important; color: var(--ink) !important; border: 0; cursor: pointer; }
.sy_abrightb .cta_inq:hover { background: #fff !important; color: var(--brand-dark) !important; }
.sy_abrightb .cta_more { background: transparent !important; border: 1px solid rgba(255,255,255,.55); color: #fff !important; }
.sy_abrightb .cta_more:hover { background: #fff !important; color: var(--brand-dark) !important; border-color: #fff; }

/* ---------- About 区 ---------- */
.sl_syabl img { border-radius: 14px; box-shadow: 0 14px 30px rgba(23, 45, 75, .16); }
.sl_syabrb p { color: var(--muted); line-height: 1.9 !important; }
.sl_syabrb a { border-radius: 500px !important; background: var(--gold) !important; transition: all .3s ease; }
.sl_syabrb a:hover { background: var(--brand) !important; }

/* ---------- 页脚 ---------- */
.hvswl_footer { background: #1f2d3d !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.f_dh h1, .f_dh h2 { color: #fff; letter-spacing: 1px; }
.f_dh dd a { color: #b9c4d1 !important; transition: color .25s ease, padding-left .25s ease; }
.f_dh dd a:hover { color: #fff !important; padding-left: 4px; }
.f_dh p a { transition: background .25s ease, color .25s ease; }
.f_dh p a:hover { background: var(--brand); }
.hvswl_footerc { border-top: 1px solid #33465a !important; color: #93a3b3; }

/* ---------- 头部：品牌区 + 联系信息 ---------- */
.hvswl_head .qm_mainc { align-items: center; }
.hvswl_head .qm_mainb .qm_mainc { padding: 14px 0; }
.hvsel_logo img { height: 56px; width: auto !important; }
.sl_tpdh { box-shadow: 0 2px 10px rgba(23, 45, 75, .12); }

.hvsel_logo { width: 45% !important; }
.sk_tpr { width: 52% !important; }
.sk_tpra {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap;
  align-items: center; justify-content: flex-end; gap: 12px;
}
.sk_tpra li {
  display: inline-flex; align-items: center; gap: 9px;
  width: auto !important; margin: 0 !important; list-style: none;
  padding: 8px 16px 8px 9px; border-radius: 500px;
  background: #fff; border: 1px solid #e6ecf3;
  box-shadow: 0 2px 8px rgba(23, 45, 75, .06);
  font-size: 14px; line-height: 1.2; color: #3d434d; font-weight: 500;
  white-space: nowrap; transition: all .25s ease;
}
.sk_tpra li:hover {
  border-color: #c9dcee; box-shadow: 0 6px 16px rgba(23, 45, 75, .1);
  color: var(--brand-dark);
}
.sk_tpra li span[class^="icon-"] {
  position: static !important; width: 30px !important; height: 30px !important;
  left: auto !important; border: 0 !important; border-radius: 50% !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  line-height: 1;
}
.sk_tpra li .icon-phone3, .sk_tpra li .icon-mail1 { background: #eef3f9; color: var(--brand); font-size: 15px; }
/* WhatsApp：白底商务胶囊，绿色仅用于图标与文字，hover 填充绿 */
.wa_link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0; border: 0; background: transparent !important;
  color: #1f9d38 !important; font-size: 13px; font-weight: 600;
}
.wa_link .icon-whatsapp { background: #e7f7eb; color: #30d14f; font-size: 14px; }
.wa_item:hover { background: #30d14f !important; border-color: #30d14f !important; box-shadow: 0 6px 16px rgba(48, 209, 79, .3); }
.wa_item:hover .wa_link, .wa_item:hover .icon-whatsapp { color: #fff !important; }
.wa_item:hover .icon-whatsapp { background: rgba(255, 255, 255, .22); }

/* ---------- 导航条 ---------- */
.sl_tpdh { background: linear-gradient(90deg, #2a5686 0%, #356da6 100%) !important; }
.headdh { width: 84% !important; }
.headdh li {
  position: relative; white-space: nowrap;
  padding: 0 13px !important; font-size: 13.5px !important; line-height: 56px;
  letter-spacing: .5px;
}
.headdh li > span { display: none !important; }
.headdh li::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px;
  background: #fff; transform: scaleX(0); transition: transform .3s ease;
}
.headdh li:hover::after, .headdh li.is-active::after { transform: scaleX(1); }
.headdh li:hover > a, .headdh li.is-active > a { color: #fff !important; }
.headdh li:has(.head_ycdh) > a::after {
  content: "\e906"; font-family: 'icomoon' !important; margin-left: 7px; font-size: 11px;
}

/* ---------- 搜索框：半透明融入导航，聚焦转白底 ---------- */
.tp_ss {
  width: 14% !important; margin-top: 11px; background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.35); border-radius: 500px !important;
}
.tp_ss input { background: transparent; color: #fff; }
.tp_ss input::placeholder { color: rgba(255,255,255,.75); }
.tp_ss button { color: #fff !important; }
.tp_ss:focus-within { background: #fff !important; }
.tp_ss:focus-within input { color: var(--ink); }
.tp_ss:focus-within button { color: var(--brand) !important; }

/* ---------- 正文段落可读性 ---------- */
.about_xqb, .news_maxx, .cp_xqab { color: #3d434d; line-height: 1.9; font-size: 16px; }
.about_xqb p, .news_maxx p, .cp_xqab p { margin-bottom: 16px; }
.cp_xqab { margin-top: 18px; }

/* ---------- 产品列表卡片（外贸目录风） ---------- */
.goods_mb { display: flex; flex-wrap: wrap; gap: 24px; }
.goods_list {
  float: none !important; width: calc((100% - 72px) / 4) !important;
  display: flex; flex-direction: column; padding: 0 !important; text-align: left;
  border: 1px solid var(--line) !important; border-radius: 16px !important;
  background: #fff; overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.goods_list:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(23, 45, 75, .15); border-color: #d8e4f0; }
.goods_lista {
  display: flex; align-items: center; justify-content: center;
  height: 200px; padding: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}
.goods_lista img { max-height: 100%; width: auto !important; object-fit: contain; transition: transform .4s ease; }
.goods_list:hover .goods_lista img { transform: scale(1.06); }
.goods_listb { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.goods_list h1 {
  border-top: 0 !important; height: auto !important;
  font-size: 16px !important; line-height: 1.5; padding: 0 !important; margin: 0 0 8px;
}
.goods_list h1 a { color: var(--ink); font-weight: 600; }
.goods_list:hover h1 a { color: var(--brand-dark); }
.goods_sum {
  color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods_actions { display: flex; gap: 10px; margin-top: auto; }
.gl_view, .gl_inq {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: all .25s ease; cursor: pointer;
}
.gl_view { border: 1px solid #d8e4f0; color: var(--brand-dark); background: #fff; }
.gl_view:hover { background: #eef3f9; }
.gl_inq { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.gl_inq:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.gl_inq span { font-size: 14px; }

/* ---------- 详情页：左栏搜索 / 分类 ---------- */
.hv_cpleft .hv_cplefta {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06); margin-bottom: 24px;
}
.hv_cpleftaa { background: var(--brand) !important; padding: 14px 18px !important; font-size: 16px !important; }
.hv_cpleftab { border: 0 !important; padding: 16px 18px !important; }
.hv_cpleftab input {
  width: 68% !important; background: var(--bg) !important; border: 1px solid var(--line);
  border-radius: 8px 0 0 8px; height: 44px; padding: 0 12px !important;
}
.hv_cpleftab button {
  width: 32% !important; height: 44px !important; border-radius: 0 8px 8px 0;
  background: var(--brand) !important;
  padding: 0 !important; font-size: 13px; white-space: nowrap; letter-spacing: 0;
}
.l_list dd { border-bottom: 1px solid var(--line) !important; padding: 13px 18px !important; font-size: 15px !important; }
.l_list dd:last-child { border-bottom: 0 !important; }
.l_list dd a { color: #3d434d; }
.l_list dd:hover a { color: var(--brand); }

/* ---------- 详情页：图库 ---------- */
.gallery-top.kk_kuang {
  border: 1px solid var(--line) !important; border-radius: 16px; overflow: hidden;
  background: #fff !important; box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
}
.gallery-top img.imgpdd { display: block; }
.gallery-thumbs .swiper-slide { border: 1px solid var(--line) !important; border-radius: 10px; overflow: hidden; }

/* ---------- 详情页：标题 / 描述 / 询盘 ---------- */
.cp_xqaa { padding-top: 0 !important; }
.cp_cattag {
  display: inline-block; padding: 5px 14px; border-radius: 500px;
  background: #eef3f9; color: var(--brand-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px;
}
.cp_xqaa h1 { font-size: 26px !important; color: var(--ink); margin: 0 0 12px !important; }
.cp_sum { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 8px; }
.cp_xqab { margin-top: 14px !important; }
.cp_xqab img { border-radius: 12px; }
.cp_xqac {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 28px !important; border-top: 1px solid var(--line); padding-top: 24px !important;
}
.cp_xqac dd { margin: 0; }
.a_xp {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  border: 0; border-radius: 10px; padding: 14px 30px !important;
  font-size: 15px !important; font-weight: 600; color: #fff !important;
  box-shadow: 0 8px 18px rgba(53, 109, 166, .28); transition: all .25s ease;
}
.a_xp:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(53, 109, 166, .36); }
.wa_cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #cdeed6; color: #1f9d38; background: #fff; border-radius: 10px;
  padding: 14px 26px; font-size: 15px; font-weight: 600; transition: all .25s ease;
}
.wa_cta:hover { background: #30d14f; border-color: #30d14f; color: #fff; }
.about_cta { margin-top: 32px; text-align: center; }

/* ---------- 列表页：左栏分类导航 + 三列卡片 ---------- */
.cp_leftimgv .goods_mb { gap: 22px; }
.cp_leftimgv .goods_list { width: calc((100% - 44px) / 3) !important; }
.l_list dd { position: relative; }
.l_list dd a.on { color: var(--brand) !important; font-weight: 600; }
.l_list dd a.on::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px;
  width: 3px; border-radius: 3px; background: var(--brand);
}

/* ---------- 新闻分类条 ---------- */
.goods_cplb {
  background: #fff !important; border-bottom: 1px solid var(--line) !important;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 22px 0 !important;
}
.goods_cplb li { display: inline-block; }
.goods_cplb li a {
  display: inline-block; padding: 9px 22px !important; border-radius: 500px;
  border: 1px solid var(--line); color: #3d434d; background: #fff;
  font-size: 14px; font-weight: 500; transition: all .25s ease;
}
.goods_cplb li a:hover { border-color: var(--brand); color: var(--brand); }
.goods_cplb li a.on { background: var(--brand); border-color: var(--brand); color: #fff !important; }

/* ---------- 新闻列表卡片 ---------- */
.news_ma { padding: 40px 4% !important; }
.news_list {
  width: 100% !important; float: left; background: #fff !important;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
  margin: 0 0 24px !important; padding: 0 !important;
  transition: transform .35s ease, box-shadow .35s ease;
}
.news_list:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(23, 45, 75, .14); }
.news_list > a { display: flex; gap: 26px; padding: 26px; align-items: stretch; }
.news_lista {
  width: 240px; flex: 0 0 240px; border-radius: 12px; overflow: hidden; background: var(--bg);
}
.news_lista img { width: 100%; height: 100%; object-fit: cover; }
.news_listb {
  flex: 1; float: none !important; width: auto !important; margin: 0 !important;
  padding: 0 !important; display: flex; flex-direction: column;
}
.news_date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.news_listb h1 { font-size: 20px !important; color: var(--ink); margin: 0 0 10px; line-height: 1.5; }
.news_listb p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 0 0 16px; }
.news_more { margin-top: auto; align-self: flex-start; color: var(--brand); font-weight: 600; font-size: 14px; }
.news_list:hover .news_more { color: var(--brand-dark); }

/* ---------- 新闻详情 ---------- */
.news_matt h1 { font-size: 30px !important; color: var(--ink); font-weight: 700; letter-spacing: .3px; }
.news_matt dd { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }
.news_maxx { font-size: 16px; line-height: 1.9; color: #3d434d; }
.news_maxx p { margin-bottom: 18px; }
.news_maxx img { border-radius: 12px; }
.xw_sx { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.news_sxp { padding: 14px 0 !important; font-size: 15px; }
.news_sxp span { color: var(--muted); margin-right: 8px; }
.news_sxp a { color: var(--brand); font-weight: 500; }

/* ---------- 内页 Banner（紧凑标题条） ---------- */
.ny_banner { height: 280px; overflow: hidden; }
.ny_banner > img {
  width: 100% !important; height: 100% !important; object-fit: cover; display: block;
}
.n_btt {
  position: absolute; top: 0 !important; right: 0 !important;
  bottom: 0 !important; left: 0 !important; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 5%;
}
.n_btt h1 { font-size: 34px !important; letter-spacing: 1px; }
.n_btt dd { padding-top: 12px !important; font-size: 16px !important; }

/* ---------- 分页 ---------- */
#page {
  gap: 8px; margin-top: 36px !important; padding-top: 28px !important;
  border-top: 1px solid var(--line);
}
#page a, #page span {
  width: auto !important; min-width: 40px; height: 40px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: #3d434d; font-size: 14px; font-weight: 500;
  transition: all .22s ease; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
#page a:hover { border-color: var(--brand); color: var(--brand); background: #f3f7fc; }
#page span { color: #aab2bd; background: #f6f8fb; }
#page .cur {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  border-color: var(--brand); color: #fff !important;
  box-shadow: 0 6px 14px rgba(53, 109, 166, .28);
}
#page .pageEllipsis { border: 0; background: transparent; min-width: 20px; }

/* ---------- 联系页信息卡片 ---------- */
.lx_lefta {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 2px 12px rgba(23, 45, 75, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lx_lefta:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(23, 45, 75, .12); }

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  .sy_untibg { padding: 40px 0 20px; }
  .sy_untibg .qm_mainc { gap: 14px; }
  .sy_cpunti { width: calc((100% - 14px) / 2) !important; }
  .sy_cpuntia { height: 180px; }
  .goods_mb { gap: 14px; }
  .goods_list { width: calc((100% - 14px) / 2) !important; }
  .goods_lista { height: 160px; }
  .goods_actions { flex-direction: column; gap: 8px; }
  .ny_banner { height: 200px; }
  .n_btt h1 { font-size: 24px !important; }
  .cp_xqac { flex-direction: column; align-items: stretch; }
  .a_xp, .wa_cta { justify-content: center; }
  .news_list > a { flex-direction: column; }
  .news_lista { width: 100%; flex: none; height: 180px; }
}
