:root {
  --color-primary: #c82020;
  --color-primary-dark: #9f1717;
  --color-dark: #2f2531;
  --color-text: #2c2428;
  --color-muted: #6f6268;
  --color-bg: #ffffff;
  --color-alt: #fff8f7;
  --color-pink: #f8c7b9;
  --color-coral: #f06f86;
  --qiyan-gradient: linear-gradient(135deg, #c82020 0%, #f06f86 54%, #f8c7b9 100%);
  --container: 1440px;
  --container-gutter: clamp(16px, 2.5vw, 48px);
  --lead-max: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.es-container {
  width: min(var(--container), calc(100% - 2 * var(--container-gutter)));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  clip: auto;
  overflow: visible;
  background: #fff;
  color: #17233c;
  z-index: 1000;
}

@media (min-width: 1600px) {
  :root {
    --container: 1520px;
  }
}

.es-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(23, 35, 60, 0.1);
  backdrop-filter: blur(8px);
  transition:
    box-shadow 0.38s ease,
    border-color 0.38s ease,
    background-color 0.38s ease;
}

.es-header.es-header--elevated {
  box-shadow: 0 16px 42px rgba(23, 35, 60, 0.12);
  border-bottom-color: rgba(23, 35, 60, 0.12);
}

.es-topbar {
  background: #2f2531;
  color: #ffe8e2;
  font-size: 13px;
}

.es-topbar a {
  color: #fff;
}

.es-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.es-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.es-topbar__links span {
  color: rgba(255, 255, 255, 0.72);
}

.es-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 16px;
}

.es-brand {
  flex-shrink: 0;
}

.es-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.es-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.es-header__account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.es-header__account--guest {
  gap: 8px;
}

.es-header__account-link {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  padding: 8px 4px;
  white-space: nowrap;
}

.es-header__account-link:hover {
  color: var(--color-primary);
}

.es-header__account-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.es-header__account-register {
  padding: 8px 16px;
  font-size: 13px;
}

.es-header__account--logged-in {
  gap: 12px;
  max-width: min(280px, 46vw);
}

.es-header__account-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 6px 4px 4px;
  margin: -4px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.es-header__account-profile:hover .es-header__account-name {
  color: var(--color-primary);
}

.es-header__account-profile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.es-header__account-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #dce4ec;
  background: #f4f9fd;
}

.es-header__account-avatar-img,
.es-user-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-header__account-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.es-header__account-greeting {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.es-header__account-name {
  font-size: 14px;
  font-weight: 700;
  color: #17233c;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.es-header__account-divider {
  width: 1px;
  height: 28px;
  background: #dce4ec;
  flex-shrink: 0;
}

.es-header__account-link--quiet {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 2px;
}

.es-header__account-link--quiet:hover {
  color: var(--color-primary);
}

.es-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 10px;
  margin: -4px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.2;
}

.es-header__cart:hover {
  color: var(--color-primary);
  background: rgba(10, 111, 174, 0.06);
}

.es-header__cart:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.es-header__cart-text {
  white-space: nowrap;
}

.es-header__cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.es-header__cart--empty .es-header__cart-count {
  display: none;
}

/* Brand column: WooCommerce / plugins sometimes ship broad img { height:auto } rules on shop routes — keep logo boxed so the header row height stays stable */
.es-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.es-brand__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

header.es-header .es-brand .es-brand__logo-img {
  display: block;
  height: 56px;
  max-height: 56px;
  width: auto;
  max-width: min(260px, 54vw);
  object-fit: contain;
}

header.es-header .es-brand .custom-logo-link,
header.es-header .es-brand .custom-logo {
  display: block;
  line-height: 0;
}

header.es-header .es-brand .custom-logo {
  max-height: 44px;
  max-width: min(220px, 52vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.es-brand__text {
  display: grid;
  gap: 2px;
  color: #17233c;
  line-height: 1.12;
}

.es-brand__text strong {
  font-size: 20px;
  font-weight: 800;
}

.es-brand__text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c82020;
}

.es-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qiyan-gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.es-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

.es-menu a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #17233c;
  white-space: nowrap;
  transition: color 0.2s ease;
}

@media (min-width: 1280px) {
  .es-menu {
    gap: 10px 12px;
  }

  .es-menu a {
    font-size: 15px;
  }
}

@media (min-width: 1440px) {
  .es-header__inner {
    gap: 20px;
  }

  .es-menu {
    gap: 12px 15px;
  }

  .es-header__search {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 280px;
  }
}

.es-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.es-menu a:hover::after,
.es-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Primary nav dropdowns (Resources hub, etc.) */
.es-menu > li {
  position: relative;
  list-style: none;
  flex-shrink: 0;
}

.es-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.es-menu .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 993px) {
  .es-menu > li.menu-item-has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 240px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(13, 42, 67, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 400;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .es-menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 18px;
    z-index: 399;
  }

  .es-menu > li.menu-item-has-children:hover > .sub-menu,
  .es-menu > li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .es-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    color: #1f2937;
  }

  .es-menu .sub-menu a:hover,
  .es-menu .sub-menu a:focus-visible {
    background: #f4f8fb;
    color: #0a6fae;
  }

  .es-menu .sub-menu a::after {
    display: none;
  }

  .es-menu > li.menu-item-has-children > a {
    padding-right: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231f2937' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px 6px;
  }
}

.es-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.es-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  background: #0d2a43;
  margin-bottom: 5px;
}

.es-menu-toggle span:not(.screen-reader-text):last-of-type {
  margin-bottom: 0;
}

.es-btn[hidden],
.es-assessment__step[hidden] {
  display: none !important;
}

.es-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}

.es-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.es-btn:hover {
  transform: translateY(-2px);
}

.es-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.es-btn--primary {
  background: #c82020;
  color: #fff;
  border-color: #c82020;
}

.es-btn--primary:hover {
  background: linear-gradient(135deg, #b31a1a, #df4c62);
  box-shadow: 0 12px 28px rgba(200, 32, 32, 0.26);
}

.es-btn--ghost {
  background: #fff;
  border-color: rgba(23, 35, 60, 0.22);
  color: var(--color-dark);
}

.es-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.es-alert--success {
  background: #eafaf0;
  border: 1px solid #b7e6c7;
  color: #15603a;
}

.es-alert--error {
  background: #fff1f1;
  border: 1px solid #f0b5b5;
  color: #9b1d1d;
}

.es-btn--ghost:hover {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.es-section {
  padding: 86px 0;
}

.es-section h2 {
  margin: 6px 0 14px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  color: #17233c;
}

.es-lead {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--color-muted);
  max-width: var(--lead-max);
  line-height: 1.6;
}

/* Section / page-hero intros: full main-container width (narrow --lead-max is for in-card copy). */
.es-section > .es-container > .es-lead,
.es-page-hero > .es-container > .es-lead {
  max-width: none;
  width: 100%;
}

.es-section--alt {
  background: var(--color-alt);
}

.es-section--primary {
  background: var(--color-primary);
  color: #fff;
}

.es-section--primary .es-lead {
  color: rgba(255, 255, 255, 0.9);
}

.es-grid {
  display: grid;
  gap: 20px;
}

.es-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.es-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.es-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.es-card,
.es-stat,
.es-quote {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
}

.es-stat {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.es-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(13, 42, 67, 0.11);
  border-color: #d5e1ed;
}

.es-card--link {
  color: inherit;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.es-card--link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.13);
}

.es-feature-card {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.es-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(13, 42, 67, 0.11);
  border-color: #d5e1ed;
}

.es-feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.es-stat strong {
  display: block;
  font-size: 28px;
  color: var(--color-primary);
}

strong[data-es-count] {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

strong[data-es-count].es-stat-counted {
  will-change: auto;
}

.es-hero__stats strong[data-es-count],
.es-trust-partners__metrics strong[data-es-count],
.es-brand-story__stat-card strong[data-es-count] {
  display: inline-block;
}

.es-stat span {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}

.es-stat p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.es-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.es-steps li {
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 12px;
  padding: 18px 20px;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.es-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 42, 67, 0.09);
  border-color: #cddcea;
}

.es-steps h3 {
  margin: 0 0 8px;
  color: #17233c;
  font-size: 18px;
}

.es-steps p {
  margin: 0;
  color: #5b6574;
}

.es-footer {
  background: #17233c;
  color: #dbe4ee;
  padding: 56px 0 28px;
}

.es-footer a {
  color: #dbe4ee;
}

.es-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.es-footer__title {
  margin: 0 0 12px;
  color: #f4f8fc;
}

.es-footer__block--brand p {
  color: #c2cfde;
  margin-top: 0;
}

.es-footer__contact {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  color: #b6c3d3;
  font-size: 14px;
}

.es-footer__contact li + li {
  margin-top: 6px;
}

.es-footer__social {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #b6c3d3;
  font-size: 14px;
}

.es-footer__social a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(219, 228, 238, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.es-footer__social a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.es-footer__ai {
  margin: 14px 0 0;
  font-size: 14px;
  color: #b6c3d3;
}

.es-footer__ai a {
  color: #c2cfde;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.es-footer__consult-text {
  margin: 0 0 14px;
  color: #c2cfde;
  font-size: 14px;
  line-height: 1.65;
}

.es-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.es-footer-menu li + li {
  margin-top: 8px;
}

.es-footer-menu a {
  color: #c2cfde;
}

.es-footer__form {
  display: grid;
  gap: 10px;
}

.es-footer__form input {
  width: 100%;
  border: 1px solid rgba(219, 228, 238, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef4fb;
}

.es-footer__form input::placeholder {
  color: #b6c3d3;
}

.es-footer__copyright {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(219, 228, 238, 0.12);
  font-size: 13px;
  color: #9fb0c4;
}

/* Scroll-driven reveals (home + inner pages; JS adds .es-motion-hide / .es-motion-visible) */
@media (prefers-reduced-motion: no-preference) {
  html.es-home-smooth {
    scroll-behavior: smooth;
  }

  .es-motion-hide {
    opacity: 1;
    transform: translate3d(0, 18px, 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.02s),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.02s);
    will-change: opacity, transform;
  }

  .es-motion-hide.es-motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }

  #home-hero .es-motion-hide {
    transition-duration: 0.85s, 0.85s;
  }
}

@media (max-width: 992px) {
  .es-grid--4,
  .es-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .es-menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .es-nav {
    display: none;
    width: 100%;
    order: 5;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 8px 14px;
  }

  body.es-menu-open .es-nav {
    display: block;
  }

  .es-nav .es-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .es-nav .es-menu li a {
    display: block;
    padding: 8px 0;
  }

  .es-nav .es-menu > li.menu-item-has-children > .sub-menu {
    display: none;
    margin: 4px 0 8px 10px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid #e4ebf2;
  }

  .es-nav .es-menu > li.menu-item-has-children.is-sub-open > .sub-menu {
    display: block;
  }

  .es-nav .es-menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
  }

  .es-nav .es-menu > li.menu-item-has-children > a::before {
    content: "+";
    flex-shrink: 0;
    width: 1.25rem;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #0a6fae;
    text-align: center;
  }

  .es-nav .es-menu > li.menu-item-has-children.is-sub-open > a::before {
    content: "−";
  }

  .es-nav .es-menu .sub-menu a {
    min-height: 44px;
    padding: 10px 6px;
    font-size: 15px;
    white-space: normal;
  }

  .es-nav .es-menu .sub-menu a::after {
    display: none;
  }

  .es-header__cta {
    display: none;
  }

  .es-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-btn:hover,
  .es-card--link:hover,
  .es-stat:hover,
  .es-feature-card:hover,
  .es-steps li:hover {
    transform: none;
  }

  .es-header {
    transition: none;
  }

  .es-menu a::after {
    transition: none;
  }

  .es-hscroll-btn:hover:not(:disabled) {
    transform: none;
  }

  .es-hscroll--products .es-product-card:hover {
    transform: none;
  }

  .es-post-card:hover,
  .es-project-card:hover,
  .es-filter__item:hover {
    transform: none;
  }

  .es-page-content .es-grid > .es-card:not(.es-card--link):hover {
    transform: none;
  }

  .woocommerce ul.products li.product:hover,
  .es-wc-cat-card:hover {
    transform: none;
  }

  .es-wc-block:hover {
    box-shadow: none;
  }

  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover {
    transform: none;
    box-shadow: none;
  }

  .es-motion-hide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .es-grid--2,
  .es-grid--3,
  .es-grid--4 {
    grid-template-columns: 1fr;
  }

  .es-menu {
    flex-wrap: wrap;
    gap: 12px;
  }

  .es-topbar__inner {
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .es-section {
    padding: 68px 0;
  }

  .es-footer__top {
    grid-template-columns: 1fr;
  }

}

/* Global quote modal triggers (header + contact, etc.) */
button[data-es-quote-modal-open] {
  font: inherit;
  cursor: pointer;
  border: none;
  appearance: none;
}

body.es-quote-modal-open {
  overflow: hidden;
}

.es-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

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

.es-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 42, 67, 0.48);
  z-index: 0;
  cursor: pointer;
}

.es-quote-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 80px rgba(13, 42, 67, 0.22);
}

.es-quote-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0 22px;
  border-bottom: 1px solid #e8eff5;
}

.es-quote-modal__title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  color: #0d2a43;
}

.es-quote-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.es-quote-modal__close:hover {
  background: #f1f5f9;
  color: #0d2a43;
}

.es-quote-modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.es-quote-modal__body {
  padding: 16px 22px 22px;
}

.es-quote-modal__intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.es-quote-modal .es-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.es-quote-modal .es-alert--success {
  background: #eafaf0;
  border: 1px solid #b7e6c7;
  color: #15603a;
}

.es-quote-modal .es-alert--error {
  background: #fff1f1;
  border: 1px solid #f0b5b5;
  color: #9b1d1d;
}

.es-quote-modal .es-form {
  display: grid;
  gap: 12px;
}

.es-quote-modal .es-form input,
.es-quote-modal .es-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  box-sizing: border-box;
}

.es-quote-modal .es-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Site 2.0: trust strip, search, partners, B2B product meta */
.es-topbar__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

.es-topbar__phone {
  font-weight: 700;
  white-space: nowrap;
}

.es-topbar__address {
  opacity: 0.92;
}

.es-topbar__text {
  opacity: 0.85;
}

.es-header__search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 260px;
  max-width: 320px;
}

.es-header__search input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  min-height: 42px;
  box-sizing: border-box;
}

.es-header__search input::placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-header__search-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.es-trust-partners {
  padding-top: 0;
  margin-top: -8px;
}

.es-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #f4f8fb;
  border: 1px solid #dbe7f0;
  border-radius: 14px;
}

.es-trust-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.es-trust-badges__icon {
  color: #b9935b;
}

.es-trust-partners__head {
  margin: 0 0 clamp(22px, 3vw, 32px);
}

.es-trust-partners__head .es-kicker {
  margin: 0 0 10px;
}

.es-trust-partners__head h2 {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #17233c;
}

.es-trust-partners__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.es-trust-partners__panel {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.04);
}

.es-trust-partners__panel--main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.es-trust-partners__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.es-trust-partners__metrics li {
  min-width: 0;
}

.es-trust-partners__metrics strong {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  margin-bottom: 4px;
}

.es-trust-partners__metrics span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #4b5563;
}

.es-trust-partners__note {
  color: #4b5563;
  margin: 0 0 16px;
  max-width: none;
  line-height: 1.55;
}

.es-trust-partners__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin-top: 6px;
  padding: 12px 26px;
  font-size: 15px;
}

.es-trust-partners__visual {
  position: relative;
  min-height: 320px;
  padding: clamp(22px, 2.8vw, 30px);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 20px 50px rgba(13, 42, 67, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.es-trust-partners__visual-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--es-trust-visual-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 10s ease;
}

.es-trust-partners__visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(13, 42, 67, 0.38) 0%,
    rgba(10, 111, 174, 0.28) 48%,
    rgba(185, 147, 91, 0.26) 100%
  );
}

.es-trust-partners__visual-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(255, 255, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 92%, rgba(201, 162, 118, 0.18), transparent 62%);
  pointer-events: none;
}

.es-trust-partners__topics {
  position: relative;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  align-content: center;
}

.es-trust-partners__topic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(8, 24, 40, 0.12);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.es-trust-partners__topic-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
}

.es-trust-partners__topic-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow:
    0 1px 10px rgba(8, 24, 40, 0.45),
    0 0 18px rgba(13, 42, 67, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .es-trust-partners__visual:hover .es-trust-partners__visual-media {
    transform: scale(1.1);
  }

  .es-trust-partners__topic:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 32px rgba(8, 24, 40, 0.16);
  }
}

.es-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.es-footer__legal a {
  color: inherit;
  opacity: 0.85;
}

.es-wc-b2b-summary {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.es-wc-b2b-summary li + li {
  margin-top: 6px;
}

.es-wc-b2b-summary__stock--in_stock {
  color: #15603a;
}

.es-wc-b2b-summary__stock--low_stock {
  color: #9a3412;
}

.es-wc-b2b-summary__updated {
  font-size: 12px;
  color: #64748b;
}

.es-wc-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.es-wc-scenarios li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6fc;
  border: 1px solid #cfe3f3;
  font-size: 14px;
  font-weight: 600;
}

/* Form controls (404, modals, generic pages — home.css not loaded on 404) */
.es-form {
  display: grid;
  gap: 12px;
}

.es-form input,
.es-form textarea,
.es-form select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  min-height: 48px;
  background: #fff;
  color: #111827;
}

.es-form textarea {
  min-height: 130px;
  resize: vertical;
}

.es-form input:focus,
.es-form textarea:focus,
.es-form select:focus {
  outline: 2px solid var(--color-primary, #c9a227);
  outline-offset: 1px;
  border-color: #b8c4d4;
}

.es-404-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.es-404-search input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
}

.es-404-search .es-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 16px;
}

@media (min-width: 520px) {
  .es-404-search {
    flex-direction: row;
    align-items: stretch;
  }

  .es-404-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .es-404-search .es-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    align-self: stretch;
  }
}

.es-404-help {
  margin-top: 14px;
  color: #4b5563;
}

/* Right floating tools (consultation / cost / assessment) */
.es-site-tools {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 118;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.es-site-tools__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 12px 12px 14px;
  border: none;
  border-radius: 999px 0 0 999px;
  background: #17233c;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(13, 42, 67, 0.22);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.es-site-tools__btn:hover {
  background: #1e3354;
  transform: translateX(-3px);
}

.es-site-tools__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.es-site-tools__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.es-site-tools__label {
  white-space: nowrap;
  padding-left: 2px;
  padding-right: 6px;
}

/* Native consultation chat panel (no third-party SaaS) */
.es-consult-chat {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}

.es-consult-chat.is-open {
  pointer-events: auto;
}

.es-consult-chat__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.es-consult-chat.is-open .es-consult-chat__backdrop {
  opacity: 1;
}

.es-consult-chat__panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 42, 67, 0.28);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.es-consult-chat.is-open .es-consult-chat__panel {
  transform: translateY(0);
  opacity: 1;
}

.es-consult-chat--minimized .es-consult-chat__panel {
  max-height: none;
  height: auto;
}

.es-consult-chat--minimized .es-consult-chat__messages,
.es-consult-chat--minimized .es-consult-chat__composer {
  display: none;
}

.es-consult-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #17233c 0%, #1e3354 100%);
  color: #fff;
}

.es-consult-chat__agent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.es-consult-chat__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.es-consult-chat__agent-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-consult-chat__header-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.es-consult-chat__icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.es-consult-chat__icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.es-consult-chat__messages {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f3f5f8;
}

.es-consult-chat__bubble {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
}

.es-consult-chat__bubble--agent {
  margin-right: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top-left-radius: 2px;
}

.es-consult-chat__bubble--user {
  margin-left: auto;
  background: #dbeafe;
  border-top-right-radius: 2px;
}

.es-consult-chat__bubble p {
  margin: 0;
}

.es-consult-chat__meta {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.es-consult-chat__composer {
  padding: 10px 12px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.es-consult-chat__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.es-consult-chat__fields input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.es-consult-chat__fields input:nth-child(3) {
  grid-column: 1 / -1;
}

.es-consult-chat__compose-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.es-consult-chat__compose-row textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.es-consult-chat__send {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary, #c9a227);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.es-consult-chat__send:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.es-consult-chat-open {
  overflow: hidden;
}

.es-chat-widgets {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.es-chat-widgets__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 10px 24px rgba(13, 42, 67, 0.18);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.es-chat-widgets__btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.es-chat-widgets__btn--chat {
  background: #0a6fae;
  color: #fff;
}

/* Hidden on desktop; shown via mobile.css when body.es-has-mobile-sticky-cta */
.es-mobile-sticky-cta {
  display: none;
}

/* Qiyan Space brand layer */
.qiyan-header .es-header__inner {
  min-height: 76px;
}

.qiyan-header .es-brand__logo-img {
  max-width: min(214px, 42vw);
}

.qiyan-primary-menu {
  align-items: center;
}

.qiyan-primary-menu > li > a {
  padding: 8px 0;
  letter-spacing: 0;
}

.qiyan-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.qiyan-lang-switch a,
.qiyan-lang-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.qiyan-hero .es-hero-slide__shade {
  background:
    linear-gradient(90deg, rgba(47, 37, 49, 0.9) 0%, rgba(47, 37, 49, 0.78) 42%, rgba(47, 37, 49, 0.36) 72%, rgba(47, 37, 49, 0.18) 100%),
    radial-gradient(circle at 18% 28%, rgba(248, 199, 185, 0.22), transparent 34%);
}

.qiyan-hero .es-kicker,
.qiyan-page-hero .es-kicker {
  color: #f8c7b9;
}

.qiyan-hero .es-hero-carousel__dot.is-active,
.qiyan-hero .es-hero-carousel__btn:hover {
  background: #c82020;
  border-color: #c82020;
}

.qiyan-hero__stats {
  background: #fff8f7;
  border-bottom: 1px solid rgba(200, 32, 32, 0.12);
}

.qiyan-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.qiyan-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.qiyan-logic-map {
  position: relative;
  min-height: 430px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(47, 37, 49, 0.78) 0%, rgba(68, 38, 50, 0.62) 50%, rgba(200, 32, 32, 0.42) 100%),
    radial-gradient(circle at 18% 18%, rgba(248, 199, 185, 0.2), transparent 30%),
    var(--qiyan-logic-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: 0 24px 60px rgba(24, 19, 31, 0.18);
}

.qiyan-logic-container {
  margin-top: clamp(24px, 4vw, 48px);
}

.qiyan-media-card,
.qiyan-page-hero__media,
.qiyan-section-head__image,
.qiyan-band-image,
.qiyan-trust__visual-card,
.qiyan-metric-stack__image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(200, 32, 32, 0.14);
  box-shadow: 0 18px 42px rgba(47, 37, 49, 0.12);
  background-color: #fff;
  background-image: var(--qiyan-card-image);
  background-position: center;
  background-size: cover;
}

.qiyan-media-card img,
.qiyan-page-hero__media img,
.qiyan-section-head__image img,
.qiyan-band-image img,
.qiyan-trust__visual-card img,
.qiyan-metric-stack__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qiyan-media-card {
  aspect-ratio: 16 / 10;
  background: #fff;
}

.qiyan-page-hero__grid,
.qiyan-section-head--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.qiyan-page-hero__media {
  aspect-ratio: 16 / 10;
  margin: 0;
}

.qiyan-section-head__image {
  aspect-ratio: 16 / 10;
  margin: 0;
}

.qiyan-band-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.qiyan-trust__visual {
  display: grid;
  gap: 16px;
}

.qiyan-trust__visual-card {
  aspect-ratio: 16 / 10;
  margin: 0;
}

.qiyan-metric-stack__image {
  aspect-ratio: 16 / 9;
  margin: 0;
}

.qiyan-logic-map::before,
.qiyan-logic-map::after {
  content: "";
  position: absolute;
}

.qiyan-logic-map::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 19, 31, 0.02), rgba(24, 19, 31, 0.34));
  background-size: 68px 68px, 68px 68px, auto;
  pointer-events: none;
}

.qiyan-logic-map::after {
  inset: 78px 90px 96px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 0 0 48px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.qiyan-logic-map__header {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.qiyan-logic-map__header span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(248, 199, 185, 0.42);
  border-radius: 999px;
  background: rgba(24, 19, 31, 0.4);
  color: #f8c7b9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qiyan-logic-map__header strong {
  max-width: 720px;
  color: #fff;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.qiyan-logic-map__flow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin: clamp(32px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.qiyan-logic-map__flow li {
  position: relative;
  min-height: 172px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 37, 49, 0.78), rgba(90, 43, 57, 0.48));
  box-shadow: 0 20px 48px rgba(24, 19, 31, 0.22);
  backdrop-filter: blur(14px) saturate(1.08);
}

.qiyan-logic-map__flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(248, 199, 185, 0.8), rgba(200, 32, 32, 0.9));
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(200, 32, 32, 0.42);
}

.qiyan-logic-map__flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -25px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(248, 199, 185, 0.9);
  border-right: 2px solid rgba(248, 199, 185, 0.9);
  transform: rotate(45deg);
}

.qiyan-logic-map__flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid rgba(248, 199, 185, 0.5);
  border-radius: 50%;
  background: rgba(200, 32, 32, 0.24);
  color: #f8c7b9;
  font-size: 14px;
  font-weight: 900;
}

.qiyan-logic-map__flow strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.25;
}

.qiyan-logic-map__flow p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.02vw, 16px);
  font-weight: 600;
  line-height: 1.65;
  text-wrap: pretty;
}

.qiyan-logic-map__metrics {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 22px;
}

.qiyan-logic-map__metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(248, 199, 185, 0.26);
  border-radius: 999px;
  background: rgba(24, 19, 31, 0.42);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.qiyan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.qiyan-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qiyan-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qiyan-card,
.qiyan-row-card,
.qiyan-solution-panel {
  border: 1px solid rgba(200, 32, 32, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 19, 31, 0.06);
}

.qiyan-card {
  padding: 22px;
}

.qiyan-card--link {
  display: block;
  color: inherit;
}

.qiyan-card h2,
.qiyan-card h3,
.qiyan-solution-panel h2 {
  margin: 0 0 10px;
  color: #18131f;
  font-size: 21px;
  line-height: 1.32;
}

.qiyan-card p,
.qiyan-solution-panel p,
.qiyan-row-card p {
  margin: 0;
  color: #5f565b;
}

.qiyan-card:hover,
.qiyan-card--link:hover,
.qiyan-solution-panel:hover {
  border-color: rgba(200, 32, 32, 0.28);
  box-shadow: 0 20px 46px rgba(200, 32, 32, 0.12);
  transform: translateY(-3px);
}

.qiyan-card,
.qiyan-solution-panel {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.qiyan-service-card {
  scroll-margin-top: 136px;
}

.qiyan-chip-list,
.qiyan-check-list,
.qiyan-badge-list,
.qiyan-contact-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.qiyan-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qiyan-chip-list li,
.qiyan-badge-list li,
.qiyan-faq-nav a {
  border-radius: 999px;
  border: 1px solid rgba(200, 32, 32, 0.16);
  background: #fff8f7;
  color: #9f1717;
  font-weight: 700;
}

.qiyan-chip-list li {
  padding: 6px 10px;
  font-size: 13px;
}

.qiyan-check-list {
  display: grid;
  gap: 8px;
}

.qiyan-check-list li {
  position: relative;
  padding-left: 24px;
  color: #3d3438;
}

.qiyan-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qiyan-gradient);
}

.qiyan-text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.qiyan-feature-band,
.qiyan-page-cta {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(200, 32, 32, 0.16);
  background:
    radial-gradient(circle at 92% 18%, rgba(248, 199, 185, 0.5), transparent 28%),
    linear-gradient(180deg, #fff8f7 0%, #fff 100%);
}

.qiyan-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.qiyan-feature-band h2,
.qiyan-page-cta h2 {
  margin: 0 0 10px;
  color: #18131f;
}

.qiyan-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qiyan-number-grid li {
  min-height: 76px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: #18131f;
  font-weight: 800;
}

.qiyan-number-grid span {
  display: block;
  margin-bottom: 4px;
  color: #c82020;
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.qiyan-solution-panel {
  scroll-margin-top: 136px;
  padding: 26px;
}

.qiyan-timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.qiyan-row-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.3fr) minmax(420px, 1fr) minmax(92px, auto);
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
  min-height: 96px;
  padding: 20px 24px;
}

.qiyan-row-card span {
  color: #c82020;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
  text-wrap: balance;
}

.qiyan-row-card a {
  justify-self: end;
  font-weight: 800;
  white-space: nowrap;
}

.qiyan-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qiyan-badge-list li {
  padding: 9px 13px;
}

.qiyan-badge-list--wide li {
  font-size: 15px;
}

.qiyan-badge-list--trust {
  max-width: 760px;
  margin-top: 24px;
}

.qiyan-badge-list--trust li {
  font-size: 15px;
}

.qiyan-trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.qiyan-metric-stack {
  display: grid;
  gap: 12px;
}

.qiyan-metric-stack div {
  padding: 20px;
  border: 1px solid rgba(200, 32, 32, 0.14);
  border-radius: 8px;
  background: #fff8f7;
}

.qiyan-metric-stack strong {
  display: block;
  color: #c82020;
  font-size: 34px;
  line-height: 1;
}

.qiyan-metric-stack span {
  display: block;
  margin-top: 6px;
  color: #5f565b;
  font-weight: 700;
}

.qiyan-page-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(248, 199, 185, 0.55), transparent 26%),
    linear-gradient(180deg, #fff8f7 0%, #fff 88%);
}

.qiyan-page-hero h1 {
  max-width: 1040px;
}

.qiyan-page-section {
  padding-top: 64px;
}

.qiyan-page-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.qiyan-page-cta p {
  margin: 0;
  color: #5f565b;
}

.qiyan-contact-list {
  display: grid;
  gap: 8px;
  color: #3d3438;
  font-weight: 700;
}

.qiyan-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.qiyan-faq-nav a {
  padding: 8px 12px;
}

.qiyan-faq-groups {
  display: grid;
  gap: 28px;
}

.qiyan-faq-group {
  scroll-margin-top: 136px;
}

.qiyan-faq-group h2 {
  margin: 0 0 14px;
  color: #18131f;
}

.qiyan-form select {
  appearance: auto;
}

.qiyan-footer .es-footer__top {
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
}

@media (max-width: 1320px) {
  .qiyan-header .es-header__inner {
    gap: 10px;
  }

  .qiyan-primary-menu > li > a {
    font-size: 14px;
  }

  .es-header__cta {
    padding-inline: 14px;
  }
}

@media (max-width: 1120px) and (min-width: 993px) {
  .qiyan-header .es-brand__logo-img {
    max-width: 170px;
  }

  .qiyan-primary-menu {
    gap: 8px;
  }

  .qiyan-primary-menu > li > a {
    font-size: 13px;
  }

  .qiyan-header .es-header__cta {
    display: none;
  }
}

@media (max-width: 992px) {
  .qiyan-page-hero__grid,
  .qiyan-section-head--with-media {
    grid-template-columns: 1fr;
  }

  .qiyan-split,
  .qiyan-trust__inner,
  .qiyan-feature-band,
  .qiyan-page-cta {
    grid-template-columns: 1fr;
  }

  .qiyan-card-grid,
  .qiyan-card-grid--4,
  .qiyan-solution-grid,
  .qiyan-footer .es-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qiyan-row-card {
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: 14px 22px;
  }

  .qiyan-row-card a {
    grid-column: 2;
  }

  .qiyan-logic-map {
    min-height: auto;
  }

  .qiyan-logic-map__flow {
    grid-template-columns: 1fr;
  }

  .qiyan-logic-map__flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 34px;
    bottom: -22px;
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(248, 199, 185, 0.8), rgba(200, 32, 32, 0.9));
    transform: none;
  }

  .qiyan-logic-map__flow li:not(:last-child)::before {
    top: auto;
    right: auto;
    left: 30px;
    bottom: -25px;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  .qiyan-header .es-brand__logo-img {
    max-width: min(190px, 56vw);
  }

  .qiyan-card-grid,
  .qiyan-card-grid--2,
  .qiyan-card-grid--3,
  .qiyan-card-grid--4,
  .qiyan-solution-grid,
  .qiyan-footer .es-footer__top,
  .qiyan-number-grid {
    grid-template-columns: 1fr;
  }

  .qiyan-row-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .qiyan-row-card a {
    grid-column: auto;
  }

  .qiyan-logic-map {
    min-height: auto;
    padding: 22px;
  }

  .qiyan-logic-map::before,
  .qiyan-logic-map::after {
    display: none;
  }

  .qiyan-logic-map__header strong {
    font-size: clamp(23px, 6.4vw, 29px);
  }

  .qiyan-logic-map__flow {
    gap: 16px;
    margin-top: 24px;
  }

  .qiyan-logic-map__flow li {
    min-height: auto;
    padding: 20px;
  }

  .qiyan-logic-map__flow strong {
    font-size: 21px;
  }

  .qiyan-logic-map__flow p {
    font-size: 14px;
  }

  .qiyan-logic-map__metrics {
    margin-top: 18px;
  }

  .qiyan-page-cta {
    display: grid;
  }
}
