/* Reset CSS - 統一瀏覽器樣式 */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  outline:none !important;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
  outline:none !important;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Remove default table spacing */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styles */
fieldset {
  min-width: 0;
  border: 0;
}

/* Remove default legend styles */
legend {
  padding: 0;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Remove default input styles */
input,
textarea {
  border: none;
  outline: none;
}

/* Remove default select styles */
select {
  border: none;
  outline: none;
  background: none;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default quote styles */
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

/* Remove default heading margins */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin: 0;
}

/* Remove default paragraph margins */
p {
  margin: 0;
}

/* Remove default form element margins */
form {
  margin: 0;
}

/* Remove default fieldset margins */
fieldset {
  margin: 0;
  padding: 0;
}

/* Remove default iframe borders */
iframe {
  border: 0;
}

/* Remove default hr styles */
hr {
  border: 0;
  height: 1px;
  background: transparent;
}

/* Remove default pre styles */
pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Remove default code styles */
code {
  font-family: inherit;
}

/* Remove default sub and sup styles */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}
