/* 基础防溢出与平滑渲染 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Hero 工业风几何网格底纹 */
.hero-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* 弹窗打开时锁定底层滚动 */
body.modal-open {
  overflow: hidden;
}

/* 兼容未内置 w-13/h-13 的浏览器或 CDN 变体 */
.w-13 {
  width: 3.25rem;
}

.h-13 {
  height: 3.25rem;
}

/* 卡片悬停微动效（克制商务风） */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

/* 兼容 Tailwind v3 CDN 缺失的微阴影、模糊与透明度工具类 */
.shadow-xs { box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.05); }
.shadow-2xs { box-shadow: 0 1px 1px 0 rgb(15 23 42 / 0.04); }
.backdrop-blur-xs { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bg-white\/8 { background-color: rgb(255 255 255 / 0.08); }
.border-white\/12 { border-color: rgb(255 255 255 / 0.12); }

/* 375px 移动端体验加固：防止 iOS 输入框自动放大、长文本撑破容器、悬浮球压住页脚 */
@media (max-width: 639px) {
  #inquiry-form input,
  #inquiry-form select,
  #inquiry-form textarea {
    font-size: 16px;
  }
  footer {
    padding-bottom: 5.5rem;
  }
}

#inquiry-preview-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#product-modal > div {
  max-height: 90dvh;
}