/* ==========================================================================
   P95 移动端专用版式（只在 ≤720px 加载，不参与电脑版渲染）
   --------------------------------------------------------------------------
   目标：手机上不再「缩小的电脑版」——
   · 列表卡片从两列正方形网格改成单列横向卡（图 92px + 文字），标题给足两行不再截断；
   · 首页模块去掉电脑版的 70px 上下留白与大标题，等级卡压成一行式；
   · 筛选条改成可横滑的胶囊，并与「当前分类」重复的一行去掉；
   · 详情页压缩面包屑与图集高度，先让人看到标题与价格。
   本文件所有规则都只在手机断点生效，电脑版继续用 site.css。
   ========================================================================== */

/* ---------- 0. 底板：容器与模块节奏 ---------- */
.container { padding-left: 14px; padding-right: 14px; }
.section { padding: 30px 14px; }
.section-p6 { padding: 32px 14px; }
.section-p6.gray { padding-top: 28px; padding-bottom: 32px; }
.title-c { margin: 0 0 22px; }
.title-c h2, .title-c h3 { font-size: 20px; }
.title-c h2:after, .title-c h3:after { margin-top: 12px; }
.title-c .sub { font-size: 12.5px; line-height: 1.7; margin-top: 12px; }
.btn { padding: 10px 18px; font-size: 13px; border-radius: 10px; }

/* ---------- 1. 页头（栏目页 / 详情页面包屑） ---------- */
/* 详情页：桌面那条四段的换成两级，手机上一条就放得下 */
.crumbs.crumbs-full { display: none; }
.crumbs.crumbs-lite { display: flex; }
/* 产品详情底部有固定下单条，给内容留出高度，别把最后一段压在条下面 */
body:has(.pdp-mbar) { padding-bottom: 58px; }
/* 详情页面包屑不走 .page-banner，单独收成一行：长标题省略，别撑成三行 */
.crumbs {
  display: flex; flex-wrap: nowrap; align-items: center;
  font-size: 11px; margin: 10px 0; padding: 0; max-width: 100%; overflow: hidden;
}
.crumbs a, .crumbs span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumbs i { flex: 0 0 auto; margin: 0 5px; }
.page-banner { min-height: 0; padding: 14px 0 20px; border-radius: 0 0 14px 14px; }
.page-banner .crumbs {
  font-size: 11px; padding: 4px 11px; margin: 0 0 9px;
  display: flex; flex-wrap: nowrap; align-items: center;
  max-width: 100%; overflow: hidden;
}
.page-banner .crumbs a, .page-banner .crumbs span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-banner .crumbs i { flex: 0 0 auto; margin: 0 5px; }
.page-banner .page-head h1 { font-size: 20px; line-height: 1.35; margin: 0 0 4px; }
.page-banner .page-head p { font-size: 12px; line-height: 1.7; }

/* ---------- 2. 栏目页：筛选胶囊 + 列表卡 ---------- */
/* 2.1 二级分类：手机端整条可横滑的胶囊，去掉电脑版左侧栏 */
.listing-layout.has-sidebar { display: block; }
.cat-sidebar {
  position: static; margin: 0 0 10px; padding: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none;
}
.cat-sidebar .cs-head, .cat-sidebar .cs-foot { display: none; }
.cs-list {
  display: flex; flex-direction: row; gap: 6px; padding: 1px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.cs-list::-webkit-scrollbar { display: none; }
.cs-item, .cs-subitem {
  flex: 0 0 auto; border: 0 !important; border-radius: 999px; padding: 7px 13px;
  font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #48627a;
  background: #f2f7fc; scroll-snap-align: start;
}
.cs-item > span, .cs-subitem > span { white-space: nowrap; }
.cs-item > b, .cs-subitem > b { display: none; }
.cs-item.active, .cs-subitem.active { background: var(--brand); color: #fff; }

/* 2.2 「当前分类：X ← 查看全部」与上方胶囊重复，手机上省掉 */
.listing-current { display: none; }

/* 2.3 栏目说明：压成两行小字，不再占半屏 */
.listing-intro {
  display: block; padding: 9px 12px; margin: 0 0 10px;
  border-left-width: 3px; border-radius: 10px;
}
.listing-intro .li-ico { display: none; }
.listing-intro .li-copy b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.listing-intro .li-copy p {
  font-size: 11.5px; line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-intro .li-help { display: inline-block; margin-top: 4px; font-size: 11.5px; }

/* 2.4 列表：单列横向卡（图 92 + 文字），标题两行完整显示 */
.grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.listing-layout.has-sidebar .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 11px;
  padding: 10px; border-radius: 12px; box-shadow: var(--sh-1);
}
.card:hover { transform: none; }
.card .card-pic,
.listing-layout.has-sidebar .card .card-pic {
  flex: 0 0 92px; width: 92px; height: 92px; aspect-ratio: auto;
  padding: 6px; margin: 0; border-radius: 9px;
}
.card .card-pic.is-cover,
.listing-layout.has-sidebar .card .card-pic.is-cover {
  flex-basis: 92px; width: 92px; height: 70px; aspect-ratio: auto; padding: 0;
}
.card .card-pic.is-paper,
.listing-layout.has-sidebar .card .card-pic.is-paper {
  width: 92px; height: 92px; aspect-ratio: auto; padding: 6px;
}
.card .card-pic .card-ph { font-size: 11px; letter-spacing: 1px; }
.card .card-grade {
  position: static; display: inline-block; margin-top: 4px;
  font-size: 10px; padding: 2px 6px; box-shadow: none;
}
.card .card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card h3 {
  margin: 0; text-align: left; font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card.is-article h3 { -webkit-line-clamp: 3; }
.card p {
  margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .card-price,
.listing-layout.has-sidebar .card .card-price {
  margin: 2px 0 0; padding: 0; text-align: left; font-size: 13.5px;
}
.card .card-foot,
.listing-layout.has-sidebar .card .card-foot {
  margin: 2px 0 0; padding: 0; border: 0;
  display: flex; align-items: center; gap: 8px;
}
.card .card-foot .card-journal { font-size: 10.5px; }
.card .card-date { font-size: 10.5px; }
.card .card-more { font-size: 11.5px; margin-left: auto; }
.card .card-foot.plain { justify-content: flex-start; }
.card .card-foot.plain .card-more { margin-left: 0; }

/* 2.5 分页 / 热门搜索 */
.pager { flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager a, .pager span { min-width: 32px; height: 32px; line-height: 32px; font-size: 12.5px; }
.hot-words { font-size: 11.5px; line-height: 1.9; margin-bottom: 10px; }

/* ---------- 3. 首页 ---------- */
/* 3.1 hero：手机上不需要 78px 留白，标题一行半就够 */
.home-hero { padding: 30px 14px 44px; }
.home-hero .eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 9px; }
.home-hero h1, .hero-slider h1 { font-size: 22px; line-height: 1.42; margin-bottom: 10px; letter-spacing: .2px; }
.home-hero p, .hero-slider p { font-size: 12.5px; line-height: 1.75; margin-bottom: 18px; }
.hero-actions { gap: 9px; }
.hero-actions .btn { padding: 9px 16px; font-size: 12.5px; }
.hero-slider { min-height: 0; }
.hero-slider .hero-inner { padding: 30px 14px 48px; }

/* 3.2 三条产品线：一行式紧凑卡 */
.home-grades { margin-top: -18px; gap: 9px; }
.hg-card { padding: 12px 14px; gap: 2px; border-radius: 12px; }
.hg-card::before { height: 2px; }
.hg-name { font-size: 14.5px; margin-top: 0; }
.hg-desc {
  font-size: 11.5px; line-height: 1.6; min-height: 0; margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hg-go { font-size: 11.5px; padding-top: 5px; gap: 4px; }
.hg-go svg { width: 13px; height: 13px; }

/* 3.3 技术资料 / 应用笔记：单列，标题最多两行 */
.solution-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.solution-item { padding: 9px; gap: 10px; min-height: 0; align-items: center; border-radius: 12px; }
.solution-item:hover { transform: none; }
.s-thumb { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 9px; }
.solution-item .s-title {
  font-size: 13.5px; line-height: 1.45; white-space: normal; text-overflow: clip;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s-desc { font-size: 11.5px; line-height: 1.55; -webkit-line-clamp: 1; margin-top: 2px; }
.s-arrow { font-size: 11px; margin-top: 4px; }

/* 3.4 客户文章 */
.ca-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.ca-card { padding: 12px; gap: 5px; border-radius: 12px; }
.ca-title { font-size: 13.5px; line-height: 1.45; }
.ca-desc { font-size: 11.5px; line-height: 1.6; -webkit-line-clamp: 2; }
.ca-foot { font-size: 11px; }
.ca-head { font-size: 10.5px; }

/* 3.5 首页产品推荐：保持两列，但卡片更小更紧 */
.tab-nav {
  flex-wrap: nowrap; justify-content: flex-start; gap: 6px;
  overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav button { flex: 0 0 auto; padding: 7px 13px; font-size: 12px; }
.tab-panel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-card { padding: 9px; border-radius: 11px; }
.product-card .pic { height: 112px; aspect-ratio: auto; padding: 7px; margin-bottom: 7px; border-radius: 8px; }
.product-card h3 {
  font-size: 12.5px; line-height: 1.45; min-height: 0; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .pc-price { font-size: 13px; margin-top: 3px; text-align: left; }
.product-card .pc-more { font-size: 11.5px; margin-top: 3px; text-align: left; }

/* ---------- 4. 文章 / 单页详情 ---------- */
.article { padding: 16px 14px; margin-top: 8px; border-radius: 14px; }
.article h1 { font-size: 20px; line-height: 1.4; margin: 0 0 8px; }
.article .meta { font-size: 10.5px; line-height: 1.7; margin-bottom: 12px; padding-bottom: 10px; }
.article .meta span { white-space: normal; }
.cover--wide { max-height: 230px; margin: 0 auto 14px; }
.cover--paper { max-width: 100%; margin-bottom: 14px; }

/* ---------- 5. 产品详情 ---------- */
.pdp-grid { gap: 10px; }
.pdp-media { padding: 10px; border-radius: 14px; }
.pdp-stage { aspect-ratio: auto; min-height: 0; height: 236px; border-radius: 10px; }
.pdp-stage .gallery-main { height: 236px; padding: 10px; }
.pdp-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin: 10px 0 0; padding: 10px 0 0;
}
.pdp-trust li { display: block; text-align: center; }
.pdp-trust b { font-size: 11.5px; }
.pdp-trust b::before { margin-right: 3px; }
.pdp-trust span { font-size: 10px; line-height: 1.4; margin-top: 2px; }
.pdp-media .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.pdp-info { padding: 14px 14px 16px; border-radius: 14px; }
.pdp-info h1 { font-size: 19px; line-height: 1.4; margin-bottom: 8px; }
.pdp-nav { margin-top: 12px; border-radius: 10px; }
.pdp-nav a { padding: 7px 12px; font-size: 12px; }
.pdp-sec { padding: 16px 14px; margin: 10px 0; border-radius: 12px; }
.pdp-sec-head { margin-bottom: 12px; padding-bottom: 10px; }
.pdp-sec-head h2 { font-size: 16px; }
.pdp-sec-no::before { font-size: 11px; padding: 3px 7px; }
.pdp-sec .spec-grid { gap: 7px; }
.pdp-sec .spec-item { padding: 9px 11px; }
.pdp-sec .spec-item b { font-size: 13px; }

/* ---------- 6. 页脚 / 浮层 ---------- */
.footer-cols { gap: 18px; }
.footer-bottom { font-size: 11px; }

/* ---------- 7. 搜索页 / 资料下载 ---------- */
/* 热门搜索：一行横滑，别摊成四行占掉半屏 */
.hot-words {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  font-size: 11.5px; margin: 0 0 10px; padding-bottom: 2px;
}
.hot-words::-webkit-scrollbar { display: none; }
.hot-words b { flex: 0 0 auto; font-size: 11.5px; }
.hot-words a { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f2f7fc; font-size: 11.5px; }
/* 搜索页的导语与搜索框里的标题重复，省掉 */
body:has(.search-toolbar) .listing-intro { display: none; }
.search-toolbar { padding: 10px 12px; border-radius: 12px; }
.search-toolbar .st-summary { font-size: 11.5px; }
.search-toolbar .st-types button, .search-toolbar .st-sort select { font-size: 11.5px; }

/* 资料下载：文件名给两行，别再截成「使用说明…」 */
.dl2-center { padding-top: 20px; padding-bottom: 34px; }
.dl2-head { margin-bottom: 12px; gap: 8px; }
.dl2-head h2 { font-size: 20px; }
.dl2-head p { font-size: 12px; line-height: 1.7; }
.dl2-search { padding: 9px 12px; margin-bottom: 12px; border-radius: 10px; }
.dl2-search input { font-size: 13px; }
.dl2-accordion { gap: 8px; }
.dl2-sec-head { padding: 12px 14px; gap: 10px; }
.dl2-row { padding: 10px 8px; gap: 10px; }
.dl2-row-main b {
  font-size: 12.5px; line-height: 1.45; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl2-row-main i { font-size: 11px; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
.dl2-row-meta { display: none; }
.dl-file { padding: 11px; gap: 10px; border-radius: 10px; }
.dl-file-body b {
  font-size: 13px; line-height: 1.45; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-file-body i { font-size: 11px; white-space: normal; }
.dl-file-body em { font-size: 10.5px; margin-top: 3px; }

/* ===== P97：试用申请（手机） =====
   输入框统一 16px：iOS Safari 对 <16px 的输入框会在聚焦时自动放大页面，
   试用表单字段多，一旦缩放整个流程就散了。其余只做间距收紧。 */
.trial-form .field { margin-bottom: 13px; }
.trial-form input, .trial-form select, .trial-form textarea { font-size: 16px; }
.trial-form textarea { line-height: 1.6; }
.trial-form .field-hint { margin-top: 5px; font-size: 11.5px; }
.trial-form .btn-lg { width: 100%; justify-content: center; }
.trial-agree { font-size: 12px; margin-bottom: 16px; }
.trial-steps li { padding-bottom: 15px; }
.trial-aside-note { font-size: 12px; }
