huayi-contact,
huayi-contact-footer {
  --hc-brand: var(--shop-primary, var(--brand, #227346));
  --hc-line: #dfe6e2;
  --hc-muted: #73817b;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}
huayi-contact [hidden],
huayi-contact-footer[hidden] {
  display: none !important;
}
.hc-host button,
.hc-host input,
.hc-host textarea {
  font: inherit;
  letter-spacing: 0;
}
.hc-host button {
  cursor: pointer;
}
.hc-rail {
  position: fixed;
  right: 6px;
  top: 44%;
  width: 40px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #fff;
  border: 1px solid var(--hc-line);
  box-shadow: 0 3px 15px #19392b0b;
  border-radius: 8px;
  overflow: hidden;
}
.hc-rail button {
  width: 38px;
  min-height: 54px;
  border: 0;
  background: #fff;
  color: #32423b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hc-rail i {
  font-size: 19px;
  color: var(--hc-brand);
}
.hc-rail span {
  font-size: 10px;
}
.hc-rail button:hover {
  background: #f2f7f4;
}
.hc-mobile {
  display: none;
}
.hc-dialog {
  position: fixed;
  inset: 0;
  width: 450px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  padding: 24px;
  margin: auto;
  box-sizing: border-box;
  background: #fff;
  color: #23392f;
  box-shadow: 0 20px 80px #122c2733;
  z-index: 1000;
}
.hc-dialog::backdrop {
  background: #102d2655;
}
.hc-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hc-dialog header small {
  color: var(--hc-muted);
  font-size: 11px;
}
.hc-dialog h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 5px 0 0;
  font-weight: 650;
}
.hc-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--hc-muted);
  flex-shrink: 0;
}
.hc-tabs {
  display: flex;
  border-bottom: 1px solid var(--hc-line);
  gap: 22px;
  margin: 18px 0;
}
.hc-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--hc-muted);
  padding: 10px 0;
  background: transparent;
  font-size: 13px;
}
.hc-tabs button[aria-pressed="true"] {
  color: var(--hc-brand);
  border-bottom-color: var(--hc-brand);
}
.hc-form > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
}
.hc-fields {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}
.hc-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.hc-form input:not([type="checkbox"]),
.hc-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e1dc;
  border-radius: 5px;
  background: #fff;
  padding: 8px 10px;
  color: #273b31;
  font-size: 14px;
  line-height: 1.5;
}
.hc-form textarea {
  resize: vertical;
}
.hc-form input:focus,
.hc-form textarea:focus {
  outline: 2px solid var(--hc-brand);
  outline-offset: 1px;
}
.hc-form .hc-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-size: 11px;
  color: var(--hc-muted);
  line-height: 1.8;
  gap: 8px;
}
.hc-consent input {
  margin: 4px 0 0;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--hc-brand);
}
.hc-consent a {
  color: var(--hc-brand);
  text-decoration: underline;
}
.hc-context {
  font-size: 12px;
  color: var(--hc-muted);
  margin: 0 0 16px;
  line-height: 1.8;
}
.hc-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--hc-brand);
  color: #fff !important;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 18px;
  font-size: 13px;
  text-decoration: none;
  box-sizing: border-box;
}
.hc-submit {
  width: 100%;
  margin-top: 18px;
}
.hc-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.hc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  overflow: hidden !important;
}
.hc-dialog footer {
  border-top: 1px solid var(--hc-line);
  margin-top: 20px;
  padding-top: 12px;
}
.hc-dialog footer p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--hc-muted);
  margin: 3px 0;
}
.hc-phone,
.hc-wechat,
.hc-service {
  padding: 12px 0 20px;
  font-size: 13px;
  line-height: 1.9;
}
.hc-number {
  font-size: 28px;
  display: block;
  color: var(--hc-brand);
  margin: 8px 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.hc-copy {
  border: 0;
  background: transparent;
  color: var(--hc-brand);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.hc-wechat {
  text-align: center;
}
.hc-wechat img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.hc-wechat strong {
  font-size: 15px;
}
.hc-wechat p {
  font-size: 12px;
  color: var(--hc-muted);
}
.hc-result {
  background: #edf7f0;
  padding: 14px;
  line-height: 1.9;
  font-size: 13px;
  border-radius: 5px;
}
.hc-error {
  background: #fff2ed;
  color: #a03c24;
  padding: 12px;
  line-height: 1.8;
  font-size: 12px;
  border-radius: 5px;
}
.hc-host button:focus-visible,
.hc-host a:focus-visible {
  outline: 2px solid var(--hc-brand);
  outline-offset: 3px;
}
.hc-footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.hc-footer img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--hc-line);
  padding: 4px;
  background: #fff;
}
.hc-footer button {
  font: inherit;
  font-size: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--hc-brand);
  cursor: pointer;
}
.hc-footer p {
  font-size: 11px !important;
  line-height: 1.8;
  margin: 0 !important;
}
.hc-footer a {
  font-size: 15px;
  color: var(--hc-brand);
}
@media (min-width: 1600px) {
  .hc-rail {
    right: 20px;
    width: 48px;
  }
  .hc-rail button {
    width: 46px;
    min-height: 58px;
  }
}
@media (max-width: 800px) {
  .hc-rail {
    display: none;
  }
  .hc-mobile {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    border: 1px solid var(--hc-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 18px #153e2420;
    color: var(--hc-brand);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
  }
  .hc-mobile i {
    font-size: 20px;
  }
  .hc-mobile span {
    font-size: 10px;
  }
  .hc-product-page .hc-mobile {
    display: none;
  }
  .hc-dialog {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .hc-dialog h2 {
    font-size: 20px;
  }
}
@media(max-width:800px){body:has(.hc-product-page){padding-bottom:calc(74px + env(safe-area-inset-bottom,0px));}}
