:root {
  color-scheme: light;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: #ffffff;
  color: #111111;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-switcher {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  color: #ffffff;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  transform: translateX(50%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.review-switcher span {
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

.review-switcher a {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.review-switcher a:hover,
.review-switcher a:focus-visible,
.review-switcher a[aria-current="page"] {
  color: #111111;
  background: #ffffff;
  outline: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hamburger {
  position: relative;
}

.hamburger::before {
  position: absolute;
  top: -7px;
}

.hamburger::after {
  position: absolute;
  top: 7px;
}

.mobile-nav[open] .hamburger {
  background: transparent;
}

.mobile-nav[open] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav[open] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

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

  .mobile-nav {
    display: block;
  }

  .review-switcher span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
