/**
 * 旧版浏览器兼容（360 兼容模式、IE11 等）
 */

html.no-js .reveal,
html.no-js .anim-in,
.reveal.is-inview,
.anim-in.is-inview {
  opacity: 1 !important;
  transform: none !important;
}

html.is-legacy img,
html.is-legacy picture img {
  max-width: 100% !important;
  height: auto !important;
}

html.is-legacy .product-visual--photo img {
  max-height: none !important;
  height: auto !important;
  width: 100% !important;
  object-fit: contain !important;
}

@supports not (width: min(100%, 1px)) {
  .container {
    width: 100%;
    max-width: 1120px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .modal-panel {
    width: 94vw;
    max-width: 900px;
  }
}

@supports not (display: grid) {
  .hero-grid,
  .featured-grid,
  .product-catalog,
  .trust-grid,
  .about-faq-grid,
  .footer-grid {
    display: block;
  }

  .hero-grid > *,
  .featured-grid > *,
  .product-catalog > *,
  .trust-grid > *,
  .about-faq-grid > * {
    margin-bottom: 20px;
  }
}

@supports not (gap: 1px) {
  .hero-actions .btn {
    margin: 0 8px 8px 0;
  }

  .featured-grid .product-card {
    margin-bottom: 20px;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled,
  .hero-panel-inner {
    background: rgba(255, 255, 255, 0.98);
  }

  .hero-panel-inner {
    background: rgba(15, 40, 32, 0.92);
  }
}

[hidden] {
  display: none !important;
}

.modal[hidden] {
  display: none !important;
}

.modal:not([hidden]) {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal,
  html.js-ready .anim-in,
  .hero-orbs .orb,
  .btn-primary,
  .nav-cta,
  .desc-tip {
    animation: none !important;
    transition: none !important;
  }
}
