﻿:root {
  --brand: #075fd6;
  --brand-dark: #063f98;
  --brand-soft: #eaf5ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  padding-top: 68px;
  background: #f8fbff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  overflow-x: hidden;
}

.text-xs,
.text-sm {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.image-white-bg,
.rich-content img {
  background: #fff;
}

.text-clamp-1,
.text-clamp-2,
.text-clamp-3,
.text-clamp-4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.text-clamp-1 {
  -webkit-line-clamp: 1;
}

.text-clamp-2 {
  -webkit-line-clamp: 2;
}

.text-clamp-3 {
  -webkit-line-clamp: 3;
}

.text-clamp-4 {
  -webkit-line-clamp: 4;
}

.site-container {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 72px);
}

.narrow-container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

[data-site-header] {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  left: 0;
  z-index: 50;
  width: 100%;
}

.site-header-shell {
  background-color: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-site-header].is-scrolled .site-header-shell {
  border-color: #bfdbfe;
  background-color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.site-header-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header-shell .site-container {
  padding-inline: clamp(16px, 2vw, 32px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
  word-break: keep-all;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 3px;
  border-radius: 0;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand-link {
  min-width: 236px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.brand-subtitle {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  width: 58px;
  height: 46px;
  min-width: 58px;
  flex: 0 0 58px;
  object-fit: contain;
}

.footer-logo-frame {
  display: grid;
  width: 60px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0;
  background: #fff;
}

.footer-logo {
  width: 48px;
  height: 40px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.header-phone {
  display: flex;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-contact {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.menu-toggle {
  display: none;
  flex: 0 0 44px;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(238, 248, 255, 0.78) 0%, rgba(238, 248, 255, 0.62) 32%, rgba(238, 248, 255, 0.46) 50%, rgba(238, 248, 255, 0.16) 58%, rgba(238, 248, 255, 0) 66%),
    url("../../uploads/images/hero-smart-fire.webp");
  background-position: center;
  background-size: cover;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  background-position: center;
  background-size: cover;
}

.hero-slide {
  --home-hero-image: url("../../uploads/images/hero-smart-fire.webp");
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(238, 248, 255, 0.78) 0%, rgba(238, 248, 255, 0.62) 32%, rgba(238, 248, 255, 0.46) 50%, rgba(238, 248, 255, 0.16) 58%, rgba(238, 248, 255, 0) 66%),
    var(--home-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel .js-hero-copy .eyebrow {
  color: #0750b5 !important;
}

.hero-carousel .js-hero-copy h1 {
  color: #071d38 !important;
}

.hero-carousel .js-hero-copy > p {
  color: #213d5a !important;
}

.hero-carousel .js-hero-copy > p.leading-8 {
  max-width: 600px;
}

.hero-carousel .js-hero-copy > p.font-bold {
  color: #092d55 !important;
}

.hero-carousel .hero-stats {
  max-width: 640px;
  gap: 12px !important;
}

.hero-carousel .hero-stat {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 18px !important;
  border-color: rgba(137, 186, 231, 0.36);
  background: rgba(2, 31, 70, 0.4);
  color: #fff;
  box-shadow: none;
}

.hero-carousel .hero-stat svg {
  width: 20px;
  height: 20px;
  margin-bottom: 10px !important;
  color: #fff !important;
}

.hero-carousel .hero-stat p {
  line-height: 1.4;
}

.hero-carousel-ui {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-carousel-dots button {
  width: 48px;
  height: 4px;
  background: rgba(7, 95, 214, 0.3);
  box-shadow: none;
  transform: scaleX(0.67);
  transform-origin: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dots button.active {
  background: #075fd6;
  transform: scaleX(1);
}

.inner-hero {
  --inner-hero-image: url("../../uploads/images/hero-smart-fire.webp");
  background-image:
    linear-gradient(90deg, rgba(238, 248, 255, 0.8) 0%, rgba(238, 248, 255, 0.56) 30%, rgba(238, 248, 255, 0.16) 48%, rgba(238, 248, 255, 0) 60%),
    var(--inner-hero-image);
  background-position: center;
  background-size: cover;
}

.section-title {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0;
}

.section-title::after {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 0;
  background: var(--brand);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  content: "";
}

.card {
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.soft-card {
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 0;
  background: #fff;
}

.contact-map-card {
  background: #fff;
}

.contact-map-layout {
  display: block;
  min-height: 360px;
}

.contact-map {
  min-height: 360px;
  background: #eff8ff;
}

.contact-map .leaflet-control-attribution {
  font-size: 11px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 0;
  background: #075fd6;
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(7, 95, 214, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(7, 95, 214, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #93c5fd;
  border-radius: 0;
  background: white;
  color: var(--brand);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--brand);
  color: white;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: #eaf5ff;
  color: var(--brand);
}

.hero-stat {
  border: 1px solid rgba(147, 197, 253, 0.55);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.image-tint {
  position: relative;
  overflow: hidden;
}

.image-tint::after {
  position: absolute;
  inset: 0;
  background: rgba(4, 31, 78, 0.38);
  content: "";
  pointer-events: none;
}

.category-button {
  border-radius: 0;
  padding: 10px 22px;
  color: #111827;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.category-button.active,
.category-button:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 95, 214, 0.2);
}

.product-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #334155;
  font-weight: 700;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-filter.active,
.product-filter:hover {
  background: #eff6ff;
  color: var(--brand);
}

.product-page-button {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dbeafe;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}

.product-page-button.active,
.product-page-button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.product-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.footer {
  background: #052b69;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-menu,
.footer-contact {
  padding-top: 4px;
}

.footer-menu a {
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(280px, 1.45fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(260px, 1.2fr);
    align-items: start;
  }
}

.table-clean th {
  background: #eff6ff;
  color: #0f3b7a;
  font-weight: 700;
}

.table-clean th,
.table-clean td {
  border: 1px solid #dbeafe;
  padding: 14px 16px;
  text-align: left;
}

.rich-content {
  word-break: break-word;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 24px 0 12px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.rich-content h1 {
  font-size: 30px;
}

.rich-content h2 {
  font-size: 24px;
}

.rich-content h3 {
  font-size: 20px;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content table,
.rich-content blockquote {
  margin: 14px 0;
}

.rich-content ul,
.rich-content ol {
  padding-left: 24px;
}

.rich-content ul {
  list-style: disc;
}

.rich-content ol {
  list-style: decimal;
}

.rich-content img,
.rich-content video {
  max-width: 100%;
  height: auto;
}

.rich-content img {
  margin-right: auto;
  margin-left: auto;
}

.rich-content figure {
  margin: 14px auto;
}

.rich-content figure.image {
  display: table;
}

.rich-content figcaption,
.rich-content .image-caption,
.rich-content .wp-caption-text {
  margin-top: 8px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.rich-content figure.image figcaption {
  display: table-caption;
  caption-side: bottom;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-content th,
.rich-content td {
  border: 1px solid #dbeafe;
  padding: 10px 12px;
  text-align: left;
}

.rich-content th {
  background: #eff6ff;
  color: #0f3b7a;
  font-weight: 700;
}

.rich-content a {
  color: var(--brand);
  font-weight: 700;
}

.site-toast-host {
  position: fixed;
  top: 88px;
  right: clamp(16px, 4vw, 48px);
  z-index: 90;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 12px;
  pointer-events: none;
}

.site-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #bfdbfe;
  background: #fff;
  padding: 14px 16px;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(16px, 0, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-toast.success {
  border-left: 4px solid #075fd6;
}

.site-toast.error {
  border-left: 4px solid #dc2626;
}

.site-toast button {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

[data-aos="fade-left"] {
  transform: translate3d(24px, 0, 0);
}

[data-aos="fade-right"] {
  transform: translate3d(-24px, 0, 0);
}

[data-aos="fade-up"] {
  transform: translate3d(0, 24px, 0);
}

@media (max-width: 1320px) {
  .site-header-row {
    gap: 14px;
  }

  .brand-link {
    min-width: 190px;
    gap: 8px;
  }

  .brand-logo {
    width: 50px;
    height: 40px;
    min-width: 50px;
    flex-basis: 50px;
  }

  .brand-name {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  .brand-subtitle {
    max-width: 178px;
    font-size: 13px !important;
  }

  .desktop-nav .nav-link {
    padding-inline: 8px !important;
    font-size: 15px;
  }

  .header-contact {
    gap: 2px;
  }

  .header-phone {
    font-size: 16px !important;
  }
}

@media (max-width: 1200px) {
  .desktop-nav {
    display: none !important;
  }

  .header-contact,
  .header-phone {
    display: none !important;
  }

  .menu-toggle {
    display: grid !important;
  }

  .mobile-menu.open {
    display: block;
  }

  .nav-link {
    min-height: 46px;
  }

  .nav-link::after {
    display: none;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    padding-top: 64px;
  }

  .site-container {
    padding-inline: 16px;
  }

  .site-header-row {
    min-height: 64px;
    gap: 10px;
  }

  .brand-link {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }

  .brand-logo {
    width: 42px;
    height: 34px;
    min-width: 42px;
    flex-basis: 42px;
  }

  .brand-link .text-\[22px\] {
    font-size: 17px !important;
    line-height: 1.05 !important;
    white-space: nowrap;
  }

  .brand-link .uppercase {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu {
    padding-inline: 16px;
  }

  .mobile-menu a {
    text-align: center;
  }

  .contact-map {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-grid > :first-child,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-menu ul {
    display: grid;
    gap: 10px;
  }

  .inner-hero {
    background-image:
      linear-gradient(90deg, rgba(239, 248, 255, 0.8) 0%, rgba(239, 248, 255, 0.6) 58%, rgba(239, 248, 255, 0.18) 78%, rgba(239, 248, 255, 0) 92%),
      var(--inner-hero-image);
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(239, 248, 255, 0.82) 0%, rgba(239, 248, 255, 0.66) 60%, rgba(239, 248, 255, 0.22) 84%, rgba(239, 248, 255, 0) 100%),
      url("../../uploads/images/hero-smart-fire.webp");
  }

  .hero-carousel {
    --hero-mobile-height: 620px;
    height: var(--hero-mobile-height);
    min-height: var(--hero-mobile-height);
    overflow: hidden;
  }

  .hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    min-height: var(--hero-mobile-height);
    background-image:
      linear-gradient(90deg, rgba(239, 248, 255, 0.86) 0%, rgba(239, 248, 255, 0.72) 64%, rgba(239, 248, 255, 0.4) 84%, rgba(239, 248, 255, 0.16) 94%, rgba(239, 248, 255, 0) 100%),
      var(--home-hero-image);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  .hero-carousel .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-carousel .hero-slide > .site-container {
    display: flex !important;
    min-height: var(--hero-mobile-height) !important;
    height: var(--hero-mobile-height);
    align-items: center;
    padding-top: 36px !important;
    padding-bottom: 42px !important;
  }

  .hero-carousel .js-hero-copy {
    max-width: none;
  }

  .hero-carousel .js-hero-copy .eyebrow {
    min-height: 32px;
    padding: 5px 12px 5px 10px;
    border: 1px solid rgba(7, 95, 214, 0.16);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: none;
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .hero-carousel .js-hero-copy .eyebrow::before {
    display: none;
  }

  .hero-carousel .js-hero-copy h1 {
    display: -webkit-box;
    margin-top: 16px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 28px !important;
    line-height: 1.42 !important;
  }

  .hero-carousel .js-hero-copy > p.font-bold {
    display: -webkit-box;
    margin-top: 16px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 19px !important;
    line-height: 1.55 !important;
  }

  .hero-carousel .js-hero-copy > p.leading-8 {
    display: -webkit-box;
    max-width: 100%;
    margin-top: 14px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 15px !important;
    line-height: 1.85 !important;
  }

  .hero-carousel .js-hero-copy .mt-8 {
    display: flex !important;
    flex-wrap: nowrap;
    margin-top: 18px !important;
    gap: 10px !important;
  }

  .hero-carousel .btn-primary,
  .hero-carousel .btn-secondary {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 46px;
    justify-content: center;
    gap: 6px;
    padding-inline: 10px !important;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero-carousel .hero-stats {
    display: flex !important;
    max-width: none;
    margin-top: 22px !important;
    overflow-x: auto;
    gap: 10px !important;
    scrollbar-width: none;
  }

  .hero-carousel .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .hero-carousel .hero-stat {
    flex: 0 0 calc((100% - 10px) / 2);
    min-height: 78px;
    padding: 12px !important;
  }

  .hero-carousel .hero-stat svg {
    width: 18px;
    height: 18px;
    margin-bottom: 6px !important;
  }

  .hero-carousel-ui {
    position: absolute;
    bottom: 18px;
    pointer-events: none;
  }

  .hero-carousel-dots {
    justify-content: center;
  }
}
