/* 全站交互与视觉细节统一 */
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid rgba(16, 169, 154, .30);
  outline-offset: 3px;
}

:where(button, .btn, summary) {
  -webkit-tap-highlight-color: transparent;
}

.btn {
  min-height: 44px;
}

.brand-logo,
.ft-logo {
  display: block;
}

/* 文字层覆盖整个 Hero 时不应挡住右下角轮播按钮 */
.hero-inner {
  pointer-events: none;
}

.hero-text {
  pointer-events: auto;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal, #10A99A);
  transition: right .22s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.ft-contact {
  width: 132px;
  min-height: 82px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.ft-contact span {
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  font-weight: 400;
}

.ft-contact:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .14);
}

@media (max-width: 1100px) {
  .nav-phone {
    display: none;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-right {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 66px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 19px;
    letter-spacing: 1px;
  }

  .nav-right .btn-sm {
    min-height: 40px;
    padding: 8px 15px;
    font-size: 13px;
  }

  .ft-contact {
    width: 100%;
    max-width: 220px;
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
