/* 上线验收补丁：桌面窄屏、多语言长文本与 RTL 布局。 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* 关于我们：创新成果支持任意数量图片，并在右侧提供醒目的切换按钮。 */
.about-page .achievements .achievement-swiper .swiper-slide { overflow: hidden; }
.about-page .achievements .achievement-swiper .swiper-slide img { transition: transform .35s ease; }
.about-page .achievements .achievement-swiper .swiper-slide:hover img { transform: scale(1.08); }
.about-page .achievements .achievement-swiper .achievement-controls {
  z-index: 5;
  right: 8px;
  top: 50%;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}
.about-page .achievements .achievement-swiper .achievement-controls button {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #0864d8;
  box-shadow: 0 8px 22px rgba(8, 100, 216, .24);
  transition: transform .2s ease, opacity .2s ease;
}
.about-page .achievements .achievement-swiper .achievement-controls button:hover { transform: scale(1.08); }
.about-page .achievements .achievement-swiper .achievement-controls button.swiper-button-disabled {
  display: grid !important;
  opacity: .42;
  cursor: default;
  transform: none;
}
.resume-job-text { white-space: pre-line; }

/* 首页智能工厂：一项轮播加三项固定内容，共四张。 */
.smart-factory .card,
.smart-factory .card--2,
.smart-factory .card--3,
.smart-factory .card--4 { width: 25%; }
.smart-factory .card--4 {
  margin-left: -2px;
  padding: 76px 36px 0 58px;
  box-sizing: border-box;
}
.smart-factory .card--4 .card-title { display: block; }
.smart-factory .card--4 .card-desc { margin-top: 74px; opacity: .7; }
.smart-factory .card--4 .card-line { width: 47px; height: 6px; margin-top: 74px; }

.page-shell .section-inner,
.inner-hero .hero-content {
  max-width: calc(100% - 48px);
}

.header .lang-btn span,
.header .menu-item > a,
.header .menu-item__main > a,
.banner .btn,
#products .btn {
  overflow-wrap: anywhere;
} 

@media (max-width: 1600px) and (min-width: 769px) {
  .header .logo { width: 260px; }
  .header .logo.active { width: 220px; }
  .header .nav { margin-right: 24px; }
  .header .menu { gap: 22px; }
  .header .menu-item a { font-size: 16px; }
  .header .right { gap: 12px; margin-right: 28px; }
  .header .lang-btn { max-width: 150px; padding: 8px 10px; }
  .header .lang-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #products .swiper .slide { overflow: hidden; }
  #products .swiper .product-panel {
    width: calc(100vw - 205px);
    flex-basis: calc(100vw - 205px);
    padding-right: 48px;
  }
  #products .swiper .box-right { width: 38%; margin-right: 24px; }

  #news {
    padding-left: 48px;
    padding-right: 48px;
    overflow: hidden;
  }
  #news .subtitle-row,
  #news .content { width: 100%; }
  #news .featured,
  #news .featured-img { width: 43%; }
  #news .list { width: calc(57% - 18px); }
  #news .item--main,
  #news .item--wide { width: 65%; }
  #news .item--side,
  #news .item--bottom { width: calc(35% - 19px); }

  .section-contact { overflow: hidden; }
  .section-contact .content { padding: 96px 48px 0; }
  .section-contact .form,
  .section-contact .row { width: 100%; }
  .section-contact .input { flex: 1; width: auto; min-width: 0; }
  .section-contact .textarea { width: 100%; }
  .section-contact .decoration { right: -260px; left: auto; opacity: .45; }

  .footer { padding-left: 48px; padding-right: 48px; }
  .footer .links { width: 100%; }
  .footer .box .item { margin-left: clamp(32px, 7vw, 110px); }
}

[dir="rtl"] .header .nav { margin-left: 24px; margin-right: auto; }
[dir="rtl"] .header .right { margin-left: 28px; margin-right: 0; }

@media (max-width: 768px) {
  .header .lang-btn span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* The actions are moved into the scrollable mobile nav by base.js. Keep the
     language choices in normal flow so the nav grows instead of clipping them. */
  .header .right {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .header .lang-dropdown {
    position: static;
    margin-top: 8px;
    min-width: 100%;
  }

  /* On mobile the search field gets its own full-width row. Anchoring the
     desktop popup to the icon's right edge made it extend past the left side. */
  .header .search.expanded {
    width: 100%;
    flex: 0 0 100%;
    order: 2;
  }
  .header .search.expanded .search-expand {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    transform: none;
  }
  .header .search.expanded .search-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-right: 42px;
  }

  .section-contact .title,
  .section-contact .desc,
  .news-item__content h3,
  .detail-section-head h2 { overflow-wrap: anywhere; }
}

/* 多语言长文本：产品切换横向滚动，操作按钮随文字伸展且不换行。 */
#products .head .nav {
  display: flex;
  flex-wrap: nowrap;
  max-width: calc(100% - 240px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#products .head .nav .navtab {
  flex: 0 0 auto;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner .btn,
#products .btn,
#news .more-btn {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
}

#products .btn { padding-right: 18px; }
#news .more-btn { display: inline-flex; align-items: center; padding-right: 24px; }
#news .featured,
#news .item { color: inherit; text-decoration: none; }

/* 首页新闻长文本限制在卡片内，避免英文长单词撑破布局。 */
#news .item,
#news .item-content { min-width: 0; overflow: hidden; }
#news .item-title,
#news .item-desc {
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
#news .item-title { -webkit-line-clamp: 3; }
#news .item-desc { -webkit-line-clamp: 2; }
#news .item--main .item-title,
#news .item--wide .item-title { -webkit-line-clamp: 2; }
#news .item--main .item-desc,
#news .item--wide .item-desc { margin-top: 16px; }
#news .item--main .item-meta,
#news .item--wide .item-meta { margin-top: 16px; }

/* 产品中心“最新产品”支持多条轮播。 */
.latest-products-carousel {
  position: relative;
  padding: 0 54px 30px;
}
.latest-products-swiper { overflow: hidden; }
.latest-products-prev,
.latest-products-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: #0864d8;
  cursor: pointer;
}
.latest-products-prev { left: 0; }
.latest-products-next { right: 0; }
.latest-products-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0 !important;
  text-align: center;
}
.latest-products-pagination .swiper-pagination-bullet-active { background: #0864d8; }

/* 全球营销网络的四个区域标记。 */
.about-page .network .map .map-dot--americas { left: -18%; top: 50%; }
.about-page .network .map .map-dot--europe { left: 32%; top: 31%; animation-delay: .3s; }
.about-page .network .map .map-dot--africa { left: 30%; top: 92%; animation-delay: .6s; }
.about-page .network .map .map-dot--asia { left: 70%; top: 38%; animation-delay: .9s; }
.about-page .network .map .map-dot small {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  color: #0755ad;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.about-page .projects .project-tabs { display: none; }

/* 视频图只按公司介绍文字所在行垂直居中，下方装饰图单独占下一行。 */
.about-page .about-intro .intro-layout { column-gap: 100px; row-gap: 24px; }
.about-page .about-intro .intro-copy { grid-column: 1; grid-row: 1; }
.about-page .about-intro .intro-media { grid-column: 2; grid-row: 1; align-self: center; }
.about-page .about-intro .text-img { grid-column: 1; grid-row: 2; }

/* 首页首屏文案按新版视觉稿移到画面右侧，避开左侧留白区。 */
@media (min-width: 769px) {
  .banner .content {
    padding-left: clamp(390px, 48vw, 1040px);
    padding-right: clamp(36px, 6vw, 135px);
  }
  .banner .subtitle { font-size: clamp(26px, 2.5vw, 48px); }
  .banner .title { font-size: clamp(44px, 5vw, 94px); line-height: 1.25; }
  html:not([lang^="zh" i]) .banner .title-group .title { font-size: 50px; }
}

@media (max-width: 768px) {
  /* 首页首屏在手机上稍作收敛，保留按钮随多语言文字伸展。 */
  .banner .subtitle { font-size: 18px; }
  .banner .title { font-size: 28px; line-height: 1.28; }
  html:not([lang^="zh" i]) .banner .title-group .title { font-size: 22px; }
  .banner .buttons { gap: 10px; margin-top: 24px; }
  .banner .btn {
    min-width: max-content;
    padding-right: 16px;
    font-size: 13px;
    line-height: 34px;
  }
  .banner .btn-icon { width: 29px; height: 29px; }

  .latest-products-carousel { padding: 0 0 42px; }
  .latest-products-prev,
  .latest-products-next {
    top: auto;
    bottom: 2px;
    width: 34px;
    height: 34px;
    transform: none;
  }
  .latest-products-pagination { bottom: 10px !important; }

  /* 触屏端不响应智能工厂卡片的桌面悬停扩宽。 */
  .smart-factory .card,
  .smart-factory .card--2,
  .smart-factory .card--3 { transition: none !important; }
  .smart-factory .card:hover,
  .smart-factory .card--2:hover,
  .smart-factory .card--3:hover { width: 100%; }

  #products .head .nav {
    display: flex;
    max-width: 100%;
    gap: 10px;
    margin-top: 20px;
  }
  #products .head .nav .navtab {
    min-width: max-content;
    max-width: 220px;
    margin-left: 0;
    line-height: 1.35;
    white-space: nowrap;
  }
  .about-page .about-intro .intro-layout { grid-template-columns: 1fr; row-gap: 24px; }
  .about-page .about-intro .intro-copy { grid-column: 1; grid-row: 1; }
  .about-page .about-intro .text-img { grid-column: 1; grid-row: 2; }
  .about-page .about-intro .intro-media { grid-column: 1; grid-row: 3; }

  /* 年份可横向滚动，左右按钮固定保留在可视区域。 */
  .about-page .history .history-swiper { padding-left: 0; padding-right: 0; }
  .about-page .history .history-nav {
    z-index: 61;
    left: 0;
    right: 0;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 4px;
  }
  .about-page .history .history-nav .history-pagination {
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 88px;
  }
  .about-page .history .history-nav .swiper-pagination-bullet span{
    margin-top:-18px;
  }
  .about-page .history .history-nav .history-pagination::-webkit-scrollbar { display: none; }
  .about-page .history .history-nav .swiper-pagination-bullet {
    flex: 0 0 48px;
    width: 48px;
  }
  .about-page .history .history-nav > button {
    position: relative;
    z-index: 3;
    width: 34px;
    height: 34px;
  }

  /* 手机端参与项目改为同一位置的分类切换。 */
  .about-page .projects {
    background-image: linear-gradient(rgba(0, 73, 166, .3), rgba(0, 73, 166, .3)), url('../assets/about-pic4.jpg');
  }
  .about-page .projects .project-backdrop { background: rgba(0, 81, 179, .94); }
  .about-page .projects .project-tabs {
    display: flex;
    gap: 8px;
    margin: -18px 20px 24px;
  }
  .about-page .projects .project-tabs button {
    flex: 1;
    min-width: 0;
    padding: 11px 8px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 4px;
    background: transparent;
    font-size: 14px;
  }
  .about-page .projects .project-tabs button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .2);
  }
  .about-page .projects .section-title h2,
  .about-page .projects .section-title h2 i { color: #fff; }
  .about-page .projects .project-columns { display: block; }
  .about-page .projects .project-column,
  .about-page .projects .project-column.white {
    display: none;
    min-height: 360px;
    padding: 20px 20px 48px;
    color: #fff;
  }
  .about-page .projects .project-column.is-active { display: block; }
  .about-page .projects .project-column h3 { display: none; }
  .about-page .projects .project-column.white article { grid-template-columns: 1fr 64px; }
  .about-page .projects .project-column.white article p { grid-column: 1; }
  .about-page .projects .project-column.white article .icon { grid-column: 2; }

  .about-page .network .map { height: 460px; }
  .about-page .network .map aside { top: 250px; bottom: auto; }
  .about-page .network .map .map-dot { z-index: 2; }
  .about-page .network .map .map-dot--americas { top: 180px; }
  .about-page .network .map .map-dot--europe { top: 112px; }
  .about-page .network .map .map-dot--africa { top: 190px; }
  .about-page .network .map .map-dot--asia { top: 137px; }
  .about-page .network .map .map-dot small { top: 16px; font-size: 11px; }
}
.resume-form .resume-form-feedback{margin:22px auto -32px;padding:10px 16px;width:calc(100% - 48px);border-radius:4px;text-align:center;font-size:14px;line-height:1.6;box-sizing:border-box}.resume-form .resume-form-feedback[hidden]{display:none}.resume-form .resume-form-feedback.is-error{color:#b42318;background:#fff1f0;border:1px solid #ffccc7}.resume-form .resume-form-feedback.is-success{color:#087443;background:#edfdf3;border:1px solid #b7ebc6}.resume-form input:invalid,.resume-form select:invalid{box-shadow:none}
html:not([lang="zh-cn"]) .resume-form label span{width:140px;padding-left:14px;padding-right:8px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}@media(max-width:768px){html:not([lang="zh-cn"]) .resume-form label span{width:118px}.resume-form .resume-form-feedback{width:calc(100% - 24px);margin-top:16px;margin-bottom:-18px}}

/* 2026-09 mobile regression fixes */
.industry-page .base-panel--bases:not(.has-selection) .base-panel__shade {
  background: rgba(255, 255, 255, .96);
}
.industry-page .base-panel--bases.has-selection .base-panel__shade {
  background: linear-gradient(90deg, rgba(239,245,249,.18), rgba(239,245,249,.06));
}

@media (max-width: 768px) {
  .smart-factory {
    overflow: hidden;
    padding: 48px 16px 56px;
    background-position: center top;
    background-size: cover;
  }
  .smart-factory .cards {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    margin: 34px 0 0 !important;
  }
  .smart-factory .card,
  .smart-factory .card--2,
  .smart-factory .card--3,
  .smart-factory .card--4 {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    width: 100% !important;
    min-width: 0;
    min-height: 240px;
    height: 240px;
    margin: 0 !important;
    padding: 28px 24px !important;
    background-position: center;
    background-size: cover;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
  }
  .smart-factory .card::before,
  .smart-factory .card--2::before,
  .smart-factory .card--3::before,
  .smart-factory .card--4::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 28, 72, .76), rgba(0, 55, 128, .2));
  }
  .smart-factory .card:hover,
  .smart-factory .card--2:hover,
  .smart-factory .card--3:hover,
  .smart-factory .card--4:hover { width: 100% !important; }
  .smart-factory .card-desc,
  .smart-factory .card--2 .card-desc,
  .smart-factory .card--3 .card-desc,
  .smart-factory .card--4 .card-desc {
    margin-top: 34px;
    opacity: 1;
  }
  .smart-factory .card-line,
  .smart-factory .card--2 .card-line,
  .smart-factory .card--3 .card-line,
  .smart-factory .card--4 .card-line {
    display: block;
    width: 47px;
    height: 6px;
    margin-top: auto;
    object-fit: contain;
  }
  .smart-factory .card-line{
    width: 100px;
    height: 68px;
  }

  .footer .box .box-right {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 20px !important;
  }
  .footer .box .item {
    min-width: 0;
    margin-left: 0 !important;
  }
  .footer .box .item a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-page .product-card {
    height: auto !important;
    min-height: 300px;
  }
  .product-page .product-card__image {
    height: auto !important;
    min-height: 230px;
    padding: 18px 14px 86px;
    box-sizing: border-box;
  }
  .product-page .product-card__image img {
    display: block;
    width: 100%;
    height: 210px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  /* .footer .box .box-right { grid-template-columns: minmax(0, 1fr) !important; } */
}
