/* ==========================================================================
   modules.css — 2026-10 新增模块层（最后加载）
   首页：关键信息条 / 常用型号 / 技术资讯 + FAQ
   产品详情：选型要点 / 选型 FAQ / 询价卡片
   标签页 / 文章要点摘要
   只使用 ui.css 中已有的设计令牌，不改动既有模块样式。
   ========================================================================== */

/* ---------- 通用：模块标题行 ---------- */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.hm-head h2 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.hm-head p { margin: 0; color: var(--muted); max-width: 640px; }
.hm-eyebrow { margin: 0 0 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--brand) !important; }
.hm-eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--grad-accent); }
.hm-more { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--hairline-2); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.hm-more:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-1); }

/* ---------- 首屏关键信息条 ---------- */
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 620px; margin: 34px auto 0; padding: 0; border: 1px solid oklch(1 0 0 / .14); border-radius: 14px; background: oklch(1 0 0 / .05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-facts > div { padding: 16px 12px; text-align: center; }
.hero-facts > div + div { border-left: 1px solid oklch(1 0 0 / .12); }
.hero-facts dt { margin: 0; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hero-facts dt small { margin-left: 3px; font-size: 14px; font-weight: 700; color: var(--c-amber-2); }
.hero-facts dd { margin: 6px 0 0; color: oklch(0.86 0.02 240); font-size: 13px; }

/* ---------- 常用型号 ---------- */
.hm-featured { background: var(--surface-1); }
.hm-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); box-shadow: var(--e-1); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.hm-product:hover { transform: translateY(-4px); border-color: oklch(0.520 0.145 250 / .35); box-shadow: var(--e-3); }
.hm-product-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; background: radial-gradient(120% 90% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%); }
.hm-product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-slow) var(--ease-emph); }
.hm-product:hover .hm-product-img img { transform: scale(1.05); }
.hm-product-body { padding: 16px 18px 20px; border-top: 1px solid var(--hairline); }
.hm-product-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.hm-product-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ---------- 技术资讯 + FAQ ---------- */
.hm-insights-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hm-insights .hm-head { min-height: 116px; }
.hm-news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hm-news-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease-out), padding var(--dur) var(--ease-out); }
.hm-news-item:hover { background: var(--surface-1); padding-inline: 14px 4px; }
.hm-news-item time { grid-row: span 2; padding-top: 3px; color: var(--brand); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 700; }
.hm-news-item h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.hm-news-item:hover h3 { color: var(--brand); }
.hm-news-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; color: var(--muted); }
.hm-faq-list { display: block; }
.hm-faq-list details { border-radius: 0; border-right: 0 !important; }
.hm-faq-list summary { position: relative; list-style: none; padding-right: 36px; font-size: 17px; }
.hm-faq-list summary::-webkit-details-marker { display: none; }
.hm-faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform var(--dur) var(--ease-out); }
.hm-faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hm-faq-a { padding-bottom: 22px; }
.hm-faq-a p { padding-bottom: 10px !important; }
.hm-faq-a a { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.hm-faq-a a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 产品详情：参数要点 / FAQ / 询价 ---------- */
.pd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border: 1px solid var(--hairline-2); border-radius: 12px; overflow: hidden; }
.pd-facts > div { padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.pd-facts > div:nth-child(odd) { border-right: 1px solid var(--hairline); }
.pd-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.pd-facts dt { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.pd-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.pd-facts dd a { color: var(--brand); }
.pd-extra { padding-block: 0 var(--space-section); }
.pd-extra-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-extra h2 { margin: 0 0 20px; font-size: clamp(22px, 2vw, 28px); }
.pd-inquiry { position: sticky; top: 110px; padding: 28px; border-radius: 16px; color: #fff; background: var(--grad-deep); box-shadow: var(--e-3); }
.pd-inquiry h2 { color: #fff; margin-bottom: 10px; }
.pd-inquiry p { margin: 0 0 18px; color: oklch(0.86 0.02 240); font-size: 14.5px; }
.pd-inquiry ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: oklch(0.92 0.015 240); }
.pd-inquiry li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--c-amber); vertical-align: middle; }
.pd-inquiry .pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-inquiry .pd-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 14.5px; }
.pd-inquiry .pd-call { background: var(--c-amber); color: var(--b-950); }
.pd-inquiry .pd-call:hover { background: var(--c-amber-2); }
.pd-inquiry .pd-mail { border: 1px solid oklch(1 0 0 / .28); color: #fff; }
.pd-inquiry .pd-mail:hover { background: oklch(1 0 0 / .08); }

/* ---------- 文章：要点摘要 ---------- */
.article-summary { margin: 0 0 28px; padding: 18px 22px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--surface-1); }
.article-summary strong { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .1em; color: var(--brand); }
.article-summary p { margin: 0; color: var(--ink-soft); }
.article-updated { color: var(--muted); }

/* ---------- 标签页 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--hairline-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; transition: all var(--dur) var(--ease-out); }
.tag-cloud a::before { content: "#"; color: var(--brand); }
.tag-cloud a:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--e-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-insights-layout, .pd-extra-layout { grid-template-columns: 1fr; }
  .hm-insights .hm-head { min-height: 0; }
  .pd-inquiry { position: static; }
}
@media (max-width: 720px) {
  .hm-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .hm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hm-product-body { padding: 12px 12px 14px; }
  .hm-product-body h3 { font-size: 14.5px; }
  .hm-product-body p { font-size: 12.5px; }
  .hero-facts { margin-top: 24px; }
  .hero-facts dt { font-size: 24px; }
  .hero-facts dd { font-size: 12px; }
  .hm-news-item { grid-template-columns: 1fr; }
  .hm-news-item time { grid-row: auto; margin-bottom: 4px; }
  .pd-facts { grid-template-columns: 1fr; }
  .pd-facts > div:nth-child(odd) { border-right: 0; }
  .pd-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--hairline); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-product, .hm-product-img img, .hm-news-item { transition: none; }
  .hm-product:hover { transform: none; }
}
.aside-block .tag-cloud { gap: 8px; }
.aside-block .tag-cloud a { padding: 6px 12px; font-size: 13px; font-weight: 400; }

/* ==========================================================================
   首页 banner：真空吸盘横梁吸取板材的实拍图（Pexels 免费商用，摄影师 Freek Wolsink）
   图本身偏亮，用蓝黑渐变压暗，左侧/中部略深以保证标题对比度，右侧与底部透出产线。
   ========================================================================== */
.suction-hero {
  background-image:
    linear-gradient(90deg, transparent 0%, oklch(0.760 0.120 215 / .30) 26%, oklch(0.790 0.155 68 / .38) 62%, transparent 100%),
    radial-gradient(ellipse 60% 56% at 50% 50%, oklch(0.128 0.040 252 / .62) 0%, oklch(0.128 0.040 252 / .30) 68%, transparent 100%),
    linear-gradient(180deg, oklch(0.140 0.045 252 / .66) 0%, oklch(0.150 0.045 252 / .46) 45%, oklch(0.140 0.045 252 / .62) 100%),
    url('../images/hero-vacuum.webp?v=20261020'),
    var(--grad-deep);
  background-size: 100% 1px, 100% 100%, 100% 100%, cover, auto;
  background-position: bottom left, center, center, center 12%, 0 0;
  background-repeat: no-repeat;
}
.suction-hero-copy h1,
.suction-hero-copy > p,
.suction-hero-copy .hero-overline { text-shadow: 0 2px 18px oklch(0.10 0.04 252 / .6); }
@media (max-width: 720px) {
  .suction-hero {
    background-image:
      linear-gradient(90deg, transparent 0%, oklch(0.760 0.120 215 / .30) 26%, oklch(0.790 0.155 68 / .38) 62%, transparent 100%),
      linear-gradient(180deg, oklch(0.140 0.045 252 / .84) 0%, oklch(0.150 0.045 252 / .70) 50%, oklch(0.140 0.045 252 / .84) 100%),
      url('../images/hero-vacuum-m.webp?v=20261020'),
      var(--grad-deep);
    background-size: 100% 1px, 100% 100%, cover, auto;
    background-position: bottom left, center, center, 0 0;
  }
}

.detail-banner {
  background-image:
    linear-gradient(100deg, oklch(0.124 0.040 252 / .78) 0%, oklch(0.132 0.041 252 / .60) 46%, oklch(0.146 0.043 252 / .38) 100%),
    url('../images/banner-bg.webp'),
    radial-gradient(880px 480px at 88% -12%, oklch(0.590 0.150 247 / .20), transparent 62%),
    var(--grad-deep);
  background-size: cover, cover, auto, auto;
  background-position: center, center, 0 0, 0 0;
  background-repeat: no-repeat;
}
.detail-banner h1, .detail-banner p { text-shadow: 0 2px 14px oklch(0.10 0.04 252 / .45); }

/* 行业页首屏 / 首页关于带：与首页 banner 一致，减淡遮罩 */
.solutions-redesign .sector-hero,
.sector-hero {
  background-image:
    linear-gradient(90deg, transparent 0%, oklch(0.760 0.120 215 / .34) 26%, oklch(0.790 0.155 68 / .42) 62%, transparent 100%),
    linear-gradient(100deg, oklch(0.124 0.040 252 / .78) 0%, oklch(0.132 0.041 252 / .58) 46%, oklch(0.146 0.043 252 / .34) 100%),
    url('../images/banner-bg.webp'),
    radial-gradient(1080px 600px at 90% 2%,  oklch(0.590 0.150 247 / .24), transparent 62%),
    var(--grad-deep);
  background-size: 100% 1px, cover, cover, auto, auto;
  background-position: bottom left, center, center, 0 0, 0 0;
  background-repeat: no-repeat;
}
.sector-hero-copy h1, .sector-hero-copy p { text-shadow: 0 2px 14px oklch(0.10 0.04 252 / .45); }
.about-band {
  background-image:
    linear-gradient(100deg, oklch(0.126 0.040 252 / .80) 0%, oklch(0.134 0.041 252 / .58) 46%, oklch(0.148 0.043 252 / .32) 100%),
    url('../images/company-bg.webp'),
    radial-gradient(880px 480px at 88% -12%, oklch(0.590 0.150 247 / .20), transparent 62%),
    var(--grad-deep);
  background-size: cover, cover, auto, auto;
  background-position: center, center, 0 0, 0 0;
  background-repeat: no-repeat;
}
.about-copy h2, .about-copy p { text-shadow: 0 2px 14px oklch(0.10 0.04 252 / .45); }

/* 内容较少的内页（标签 / 搜索 / 404）：保持页脚落在视口底部 */
.inner-page main { min-height: 56vh; }

/* ==========================================================================
   导航：窄屏优化（≤1100px 汉堡菜单模式）
   - 修复：透明头部下汉堡图标是深色、在深色 banner 上看不见
   - 电话不再单独占一行（≤720px 变成图标按钮），头部始终保持一行
   - 菜单展开：平板两列，手机单列；超出屏幕时面板内部滚动；底部加电话按钮
   ========================================================================== */
@media (max-width: 1240px) {
  .site-header .header-inner { flex-wrap: nowrap; align-items: center; gap: 12px; padding-top: 0; }
  .header-inner .brand { flex: 1 1 auto; min-width: 0; }
  .header-phone { order: 2; flex: 0 0 auto; margin-left: auto; padding: 0; }
  .menu-toggle { order: 3; flex: 0 0 auto; border-radius: 10px; }
  .site-header .menu-toggle { color: #fff; border-color: oklch(1 0 0 / .45); background: oklch(1 0 0 / .06); }
  .site-header.is-stuck .menu-toggle,
  .site-header.menu-open .menu-toggle { color: var(--ink); border-color: var(--hairline-2); background: var(--surface); }
  .site-header.menu-open .menu-toggle { color: var(--b-700); border-color: oklch(0.520 0.145 250 / .45); }
  .site-header.menu-open:not(.is-stuck) { background: oklch(0.15 0.04 252 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .site-header.menu-open:not(.is-stuck) .menu-toggle { background: var(--surface); }

  .mobile-nav { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 18px; border-radius: 0 0 14px 14px; }
  .menu-open .mobile-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-content: start; }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 10px 6px; font-size: 16px; }
  .mobile-nav a[aria-current="page"] { padding-left: 12px; }
  .mobile-nav .mobile-nav-cta { grid-column: 1 / -1; justify-content: center; min-height: 48px; margin-top: 14px; border: 0; border-radius: 10px; background: var(--grad-brand); color: #fff; font-weight: 700; }
  .mobile-nav .mobile-nav-cta:hover { filter: brightness(1.06); }
}
@media (max-width: 720px) {
  .site-header .header-inner { min-height: 64px; }
  /* 电话收成 44px 圆形图标按钮，号码改在菜单底部的按钮里展示 */
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid oklch(1 0 0 / .45); border-radius: 50%; background: oklch(1 0 0 / .06); }
  .header-phone > div { display: none; }
  .header-phone > svg { width: 20px; height: 20px; }
  .site-header.is-stuck .header-phone, .site-header.menu-open .header-phone { border-color: var(--hairline-2); background: var(--surface); color: var(--b-700); }
  .site-header.menu-open:not(.is-stuck) .header-phone { background: var(--surface); }
  .brand-logo { height: 30px; }
}
@media (max-width: 480px) {
  .menu-open .mobile-nav { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav { padding: 4px 16px 16px; }
}
@media (max-width: 360px) {
  .site-header .header-inner { gap: 8px; }
  .brand-logo { height: 26px; }
  .header-phone, .menu-toggle { width: 40px; height: 40px; }
}

/* ==========================================================================
   导航断点上调到 1240px（原来是 1100px）
   1101–1240 区间桌面导航 7 项 + logo + 电话放不下，菜单文字被换行切开。
   现在该区间改用汉堡菜单；菜单文字禁止换行，桌面间距随视口缩放。
   ========================================================================== */
.primary-nav { gap: clamp(18px, 2.2vw, 40px); }
.primary-nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .primary-nav, .header-contact { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid oklch(1 0 0 / .45); background: transparent; color: #fff; cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .mobile-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; gap: 0; padding: 6px 16px 10px; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
  .menu-open .mobile-nav { display: grid; }
}

/* ==========================================================================
   文章详情：相关内容（通栏独立区块）
   原先挤在正文栏里（约 800px 放三列），标题被挤成三行、卡片只有标题和日期。
   现在放在页面底部通栏，三列卡片带日期、标题、摘要与入口，hover 有反馈。
   字号以 !important 声明，是为了压过 type.css 里对 h3 / p 的统一规则。
   ========================================================================== */
.article-related-band { padding-block: 64px 80px; background: var(--surface-1); border-top: 1px solid var(--hairline); }
.article-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.article-related-eyebrow { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .14em !important; line-height: 1.4 !important; color: var(--brand) !important; }
.article-related-head h2 { margin: 0 0 10px; color: var(--ink); }
.article-related-lead { margin: 0 !important; color: var(--muted); }
.article-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-related-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 26px 26px 22px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); box-shadow: var(--e-1); color: inherit; text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.article-related-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(.16); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-emph);
}
.article-related-card:hover { transform: translateY(-4px); border-color: oklch(0.520 0.145 250 / .35); box-shadow: var(--e-3); }
.article-related-card:hover::before { transform: scaleX(1); }
.article-related-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.article-related-top::before { content: ""; width: 18px; height: 2px; background: var(--grad-accent); }
.article-related-card h3 { margin: 0 0 12px !important; font-size: 18px !important; line-height: 1.5 !important; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-related-card p { margin: 0 0 20px !important; font-size: 14px !important; line-height: 1.75 !important; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-related-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--hairline); color: var(--brand); font-size: 15px; font-weight: 700;
}
.article-related-go > span { transition: transform var(--dur) var(--ease-out); }
.article-related-card:hover .article-related-go > span { transform: translateX(4px); }
@media (max-width: 1100px) {
  .article-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .article-related-band { padding-block: 44px 56px; }
  .article-related-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .article-related-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .article-related-card { padding: 22px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-related-card, .article-related-card::before, .article-related-go > span { transition: none; }
  .article-related-card:hover { transform: none; }
}
