/* ==========================================================================
   全站公共组件样式（导航报价按钮 / 左右悬浮联系 / 报价弹窗 / 服务流程条 / 页脚扩展）
   与 style.min.css 并存，不改动原有样式，仅新增 .ld- 前缀的类
   ========================================================================== */

/* ---------- 1. 导航栏「获取报价」按钮 ---------- */
.ld-nav-quote {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  margin-right: 18px;
  border-radius: 30px;
  background: var(--primary-color, #2460f2);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(36, 96, 242, 0.28);
  transition: 0.3s;
}
.ld-nav-quote i {
  margin-right: 6px;
}
.ld-nav-quote:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(36, 96, 242, 0.4);
}

/* ---------- 2. 左右悬浮联系 ---------- */
.ld-float {
  position: fixed;
  bottom: 150px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ld-float-left {
  left: 16px;
}
.ld-float-right {
  right: 16px;
}

.ld-float-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #333;
  transition: 0.3s;
}
.ld-float-item:hover {
  background: var(--primary-color, #2460f2);
  color: #fff;
}
.ld-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
}
.ld-float-item img.ld-float-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* 悬浮气泡（二维码） */
.ld-float-pop {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) scale(0.9);
  width: 158px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  text-align: center;
  pointer-events: none;
}
.ld-float-right .ld-float-pop {
  left: auto;
  right: calc(100% + 12px);
}
.ld-float-item:hover .ld-float-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.ld-float-pop::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #fff;
  transform: rotate(45deg);
}
.ld-float-right .ld-float-pop::before {
  left: auto;
  right: -6px;
}
.ld-float-pop img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
}
.ld-float-pop p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* 右侧文字标签 */
.ld-float-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  padding: 4px 10px;
  background: var(--primary-color, #2460f2);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  pointer-events: none;
}
.ld-float-item:hover .ld-float-label {
  opacity: 1;
  visibility: visible;
}

/* 返回顶部 */
.ld-float-item#gttop {
  cursor: pointer;
  background: #1f232b;
  color: #fff;
}

/* ---------- 3. 报价弹窗 ---------- */
.ld-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
}
.ld-modal:target {
  display: block;
}
.ld-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.ld-modal-box {
  position: relative;
  width: 92%;
  max-width: 460px;
  margin: 8vh auto 0;
  padding: 30px 30px 26px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.ld-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 26px;
  line-height: 1;
  color: #999;
}
.ld-modal-close:hover {
  color: #333;
}
.ld-modal-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ld-modal-box > p {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}
.ld-modal-form input,
.ld-modal-form textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}
.ld-modal-form input:focus,
.ld-modal-form textarea:focus {
  border-color: var(--primary-color, #2460f2);
}
.ld-modal-form textarea {
  height: 92px;
  resize: vertical;
}
.ld-modal-form button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--primary-color, #2460f2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.ld-modal-form button:hover {
  opacity: 0.9;
}

/* ---------- 4. 服务流程条 ---------- */
.ld-flow {
  padding: 60px 0;
  background: #f5f7fa;
}
.ld-flow-list {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.ld-flow-list li {
  position: relative;
  flex: 1 1 12.5%;
  min-width: 130px;
  padding: 0 10px;
  text-align: center;
}
/* 连接线 */
.ld-flow-list li::after {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 1px;
  border-top: 1px dashed #c9d2e3;
}
.ld-flow-list li:last-child::after {
  display: none;
}
.ld-flow-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 50%;
  color: var(--primary-color, #2460f2);
  font-size: 26px;
  transition: 0.3s;
}
.ld-flow-list li:hover .ld-flow-icon {
  background: var(--primary-color, #2460f2);
  border-color: var(--primary-color, #2460f2);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(36, 96, 242, 0.25);
}
.ld-flow-num {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f232b;
  color: #fff;
  font-size: 11px;
}
.ld-flow-list h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ld-flow-list p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 5. 页脚扩展 ---------- */
.footer-menu ul {
  flex-wrap: wrap;
}
.footer-menu li {
  margin-right: 30px;
  margin-bottom: 10px;
}
.footer-about {
  padding-top: 20px;
  color: #999;
}
.footer-about .footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #eee;
  margin-bottom: 10px;
}
.footer-about .footer-desc {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 友情链接下方的社媒入口行 */
.footer-social-wrap {
  padding: 18px 0 6px;
}
.footer-social a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #3a3f48;
  border-radius: 50%;
  color: #aaa;
  font-size: 16px;
  transition: 0.3s;
}
.footer-social a:hover {
  background: var(--primary-color, #2460f2);
  border-color: var(--primary-color, #2460f2);
  color: #fff;
}
.footer-social a span {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  white-space: nowrap;
}
.footer-social a:hover span {
  opacity: 1;
  visibility: visible;
}
.footer-social a span img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}
.footer-map {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.footer-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  filter: grayscale(100%);
  transition: 0.4s;
}
.footer-map:hover iframe {
  filter: grayscale(0);
}

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1199px) {
  .ld-flow-list li {
    flex: 0 0 25%;
    max-width: 25%;
    margin-bottom: 30px;
  }
  .ld-flow-list li::after {
    display: none;
  }
}
@media (max-width: 991px) {
  .footer-about {
    padding-bottom: 20px;
  }
  .ld-nav-quote {
    height: 34px;
    padding: 0 14px;
    margin-right: 10px;
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  .footer-social-wrap {
    padding: 14px 0 4px;
  }
  .ld-float-left {
    display: none;
  }
  .ld-float {
    bottom: 90px;
    right: 10px;
  }
  .ld-float-right .ld-float-pop {
    display: none;
  }
  .ld-flow {
    padding: 40px 0;
  }
  .ld-flow-list li {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .ld-flow-icon {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  .ld-modal-box {
    padding: 24px 20px 20px;
    margin-top: 5vh;
  }
}
@media (max-width: 575px) {
  /* 手机端导航空间不足，报价入口由右侧悬浮按钮承担 */
  .ld-nav-quote {
    display: none;
  }
}

/* ==========================================================================
   合作品牌网格（自适应换行，两行不够自动加三行四行）
   ========================================================================== */
.ld-brand-section {
  padding: 60px 0;
}
.ld-brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}
.ld-brand-item {
  flex: 0 0 auto;
  width: calc((100% - 5 * 24px) / 6);   /* 桌面一行 6 个 */
  min-width: 0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.ld-brand-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #ddd;
}
.ld-brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.ld-brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 1199px) {
  .ld-brand-item {
    width: calc((100% - 4 * 24px) / 5);   /* 平板一行 5 个 */
  }
}
@media (max-width: 991px) {
  .ld-brand-item {
    width: calc((100% - 3 * 20px) / 4);   /* 小屏一行 4 个 */
    height: 70px;
    padding: 12px 18px;
  }
}
@media (max-width: 767px) {
  .ld-brand-section {
    padding: 40px 0;
  }
  .ld-brand-grid {
    gap: 16px;
  }
  .ld-brand-item {
    width: calc((100% - 2 * 16px) / 3);   /* 手机一行 3 个 */
    height: 60px;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   客户参观图片滚动（两行，上行左→右，下行右→左，hover 暂停）
   ========================================================================== */
.ld-visit-section {
  padding: 60px 0;
  background: #fafbfc;
  overflow: hidden;
}
.ld-visit-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ld-visit-row {
  overflow: hidden;
}
.ld-visit-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
}
/* 上行：左 → 右，52s 一轮 */
.ld-visit-row--top .ld-visit-track {
  animation: ld-visit-scroll-lr 52s linear infinite;
}
/* 下行：右 → 左，44s 一轮（反向 + 速度略不同，避免同步单调） */
.ld-visit-row--bottom .ld-visit-track {
  animation: ld-visit-scroll-rl 44s linear infinite;
}
.ld-visit-row:hover .ld-visit-track {
  animation-play-state: paused;
}
@keyframes ld-visit-scroll-lr {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ld-visit-scroll-rl {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.ld-visit-item {
  flex: 0 0 auto;
  width: 280px;
  height: 175px;              /* 16:9 */
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.ld-visit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.ld-visit-item:hover img {
  transform: scale(1.06);
}
@media (max-width: 1199px) {
  .ld-visit-item { width: 240px; height: 150px; }
}
@media (max-width: 767px) {
  .ld-visit-section { padding: 40px 0; }
  .ld-visit-item { width: 180px; height: 112px; }
  .ld-visit-rows { gap: 12px; }
  .ld-visit-track { gap: 12px; }
  .ld-visit-row--top .ld-visit-track { animation-duration: 38s; }
  .ld-visit-row--bottom .ld-visit-track { animation-duration: 32s; }
}

/* ==========================================================================
   西语 / 俄语导航：取消自动大写，字号与间距与英文站保持一致
   （西/俄文案实际宽度小于英文，无需再单独缩小字号）
   ========================================================================== */
header .logo {
  flex: 0 0 auto;
}
html[lang="es"] .nav-pc a,
html[lang="ru"] .nav-pc a {
  text-transform: none;
}
/* 西/俄语小写观感比英文大写偏小，桌面端字号加大到 16px */
@media (min-width: 1200px) {
  html[lang="es"] .nav-pc .menu > ul > li a,
  html[lang="ru"] .nav-pc .menu > ul > li a {
    font-size: 16px;
  }
}
/* 小屏笔记本（<1200）俄语文案最长，略收紧避免最后一项被裁掉；西语无需处理 */
@media (max-width: 1199.98px) {
  html[lang="ru"] .nav-pc .menu > ul > li {
    padding: 0 8px;
  }
  html[lang="ru"] .nav-pc .menu > ul > li a {
    font-size: 13px;
  }
}

/* ==========================================================================
   联系我们页（参考样式：左侧公司信息 + 地图 / 右侧灰底留言卡片）
   ========================================================================== */
.ld-contact {
  padding: 60px 0 70px;
  background: #fff;
}
.ld-contact-info {
  padding-right: 30px;
}
.ld-contact-name {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #1c1c1c;
}
.ld-contact-line {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.ld-contact-line strong {
  margin-right: 6px;
  font-weight: 700;
  color: #111;
}
.ld-contact-line a {
  color: var(--primary-color, #2460f2);
  text-decoration: underline;
  word-break: break-all;
}
.ld-contact-line a:hover {
  opacity: 0.85;
}
.ld-contact-map-inline {
  margin-top: 28px;
  overflow: hidden;
  line-height: 0;
  border-radius: 4px;
  background: #eee;
}
.ld-contact-map-inline iframe {
  width: 100%;
  height: 380px;
  border: 0;
}
.ld-touch-card {
  height: 100%;
  padding: 42px 30px 36px;
  background: #f4f4f4;
}
.ld-touch-card h3 {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1c1c1c;
}
.ld-touch-field {
  margin-bottom: 16px;
}
.ld-touch-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #5f5f5f;
}
.ld-touch-field > label em {
  font-style: normal;
  color: #d93025;
}
.ld-touch-ctrl {
  position: relative;
}
.ld-touch-ctrl input,
.ld-touch-ctrl textarea {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.ld-touch-ctrl textarea {
  height: 132px;
  padding: 10px 12px;
  resize: vertical;
}
.ld-touch-ctrl input:focus,
.ld-touch-ctrl textarea:focus {
  border-color: var(--primary-color, #2460f2);
}
.ld-touch-ctrl i {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #444;
  pointer-events: none;
}
.ld-touch-form button {
  margin-top: 8px;
  height: 40px;
  padding: 0 30px;
  border: 0;
  border-radius: 20px;
  background: var(--primary-color, #2460f2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.ld-touch-form button:hover {
  opacity: 0.9;
}
@media (max-width: 991px) {
  .ld-contact {
    padding: 40px 0 50px;
  }
  .ld-contact-info {
    padding: 0 0 24px;
  }
  .ld-contact-map-inline iframe {
    height: 300px;
  }
  .ld-touch-card {
    height: auto;
    margin-top: 10px;
    padding: 30px 20px 26px;
  }
}
@media (max-width: 575px) {
  .ld-contact-name {
    font-size: 20px;
  }
  .ld-touch-card h3 {
    font-size: 24px;
  }
}
