/* 旧主题兼容补充：只做最小修正，不覆盖原主题既定样式 */

body {
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

#main {
  padding: 24px 0 10px;
}

/* 首页 banner：原站是轮播，静态站用首屏图整幅显示 */
.home-banner {
  margin: 0 0 30px;
  overflow: hidden;
}
.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .home-banner img { width: 100%; }
}

/* 列表页卡片：借旧主题 detail-box 样式，补上网格间距 */
.grid-legacy {
  margin-top: 24px;
}
.grid-legacy .detail-box {
  margin-bottom: 22px;
}

/* 页面标题 */
.page-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 26px;
  font-weight: 400;
}

/* 正文里的图片自适应 */
.node .content img,
#block-system-main .content img {
  max-width: 100%;
  height: auto;
}

/* 旧站搜索框在导航右侧，静态站没有搜索功能，隐藏占位 */
.search-box,
.search-form {
  display: none !important;
}

/* 语言下拉保持可见（原站依赖 JS 展开，这里用 CSS 常显） */
.lang-menu {
  display: inline-block;
}
.lang-menu a {
  margin-right: 10px;
}

/* ------------------------------------------------------------------
   修正：原主题把 .container 内所有列宽写死成 260px，
   导致首页 4 张卡片折成 3+1、页头左右两栏过窄。
   这里按原站 940px 内容宽度重新分配。
   ------------------------------------------------------------------ */
#header .header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
#header .header-main-row > .eight.columns {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
#main .container .four.columns {
  width: 185px !important;
}

/* ===== 内容区宽度：恢复旧站 .container 960 / .sixteen.columns 940 =====
   旧主题另有一条 #main .sixteen.columns{width:680px}，会让首页横幅与四卡整体缩到 68%、
   两侧留大片空白，这里覆盖回 940px。 */
#main .sixteen.columns {
  width: 940px !important;
  max-width: 100%;
  margin: 0 auto !important;
}

/* ===== 首页标语：旧站横幅正下方 <h4 class="slogan">，居中两~三行说明 ===== */
#main .slogan {
  margin: 6px auto 40px !important;
  max-width: 900px;
  padding: 0 10px;
  font-size: 18px !important;
  line-height: 1.85 !important;
  font-weight: 400 !important;
  color: #666 !important;
  text-align: center;
  letter-spacing: 0 !important;
}

/* 首页 4 张图标卡与内页列表卡：旧主题的 float + 写死列宽会折行，改用等分网格 */
#main .block.block-views > .content,
.grid-legacy {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
  align-items: stretch;
}
#main .block.block-views > .content > div,
.grid-legacy > div {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}
@media (max-width: 900px) {
  #main .block.block-views > .content,
  .grid-legacy {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 页头右侧联系区靠右，与原站一致 */
#header .region-header-right {
  float: right;
  text-align: right;
}
#header .widget_contacts {
  float: right;
  text-align: right;
}
#header .widget_contacts .social-icons {
  float: right;
}

/* 卡片等高 */
.detail-box {
  height: 100%;
  box-sizing: border-box;
}

/* 顶部条语言切换：原站是点击展开的下拉（JS），静态站改为常显横排小链接 */
#top {
  margin-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}
#top .tditem1 {
  width: 56% !important;
}
#top .tditem2 {
  width: 22% !important;
}
#top .tditem3 {
  width: auto !important;
  padding-right: 12px;
  padding-left: 18px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
#top .lang-display {
  display: none !important;
}
#top .lang-menu {
  position: static !important;
  float: none !important;
  display: inline !important;
  background: transparent !important;
  border: 0 !important;
  text-align: right !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
#top .lang-menu a {
  float: none !important;
  clear: none !important;
  display: inline !important;
  width: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  color: #969696 !important;
}
#top .lang-menu a:hover {
  color: #fff !important;
  background: transparent !important;
}

/* ===== 首页 banner：按旧站 MD Slider 1000×615 画布 1:1 复刻（JS 整体等比缩放） ===== */
.home-banner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 0;
  height: 470px;
  overflow: hidden;
  background: #fff;
}
.home-banner .hb-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 615px;
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  overflow: hidden;
}
.home-banner .hb-slide.is-on {
  opacity: 1;
  visibility: visible;
}
.home-banner .hb-img {
  position: absolute;
  display: block;
  margin: 0; padding: 0; border: 0;
  max-width: none;
  max-height: none;
  object-fit: fill;
}
.home-banner .hb-l {
  position: absolute;
  margin: 0 !important;
  padding: 0 !important;
  color: #000;
  line-height: 1em !important;
  font-family: "Open Sans", Arial, "Microsoft YaHei", "Yu Gothic", sans-serif;
  letter-spacing: 0 !important;
  overflow: visible;
  white-space: nowrap;
  width: auto;
  max-width: none;
}
.home-banner .hb-l.gray { color: #b2b2b2 !important; }
.home-banner .hb-tag {
  position: absolute;
  display: inline-block;
  margin: 0 !important;
  padding: 8px 10px 3px !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 400 !important;
  line-height: 1em !important;
  letter-spacing: 0 !important;
  font-family: "Open Sans", Arial, "Microsoft YaHei", "Yu Gothic", sans-serif;
  white-space: nowrap;
}
.home-banner .hb-tag.green { background: #79be0b; }
.home-banner .hb-tag.red { background: #be290b; }
.home-banner .hb-tag.red.big { font-size: 30px; font-weight: 600 !important; }
.home-banner .hb-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}
.home-banner .hb-dot {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #cfcfcf;
  cursor: pointer;
  transition: background .3s;
}
.home-banner .hb-dot.is-on { background: #89b32a; }

/* ===== 服务页四步流程折叠块：沿用旧主题 acc-* 样式，仅补排版 ===== */
.acc-box { margin: 22px 0 12px; }
.acc-trigger.active + .acc-container { display: block; }
.acc-container { padding: 0 15px 8px 35px; }
.acc-container p { margin: 0 0 10px !important; font-size: 13px; line-height: 1.75; color: #6f6f6f; }
.acc-container p b { color: #333; }
.acc-trigger a { color: #4a4a4a !important; font-size: 12px !important; }

/* ===== 联系页在线咨询表单 ===== */
.contact-block { margin: 28px 0 0; max-width: 620px; }
.contact-block-title {
  margin: 0 0 16px !important;
  padding-left: 10px;
  border-left: 4px solid #89b32a;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #333 !important;
}
#contact-site-form .form-item { margin: 0 0 14px !important; }
#contact-site-form .form-item-name:before,
#contact-site-form .form-item-mail:before,
#contact-site-form .form-item-subject:before,
#contact-site-form .form-item-message:before { display: none !important; }
#contact-site-form .form-item label {
  display: block !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  font-size: 12px;
  color: #8a8a8a;
}
#contact-site-form input[type="text"],
#contact-site-form input[type="email"],
#contact-site-form textarea {
  display: block !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 2px;
  font-size: 14px;
  color: #333;
  background: #fff;
  font-family: inherit;
}
#contact-site-form textarea { min-height: 120px; }
#contact-site-form input:focus,
#contact-site-form textarea:focus { border-color: #89b32a !important; outline: none; }
.contact-submit {
  padding: 9px 28px;
  background: #89b32a;
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
}
.contact-submit:hover { background: #7aa324; }
.contact-note { margin: 10px 0 0 !important; font-size: 12px; color: #999; }

/* ===== 内页标题：旧站 h1.alignleft = 30px / #b2b2b2 / 300，下方一条细分隔线 ===== */
#main h1.page-title {
  font-size: 30px !important;
  font-weight: 300 !important;
  color: #b2b2b2 !important;
  letter-spacing: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #eeeeee;
  line-height: 1.2 !important;
}

/* ===== 服务页：旧站为「左侧 6 项纵向菜单 + 右侧当前服务图文」 ===== */
.svc-wrap { margin: 26px 0 6px; }
.svc-side { float: left; width: 238px; }
.svc-side ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e6e6e6;
  background: #fff;
}
.svc-side li { border-bottom: 1px solid #efefef; margin: 0 !important; padding: 0 !important; }
.svc-side li:last-child { border-bottom: 0; }
.svc-side li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 11px 15px;
  font-size: 13px;
  color: #555 !important;
  text-decoration: none !important;
  background: transparent;
}
.svc-side li a:hover { color: #89b32a !important; }
.svc-side li.is-on a {
  color: #333 !important;
  font-weight: 700;
  background: #fafafa;
}
.svc-arrow {
  display: inline-block;
  width: 18px; height: 18px;
  line-height: 17px;
  text-align: center;
  border-radius: 50%;
  background: #dcdcdc;
  color: #fff;
  font-size: 12px;
  flex: 0 0 auto;
  margin-left: 8px;
}
.svc-main { margin-left: 262px; }
.svc-main .content img { max-width: 100%; height: auto; display: block; margin: 0 0 14px; }
.svc-main .content h4 { margin: 6px 0 12px !important; font-size: 18px !important; font-weight: 400 !important; color: #333; }
.svc-main .content p { margin: 0 0 12px !important; line-height: 1.9 !important; color: #7a7a7a; font-size: 13px; }
@media (max-width: 900px) {
  .svc-side { float: none; width: auto; margin-bottom: 18px; }
  .svc-main { margin-left: 0; }
}

/* ===== 服务总览：纵向全文（对齐旧站 service 页，不再用摘要卡片） ===== */
.svc-list { margin: 4px 0 12px; }
.svc-item { margin: 0 0 28px; }
.svc-item h4 { margin: 0 0 10px !important; font-size: 18px !important; font-weight: 700 !important; color: #333; }
.svc-item p { margin: 0 0 10px !important; line-height: 1.75; }
.svc-item img { max-width: 100%; height: auto; margin: 0 0 12px; display: block; }

/* ===== 方案页卡片：标题 + 技术分类（对齐旧站 solution 页） ===== */
.grid-legacy .pv-cat { margin: 6px 0 0 !important; color: #8b8b8b !important; font-size: 12px !important; line-height: 1.5; }
.grid-legacy .detail-box { min-height: 96px; }

/* 轮播入场动画改由 site.js 逐层控制（transition + data-start 延迟），此处仅保留箭头与吸附样式 */

/* ===== 轮播左右箭头导航 ===== */
.home-banner .hb-nav {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: 34px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #fff !important;
  background: rgba(0, 0, 0, .25);
  font-size: 18px;
  z-index: 4;
  text-decoration: none !important;
  opacity: 0;
  transition: opacity .3s, background .3s;
}
.home-banner:hover .hb-nav { opacity: 1; }
.home-banner .hb-nav:hover { background: rgba(0, 0, 0, .5); }
.home-banner .hb-prev { left: 0; }
.home-banner .hb-next { right: 0; }

/* ===== 顶栏吸附：向下滚动后固定出现 ===== */
#header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  animation: hbHeaderDown .32s ease both;
}
#header.is-stuck .region-header-top { display: none; }
#header.is-stuck .header-main-row { padding: 4px 0 2px; }
#header.is-stuck #logo img { max-height: 44px; width: auto; }
#header.is-stuck #site-slogan { display: none; }
#header.is-stuck .header-main-row .region-header-right { display: none; }
@keyframes hbHeaderDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-spacer { height: 0; }

/* ===== 关于我们：四步流程横排 + Why Choose Us 图文两栏（对齐旧站） ===== */
.about-h { font-size: 18px !important; font-weight: 700 !important; color: #3a3a3a !important; margin: 0 0 12px !important; letter-spacing: 0 !important; }
.about-sub { font-size: 13px !important; font-weight: 700 !important; color: #444 !important; margin: 0 0 30px !important; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0 0 40px;
}
.step-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.step-no {
  flex: 0 0 auto;
  display: inline-block;
  width: 34px; height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: #4b4b4b;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
}
.step h6 { margin: 0 !important; font-size: 13px !important; font-weight: 700 !important; color: #333 !important; letter-spacing: .4px; }
.step p { margin: 0 !important; font-size: 12.5px !important; line-height: 1.85 !important; color: #7d7d7d; }
.steps-sep { border-top: 1px solid #eee; margin: 0 0 40px; }
.whyus { display: grid; grid-template-columns: 44% 1fr; gap: 46px; align-items: start; margin: 0 0 30px; }
.whyus-img img { display: block; width: 100%; height: auto; }
.whyus-txt h4 { margin: 0 0 16px !important; }
.whyus-txt p { margin: 0 0 18px !important; font-size: 13px !important; line-height: 1.9 !important; color: #7d7d7d; }
.why-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.why-list li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 9px !important;
  list-style: none !important;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}
.why-list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px; height: 16px;
  line-height: 15px;
  text-align: center;
  background: #89b32a;
  color: #fff;
  font-size: 12px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .whyus { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 方案页：3 列大图卡 + 分类筛选条（对齐旧站） ===== */
.pv-filters { margin: 4px 0 26px; font-size: 12px; }
.pv-filters a {
  display: inline-block;
  margin: 0 20px 8px 0;
  color: #555 !important;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none !important;
}
.pv-filters a.is-on { color: #89b32a !important; font-weight: 700; }
.pv-filters a:hover { color: #89b32a !important; }
.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin: 0 0 10px;
}
.pv-card { padding-bottom: 20px; border-bottom: 1px solid #eee; }
.pv-card > a { text-decoration: none !important; display: block; }
.pv-card img {
  display: block;
  width: 100%;
  height: 218px !important;
  object-fit: contain !important;
  border: 1px solid #ddd;
  background: #fff;
  box-sizing: border-box;
}
.pv-card h5 {
  margin: 18px 0 6px !important;
  text-align: center;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #333 !important;
}
.pv-card .pv-cat { margin: 0 !important; text-align: center; color: #8b8b8b !important; font-size: 12px !important; }
@media (max-width: 900px) {
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 联系页：左表单 + 右公司地址（对齐旧站） ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 50px; margin: 10px 0 0; align-items: start; }
.contact-addr h4 { font-size: 18px !important; font-weight: 700 !important; color: #3a3a3a !important; margin: 0 0 16px !important; }
.contact-addr p { font-size: 13px !important; line-height: 2 !important; color: #666; margin: 0 !important; }
.contact-addr p b { color: #333; font-weight: 700; }
#contact-site-form .contact-submit { background: #3b3b3b !important; padding: 10px 22px !important; border-radius: 0 !important; }
#contact-site-form .contact-submit:hover { background: #222 !important; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 28px; } }


/* 联系页细调：标题去掉绿条，表单标签右置（旧站为「输入框 + 右侧标签」） */
.contact-block-title { border-left: 0 !important; padding-left: 0 !important; }
#contact-site-form .form-item { display: flex !important; align-items: flex-start; gap: 14px; }
#contact-site-form .form-item label {
  order: 2;
  flex: 0 0 96px;
  width: 96px;
  margin: 9px 0 0 !important;
  font-size: 13px !important;
  color: #555 !important;
}
#contact-site-form .form-item input,
#contact-site-form .form-item textarea { order: 1; flex: 1 1 auto; max-width: 372px; }
#contact-site-form .form-item-message { align-items: stretch; }
#contact-site-form .form-item-message textarea { min-height: 150px; }
#contact-site-form .contact-submit { margin-top: 6px; }


/* ===== 用户反馈微调（v14）：内页不再重复大标题、筛选条居中、方案图铺满 ===== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
#main h1.page-title { display: none !important; }
.pv-filters { text-align: center !important; margin: 0 0 24px !important; }
.pv-filters a { margin: 0 14px 8px !important; }
.pv-card img {
  object-fit: fill !important;
  height: 218px !important;
  background: #fff !important;
  border: 1px solid #e6e6e6 !important;
  box-sizing: border-box;
}
.pv-card > a { margin-bottom: 0 !important; }

/* ===== 横幅底：旧站那块是纯灰底（用户要求纯阴影，不要斜线） ===== */
.home-banner {
  background: #f2f2f2;
}
.home-banner .hb-slide { background: transparent; }


/* 页脚底部：版权 / 备案号 / 制作方（与旧站三分隔一致） */
#footer .region-footer-bottom {
  border-top: 1px solid #464545;
  margin-top: 26px;
  padding-top: 16px;
}
#footer .copyright, #footer .developed {
  font-size: 12px;
  line-height: 1.9;
}
#footer .region-footer-bottom::after {
  content: "";
  display: block;
  clear: both;
}
