/* ===== Hero contact pager — 基礎樣式 ===== */
.hero-contact-pager {
  display: none;
}

/* ===== Hero contact pager — 布局樣式 ===== */
@media screen and (max-width: 767px) {
  .hero-header {
    overflow: visible !important;
  }

  .hero-header .contact-grid {
    margin-bottom: -6px !important;
  }

  .hero-header .hero-contact-pager {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin: 4px auto -6px auto;
    box-sizing: border-box;
    padding: 0 2px;
    overflow: visible;
  }

  .hero-contact-pager__viewport {
    flex: 1;
    min-width: 0;
    overflow: visible;
    touch-action: pan-y;
  }

  .hero-contact-pager__page.contact-grid {
    display: none !important;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box;
  }

  .hero-contact-pager__page.contact-grid.is-active {
    display: flex !important;
  }
}

/* ===== Hero contact pager — 交互樣式 ===== */
@media screen and (max-width: 767px) {
  .hero-contact-pager__nav {
    flex: 0 0 22px;
    width: 22px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 234, 211, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 234, 211, 0.12), rgba(58, 123, 213, 0.1));
    color: #00ead3;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  }

  .hero-contact-pager__nav span {
    display: block;
    margin-top: -2px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7), 0 0 5px rgba(0, 234, 211, 0.5);
  }

  .hero-contact-pager__nav.is-disabled,
  .hero-contact-pager__nav:disabled {
    opacity: 0.28;
    pointer-events: none;
  }

  @media (hover: hover) {
    .hero-contact-pager__nav:not(:disabled):hover {
      border-color: rgba(0, 234, 211, 0.65);
      transform: scale(1.05);
    }
  }

  .hero-contact-pager__nav:active:not(:disabled) {
    transform: scale(0.94);
  }
}

/* ===== Hero contact pager — 響應式樣式 ===== */
@media screen and (max-width: 480px) {
  .hero-contact-pager__nav {
    flex: 0 0 20px;
    width: 20px;
    height: 48px;
    font-size: 20px;
    border-radius: 8px;
  }

  .hero-header .hero-contact-pager {
    gap: 1px;
    padding: 0 1px;
  }
}
