/* Shared official support details. The supplied contact-card image stays unchanged.
   The square viewport shows the QR area; opening it displays the original image. */
.enterprise-qr {
  position: relative; display: block; flex: 0 0 auto;
  width: 240px; height: 240px; max-width: 100%; margin: 0 auto;
  overflow: hidden; border: 8px solid #fff; border-radius: 16px;
  box-sizing: border-box; background: #fff; isolation: isolate;
  box-shadow: 0 8px 28px rgba(20, 57, 48, .09);
}
.enterprise-qr > img {
  position: absolute !important; display: block; left: -39.39394%; top: -175.75758%;
  width: 178.78788% !important; height: auto !important; max-width: none !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
}
a.enterprise-qr { cursor: zoom-in; }
.enterprise-qr:focus-visible, .support-email:focus-visible {
  outline: 3px solid #168c77; outline-offset: 5px;
}
.enterprise-support { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.enterprise-support > span { max-width: 280px; color: #45635b; font-size: 14px; line-height: 1.7; text-align: center; }
.support-email { position: relative; z-index: 1; display: inline-block; margin-top: 18px; color: #166b59; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.support-card { gap: 32px; }
.support-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer .footer_top.support-footer { width: 1200px; height: auto; min-height: 260px; padding: 28px 0; margin: 0 auto; box-sizing: border-box; }
.support-contact-details h3 { margin: 0 0 14px; color: #153e34; font-size: 22px; }
.support-contact-details p { margin: 8px 0; color: #3d5953; line-height: 1.8; font-size: 14px; }
.support-contact-details a, .news_us a { color: #166b59; overflow-wrap: anywhere; }
.support-footer .enterprise-qr, .news_us .enterprise-qr { width: 192px; height: 192px; }
.support-footer .enterprise-support > span { font-size: 13px; }
.news_us .enterprise-support { margin-top: 20px; }
.support-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1100px, 100%); margin: 40px auto 0; }
.support-contact-method { padding: 36px; border: 1px solid #dbe9e4; border-radius: 20px; background: #fff; text-align: center; }
.support-contact-method h3 { margin: 0 0 16px; color: #183c32; font-size: 24px; }
.support-contact-method p { margin: 16px 0; color: #45635b; font-size: 16px; line-height: 1.8; }
.support-contact-method .support-email { margin: 18px 0; }
.qr-trigger .enterprise-qr { width: 200px; height: 200px; }
.qr-modal-image { width: min(260px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; padding: 0; border: 0; }
.qr-modal-image .enterprise-qr { width: 100%; height: auto; aspect-ratio: 1; }
.qr-modal-panel { max-height: 90dvh; overflow-y: auto; }
.support-panel .enterprise-support { margin: 32px auto 0; }
.support-panel .enterprise-support > span { color: #e3f8f1; }
.support-panel .support-email { color: #e3f8f1; }
@media (max-width: 760px) {
  .support-card { flex-direction: column; align-items: stretch; }
  .support-card .enterprise-support { margin-top: 28px; }
  .support-footer { flex-direction: column; align-items: flex-start; }
  .support-contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .support-contact-method { padding: 28px 20px; }
  .support-email { font-size: 15px; }
}

/* Contact-page-only layout; other legacy pages keep their existing layout. */
html.yiwa-contact-page, .yiwa-contact-page body { min-width: 0; }
.yiwa-contact-page .header { width: min(1200px, calc(100% - 40px)); height: auto; min-height: 80px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.yiwa-contact-page .header .head-left, .yiwa-contact-page .head-right { float: none; width: auto; }
.yiwa-contact-page .model_contact { height: auto; background: #f5f9f8; }
.yiwa-contact-page .buy_bg { display: none; }
.yiwa-contact-page .buy_shell { position: relative; }
.yiwa-contact-page .buy { margin: 0; padding: 52px 20px; }
.yiwa-contact-page .model_info { color: #526e65; }
.yiwa-contact-page .support-contact-grid { width: 100%; max-width: 1120px; }
.yiwa-contact-page .support-contact-method { padding: 28px 22px; }
/* Footer sizing and columns are shared with all secondary pages in css/site-pages.css. */
.support-consult-button { display: inline-block; min-height: 44px; padding: 12px 28px; margin: 28px 0; border: 1px solid #166b59; border-radius: 12px; color: #fff; background: #166b59; font-size: 16px; line-height: 1.5; font-weight: 600; box-sizing: border-box; }
.support-consult-button:hover { background: #105543; }
.support-consult-button:focus-visible, .support-dialog-close:focus-visible { outline: 3px solid #166b59; outline-offset: 4px; }
.enterprise-support-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; border: 1px solid #cbe8e1; border-radius: 20px; background: #fff; color: #173d34; box-sizing: border-box; font-family: system-ui, 'Microsoft YaHei', sans-serif; text-align: center; }
.enterprise-support-dialog::backdrop { background: rgba(10, 28, 24, .58); }
.enterprise-support-dialog h2 { margin: 12px 0 16px; font-size: 24px; }
.enterprise-support-dialog p { margin: 14px 0; font-size: 15px; line-height: 1.7; color: #45635b; }
.enterprise-support-dialog .enterprise-qr { width: 260px; height: 260px; }
.enterprise-support-dialog .support-email { margin-top: 0; }
.support-dialog-close { display: block; min-height: 44px; margin-left: auto; padding: 10px 16px; border: 1px solid #cbe8e1; border-radius: 10px; background: #f2f8f5; color: #173d34; font-size: 15px; cursor: pointer; }
@media (max-width: 900px) {
  .yiwa-contact-page .header .head-left { width: 100%; }
  .yiwa-contact-page .head-right { height: auto; width: 100%; }
  .yiwa-contact-page .head-right ul { display: flex; flex-wrap: wrap; height: auto; float: none; }
  .yiwa-contact-page .head-right ul li { margin: 0; }
  .yiwa-contact-page .head-right ul li a { padding: 12px 10px; }
  .yiwa-contact-page .head-right .hidden_menu_model { display: none; }
  .yiwa-contact-page .support-contact-grid { grid-template-columns: 1fr; max-width: 520px; }
  .yiwa-contact-page .buy { padding: 32px 20px; }
}

.footer_low_content > .site-statistics-link { display: inline-flex; align-items: center; min-height: 44px; color: #d1e6dc; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }

.site-statistics-footer { margin: 24px auto 0; width: min(900px, calc(100% - 32px)); padding: 12px 0; border-top: 1px solid #dce9e3; }
.site-statistics-footer .site-statistics-link { display: inline-flex; align-items: center; min-height: 44px; color: #176b51; font-size: 14px; text-decoration: underline; }
