/* 顶部导航对称布局：左 Logo | 中导航 | 右操作 */

.top-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.65rem;
  column-gap: 0.75rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-header-logo.topnav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  order: 1;
  margin: 0;
  min-width: 0;
  max-width: min(46vw, 280px);
}

.site-header-logo.topnav-logo,
.header-navbar .topnav-logo {
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.22s ease, filter 0.22s ease;
  will-change: transform;
}

.site-header-logo.topnav-logo:hover,
.header-navbar .topnav-logo:hover {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.site-header-logo.topnav-logo:active,
.header-navbar .topnav-logo:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .site-header-logo.topnav-logo,
  .header-navbar .topnav-logo {
    transition: none;
  }
}

.site-header-logo .img-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3.1vw, 40px);
}

.site-header-logo .nav-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  color: #0f2744;
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header-middle {
  flex: 1 1 100%;
  min-width: 0;
  order: 3;
  width: 100%;
}

.site-header-middle .navbar-collapse {
  justify-content: center;
}

.site-header-middle .centered-nav {
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: center;
  gap: 0.15rem;
}

/* 中间导航：避免翻译后英文过长导致换行成“竖排”；大屏下单行 + 横向滚动 */
.site-header-middle .site-header-nav-scroll {
  max-width: 100%;
  min-width: 0;
}

.site-header-middle .centered-nav .nav-item {
  flex-shrink: 0;
}

.site-header-middle .centered-nav .head-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  white-space: nowrap;
  font-size: clamp(11px, 1.25vw, 14px);
  font-weight: 600;
  min-height: 34px;
  padding: 0.36rem 0.62rem;
  line-height: 1.2;
  max-width: none;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #1d3552;
  transition: all 0.18s ease;
}

.site-header-middle .centered-nav .head-menu:hover,
.site-header-middle .centered-nav .head-menu:focus {
  color: #146ebe;
  background: #eef5fd;
  border-color: #cfe0f2;
}

.head-tools-dropdown .head-tools-toggle .uil {
  font-size: 14px;
}

.top-header,
.site-header-bar,
.site-header-middle,
.site-header-middle .site-header-nav-scroll,
.site-header-middle .navbar-collapse,
.site-header-middle .centered-nav,
.head-tools-dropdown {
  overflow: visible !important;
}

.head-tools-dropdown {
  position: relative;
  z-index: 2200;
}

.head-tools-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) !important;
  min-width: 220px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e1e8f2;
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 63, 112, 0.1);
  z-index: 2300;
}

@media (min-width: 992px) {
  /* 仅桌面端微调工具下拉位置 */
  .head-tools-menu {
    top: calc(100% + 17px);
    left: calc(50% + 110px);
  }
  .head-tools-dropdown .head-tools-menu.show {
    left: calc(50% + 110px) !important;
    top: calc(100% + 17px) !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

.head-tools-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2e455f;
  padding: 7px 10px;
  line-height: 1.2;
}

.head-tools-menu .dropdown-item .uil {
  width: 15px;
  text-align: center;
  color: #2a73b9;
  font-size: 14px;
  opacity: 0.95;
}

.head-tools-menu .dropdown-item:hover {
  background: #f3f8ff;
  color: #1d5a96;
}

.head-tools-menu .dropdown-item + .dropdown-item {
  margin-top: 2px;
}

.site-header-actions .btn-member-center,
.site-header-actions .btn-seller-apply {
  font-size: clamp(11px, 1.15vw, 14px);
  padding: 0.38rem 0.65rem;
  white-space: nowrap;
}

.btn-seller-apply {
  background: #ff8a00;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}

.btn-seller-apply:hover,
.btn-seller-apply:focus {
  background: #e67a00;
  color: #fff !important;
}

/* 会员中心：默认即为实心主色（与主题蓝一致），非仅 hover/active */
.site-header-actions .btn-member-center,
.header-right .btn-member-center {
  background-color: var(--primary, #146ebe);
  color: #fff !important;
  border: 1px solid var(--primary, #146ebe);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1rem;
  box-shadow: none;
}

.site-header-actions .btn-member-center:hover,
.site-header-actions .btn-member-center:focus,
.site-header-actions .btn-member-center:active,
.site-header-actions .btn-member-center[aria-expanded="true"],
.header-right .btn-member-center:hover,
.header-right .btn-member-center:focus,
.header-right .btn-member-center:active,
.header-right .btn-member-center[aria-expanded="true"] {
  background-color: #105a9e;
  border-color: #105a9e;
  color: #fff !important;
  box-shadow: none;
}

.site-header-actions .btn-member-center .uil,
.header-right .btn-member-center .uil {
  color: #fff;
}

.site-header-actions .btn-member-center.dropdown-toggle::after,
.header-right .btn-member-center.dropdown-toggle::after {
  border-top-color: #fff;
}

.site-header-actions .header-lang-wrap,
.header-right .header-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
}

.site-header-actions .header-lang-icon,
.header-right .header-lang-icon {
  color: #5f6b7a;
  font-size: 15px;
}

.site-header-actions .header-lang-select,
.header-right .header-lang-select {
  border: none;
  outline: none;
  background: transparent;
  color: #445266;
  font-size: 13px;
  line-height: 1;
  min-width: 94px;
  padding: 0;
}

.site-header-actions .header-lang-select:focus,
.header-right .header-lang-select:focus {
  outline: none;
  box-shadow: none;
}

@media (min-width: 992px) {
  .site-header-bar {
    flex-wrap: nowrap;
    column-gap: 1.25rem;
  }

  .site-header-actions {
    order: 3;
    margin-left: 0;
  }

  .site-header-middle {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
  }

  .site-header-middle .navbar-collapse {
    display: flex !important;
    justify-content: center;
  }

  .site-header-middle .site-header-nav-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
  }

  .site-header-middle .centered-nav {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    width: max-content;
    max-width: none;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 991.98px) {
  .site-header-bar {
    align-items: center;
    row-gap: 0.4rem;
  }

  .site-header-logo.topnav-logo {
    max-width: none;
  }

  .site-header-actions {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    padding-left: 0.4rem;
    gap: 0.65rem;
    /* 手机端：工具格按钮与会员中心并排靠右，格钮在左、会员在右 */
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .site-header-actions .header-lang-wrap {
    display: none;
  }

  .site-header-actions .btn-member-center {
    order: 3;
    margin-left: 0;
  }

  .site-header-actions .btn-seller-apply {
    display: none;
  }

  .site-header-actions .navbar-toggler {
    order: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d4dfec;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #4d647f;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    box-shadow: 0 3px 12px rgba(20, 110, 190, 0.1);
    transition: all 0.2s ease;
  }

  .site-header-actions .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  .site-header-actions .navbar-toggler:hover,
  .site-header-actions .navbar-toggler[aria-expanded="true"] {
    color: #146ebe;
    border-color: #bdd2eb;
    box-shadow: 0 6px 16px rgba(20, 110, 190, 0.14);
  }

  .site-header-actions .navbar-toggler.site-tools-toggle .uil {
    font-size: 23px;
    transition: transform 0.2s ease;
  }

  .site-header-actions .navbar-toggler.site-tools-toggle[aria-expanded="true"] .uil {
    transform: rotate(90deg);
  }

  .site-header-middle {
    width: 100%;
    margin-top: 0.05rem;
  }

  #navbarColor.navbar-collapse {
    display: none !important;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
  }

  #navbarColor.navbar-collapse.show {
    display: block !important;
    max-height: 75vh;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding: 0.55rem;
    border: 1px solid rgba(20, 110, 190, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 74, 122, 0.12);
  }

  .site-header-middle .centered-nav {
    flex-wrap: wrap !important;
    justify-content: stretch;
    row-gap: 0.35rem;
    column-gap: 0;
    width: 100%;
    padding-bottom: 0;
  }

  .site-header-middle .centered-nav .nav-item {
    width: 100%;
  }

  .site-header-middle .centered-nav .head-menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    gap: 0.45rem;
    font-size: 13px;
    font-weight: 600;
    color: #294763;
    padding: 0.56rem 0.68rem;
    border-radius: 11px;
    background: linear-gradient(180deg, #f7faff 0%, #f3f8fd 100%);
    border: 1px solid #e2eaf4;
    transition: all 0.18s ease;
  }

  .site-header-middle .centered-nav .head-menu:hover,
  .site-header-middle .centered-nav .head-menu:focus {
    color: #146ebe;
    background: #eef5fd;
    border-color: #cfe0f2;
  }

  .head-tools-dropdown .head-tools-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
  }
}

@media (max-width: 575.98px) {
  .site-header-logo .nav-title {
    max-width: 84px;
    font-size: 18px;
  }

  .site-header-actions .btn-member-center {
    padding: 0.3rem 0.5rem;
    font-size: 12px;
  }

  #navbarColor.navbar-collapse.show {
    max-height: 68vh;
    padding: 0.48rem;
  }

  .site-header-middle .centered-nav .head-menu {
    font-size: 12px;
    padding: 0.5rem 0.6rem;
  }
}

footer.hyper-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  clear: both;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 16px 0 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.hyper-footer-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.hyper-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 22px;
}

.hyper-footer-col {
  min-width: 0;
}

.hyper-footer-logo-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.hyper-footer-logo {
  width: auto;
  height: 34px;
  display: block;
}

.hyper-footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #12365f;
}

.hyper-footer-domain {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #9fc1e8;
  background: linear-gradient(180deg, #f1f8ff 0%, #e3f0ff 100%);
  color: #0f4f8f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(25, 96, 166, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hyper-footer-domain:hover,
.hyper-footer-domain:focus {
  color: #0b4278;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(25, 96, 166, 0.2);
  filter: brightness(1.03);
}

.hyper-footer-brand-desc {
  margin: 0;
  color: #5e7390;
  font-size: 13px;
  line-height: 1.75;
}

.hyper-footer-heading {
  margin: 2px 0 10px;
  color: #1b436f;
  font-size: 14px;
  font-weight: 700;
}

.hyper-footer-links {
  display: grid;
  gap: 7px;
}

.hyper-footer-link {
  color: #365879;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: color 0.18s ease, transform 0.18s ease;
}

.hyper-footer-link:hover,
.hyper-footer-link:focus {
  color: #1f66b0;
  transform: translateX(2px);
  text-decoration: none;
}

.hyper-footer-divider {
  margin-top: 14px;
  margin-bottom: 10px;
  border-top: 1px solid #e8eef7;
}

.hyper-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 8px;
  color: #6a7f99;
  font-size: 12px;
  font-weight: 600;
}

.hyper-footer-copy {
  color: #6a7f99;
}

.hyper-footer-dot {
  opacity: 0.45;
}

.hyper-footer-extra {
  margin-top: 6px;
  color: #90a3b8;
  font-size: 11px;
  line-height: 1.7;
}

.hyper-footer-extra a {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #7fb0e7;
  background: linear-gradient(180deg, #edf6ff 0%, #e3f0ff 100%);
  color: #1f66b0;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(47, 116, 198, 0.16);
  transition: all 0.18s ease;
}

.hyper-footer-extra a:hover,
.hyper-footer-extra a:focus {
  color: #15579c;
  border-color: #5f9fdf;
  background: linear-gradient(180deg, #e5f1ff 0%, #d9eaff 100%);
  text-decoration: none;
}

/* 兼容 footer 自定义内容把链接放在品牌行附近的情况 */
.hyper-footer-logo-line a {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #7fb0e7;
  background: linear-gradient(180deg, #edf6ff 0%, #e3f0ff 100%);
  color: #1f66b0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(47, 116, 198, 0.16);
}

.hyper-footer-logo-line a:hover,
.hyper-footer-logo-line a:focus {
  color: #15579c;
  border-color: #5f9fdf;
  background: linear-gradient(180deg, #e5f1ff 0%, #d9eaff 100%);
  text-decoration: none;
}

/* 兼容后台页脚 HTML 里可能存在 .footer 样式 */
footer.hyper-footer .footer,
.hyper-footer .footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: inherit !important;
}

@media (max-width: 991.98px) {
  .hyper-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hyper-footer-col.brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  footer.hyper-footer {
    margin-top: 14px;
    padding: 12px 0 10px;
    padding-bottom: 92px; /* 避免左下角悬浮按钮遮挡页尾内容 */
  }
  .hyper-footer-panel {
    padding: 0;
  }
  .hyper-footer-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hyper-footer-col {
    min-width: 0;
  }
  .hyper-footer-col:not(.brand) {
    border: 1px solid #e4edf8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 12px 12px 10px;
    box-shadow: 0 8px 20px rgba(15, 34, 58, 0.06);
  }
  .hyper-footer-col.brand {
    padding: 0;
  }
  .hyper-footer-logo-line {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .hyper-footer-domain {
    margin-left: 0;
  }
  .hyper-footer-brand-title {
    font-size: 16px;
  }
  .hyper-footer-domain {
    height: 24px;
    padding: 0 10px;
    font-size: 12px;
  }
  .hyper-footer-brand-desc {
    font-size: 12px;
    line-height: 1.7;
  }
  .hyper-footer-divider {
    margin-top: 10px;
    margin-bottom: 8px;
  }
  .hyper-footer-bottom {
    font-size: 11px;
    gap: 6px;
  }
  .hyper-footer-extra {
    font-size: 10px;
    line-height: 1.6;
  }

  .hyper-footer-heading {
    margin: 0 0 10px;
    font-size: 13px;
  }

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

  .hyper-footer-link {
    width: 100%;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid #e2eaf4;
    background: linear-gradient(180deg, #f7faff 0%, #f3f8fd 100%);
    color: #294763;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  .hyper-footer-link:hover,
  .hyper-footer-link:focus {
    transform: none;
    color: #146ebe;
    background: #eef5fd;
    border-color: #cfe0f2;
  }
}

@media (max-width: 420px) {
  footer.hyper-footer {
    padding-bottom: 104px;
  }
  .hyper-footer-links {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* 左下角悬浮：在线客服(Tawk) + TG 客服 + 安装应用（统一白底圆角框 + 圆形主按钮） */
/* -------------------------------------------------------------------------- */
.site-float-widgets {
  position: fixed;
  z-index: 1060;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}

.site-float-widgets .site-float-card {
  pointer-events: auto;
}

.site-float-widgets .site-float-mobile-panel .site-float-card:nth-child(1) {
  animation-delay: 0s;
}

.site-float-widgets .site-float-mobile-panel .site-float-card:nth-child(2) {
  animation-delay: 0.55s;
}

.site-float-widgets .site-float-mobile-panel .site-float-card:nth-child(3) {
  animation-delay: 1.1s;
}

.site-float-widgets .site-float-card:hover,
.site-float-widgets .site-float-card:focus-within {
  animation-play-state: paused;
}

.site-float-mobile-hub {
  display: none;
}

.site-float-mobile-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-float-widgets .site-float-mobile-hub {
  pointer-events: auto;
}

.site-float-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@keyframes site-float-card-bob {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  45% {
    transform: translateY(-7px);
    filter: brightness(1.04);
  }
  70% {
    transform: translateY(-3px);
    filter: brightness(1.02);
  }
}

@keyframes site-float-hub-breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.06) translateY(-5px);
  }
}

.site-float-frame {
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid rgba(20, 110, 190, 0.16);
  box-shadow:
    0 14px 36px rgba(15, 45, 90, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.site-float-card--tg .site-float-frame {
  background: linear-gradient(165deg, #e5f5fc 0%, #ffffff 48%, #f0f9ff 100%);
  border-color: rgba(46, 163, 212, 0.45);
  box-shadow:
    0 14px 36px rgba(30, 150, 200, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-float-card--tawk {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 4px;
}

.site-float-card--tawk:focus {
  outline: none;
}

.site-float-card--tawk:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.55);
  outline-offset: 3px;
}

.site-float-card--tawk.site-float-tawk--waiting {
  cursor: wait;
  opacity: 0.92;
}

.site-float-card--tawk .site-float-frame {
  background: linear-gradient(165deg, #e8faf0 0%, #ffffff 48%, #f0fdf6 100%);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow:
    0 14px 36px rgba(22, 163, 74, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-float-card--pwa .site-float-frame {
  background: linear-gradient(165deg, #e8f2fc 0%, #ffffff 48%, #f4f9ff 100%);
  border-color: rgba(20, 110, 190, 0.38);
  box-shadow:
    0 14px 36px rgba(20, 110, 190, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-float-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f2744;
  background: rgba(255, 255, 255, 0.97);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 110, 190, 0.14);
  box-shadow: 0 6px 16px rgba(15, 45, 90, 0.1);
  line-height: 1.25;
  text-align: center;
  max-width: 120px;
}

.site-float-card--tg .site-float-caption {
  color: #0a5a7a;
  border-color: rgba(46, 163, 212, 0.28);
}

.site-float-card--tawk .site-float-caption {
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.28);
}

.site-float-card--pwa .site-float-caption {
  color: #0f2744;
  border-color: rgba(20, 110, 190, 0.22);
}

.site-float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 6px 16px rgba(15, 45, 90, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.site-float-card:hover .site-float-frame {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(15, 45, 90, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-float-card--tg:hover .site-float-frame {
  box-shadow:
    0 18px 42px rgba(30, 150, 200, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-float-btn:hover {
  transform: scale(1.04);
}

.site-float-btn:active {
  transform: scale(0.98);
}

.site-float-btn:focus {
  outline: none;
}

.site-float-btn:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(20, 110, 190, 0.45),
    0 6px 16px rgba(15, 45, 90, 0.12);
}

.site-float-btn--tg {
  background: transparent;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: none;
}

.site-float-card--tg .site-float-btn--tg:hover {
  transform: scale(1.06);
}

.site-float-btn--tawk {
  background: linear-gradient(165deg, #4ade80 0%, #22c55e 42%, #15803d 100%);
  color: #fff !important;
  font-size: 26px;
  line-height: 1;
  box-shadow:
    0 6px 16px rgba(22, 163, 74, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-float-btn--tawk .uil {
  color: #fff;
}

.site-float-card--tawk:hover .site-float-btn--tawk {
  filter: brightness(1.04);
}

.site-float-card--tawk .site-float-btn--tawk:hover {
  transform: scale(1.06);
}

.site-float-tg-svg {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(30, 150, 200, 0.35));
}

/* 圆角方形：系统级「安装/下载」风格图标（矢量），非站点 Logo 大图 */
.site-float-btn--pwa {
  border-radius: 22%;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow:
    0 10px 26px rgba(20, 110, 190, 0.32),
    0 4px 12px rgba(11, 74, 122, 0.2);
}

.site-float-pwa-native {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.site-float-pwa-native-svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22%;
}

.site-float-btn--pwa:focus-visible {
  border-radius: 22%;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(20, 110, 190, 0.45),
    0 6px 18px rgba(12, 35, 60, 0.18);
}

.site-float-pwa-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f4fa;
}

.site-float-widgets--pwa-hidden {
  gap: 0;
}

@media (max-width: 991.98px) {
  .site-float-widgets {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0;
  }

  .site-float-mobile-hub {
    display: block;
    appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .site-float-mobile-hub:focus {
    outline: none;
  }

  .site-float-mobile-hub:focus-visible .site-float-mobile-hub-frame {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 5px rgba(20, 110, 190, 0.45),
      0 14px 36px rgba(15, 45, 90, 0.14),
      0 4px 12px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .site-float-mobile-hub-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform-origin: center bottom;
    animation: site-float-hub-breathe 2.35s ease-in-out infinite;
  }

  .site-float-widgets--open .site-float-mobile-hub .site-float-mobile-hub-stack {
    animation: none;
  }

  .site-float-mobile-hub:hover .site-float-mobile-hub-stack,
  .site-float-mobile-hub:focus-visible .site-float-mobile-hub-stack {
    animation-play-state: paused;
  }

  .site-float-btn--hub {
    background: linear-gradient(165deg, #7dd3fc 0%, #3b9ae8 40%, #1e6cb8 72%, #0f4f8f 100%);
    color: #fff !important;
    font-size: 26px;
    line-height: 1;
    box-shadow:
      0 6px 18px rgba(30, 140, 220, 0.45),
      0 2px 8px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }

  .site-float-btn--hub .uil {
    color: #fff;
  }

  .site-float-btn--hub .site-float-mobile-hub-svg {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
  }

  .site-float-mobile-hub-ico--close {
    display: none !important;
  }

  .site-float-widgets--open .site-float-mobile-hub-ico--open {
    display: none !important;
  }

  .site-float-widgets--open .site-float-mobile-hub-ico--close {
    display: inline-block !important;
  }

  .site-float-mobile-panel {
    gap: 14px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 0;
    transition:
      max-height 0.38s ease,
      opacity 0.24s ease,
      margin-bottom 0.24s ease;
  }

  .site-float-widgets--open .site-float-mobile-panel {
    max-height: min(480px, 72vh);
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 12px;
  }

  .site-float-widgets--open .site-float-mobile-panel .site-float-card {
    animation: site-float-card-bob 2.85s ease-in-out infinite;
  }
}

@media (min-width: 992px) {
  .site-float-mobile-hub {
    display: none !important;
  }

  .site-float-widgets .site-float-mobile-panel .site-float-card {
    animation: site-float-card-bob 2.85s ease-in-out infinite;
  }

  .site-float-mobile-panel {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: none;
    margin-bottom: 0 !important;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-float-btn,
  .site-float-frame {
    transition: none;
  }
  .site-float-btn:hover,
  .site-float-card:hover .site-float-frame {
    transform: none;
  }
  .site-float-mobile-panel {
    transition: none !important;
  }

  .site-float-widgets .site-float-mobile-panel .site-float-card {
    animation: none !important;
    filter: none !important;
  }

  .site-float-mobile-hub .site-float-mobile-hub-stack {
    animation: none !important;
  }
}

@media (max-width: 575.98px) {
  .site-float-widgets {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    gap: 0;
  }

  .site-float-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .site-float-caption {
    font-size: 10px;
    padding: 4px 10px;
    letter-spacing: 0.05em;
  }

  .site-float-btn {
    width: 52px;
    height: 52px;
  }

  .site-float-tg-svg {
    width: 52px;
    height: 52px;
  }
}

/* -------------------------------------------------------------------------- */
/* PWA：自定义安装引导弹窗（先于浏览器原生「安装应用」出现，可完全美化）       */
/* -------------------------------------------------------------------------- */
.site-pwa-install-modal.modal {
  z-index: 12000 !important;
}

.site-pwa-install-dialog {
  max-width: 400px;
  margin: 1rem auto;
}

.site-pwa-install-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 22px;
  box-shadow:
    0 28px 64px rgba(12, 40, 80, 0.22),
    0 10px 22px rgba(15, 55, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  background: linear-gradient(165deg, #fbfdff 0%, #f3f7fc 45%, #eef3f9 100%);
}

.site-pwa-install-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(56, 142, 230, 0.18) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.site-pwa-install-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #5a6b82;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 45, 90, 0.08);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-pwa-install-dismiss:hover {
  background: #fff;
  color: #1a3a5c;
  transform: scale(1.05);
}

.site-pwa-install-modal .modal-body.site-pwa-install-body {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.site-pwa-install-icon-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff 0%, #e8f2fc 100%);
  border: 1px solid rgba(20, 110, 190, 0.14);
  box-shadow:
    0 12px 28px rgba(20, 90, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-pwa-install-icon-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  background: #f0f4fa;
}

.site-pwa-native-install-svg {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow:
    0 12px 32px rgba(20, 110, 190, 0.35),
    0 4px 12px rgba(11, 74, 122, 0.18);
}

.site-pwa-install-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f2744;
}

.site-pwa-install-name {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e4970;
  line-height: 1.45;
}

.site-pwa-install-origin {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7c93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 110, 190, 0.12);
}

.site-pwa-install-origin .uil {
  font-size: 1rem;
  opacity: 0.85;
}

.site-pwa-install-lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4a5d73;
  text-align: left;
}

.site-pwa-install-bullets {
  margin: 0;
  padding-left: 1.15rem;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #6a7d91;
}

.site-pwa-install-bullets li + li {
  margin-top: 0.35rem;
}

.site-pwa-install-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: stretch;
  padding: 0 1.25rem 1.35rem;
}

.site-pwa-install-btn {
  flex: 1 1 50%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-pwa-install-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #3d5570;
  border: 1px solid rgba(20, 110, 190, 0.18);
  box-shadow: 0 2px 8px rgba(15, 45, 90, 0.06);
}

.site-pwa-install-btn--ghost:hover {
  background: #fff;
  border-color: rgba(20, 110, 190, 0.28);
}

.site-pwa-install-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #2f8fe0 0%, #146ebe 42%, #105a9e 100%);
  box-shadow:
    0 4px 14px rgba(20, 110, 190, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-pwa-install-btn--primary:hover {
  filter: brightness(1.05);
  box-shadow:
    0 6px 20px rgba(20, 110, 190, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-pwa-install-btn:active {
  transform: scale(0.98);
}

.site-pwa-install-btn:focus {
  outline: none;
}

.site-pwa-install-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 110, 190, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .site-pwa-install-dismiss,
  .site-pwa-install-btn {
    transition: none;
  }
  .site-pwa-install-btn:active {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .site-pwa-install-dialog {
    margin: 0.75rem;
    max-width: none;
  }

  .site-pwa-install-modal .modal-body.site-pwa-install-body {
    padding: 1.65rem 1.15rem 0.85rem;
  }

  .site-pwa-install-heading {
    font-size: 1.2rem;
  }

  .site-pwa-install-footer {
    flex-direction: column;
    padding: 0 1.1rem 1.15rem;
  }

  .site-pwa-install-btn {
    flex: 1 1 auto;
  }
}

/* -------------------------------------------------------------------------- */
/* PWA：手动添加说明弹窗（与 site-pwa-install 视觉统一）                         */
/* -------------------------------------------------------------------------- */
.site-pwa-hint-modal.modal {
  z-index: 12000 !important;
}

.site-pwa-hint-dialog {
  max-width: 440px;
  margin: 1rem auto;
}

.site-pwa-hint-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 22px;
  box-shadow:
    0 28px 64px rgba(12, 40, 80, 0.2),
    0 10px 22px rgba(15, 55, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  background: linear-gradient(168deg, #fbfdff 0%, #f2f6fb 48%, #ebeef5 100%);
}

.site-pwa-hint-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(20, 110, 190, 0.12) 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.site-pwa-hint-modal .modal-body.site-pwa-hint-body {
  position: relative;
  z-index: 1;
  padding: 1.85rem 1.35rem 0.5rem;
  text-align: center;
}

.site-pwa-hint-icon-ring {
  margin-bottom: 0.85rem;
}

.site-pwa-hint-title {
  margin: 0 0 0.65rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f2744;
  line-height: 1.35;
}

.site-pwa-hint-lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4a5d73;
  text-align: left;
}

.site-pwa-hint-lead strong {
  color: #1a5080;
  font-weight: 700;
}

.site-pwa-hint-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.site-pwa-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 110, 190, 0.1);
  box-shadow: 0 4px 14px rgba(15, 45, 90, 0.06);
}

.site-pwa-hint-badge {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-pwa-hint-badge svg {
  display: block;
}

.site-pwa-hint-badge--android {
  background: linear-gradient(145deg, #34c759 0%, #0f9d58 100%);
  color: #fff;
}

.site-pwa-hint-badge--ios {
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  color: #fff;
}

.site-pwa-hint-badge--pc {
  background: linear-gradient(145deg, #3d8fd4 0%, #146ebe 100%);
  color: #fff;
}

.site-pwa-hint-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}

.site-pwa-hint-row-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a3a5c;
  letter-spacing: 0.02em;
}

.site-pwa-hint-row-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #5a6d82;
}

.site-pwa-hint-kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3d5570;
  background: rgba(20, 110, 190, 0.08);
  border: 1px solid rgba(20, 110, 190, 0.15);
  vertical-align: baseline;
}

.site-pwa-hint-footer {
  position: relative;
  z-index: 1;
  padding: 0.35rem 1.25rem 1.35rem;
}

.site-pwa-hint-done.site-pwa-install-btn {
  width: 100%;
  flex: none;
}

@media (max-width: 575.98px) {
  .site-pwa-hint-dialog {
    margin: 0.65rem;
    max-width: none;
  }

  .site-pwa-hint-modal .modal-body.site-pwa-hint-body {
    padding: 1.55rem 1.1rem 0.45rem;
  }

  .site-pwa-hint-title {
    font-size: 1.12rem;
  }

  .site-pwa-hint-row {
    padding: 10px 12px;
    gap: 10px;
  }

  .site-pwa-hint-badge {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .site-pwa-hint-badge svg {
    transform: scale(0.92);
    transform-origin: center;
  }

  .site-pwa-hint-footer {
    padding: 0.25rem 1.05rem 1.15rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Tawk：点击后立即提示「正在连接」（与超时弹窗同系）                          */
/* -------------------------------------------------------------------------- */
.site-tawk-loading-modal.modal {
  z-index: 12000 !important;
}

.site-tawk-loading-dialog {
  max-width: 380px;
  margin: 1rem auto;
}

.site-tawk-loading-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 22px;
  box-shadow:
    0 28px 64px rgba(12, 40, 80, 0.2),
    0 10px 22px rgba(15, 55, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  background: linear-gradient(168deg, #f6fdf9 0%, #f0faf4 45%, #eaf6f0 100%);
}

.site-tawk-loading-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 65% at 10% 0%, rgba(34, 197, 94, 0.16) 0%, transparent 52%),
    radial-gradient(70% 55% at 100% 15%, rgba(20, 110, 190, 0.08) 0%, transparent 48%);
  pointer-events: none;
}

.site-tawk-loading-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.35rem 1.35rem;
  text-align: center;
}

.site-tawk-loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 3px solid rgba(34, 197, 94, 0.22);
  border-top-color: #22c55e;
  animation: siteTawkLoadingSpin 0.72s linear infinite;
}

.site-tawk-loading-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #14532d;
  line-height: 1.35;
}

.site-tawk-loading-text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #3d5a4a;
  text-align: left;
}

.site-tawk-loading-text strong {
  color: #166534;
  font-weight: 700;
}

.site-tawk-loading-hint {
  font-size: 0.78rem !important;
  line-height: 1.5;
  text-align: left;
}

@keyframes siteTawkLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-tawk-loading-spinner {
    animation: none;
    border-top-color: rgba(34, 197, 94, 0.45);
  }
}

@media (max-width: 575.98px) {
  .site-tawk-loading-dialog {
    margin: 0.65rem;
    max-width: none;
  }

  .site-tawk-loading-body {
    padding: 1.5rem 1.1rem 1.15rem;
  }

  .site-tawk-loading-title {
    font-size: 1.05rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Tawk：加载超时提示（替代浏览器 alert，与站点弹窗风格统一）                  */
/* -------------------------------------------------------------------------- */
.site-tawk-timeout-modal.modal {
  z-index: 12000 !important;
}

.site-tawk-timeout-dialog {
  max-width: 380px;
  margin: 1rem auto;
}

.site-tawk-timeout-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 22px;
  box-shadow:
    0 28px 64px rgba(12, 40, 80, 0.2),
    0 10px 22px rgba(15, 55, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  background: linear-gradient(168deg, #f6fdf9 0%, #f0faf4 45%, #eaf6f0 100%);
}

.site-tawk-timeout-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 65% at 10% 0%, rgba(34, 197, 94, 0.18) 0%, transparent 52%),
    radial-gradient(70% 55% at 100% 20%, rgba(20, 110, 190, 0.1) 0%, transparent 48%);
  pointer-events: none;
}

.site-tawk-timeout-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.35rem 0.5rem;
  text-align: center;
}

.site-tawk-timeout-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(155deg, #4ade80 0%, #22c55e 40%, #15803d 100%);
  box-shadow:
    0 10px 24px rgba(22, 163, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-tawk-timeout-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #14532d;
  line-height: 1.35;
}

.site-tawk-timeout-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #3d5a4a;
  text-align: left;
}

.site-tawk-timeout-text strong {
  color: #166534;
  font-weight: 700;
}

.site-tawk-timeout-footer {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1.25rem 1.35rem;
}

.site-tawk-timeout-ok.site-pwa-install-btn {
  width: 100%;
  flex: none;
  background: linear-gradient(180deg, #34c759 0%, #22a34a 45%, #15803d 100%);
  box-shadow:
    0 4px 14px rgba(22, 163, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-tawk-timeout-ok.site-pwa-install-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 575.98px) {
  .site-tawk-timeout-dialog {
    margin: 0.65rem;
    max-width: none;
  }

  .site-tawk-timeout-body {
    padding: 1.5rem 1.1rem 0.45rem;
  }

  .site-tawk-timeout-title {
    font-size: 1.08rem;
  }
}

/* Tawk：在 embed 完成 onLoad / hideWidget 之前压住默认右下角挂件，减轻闪现 */
html.site-tawk-embed-hide iframe[src*="tawk.to"],
html.site-tawk-embed-hide iframe[src*="embed.tawk.to"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  border: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html.site-tawk-embed-hide #tawkchat-container,
html.site-tawk-embed-hide [id^="tawkchat"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* -------------------------------------------------------------------------- */
/* 返回顶部（与主题蓝、悬浮组件层次协调）                                     */
/* -------------------------------------------------------------------------- */
.back-to-top {
  display: none;
  position: fixed;
  z-index: 11990 !important;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
}

.back-to-top-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(155deg, #5eb0f5 0%, #2f8fe0 38%, #146ebe 72%, #0d4d82 100%);
  box-shadow:
    0 6px 20px rgba(20, 110, 190, 0.42),
    0 2px 8px rgba(12, 40, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.back-to-top-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.back-to-top-btn .uil-arrow-up {
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 10px 28px rgba(20, 110, 190, 0.48),
    0 4px 12px rgba(12, 40, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.back-to-top-btn:active {
  transform: translateY(-1px) scale(0.97);
  filter: brightness(0.98);
}

.back-to-top-btn:focus {
  outline: none;
}

.back-to-top-btn:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(20, 110, 190, 0.45),
    0 6px 20px rgba(20, 110, 190, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-btn {
    transition: none;
  }

  .back-to-top-btn:hover,
  .back-to-top-btn:active {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .back-to-top {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .back-to-top-btn {
    width: 46px;
    height: 46px;
  }

  .back-to-top-btn .uil-arrow-up {
    font-size: 21px;
  }
}
