/* 小屏适配补充；桌面布局沿用原页面样式。 */
@media (max-width: 1024px) {
  .float-cs { display: none !important; }
}
@media (max-width: 992px) {
  /* 产品卡高度由文字决定，避免固定高度与底部对齐造成大面积空白。 */
  .biz-grid .biz-panel { min-height: 0; }
  .biz-panel .panel-body { position: relative; inset: auto; height: 100%; justify-content: flex-start; padding: 32px 26px; }
  .biz-panel .panel-num { display: none; }
  .biz-panel .panel-mask { background: linear-gradient(135deg,rgba(0,0,0,.54),rgba(0,0,0,.7)); }
  .biz-panel .panel-subs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .biz-panel .panel-subs a { min-width: 0; }
  .biz-panel .panel-subs a span { min-width: 0; overflow-wrap: anywhere; }
  .cert-zones .cert-zone { color: var(--text); }
  .cert-float { display: none !important; }
  .cert-zone:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
  /* 横向栏目支持手指滑动，隐藏装饰性滚动条。 */
  .anchor-tabs, .gallery-nav .container { scrollbar-width: none; }
  .anchor-tabs::-webkit-scrollbar, .gallery-nav .container::-webkit-scrollbar { display: none; }
  .lab-detail-columns .lab-description { height: auto !important; overflow: visible; }
  .lab-detail-heading { flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 768px) {
  /* 手机主图保持完整宽度，缩略图放在下方横滑，正文自然随页面滚动。 */
  .lab-detail-columns .lab-gallery { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 10px; }
  .lab-thumbs { display: flex; overflow-x: auto; overflow-y: hidden; max-height: none !important; gap: 8px; scroll-snap-type: x proximity; }
  .lab-detail-columns .lab-thumb { flex: 0 0 86px; scroll-snap-align: start; }
  .lab-detail-columns .lab-description { padding: 18px 14px; }
  .lab-description table { table-layout: auto; }
  .lab-description td, .lab-description th { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .biz-panel .panel-body { padding: 26px 18px; }
  .biz-panel .panel-body h3 { font-size: 22px; letter-spacing: 0; }
  .biz-panel .panel-subs a { font-size: 13px; min-height: 44px; }
  .biz-panel .panel-subs a .icon:not(.sub-ico) { display: none; }
}
@media (max-width: 560px) {
  .site-header .lang-switch { display: none; }
  .site-header .header-right { gap: 0; }
}
@media (max-width: 768px) {
  /* 避免触屏填写时浏览器自动放大，保留验证码与提交按钮的触控空间。 */
  .apply-form input:not([type=hidden]), .apply-form textarea, .apply-form select,
  .contact-form input:not([type=hidden]), .contact-form textarea, .contact-form select { font-size: 16px; }
  .nw-content { min-width: 0; overflow-wrap: anywhere; }
  .nw-content img { max-width: 100% !important; height: auto !important; }
  .nw-content table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 360px) {
  .support-heading h2, .contact-heading h2 { font-size: 22px; }
}

/* 专题卡片的认证标签与理由文案在小屏完整展示。 */
@media (max-width: 768px) {
  .pd-certs { flex-wrap: wrap; overflow: visible; }
  .pd-cert { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .rs-grid { grid-auto-rows: minmax(230px, auto); }
  .rs-info { left: 18px; right: 18px; bottom: 18px; }
  .rs-info h4 { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
  .rs-info p, .rs-card-big .rs-info p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .gallery-lab .gallery-hero.generated-banner .banner-bg { right: 0; }
}
@media (max-width: 560px) {
  .rs-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 18px; }
  .rs-card-big { grid-column: auto; grid-row: auto; }
  .rs-card { background: #173e2c; }
  .rs-card picture { display: block; aspect-ratio: 8 / 5; background: #eef3f0; }
  .rs-card img { position: static; width: 100%; height: 100%; object-fit: contain; transform: none; }
  .rs-card:hover img { transform: none; }
  .rs-mask { display: none; }
  .rs-info { position: relative; inset: auto; padding: 18px; }
  .rs-info h4, .rs-card-big .rs-info h4 { font-size: 18px; }
  .rs-info p, .rs-card-big .rs-info p { font-size: 14px; }
  .footer-bar-links { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-bar-links > span { flex-basis: 100%; }
  .footer-beian { flex-direction: column; gap: 8px; }
  .footer-bar-links > i, .footer-beian > i { display: none; }
  .footer-beian a { max-width: 100%; overflow-wrap: anywhere; }
}
/* 富文本宽表格独立横向滚动，不能让整块正文被外层圆角面板裁掉。 */
.lab-table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.lab-table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
/* 旧版独立申请表：仅在小屏改为上下排列，保留桌面原有输出。 */
@media (max-width: 992px) {
  .mess { margin: 24px auto; padding: 20px; max-width: 640px; font: 15px/1.6 "Microsoft YaHei",sans-serif; color: #333; background: #f0f6f2; border-radius: 12px; }
  .mess, .mess * { box-sizing: border-box; }
  #book_post > table, #book_post > table > tbody, #book_post > table > tbody > tr, #book_post > table > tbody > tr > td { display: block; width: 100%; text-align: left; }
  #book_post > table > tbody > tr { margin-bottom: 14px; }
  #book_post > table > tbody > tr > td:first-child { margin-bottom: 5px; font-weight: 600; }
  #book_post input:not([type=hidden]):not([type=submit]), #book_post textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #d9e5dc; background: white; border-radius: 6px; font: 16px/1.5 sans-serif; }
  #book_post textarea { min-height: 130px; }
  #book_post input[type=submit] { padding: 12px 32px; border: 0; border-radius: 6px; background: #009b4c; color: white; font-size: 16px; }
}
@media (max-width: 992px) {
  /* 错误页也不应使用固定的 910px 宽度。 */
  #page { box-sizing: border-box; width: calc(100% - 32px); max-width: 640px; margin: 32px auto; padding: 20px; overflow-wrap: anywhere; }
  #page h1 { font-size: clamp(22px,5vw,32px); line-height: 1.5; }
}
@media (max-width: 768px) {
  .wall-head { min-width: 0; width: 100%; }
  .wall-head .wall-title { min-width: 0; max-width: 100%; white-space: normal; flex-wrap: wrap; gap: 8px; font-size: 22px; }
  .wall-head .wall-count { font-size: 12px; }
  .wall-head .wall-head-right, .wall-head .wall-search { width: 100%; min-width: 0; }
  .wall-head .wall-search input { min-width: 0; font-size: 16px; padding-right: 80px; }
  .wall-head .wall-search .ws-btn { padding-left: 16px; padding-right: 16px; }
}

/* 机器人与储能手机理由卡片：沿用首页整图背景与底部渐变，文案自然撑高。 */
@media (max-width: 768px) {
  :is(.robot-page, .solar-page) #advantage .rs-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
  :is(.robot-page, .solar-page) #advantage .rs-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
    background: transparent;
  }
  :is(.robot-page, .solar-page) #advantage .rs-card picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: transparent;
  }
  :is(.robot-page, .solar-page) #advantage .rs-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* 地图原有内联 contain 仅在手机整图卡片中覆盖。 */
    transform: none;
  }
  :is(.robot-page, .solar-page) #advantage .rs-mask {
    display: block;
    background: linear-gradient(185deg, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .68) 100%);
  }
  :is(.robot-page, .solar-page) #advantage .rs-info { position: relative; inset: auto; padding: 80px 18px 18px; background: transparent; }
  :is(.robot-page, .solar-page) #advantage .rs-info h4 { font-size: 18px; white-space: normal; }
  :is(.robot-page, .solar-page) #advantage .rs-info p { display: block; font-size: 14px; line-height: 1.7; overflow: visible; -webkit-line-clamp: unset; }
}
@media (max-width: 480px) {
  :is(.robot-page, .solar-page) #advantage .rs-card { min-height: 210px; }
}

/* Mobile section headings: keep desktop type and body copy unchanged. */
@media (max-width: 768px) {
  html[lang="en"] :is(.sec-title, .sub-title, .wall-title, .company-title,
    .news-channel-heading h2, .hot-countries-head h2, .contact-heading h2,
    .support-heading h2, .message-intro h2, .technical-cta h2,
    .search-results-heading h2, .search-empty h2, .nw-head h1,
    .footer-cta h3, .support-card h3) {
    font-size: 20px !important;
    line-height: 1.4;
  }
  html[lang="en"] :is(.search-hero h1, .map-hero h1) { font-size: 22px; }
  html[lang="en"] .biz-panel .panel-body h3 { font-size: 20px; line-height: 1.4; }
}

/* 首页机器人与储能卡片：手机端每行一个产品入口。 */
@media (max-width: 768px) {
  .biz-grid .biz-panel .panel-subs { grid-template-columns: minmax(0, 1fr); }
}

/* 手机端公司视频卡片名称，保留完整公司名称。 */
@media (max-width: 768px) {
  .company-grid .co-photo-text h3 { font-size: 18px; line-height: 1.4; }
}
