/* 本文件只在 ≤1024px 加载生效（functions.php 里 media 属性），电脑版不阻塞渲染；
   电脑版也要用的 .m-only / .kfe-pic / 汉堡按钮隐藏 已移到 v2.css 末尾 */
/* 手机/平板专用字体名：只含拉丁字形（与电脑版同一文件，约 17KB），中文用系统字体，
   避免手机下载 3 个各 4.8MB 的中文字体文件（电脑版不使用这个字体名，不受影响） */
@font-face { font-family: "KFE Latin"; src: url(fonts/OPPOSans-R-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "KFE Latin"; src: url(fonts/OPPOSans-M-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "KFE Latin"; src: url(fonts/OPPOSans-B-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0020-007E, U+00A0-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122; }
/* KFE 手机/平板版：全部写在 max-width 媒体查询里，电脑版（>1024px）不受影响 */

@media (max-width: 1024px) {
  :root { --header-h: 58px; }
  body { min-width: 0; font-size: 15px; overflow-x: hidden; }
  html, body { max-width: 100%; }
  img, video, iframe { max-width: 100%; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .container { width: auto; margin-inline: 0; padding-inline: 16px; }

  /* ---- 导航栏：logo + 搜索 + 语言 + 汉堡按钮 ---- */
  .site-header__bar { width: auto; padding-inline: 16px; gap: 6px; }
  .brand__logo { height: 32px; width: auto; }
  .brand__name { font-size: 22px; }
  .mega-panel { display: none !important; }
  .header-tools { margin-inline-start: auto; gap: 4px; }
  .header-tools__divider { display: none; }
  .header-tools__search, .lang-switch__current, .nav-burger { min-width: 44px; height: 44px; }
  .lang-switch__current { font-size: 15px; }
  .lang-switch__menu { top: calc(100% + 8px); }
  .lang-switch__menu a, .lang-switch__menu span { min-height: 44px; align-items: center; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
  .nav-burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 抽屉菜单：从导航栏下方铺满屏幕 */
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; height: auto; padding: 8px 16px 40px; background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .site-header.is-nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .site-header.is-nav-open { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .site-header.is-nav-open .brand__name { color: var(--blue) !important; }
  .main-nav__list { display: block; height: auto; max-width: none; white-space: normal; }
  .main-nav__item { display: flex; flex-wrap: wrap; align-items: stretch; height: auto; border-bottom: 1px solid #e8edf3; }
  .main-nav__link { flex: 1; min-height: 52px; height: auto; padding: 10px 4px; font-size: 17px; white-space: normal; color: var(--ink) !important; }
  .main-nav__link::after { display: none; }
  .main-nav__item.is-current > .main-nav__link { color: var(--blue) !important; font-weight: 600; }
  .main-nav__toggle { display: grid; place-items: center; width: 52px; min-height: 52px; padding: 0; color: var(--ink); background: none; border: 0; cursor: pointer; }
  .main-nav__toggle::before { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
  .main-nav__toggle[aria-expanded="true"]::before { transform: translateY(3px) rotate(-135deg); }
  .main-nav__sub, .site-header.is-mega .main-nav__sub { position: static; flex-basis: 100%; transform: none; padding: 0 0 8px; opacity: 1; visibility: visible; display: none; }
  .main-nav__item.is-sub-open > .main-nav__sub { display: block; }
  .main-nav__sub a, .main-nav__item--industries .main-nav__sub a { display: flex; align-items: center; min-height: 44px; width: auto; max-width: none; margin: 0; padding: 8px 16px; font-size: 15px; line-height: 1.4; text-align: start; white-space: normal; color: #555; }
  .main-nav__sub a:hover, .main-nav__sub a:focus { color: var(--blue); }
  body.is-nav-locked { overflow: hidden; }

  /* 搜索框 */
  .site-search { padding: 16px 0; }
  .site-search__form { width: 92%; gap: 8px; }
  .site-search__form input { min-width: 0; height: 46px; padding: 0 16px; }
  .site-search__form button { height: 46px; padding: 0 16px; flex: none; }
}

/* ===================== 手机/平板改版（06-手机端改版方案）：≤1024 共用 ===================== */
@media (max-width: 1024px) {
  :root { --fs-h1: 26px; --fs-h2: 22px; --fs-h3: 18px; --fs-body: 16px; --fs-small: 14px;
    --font: "KFE Latin", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
  body { font-size: 16px; line-height: 1.6; color: #333; }
  h1, h2, h3, p, li, a, td, th, dt, dd, summary { overflow-wrap: anywhere; }
  .m-only { display: block; }
  .skip-link { left: 8px; transform: translateY(-200%); }
  .skip-link:focus { transform: none; }
  html[dir="rtl"] .skip-link { left: auto; right: 8px; transform: translateY(-200%); }
  html[dir="rtl"] .skip-link:focus { transform: none; }
  input, select, textarea { max-width: 100%; font-size: 16px; }

  /* 统一字号层级与正文 */
  .sec-title, .ind-block h2, .about-values h2, .about-talent h2, .careers-intro h2, .jobs__title, .steps h2, .svc-row h2, .faq__group,
  .contact-quick h2, .contact-form h2, .news-sec__head h2, .article__products h2, .product__related h2, .product__articles h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin-bottom: 16px; }
  .news-sec__head h1, .faq h1, .industry__main h1, .page-hero h1, .about-intro h1, .article h1, .contact__head h1, .product-list__title, .product__card h1 { font-size: 26px; line-height: 1.25; }
  .sec-sub { margin-bottom: 24px; font-size: 15px; line-height: 1.55; }
  .ind-block > p, .about-intro p, .article__body, .faq__a, .careers-intro p, .cta-band p, .contact__head p, .howto__list dd, .jobs__apply { font-size: 16px; line-height: 1.6; color: #333; font-weight: 400; }

  /* 区块间距 40px */
  .news-sec, .pains, .howto, .svc-tiles, .about-values, .about-talent, .steps, .jobs { padding-top: 40px; padding-bottom: 40px; }
  .svc-rows { padding: 8px 0 40px; }
  .about-intro { padding: 32px 16px; gap: 20px; }
  .careers-intro { padding-top: 40px; padding-bottom: 8px; }
  .sec-title--gap { margin-top: 40px; }

  /* 栏目页顶部图 */
  .page-hero { height: auto; min-height: 0; padding: 40px 16px; background-image: linear-gradient(rgba(0,33,94,.45), rgba(0,33,94,.45)), var(--img-m, var(--img)); }
  .page-hero__copy { width: 100%; max-width: none; }
  .page-hero h1 { margin-bottom: 10px; }
  .page-hero p { max-width: 100%; font-size: 15px; line-height: 1.55; }
  .sub-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .sub-tabs a { height: 48px; line-height: 48px; white-space: nowrap; font-size: 15px; }

  /* 底部咨询条：≤280px，一个标题 + 一个按钮 */
  .cta-band { display: block; min-height: 0; padding: 40px 16px; background: linear-gradient(rgba(0,40,100,.82), rgba(0,40,100,.82)), var(--img) center / cover no-repeat !important; text-align: center; }
  .cta-band__copy { width: auto; padding: 0; }
  .cta-band { background: linear-gradient(rgba(0,40,100,.82), rgba(0,40,100,.82)), var(--img-m, var(--img)) center / cover no-repeat !important; }
  .cta-band h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: #fff; }
  .cta-band p { display: block; max-width: 520px; margin: 0 auto 18px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.9); }
  .cta-band__btn { min-width: 0; height: 48px; margin: 0; padding: 0 32px; line-height: 48px; font-size: 16px; background: #fff !important; color: var(--blue) !important; }

  /* 表单 */
  .contact-form__btn { width: 100%; max-width: 100%; }
  .contact-form__trap { position: absolute !important; left: 0 !important; right: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
  .news-search, .news-search__box { max-width: 100%; }
  .news-search { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .news-search__box { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; padding: 0 14px; }
  .news-search .pill-btn { flex: none; height: 44px; padding: 0 18px; font-size: 15px; }
  .pill-btn { height: 44px; padding: 0 22px; font-size: 15px; }

  /* 表格：外层横滑 */
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-footer::after { font-size: 120px; }
}

/* ---------- 卡片网格：平板 3 列 / 手机 2 列（业主要求：不一卡一行） ---------- */
@media (max-width: 1024px) {
  .news-grid, .news-grid--three, .product-grid, .product__related .product-grid, .article__products .product-grid,
  .pains__grid, .pains__grid--4, .about-values__grid, .about-values__grid--3, .steps__list, .svc-tiles__grid, .ind-icons, .ind-icons--5, .ind-cards
  { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 100%; }
  .about-intro, .job__body, .svc-list, .product__top, .product__guide { grid-template-columns: minmax(0, 1fr); }

  /* 新闻卡（首页、列表、相关文章、搜索） */
  .news-card__link { border-radius: 14px; }
  .news-card__link:hover { transform: none; box-shadow: none; }
  .news-card__img { border-radius: 14px; }
  .news-card__body { padding: 12px 12px 14px; }
  .news-card h3 { margin-bottom: 10px; font-size: 16px; line-height: 1.4; }
  .news-card__btn { padding-top: 10px; font-size: 14px; }
  .news-sec__head { flex-wrap: wrap; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; }
  .news-sec--page { padding-top: calc(var(--header-h) + 24px); }
  .pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; margin-top: 28px; }
  .pager .page-numbers { min-width: 44px; height: 44px; margin: 0; padding: 0 12px; line-height: 44px; font-size: 15px; }
  .pager .page-numbers.is-off { display: none; } /* 到头时置灰的“首页/上一页”等按钮不占位 */

  /* 产品 / 行业卡 */
  .prod-card__img { border-radius: 8px; padding: 6px; }
  .prod-card h3 { margin-top: 8px; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .industry-list .prod-card__img { aspect-ratio: 2.2 / 1; padding: 0; } /* 行业原图约 2:1–2.4:1，按 2.2:1 显示，几乎不裁切 */
  .industry-list .prod-card h3 { font-size: 15px; font-weight: 500; }
  .product-list .container { padding: 28px 16px 40px; }
  .product-list__title { margin-bottom: 12px; }
  .product-list__lead { max-width: 100%; margin: 0 0 20px; font-size: 15px; line-height: 1.55; }

  /* 痛点卡：图标 + 标题 + 摘要截断 */
  .pains .sec-title { margin-bottom: 20px; }
  .pain { padding: 16px 12px; border-radius: 10px; }
  .pain__ico { margin-bottom: 8px; }
  .pain__ico .kfe-icon { width: 36px; height: 36px; }
  .pain__ico i { width: 16px; height: 16px; font-size: 12px; }
  .pain h3 { margin-bottom: 6px; font-size: 16px; line-height: 1.35; }
  .pain p { font-size: 13px; line-height: 1.5; }
  .pain--list li { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }

  /* 价值观 / 人才观卡 */
  .about-value { padding: 16px 12px; border-radius: 10px; }
  .about-value .line-ico .kfe-icon { width: 40px; height: 40px; }
  .about-value .line-ico { margin-bottom: 8px; }
  .about-value h3 { margin-bottom: 6px; font-size: 15px; line-height: 1.35; }
  .about-value p { font-size: 13px; line-height: 1.55; }
  .about-talent__sub { margin-bottom: 16px; font-size: 16px; }
  .about-eyebrow { font-size: 13px; }

  /* 合作步骤 / 服务方块 / 行业图标 */
  .steps__list li { padding: 16px 12px; border-radius: 10px; }
  .steps__list span.line-ico .kfe-icon { width: 40px; height: 40px; }
  .steps__list h3 { margin-bottom: 6px; font-size: 16px; }
  .steps__list p { font-size: 13px; line-height: 1.55; }
  .svc-tile { height: auto; min-height: 96px; gap: 8px; padding: 12px 8px; font-size: 14px; line-height: 1.35; border-radius: 10px; }
  .svc-tile .kfe-icon { width: 36px; height: 36px; }
  .ind-icon span .kfe-icon, .ind-icon .line-ico .kfe-icon { width: 44px; height: 44px; }
  .ind-icon p { font-size: 15px; }
  .ind-card { padding: 14px 12px; font-size: 14px; line-height: 1.55; border-radius: 10px; }
}
@media (max-width: 768px) {
  .news-grid, .news-grid--three, .product-grid, .product__related .product-grid, .article__products .product-grid,
  .pains__grid, .pains__grid--4, .about-values__grid, .about-values__grid--3, .steps__list, .svc-tiles__grid, .ind-icons, .ind-icons--5, .ind-cards
  { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- 首页 ---------- */
@media (max-width: 1024px) {
  /* 首屏图：导航栏实色，图片在导航栏下方，按原图比例完整显示（不裁剪）；只在图片底部压一行标题 + 按钮 */
  .home main { padding-top: var(--header-h); }
  .site-header.is-over-hero { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .home-hero { height: auto; background: #dfe9f2; }
  .home-hero img { width: 100%; height: auto; aspect-ratio: 1920 / 998; object-fit: cover; }
  .home-hero__pins { display: none; }
  .home-hero__m { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 28px 16px 12px; background: linear-gradient(180deg, rgba(0,20,50,0), rgba(0,20,50,.7)); color: #fff; }
  .home-hero__m-title { margin: 0; color: #fff; font-size: 16px; line-height: 1.3; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
  .home-hero__m-btn { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; }

  /* 10 个行业：小图 + 名称，手机 2 列 / 平板 5 列 */
  .home-inds { padding: 28px 0 8px; }
  .home-inds .sec-title { margin-bottom: 14px; }
  .home-inds__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .home-inds__grid li { margin: 0; }
  .home-inds__card { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 56px; padding: 6px; padding-inline-end: 8px; border-radius: 8px; background: #f2f6fb; color: #1d2a3a; }
  .home-inds__card img { flex: none; width: 42px; height: 34px; object-fit: cover; border-radius: 5px; }
  .home-inds__card span { min-width: 0; font-size: 14px; line-height: 1.3; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
  .home-inds__all { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 4px; color: var(--blue); font-size: 15px; font-weight: 500; }
  [dir="rtl"] .home-inds__all .kfe-icon { transform: scaleX(-1); }

  /* KFE 怎么帮：去背景图，紧凑列表 */
  .howto { background: #fff; }
  .howto__list dt { margin-top: 16px; font-size: 17px; }
  .howto__list dd { margin-top: 4px; font-size: 15px; line-height: 1.55; }

  /* 服务：每组一张卡片 = 图片（组名压在图片底部）+ 服务项列表（圆点 + 标题 + 说明，分割线隔开）；平板 2 列 */
  .svc-rows { padding: 0 0 40px; }
  .svc-rows .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .svc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; margin: 0; border: 1px solid #e3e9f1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,30,80,.05); }
  .svc-row__img, .svc-row--rev .svc-row__img { grid-area: 1 / 1; order: 0; }
  .svc-row__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 0; box-shadow: none; }
  .svc-row__copy { display: contents; }
  .svc-row__copy > h2 { grid-area: 1 / 1; align-self: end; z-index: 1; margin: 0; padding: 36px 16px 12px; color: #fff; font-size: 20px; line-height: 1.3; font-weight: 600; background: linear-gradient(180deg, rgba(0,25,60,0), rgba(0,25,60,.78)); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
  .svc-item { padding: 14px 16px; border-top: 1px solid #edf1f6; scroll-margin-top: 80px; }
  .svc-row__copy > h2 + .svc-item { border-top: 0; }
  .svc-item h3 { position: relative; margin: 0 0 4px; padding-inline-start: 14px; font-size: 16px; line-height: 1.4; font-weight: 600; color: #16243a; }
  .svc-item h3::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  .svc-item p { margin: 0; padding-inline-start: 14px; font-size: 14px; line-height: 1.6; color: #555; }
  .svc-rows--home .svc-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 769px) and (max-width: 1024px) { .home-hero__m { padding: 40px 24px 18px; } .home-hero__m-title { font-size: 24px; } }
@media (max-width: 768px) {
  .home-inds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-rows .container { display: block; }
  .svc-row { margin-bottom: 16px; }
  .svc-row__img img { aspect-ratio: 21 / 9; }
}

/* ---------- 行业详情 ---------- */
@media (max-width: 1024px) {
  .industry { display: block; min-height: 0; }
  .industry-side { position: sticky; top: var(--header-h); z-index: 5; width: auto; height: auto; padding: 0; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: #f4f4f4; }
  .industry-side::-webkit-scrollbar { display: none; }
  .industry-side:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  [dir="rtl"] .industry-side:not(.is-end) { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
  .industry-side ul { display: flex; }
  .industry-side li { flex: none; }
  .industry-side a, body:not(.lang-zh) .industry-side a { display: flex; align-items: center; height: 44px; min-height: 44px; padding: 0 14px; line-height: 1; font-size: 14px; white-space: nowrap; }
  .industry-side a::after { display: none; }
  /* 行业头图：显示原图（按原比例、不裁剪、不压字），H1 放在图片下方 */
  .ind-hero, html[dir="rtl"] .ind-hero { position: relative; top: auto; left: auto; right: auto; display: flex; flex-direction: column; align-items: stretch; height: auto; aspect-ratio: auto; max-height: none; background-image: none !important; }
  .ind-hero .ind-hero__img { order: 0; position: static !important; display: block; width: 100% !important; height: auto !important; opacity: 1 !important; background: #eef2f6; }
  .ind-hero .ind-hero__title { order: 1; position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; margin: 18px 16px 0; color: #16243a; font-size: 24px; line-height: 1.3; font-weight: 600; text-shadow: none; text-align: start; }
  .industry__main, html[dir="rtl"] .industry__main { padding: 0 0 8px; }
  .industry__main > :not(.ind-hero) { margin-inline: 16px; }
  .ind-block { margin-top: 28px; margin-bottom: 0; }
  .ind-block h2 { display: block; height: auto; padding: 0; background: none !important; color: #222 !important; border-radius: 0; font-weight: 600; text-align: start; }
  .ind-block > p { margin-bottom: 12px; }
  .ind-tags { gap: 8px; }
  .ind-tags li { padding: 4px 12px; font-size: 14px; }
  .ind-cases__head { margin-bottom: 12px; }
  .ind-cases__head h2 { margin: 0; }
  .ind-cases__nav { display: none; }
  .ind-cases { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0; }
  .case-card { padding: 0 0 10px; border-radius: 10px; overflow: hidden; }
  .case-card__title { margin: 8px 10px 4px; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card__meta { flex-wrap: wrap; gap: 2px 8px; margin: 0 10px; font-size: 12px; }
  .ind-banner { height: 200px; margin-bottom: 24px; }
  .ind-products li { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 768px) {
  .ind-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 文章页 / 404 / 法律页 ---------- */
@media (max-width: 1024px) {
  .article__wrap { display: block; width: auto; padding: 16px 16px 40px; }
  .article__inner { width: auto; max-width: 100%; padding: 24px 16px 40px; }
  .article__wrap .article__inner { padding: 0; }
  .breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 28px; }
  .breadcrumb a, .product__crumb a { display: inline-block; min-height: 28px; line-height: 28px; }
  .article h1 { margin: 12px 0 8px; font-size: 25px; }
  .article__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; padding-bottom: 12px; font-size: 13px; }
  .article__byline { margin: 0; }
  .article__hero { margin: 0 0 20px; }
  .article__hero img { border-radius: 8px; }
  .article__body { font-size: 16px; line-height: 1.65; }
  .article__body p { margin: 0 0 16px; }
  .article__body h2 { margin: 32px 0 12px; font-size: 21px; line-height: 1.3; }
  .article__body h3 { margin: 24px 0 10px; font-size: 18px; line-height: 1.35; }
  .article__body img { width: 100%; height: auto; border-radius: 8px; }
  .article__body ul, .article__body ol { padding-inline-start: 1.3em; }
  .article__body table { font-size: 14px; }
  .article__body table th, .article__body table td { padding: 8px 10px; white-space: nowrap; overflow-wrap: normal; }
  .article__pager { flex-direction: column; gap: 10px; margin-top: 28px; padding-top: 16px; font-size: 14px; }
  .article__products { margin-top: 28px; }
  .article__side { width: auto; margin-top: 28px; gap: 16px; }
  .side-box { padding: 16px; border-radius: 10px; }
  .side-box h2 { margin-bottom: 8px; font-size: 18px; }
  .side-links a, .side-posts a { display: block; padding: 4px 0; font-size: 15px; }
  .legal .article__body h2 { font-size: 20px; }
}

/* ---------- 产品详情 ---------- */
@media (max-width: 1024px) {
  body:has(.product__btns) { padding-bottom: 72px; }
  .product__inner { padding: 16px 16px 40px; }
  .product__crumb { margin-bottom: 14px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product__top { gap: 16px; }
  .product__label { display: none; }
  .product__media { display: flex; flex-direction: column; }
  .product__main-img { aspect-ratio: 1 / 1; border-radius: 10px; }
  .product__thumbs { order: 2; gap: 8px; margin: 10px 0 0; overflow-x: auto; scrollbar-width: none; }
  .product__thumb { flex: none; width: 64px; height: 64px; }
  .product__card { padding: 16px; border-radius: 10px; }
  .product__card h1 { margin-bottom: 10px; padding-bottom: 10px; font-size: 22px; }
  .product__lead { font-size: 15px; line-height: 1.6; }
  .product__specs { display: table; }
  .product__specs th, .product__specs td { padding: 10px 0; font-size: 14px; }
  .product__btns { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); gap: 10px; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.1); }
  .product__btn { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0; }
  .product__guide { gap: 20px; margin-top: 24px; padding: 16px; border-radius: 10px; }
  .product__guide h2 { font-size: 18px; }
  .product__guide p, .product__guide li { font-size: 15px; line-height: 1.6; }
  .product__related, .product__articles { margin-top: 28px; }
}

/* ---------- 联系页 ---------- */
@media (max-width: 1024px) {
  .contact__head { padding: 28px 16px 0; }
  .contact__head p { margin-top: 8px; font-size: 15px; }
  .contact-quick { padding-top: 24px; padding-bottom: 0; }
  .contact-quick h2 { margin-bottom: 4px; }
  .contact-quick__sub { margin-bottom: 12px; font-size: 14px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 100%; border-radius: 10px; overflow: hidden; background: #fff; }
  .contact-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 12px 40px 12px 14px; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eef1f5; text-align: start; }
  [dir="rtl"] .contact-card { padding: 12px 14px 12px 40px; }
  .contact-card:last-child { border-bottom: 0; }
  .contact-card__icon { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; font-size: 20px; }
  .contact-card__icon .kfe-icon { width: 22px; height: 22px; }
  .contact-card h3 { margin: 0; font-size: 16px; }
  .contact-card p { margin: 0; font-size: 13px; line-height: 1.45; color: #666; }
  .contact-card__btn { position: absolute; inset: 0; z-index: 1; height: auto; padding: 0; border-radius: 0; background: none !important; color: transparent !important; font-size: 0; overflow: hidden; }
  .contact-card__btn .kfe-icon { display: none; }
  .contact-card::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #bbb; border-right: 2px solid #bbb; transform: translateY(-50%) rotate(45deg); }
  [dir="rtl"] .contact-card::after { transform: translateY(-50%) rotate(-135deg); }
  .contact-card__qr { display: none; }
  .contact-form-wrap { margin-top: 0; padding-top: 24px; padding-bottom: 40px; }
  .contact-form { padding: 20px 16px; border-radius: 10px; }
  .contact-form__sub { font-size: 14px; }
  .contact-form__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-form input, .contact-form select { height: 48px; font-size: 16px; }
  .contact-form textarea { font-size: 16px; }
  .contact-form__btn { height: 52px; }
}

/* ---------- FAQ / 招聘 / 关于 ---------- */
@media (max-width: 1024px) {
  .faq__body { padding: 8px 16px 40px; }
  .faq__group { margin: 28px 0 4px; color: var(--blue); }
  .faq__item summary, .job summary { padding: 14px 32px 14px 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
  [dir="rtl"] .faq__item summary, [dir="rtl"] .job summary { padding: 14px 0 14px 32px; }
  .faq__a { padding: 0 0 16px; font-size: 15px; line-height: 1.6; }
  .faq__a p { margin-bottom: 8px; }
  .careers-intro { text-align: start; }
  .jobs__apply { font-size: 15px; }
  .about-intro__img img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
  .about-intro h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
  .about-intro p { margin-bottom: 12px; }
  .about-values .sec-sub, .about-talent .sec-sub { margin-bottom: 20px; }
}

/* ---------- 页脚：同行通行做法（KSB / Xylem 链接直接展开，Wilo / 南方泵业极简），不折叠 ----------
   logo + 社交图标一行 → 联系方式 → 链接两列展开 → 版权 + 法律链接 */
@media (max-width: 1024px) {
  .site-footer__inner { width: auto; padding: 24px 16px 0; }
  .site-footer__top { flex-wrap: wrap; gap: 12px 16px; padding-bottom: 16px; }
  .site-footer__social { flex-wrap: wrap; gap: 8px; }
  .site-footer__social a { width: 40px; height: 40px; }
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; padding: 20px 0 24px; }
  .site-footer__col h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
  .site-footer__col li { margin: 0; }
  .site-footer__col a { display: inline-block; padding: 5px 0; font-size: 14px; line-height: 1.45; }
  .site-footer__contact a, .site-footer__contact p { margin: 0; padding: 4px 0; font-size: 14px; line-height: 1.5; }
  .site-footer__contact a { display: block; }
  .site-footer__contact a[href^="tel:"] { font-size: 16px; font-weight: 600; color: #fff; }
  .site-footer__bottom { flex-wrap: wrap; gap: 4px 16px; padding: 14px 0 20px; font-size: 13px; }
  .site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .site-footer__legal a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 768px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "contact contact" "nav company" "nav res"; gap: 16px 16px; }
  .site-footer__col:nth-child(1) { grid-area: nav; }
  .site-footer__col:nth-child(2) { grid-area: company; }
  .site-footer__col:nth-child(3) { grid-area: res; }
  .site-footer__contact { grid-area: contact; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 底部询盘条（首页 / 行业页 / 文章页，手机）：56px 高，两个按钮；滚过一屏才出现 */
@media (max-width: 768px) {
  .m-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -2px 12px rgba(0,0,0,.1); }
  .m-cta[hidden] { display: none !important; }
  .m-cta__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; text-align: center; line-height: 1.2; }
  .m-cta__btn--primary { background: var(--blue); }
  .m-cta__btn--wa { background: #1f9d55; }
  .m-cta__btn .kfe-icon { width: 20px; height: 20px; }
  body.has-m-cta { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* 联系页：WhatsApp 排第一（东南亚、海湾客户最常用） */
  .contact-cards { display: flex; flex-direction: column; }
  .contact-card--wa { order: -1; }
}
@media (min-width: 769px) { .m-cta { display: none !important; } }

/* 案例弹窗（手机） */
@media (max-width: 768px) {
  .case-modal { width: 92vw; max-height: 85vh; overflow-y: auto; padding: 14px; }
  .case-modal[open] { flex-direction: column; gap: 14px; }
  .case-modal__img { flex: none; }
  .case-modal__body { padding: 0 0 70px; }
  .case-modal__body h3 { font-size: 20px; margin-bottom: 12px; }
  .case-modal__body p { font-size: 15px; }
  .case-modal__nav { right: 0; bottom: 8px; }
  .case-modal__nav button { width: 44px; height: 44px; }
  .case-modal__close { top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; background: rgba(0,0,0,.5); }
}
@media (max-width: 1024px) {
  .sub-tabs__inner { justify-content: safe center; gap: 28px; }
  .sub-tabs:has(.sub-tabs__inner > a:nth-child(3)) .sub-tabs__inner { gap: 20px; }
}
@media (max-width: 400px) {
  .home-inds__grid { gap: 6px; }
  .home-inds__card { gap: 6px; padding-inline-end: 6px; }
  .home-inds__card img { width: 34px; height: 30px; }
  .home-inds__card span { font-size: 13px; overflow-wrap: normal; hyphens: manual; }
}
/* Tablet (769–1024): 5 cols with image on top, so long industry names don't break mid-word */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-inds__card { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 6px 8px; text-align: center; }
  .home-inds__card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .home-inds__card span { overflow-wrap: normal; hyphens: manual; }
}

/* 首页难点 4 张：平板 2×2，避免 3 列留单张 */
@media (min-width:769px) and (max-width:1024px){.pains .pains__grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 首页新闻只显示一排：平板 3 篇、手机 2 篇 */
@media (max-width:1024px){.news-grid--home > :nth-child(n+4){display:none}}
@media (max-width:768px){.news-grid--home > :nth-child(n+3){display:none}}
/* 新闻卡手机一卡一行（业主 2026-10-30） */
@media (max-width:768px){.news-grid,.news-grid--three{grid-template-columns:minmax(0,1fr);gap:16px}}

/* 首页难点：手机端改为左右滑动卡片，文字完整显示，两侧露出相邻卡片，下方小圆点 */
.pains__dots { display: none; }
@media (max-width: 600px) {
  .pains .pains__grid--4 { display: flex; gap: 12px; max-width: none; margin-inline: -16px; padding: 4px 10vw 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 10vw; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pains .pains__grid--4::-webkit-scrollbar { display: none; }
  .pains .pains__grid--4 > .pain { flex: 0 0 80vw; scroll-snap-align: center; scroll-snap-stop: always; padding: 22px 18px; }
  .pains .pains__grid--4 .pain p { font-size: 14px; line-height: 1.6; }
  .pains__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .pains__dots span { width: 7px; height: 7px; border-radius: 50%; background: #c8ced8; transition: width .25s, background .25s; }
  .pains__dots span.is-on { width: 18px; border-radius: 4px; background: var(--blue); }
}

/* 首页首屏动图（≤768）：1200×676 原比例，不裁切（同南方泵业手机版） */
@media (max-width: 768px) { .home-hero img { aspect-ratio: 1200 / 676; } }
/* 服务图：抠图（白底示意图）完整显示；竖版人像图对准上半部 */
@media (max-width: 1024px) {
  .svc-row__img--cutout img { object-fit: contain; background: #fff; }
  .svc-row__img--top img { object-position: 50% 33%; }
}
  .ind-hero .ind-hero__title .ind-h1-sub { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: #5a6575; }

/* 行业页竖屏：案例/产品/相关文章都只排一行，左右滑（老板 2026-10-26） */
@media (max-width: 1024px) {
  .ind-cases, .ind-news { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 31%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 0 0 4px; }
  .ind-news::-webkit-scrollbar { display: none; }
  .ind-cases > *, .ind-news > * { scroll-snap-align: start; }
  .industry__main, .ind-block, .ind-cases, .ind-news { min-width: 0; max-width: 100%; }
  .ind-more { margin: 0; }
  .ind-more svg { width: 22px; height: 22px; }
}
@media (max-width: 768px) {
  .ind-cases, .ind-news { grid-template-columns: none; grid-auto-columns: 46%; }
}
