/* ==========================================================================
   汉印官网 · 解决方案页公共样式（12 个页面统一引用）
   ---------------------------------------------------------------
   · 由 12 个页面（industry 6 + application 6）的内联样式去重生成
   · 收录条件：12 页完全一致，且没有页面在别处用同一选择器写不同内容
   · 加载位置：每页 <head> 中、页面自有 <style> 之后（页面规则仍可覆盖）
   · 页面 <style> 里只保留该页/该族独有规则（如 .flow-switch-*）
   ========================================================================== */

.btn-primary {
      background: #111827;
      color: #fff
    }

.btn-primary:hover {
      background: #374151
    }

.ratio-4x3 {
      aspect-ratio: 4/3
    }

.sec-head {
      margin-bottom: 2rem
    }

@media (min-width:768px) {
      .sec-head {
        margin-bottom: 2.5rem
      }
    }

/* 3.4b 推荐产品卡：视觉对齐 03-warranty-policy 的 .dev-card（灰底卡 + 4:3 图区 + 居中两行；hover 图不动） */
    #products .product-family-card {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: .875rem;
      box-shadow: none;
      transition: box-shadow .2s, transform .2s, border-color .2s
    }

#products .product-family-card:hover {
      box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
      transform: translateY(-2px);
      border-color: #d3dae4
    }

#products .product-family-image {
      aspect-ratio: 4 / 3;
      min-height: 0;
      background: #f9fafb
    }

#main-content #products .product-family-image {
      min-height: 0
    }

/* 覆盖全局 min-height:180px，保证 2 列时仍是 4:3 */
    #products .product-family-card:hover .product-family-image img {
      transform: none
    }

#products .smart-product-body {
      display: block;
      text-align: center;
      padding: .9rem .75rem 1rem;
      min-height: 0
    }

#products .smart-product-body h3 {
      min-height: 0;
      font-size: 16px;
      font-weight: 500;
      color: #374151;
      line-height: 1.6;
      transition: color .3s ease
    }

#products .product-family-card:hover .smart-product-body h3 {
      color: #000
    }

#products .smart-product-body>span {
      margin-top: .35rem;
      font-size: 14px;
      font-weight: 500;
      color: #6b7280;
      transition: color .3s ease
    }

#products .product-family-card:hover .smart-product-body>span {
      color: #111827
    }

/* 3.4c 相关产品栅格：手机/平板一行 2 个，桌面一行 4 个（不依赖 Tailwind 变体） */
    #products .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px
    }

@media(min-width:640px) {
      #products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px
      }
    }

@media(min-width:1024px) {
      #products .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
      }
    }

/* 3.4d 卡片 CTA 箭头：统一为「→」字符，hover 右移 4px（用站内 CSS 实现：Tailwind 的 group-hover 变体在页面未生成规则） */
    #products .smart-product-cta-arrow-wrap {
      display: inline-flex;
      align-items: center;
      transition: transform .3s ease
    }

#products .product-family-card:hover .smart-product-cta-arrow-wrap {
      transform: translateX(4px)
    }

/* 3.4e 手机端 2 列时的字号/间距收敛，避免文案拥挤 */
    @media(max-width:639.98px) {
      #products .smart-product-body {
        padding: .65rem .5rem .75rem
      }

      #products .smart-product-body h3 {
        font-size: 14px
      }

      #products .smart-product-body>span {
        margin-top: .25rem;
        font-size: 12px
      }
    }

:root {
      --card-radius: 16px;
      --card-shadow: 0 1px 3px rgba(15, 23, 42, .035);
      --card-shadow-hover: 0 9px 28px rgba(15, 23, 42, .08);
      --card-shadow-soft: 0 7px 22px rgba(15, 23, 42, .075);
      --card-shadow-active: 0 8px 16px rgba(15, 23, 42, .22), 0 2px 5px rgba(15, 23, 42, .10);
      --line: #eef0f3;
      --line-strong: #cbd5e1;
      --ink: #111827;
      --ink-muted: #64748b;
      --ink-sub: #637183;
      --accent: #0f172a;
      --ease: .25s ease;
    }

/* ---------- 1. 基础排版 ---------- */
    button {
      cursor: pointer
    }

#main-content h1,
    #main-content h2,
    #main-content h3,
    #main-content p {
      margin-top: 0
    }

#main-content h1,
    #main-content h2,
    #main-content h3 {
      line-height: 1.35
    }

#main-content .leading-relaxed {
      line-height: 1.8
    }

#main-content nav[aria-label="面包屑导航"] ol {
      list-style: none;
      margin: 0;
      padding: 0
    }

.smart-hero-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block
    }

.industry-solution-card {
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      overflow: hidden;
      background: white;
      box-shadow: var(--card-shadow);
      transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease)
    }

.industry-solution-card:hover {
      box-shadow: var(--card-shadow-hover);
      transform: translateY(-2px)
    }

/* 3.4 推荐产品卡（外壳为 Tailwind 类，此处定义图占位与文案） */
    .product-family-image {
      position: relative;
      min-height: 175px;
      overflow: hidden
    }

#main-content .product-family-image {
      min-height: 180px
    }

.product-family-image img {
      position: absolute;
      inset: 0;
      margin: auto;
      width: 82%;
      height: 82%;
      object-fit: contain;
      transition: transform .4s ease
    }

.product-family-card:hover .product-family-image img {
      transform: none
    }

.smart-product-body h3 {
      min-height: unset;
      line-height: 1.6
    }

.smart-product-body>span {
      margin-top: auto
    }

/* 3.5 通用 hover / 选中（产品卡与优势卡共用同一阴影） */
    #why-hanin .grid>div {
      min-height: 176px
    }

#why-hanin .grid>div:hover,
    .product-family-card:hover {
      box-shadow: var(--card-shadow-soft)
    }

.industry-solution-card.scene-active {
      box-shadow: var(--card-shadow-active);
      border-color: var(--line-strong)
    }

.industry-solution-card.scene-active .industry-scene-image {
      filter: saturate(1.08)
    }

.industry-solution-card.scene-active .industry-solution-body h3 {
      color: var(--ink)
    }

#solutions .industry-solution-card {
      min-width: 0;
      display: flex;
      flex-direction: column
    }

.scene-pills::-webkit-scrollbar {
      display: none
    }

.scene-pill:hover {
      border-color: #d1d5db;
      color: var(--ink)
    }

.scene-pill.is-active {
      background: #f1f5f9;
      border-color: var(--line-strong);
      color: var(--accent);
      font-weight: 600
    }

.scene-nav.show {
      display: flex
    }

.scene-arrow {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid #d5d9e0;
      background: #fff;
      color: #475569;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color .2s, color .2s, border-color .2s
    }

.scene-arrow:hover:not(:disabled) {
      background: #f1f5f9;
      color: var(--ink);
      border-color: #94a3b8
    }

.scene-arrow:disabled {
      opacity: .35;
      cursor: default
    }

.scene-arrow svg {
      width: 16px;
      height: 16px
    }

#solutions .industry-solution-grid.scene-scroller::-webkit-scrollbar {
      display: none
    }

#solutions .industry-solution-grid.scene-scroller>.industry-solution-card {
      scroll-snap-align: start
    }

@media(min-width:768px) {
      .md\:col-span-3 {
        grid-column: span 3/span 3
      }

      .md\:col-span-9 {
        grid-column: span 9/span 9
      }

      .md\:block {
        display: block
      }

      .md\:overflow-visible {
        overflow: visible
      }
    }

/* === 导航链接下划线动画 === */
    .nav-link {
      position: relative;
      font-size: 1em;
      letter-spacing: .5px;
      transition: font-weight .3s, color .3s;
      padding: 0px 10px;
      margin: 0 5px;
    }

.nav-link a {
      text-decoration: none
    }

.nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      width: 100%;
      transform: scaleX(0);
      transform-origin: left;
      background: #4b5563;
      transition: transform .2s
    }

.nav-link:hover::after,
    .nav-link[aria-expanded="true"]::after {
      transform: scaleX(1)
    }

/* === 下拉面板定位（全宽） === */
    .mega-dropdown,
    .sub-dropdown {
      position: fixed;
      left: 0;
      right: 0;
      width: 100vw;
      top: 80px
    }

/* === 下拉子菜单链接下划线 === */
    .sub-dropdown a.sub-link {
      text-decoration: none;
      color: #374151;
      border-bottom: 2px solid transparent;
      padding-bottom: .25rem;
      transition: color .2s, border-color .2s
    }

.sub-dropdown a.sub-link:hover {
      color: #111827;
      border-bottom-color: #9ca3af
    }

/* === Mega 卡片 === */
    .mega-card-link {
      background: rgba(229, 231, 235, .6)
    }

.mega-card-link:hover {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1)
    }

/* === 解决方案下拉卡片：图在上、文字在下（4 列），图片在固定高度内等比缩放 === */
    #solutions-dropdown .mega-card-link img {
      max-width: 100%;
      max-height: 96px;
      width: auto;
      height: auto;
      object-fit: contain
    }

/* 行业卡片（overlay 版）：图片即卡片，4:3 比例不再显扁；文案白色压在图片底部渐变遮罩上 */
    #solutions-dropdown .mega-card-link.mega-banner-card {
      background: transparent
    }

    #solutions-dropdown .mega-card-link img.mega-banner {
      display: block;
      width: 100% !important;
      max-width: none !important;
      height: auto !important;
      max-height: none !important;
      aspect-ratio: 16 / 10;
      object-fit: cover !important;
      object-position: center
    }

    #solutions-dropdown .mega-card-link .mega-banner-box {
      position: relative
    }

    /* 文案放在图片下方（不压图）：深色文字、居中 */
    /* 文案在卡片内部的下方：图片在上、文字在下，共用卡片边框 */
    #solutions-dropdown .mega-card-link .mega-caption {
      position: static;
      display: block;
      margin: 0;
      padding: 10px 8px 11px;
      background: #fff;
      color: #111827 !important;
      font-weight: 500;
      letter-spacing: .02em;
      text-align: center;
      text-shadow: none
    }

/* 卡片 hover：只给卡片边框加阴影，内部图片与文字保持不动 */
    #solutions-dropdown .mega-card-link.mega-banner-card:hover {
      box-shadow: none
    }

    #solutions-dropdown .mega-card-link.mega-banner-card .mega-banner-box {
      transition: box-shadow .25s ease
    }

    #solutions-dropdown .mega-card-link.mega-banner-card:hover .mega-banner-box {
      box-shadow:
        0 10px 20px -8px rgba(17, 24, 39, .24),
        0 3px 8px -4px rgba(17, 24, 39, .12)
    }

            /* === Tab 按钮 === */
    .tab-btn {
      font-size: 14px;
      cursor: pointer;
      text-decoration: none;
      display: block
    }

.tab-btn:hover,
    .tab-btn[aria-selected="true"] {
      background: rgba(229, 231, 235, .6)
    }

.tab-btn[aria-selected="true"] {
      font-weight: 500;
      color: #111827
    }

#categoryTabs .tab-btn {
      margin-bottom: .5rem
    }

/* === 下拉面板内容区宽度（产品 / 解决方案保持一致） === */
    .sol-wrap {
      max-width: 90rem;
      margin-left: auto;
      margin-right: auto
    }

/* === 标题 === */
    #products-dropdown h2,
    .master-title {
      font-size: 20px;
      font-weight: 500;
      letter-spacing: -.2px
    }

/* === 搜索输入聚焦 === */
    #search-input:focus {
      --tw-ring-color: #374151;
      border-color: #374151
    }

/* === 搜索面板过渡 === */
    .search-panel {
      display: none;
      opacity: 0;
      transform: translateY(-1rem);
      transition: opacity .3s ease-out, transform .3s ease-out
    }

.search-panel.show {
      display: block;
      opacity: 1;
      transform: translateY(0)
    }

.search-panel.hiding {
      opacity: 0;
      transform: translateY(-1rem);
      transition: opacity .2s ease-in, transform .2s ease-in
    }

/* === 语言面板 === */
    .lang-panel {
      display: none;
      opacity: 0;
      transition: opacity .3s
    }

.lang-panel.show {
      display: block;
      opacity: 1
    }

.mobile-drawer {
      position: fixed;
      inset: 0;
      z-index: 100;
      visibility: hidden;
      /* 保留，用于禁用点击，但视觉上已不可见 */
      opacity: 0;
      transform: translateX(100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s 0.35s;
      /* 延迟隐藏，等动画结束 */
    }

.mobile-drawer.open {
      visibility: visible;
      opacity: 1;
      transform: translateX(0);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
      /* 立即可见，但 opacity 渐显 */
    }

.mobile-drawer .drawer-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      transition: opacity 0.35s ease;
    }

.mobile-drawer.open .drawer-backdrop {
      opacity: 1
    }

.mobile-drawer .drawer-panel {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      background: #fff;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
      transform: translateX(100%);
      transition: transform .3s ease-out;
      display: flex;
      flex-direction: column
    }

.mobile-drawer.open .drawer-panel {
      transform: translateX(0)
    }

/* === details/summary 手风琴 === */
    .accordion summary {
      list-style: none;
      cursor: pointer
    }

.accordion summary::-webkit-details-marker {
      display: none
    }

.accordion summary::marker {
      display: none;
      content: ''
    }

.accordion summary::after {
      content: '';
      display: inline-block;
      width: .5em;
      height: .5em;
      border-right: 2px solid #6b7280;
      border-bottom: 2px solid #6b7280;
      transform: rotate(45deg);
      transition: transform .2s;
      margin-left: auto
    }

.accordion[open]>summary::after {
      transform: rotate(-135deg)
    }

.accordion .accordion-body {
      overflow: hidden
    }

.accordion[open]>.accordion-body {
      animation: accordionIn .3s ease
    }

@keyframes accordionIn {
      from {
        opacity: 0;
        max-height: 0
      }

      to {
        opacity: 1;
        max-height: 500px
      }
    }

/* === 自定义滚动条 === */
    .drawer-scroll::-webkit-scrollbar {
      width: 4px
    }

.drawer-scroll::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 4px
    }

/* === 语言面板滚动条 === */
    #language-panel .overflow-y-auto::-webkit-scrollbar {
      width: 6px
    }

#language-panel .overflow-y-auto::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px
    }

#language-panel .overflow-y-auto::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 10px
    }

#language-panel .overflow-y-auto::-webkit-scrollbar-thumb:hover {
      background: #aaa
    }

.footer {
      background-color: #f9fafb;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.6;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      border-top: 1px solid #e5e7eb;
    }

.footer-container {
      max-width: 1540px;
      margin: 0 auto;
      padding: 80px 20px 60px;
      display: grid;
      grid-template-columns: 4fr 1.2fr 1.2fr 2.2fr;
      gap: 40px;
    }

.master-title {
      color: #111827;
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 25px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e5e7eb;
    }

.sub-category-title {
      color: #374151;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 12px;
      margin-top: 20px;
    }

.sub-category-title:first-child {
      margin-top: 0;
    }

.products-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

.footer-col ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

.footer-col ul li {
      margin-bottom: 10px;
    }

.footer-col a {
      color: #6b7280;
      text-decoration: none;
      transition: all 0.2s ease-out;
      display: inline-block;
      font-size: 13px;
    }

.footer-col ul a:hover {
      color: #000000;
      transform: translateX(3px);
    }

.contact-info {
      color: #6b7280;
      margin-bottom: 15px;
      font-size: 13px;
      line-height: 1.5;
    }

.footer-social {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      margin-top: 2px;
    }

.footer-social a {
      display: inline-flex;
      align-items: center;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

.footer-social a:not(.wechat-link):hover {
      opacity: 0.75;
      transform: translateY(-2px);
    }

.footer-social img {
      display: block;
      height: 28px;
      width: auto;
    }

.footer-social a.wechat-link {
      position: relative;
    }

.footer-social .wechat-pop {
      position: absolute;
      bottom: calc(100% + 12px);
      left: 50%;
      width: max-content;
      padding: 12px 12px 10px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
      text-align: center;
      transform: translate(-50%, 6px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      z-index: 80;
      pointer-events: none;
    }

.footer-social .wechat-pop::before,
    .footer-social .wechat-pop::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      border-style: solid;
    }

.footer-social .wechat-pop::before {
      margin-left: -7px;
      border-width: 7px 7px 0;
      border-color: #e5e7eb transparent transparent;
    }

.footer-social .wechat-pop::after {
      margin-left: -6px;
      border-width: 6px 6px 0;
      border-color: #ffffff transparent transparent;
    }

.footer-social .wechat-link:hover .wechat-pop,
    .footer-social .wechat-link.wechat-open .wechat-pop,
    .footer-social .wechat-link:focus .wechat-pop {
      transform: translate(-50%, 0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

.footer-social .wechat-pop img {
      display: block;
      width: 200px;
      height: 200px;
      margin: 0 auto;
      border-radius: 6px;
      background: #f9fafb;
    }

.footer-social .wechat-tip {
      display: block;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed #e5e7eb;
      font-size: 12px;
      line-height: 1.4;
      color: #6b7280;
    }

.footer-bottom {
      background-color: #f3f4f6;
      padding: 25px 20px;
    }

.footer-bottom-inner {
      max-width: 1540px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: #9ca3af;
    }

.footer-bottom-inner a {
      color: #9ca3af;
      text-decoration: none;
      margin-left: 20px;
      transition: color 0.2s;
    }

.footer-bottom-inner a:hover {
      color: #4b5563;
    }

@media (max-width: 1280px) {
      .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
      }

      .products-col {
        grid-column: span 2;
      }

      .products-grid {
        grid-template-columns: repeat(6, 1fr);
      }
    }

@media (max-width: 768px) {
      .products-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-container {
        grid-template-columns: 1fr 1fr;
      }

      .products-col {
        grid-column: span 2;
      }

      .contact-col {
        grid-column: span 2;
      }

      .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
      }

      .footer-bottom-links a {
        margin: 0 10px;
      }
    }

.cc-consent {
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: 16px;
      bottom: calc(16px + env(safe-area-inset-bottom, 0px));
      z-index: 2147483000;
      transform: translateY(calc(100% + 40px));
      opacity: 0;
      transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .45s ease;
      pointer-events: none;
    }

.cc-consent.cc-show {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

.cc-inner {
      max-width: 1080px;
      margin: 0 auto;
      background: #fff;
      border: 1px solid #ececec;
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
      padding: 18px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

.cc-text {
      flex: 1 1 420px;
      min-width: 260px;
    }

.cc-text p {
      margin: 0;
      font-size: 14px;
      line-height: 1.7;
      color: #444;
    }

.cc-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }

.cc-link {
      font-size: 14px;
      color: #111;
      text-decoration: underline;
      text-underline-offset: 3px;
      white-space: nowrap;
    }

.cc-link:hover {
      color: #555;
    }

.cc-btn {
      border: none;
      border-radius: 999px;
      padding: 9px 22px;
      font-size: 14px;
      line-height: 1.2;
      cursor: pointer;
      transition: background-color .2s ease, color .2s ease, border-color .2s ease;
      white-space: nowrap;
    }

.cc-btn-ghost {
      background: #fff;
      color: #111;
      border: 1px solid #d5d5d5;
    }

.cc-btn-ghost:hover {
      background: #f5f5f5;
    }

.cc-btn-primary {
      background: #111;
      color: #fff;
    }

.cc-btn-primary:hover {
      background: #333;
    }

@media (max-width: 640px) {
      .cc-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      }

      .cc-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px;
        gap: 12px;
      }

      .cc-text {
        flex: none;
        width: 100%;
        min-width: 0;
      }

      .cc-text p {
        font-size: 13px;
        line-height: 1.6;
      }

      .cc-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }

      .cc-actions .cc-btn {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
      }

      .cc-link {
        align-self: center;
      }
    }

/* ===== 图片：统一用 <img>，容器负责比例、圆角与裁切 ===== */
.scene-photo-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block
    }

.img-frame {
      position: relative;
      overflow: hidden;
      background: #eef2f6;
      border: 1px solid #e5eaf0;
      border-radius: 16px
    }

.img-cover {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center
    }

/* 图片未就位/加载失败时，只留容器底色，不铺满 alt 文案 */
    .scene-photo-img,
    .smart-hero-img,
    .img-cover {
      color: transparent;
      font-size: 0
    }
