/* ==========================================================================
   汉印官网 · 解决方案页「按行业」族公共样式（7 页统一引用）
   ---------------------------------------------------------------
   · 与 solution.css 配套，加载在其后（同特异性时本文件规则生效）
   · 除内联组件（header / footer / inquiry / stat）自带的样式外，
     本族 7 页的全部页面样式统一收录在此：
       - 原 pages/industry.css、pages/catering.css、pages/warehouse-logistics.css
         三份内容一致，已合并为第 2 段；仓储页 hero 渐变底为唯一差异，见 2.1
       - 原 #contact 的内联背景色，收编为第 3 段
   ========================================================================== */

/* ---------- 1. Hero 插画 / 标题 / 组件微调 ---------- */
    .hero-bg {
      background: linear-gradient(115deg, #f8fafc 0%, #fff 100%)
    }

.hd-tight {
      line-height: 1.25;
      letter-spacing: -0.01em
    }

#products-dropdown .mx-auto.max-w-6xl {
      max-width: 80rem
    }

/* ---------- 2. 页面布局与卡片体系（原 pages/industry.css 全量） ---------- */
.ratio-16x10{aspect-ratio:16/10}#main-content .smart-hero-art{position:relative;min-height:340px;overflow:hidden;padding:0;background:#e9eef2;border:1px solid #e5eaf0}
/* ---------- 3. 卡片体系 ---------- */
/* 3.1 通用：卡片外壳（应用场景卡走自定义 CSS，案例卡/优势卡走 Tailwind 类） */
.industry-solution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}

/* 3.2 应用场景卡：示意图 + 文案区 */
.industry-scene-image{aspect-ratio:16/8.3;position:relative;overflow:hidden;border-bottom:1px solid var(--line);background-color:#eaf0f4;min-height:210px}
/* 3.3 场景卡文案区 */
.industry-solution-body{padding:26px 28px 28px;display:flex;flex-direction:column;align-items:flex-start;min-height:248px}
.industry-solution-body h3{font-weight:500;color:var(--ink);font-size:16px;line-height:1.375;margin:0 0 11px!important}
@media(min-width:768px){.industry-solution-body h3{font-size:18px}}
.industry-solution-body p{color:var(--ink-muted);font-size:14px;line-height:1.75;margin:0 0 20px!important;flex:1}
.product-fallback small{font-size:10px;letter-spacing:.12em;font-weight:600}
.product-family-card h3{min-height:48px}
.smart-product-body{min-height:122px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:13px}
/* 3.6 应用场景区（#solutions）内的专属覆盖 */
#solutions .industry-solution-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
#solutions .industry-scene-image{flex-shrink:0;min-height:176px;aspect-ratio:4 / 2.85}
#solutions .industry-scene-image{width:100%;height:auto;object-fit:cover}
#solutions .industry-solution-body{padding:20px 20px 23px;flex:1;min-height:unset}
#solutions .industry-solution-body h3{line-height:1.375;min-height:53px;margin-bottom:12px!important}
#solutions .industry-solution-body p{line-height:1.75;margin-bottom:21px!important;color:var(--ink-sub)}
/* ---------- 4. 场景切换器（胶囊 + 左右箭头） ---------- */
.scene-bar{display:flex;align-items:center;gap:14px;margin-bottom:34px}
.scene-pills{flex:1 1 auto;min-width:0;display:flex;gap:12px;overflow-x:auto;scrollbar-width:none}
.scene-pill{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:.625rem .75rem;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:var(--ink-muted);font-size:14px;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.scene-nav{flex:none;display:none;gap:8px}
/* 卡片数超过一屏时横向滚动：负 margin 抵消 padding，避免选中阴影被裁切 */
#solutions .industry-solution-grid.scene-scroller{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/4);overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-left:10px;scrollbar-width:none;padding:10px 10px 24px;margin:-10px -10px -24px}
/* ---------- 5. 响应式 ---------- */
@media(max-width:1023px){
  .industry-solution-grid{gap:16px}
}
@media(min-width:1024px){
      #solutions .industry-solution-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:690px) and (max-width:1023px){
  #solutions .industry-solution-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  #solutions .industry-solution-grid.scene-scroller{grid-auto-columns:calc((100% - 18px)/2)}
}
@media(max-width:680px){
  .industry-solution-grid{grid-template-columns:1fr}
  .industry-solution-body{min-height:unset;padding:22px}
  .industry-scene-image{aspect-ratio:16/8;min-height:180px}
  .industry-solution-body p{font-size:14px;line-height:1.8}
  #main-content h1{font-size:30px!important}
  .product-family-card h3{min-height:unset}
  .smart-product-body{min-height:unset}
  #main-content .smart-hero-art{min-height:250px;padding:13px}
    }
@media(max-width:689px){
  #solutions .industry-solution-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  #solutions .industry-solution-body{padding:21px}
  #solutions .industry-solution-body h3{min-height:unset}
  #solutions .industry-solution-body p{font-size:14px}
  #solutions .industry-scene-image{min-height:195px}
  #solutions .industry-solution-grid.scene-scroller{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr);overflow:visible;scroll-snap-type:none;padding:0;margin:0}
  .scene-bar{gap:10px;margin-bottom:18px}
  .scene-pills{gap:8px}
  .scene-pill{padding:8px 14px;font-size:13px}
  .scene-nav{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
.nav-link:hover,.nav-link[aria-expanded="true"]{color:#111827!important}
/* === 解决方案条目链接（hover 与服务支持一致：底部 2px 线条） === */
.sol-link{display:block;width:-moz-fit-content;width:fit-content;padding:.375rem 0 .25rem;color:#374151;text-decoration:none;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.sol-link:hover{color:#111827;border-bottom-color:#9ca3af}
/* === 解决方案列表容器：按列排布，每列 4 个 === */
.sol-col{display:grid;grid-auto-flow:column;grid-template-rows:repeat(4,min-content);
  justify-content:start;column-gap:2.5rem;row-gap:.25rem}
/* === 解决方案两栏宽度（行业:应用 = 1:1，不依赖 Tailwind 预编译类） === */
.sol-industry,.sol-application{grid-column:span 12/span 12}
@media (min-width:768px){
  .sol-industry{grid-column:span 6/span 6;border-right:1px solid #e5e7eb}
  .sol-application{grid-column:span 6/span 6}
}
/* === PC端导航左右固定150px === */
@media (min-width:1024px){.header-grid{grid-template-columns:150px auto 150px!important}}
/* === 移动端抽屉 === */
.mobile-drawer___{position:fixed;inset:0;z-index:100;visibility:hidden;transition:visibility 0s .3s}
.mobile-drawer.open____{visibility:visible;transition:visibility 0s}
/* 页脚微信浮层定位修正：放在 footer 组件之后，确保覆盖组件样式 */
.footer .wechat-pop{left:auto!important;right:0!important;transform:translateY(6px)!important}
.footer .wechat-link:hover .wechat-pop,.footer .wechat-link.wechat-open .wechat-pop,.footer .wechat-link:focus .wechat-pop{transform:translateY(0)!important}

/* 2.1 仓储物流页 hero 渐变底（原 pages/warehouse-logistics.css 差异点，按 body[data-hero] 作用域限定） */
body[data-hero="gradient"] #main-content .smart-hero-art{background:linear-gradient(135deg,#e9eef2 0%,#f8fafb 48%,#e4eaef 100%)}

/* ---------- 3. 联系区背景（原页面内联样式收编） ---------- */
#contact{background:#f8fafc}
