:root {
  --page-bg: #ffffff;
  --text-color: #000000;
  --muted-text: #444444;
  --footer-text: #777777;
  --footer-bg: #141414;
  --accent: #1d3871;
  --card-shadow: 2px 2px 20px #e0e0e0;
  --container-width: 1170px;
}

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

html {
  font-size: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: "Noto Sans TC", "Source Sans Pro", sans-serif;
  font-style: normal;
  font-weight: 700;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  outline: 0;
  transition: color 0.25s ease-out, opacity 0.25s ease-out;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

h1 {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 700;
}

h2 {
  color: var(--text-color);
  font-size: 2.5rem;
}

h3 {
  color: var(--muted-text);
  font-size: 18px;
  letter-spacing: 4px;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
  color: var(--footer-text);
  font-size: 16px;
  line-height: 28px;
  word-spacing: 1px;
  letter-spacing: 1px;
}

.container {
  width: min(calc(100% - 30px), var(--container-width));
  margin: 0 auto;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #111112;
  border-radius: 50%;
  animation: sk-pulse-scale-out 1s infinite ease-in-out;
}

@keyframes sk-pulse-scale-out {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.nav-container,
.site-nav {
  overflow: visible;
  transition: all 0.3s ease;
}

.nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav {
  background: transparent;
  backface-visibility: hidden;
}

.site-nav .container {
  min-height: 94px;
  display: flex;
  align-items: flex-start;
}

.nav-container.sticky .site-nav {
  background: #ffffff;
}

.nav-container.sticky .site-nav .container {
  min-height: 70px;
}

.brand {
  padding-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  transition: all 0.3s ease;
}

.brand img {
  width: auto;
  height: 70px;
}

.hero-section {
  min-height: 520px;
  padding: 150px 0 100px;
  background: url("../images/header-bg.jpg") center center / cover no-repeat;
  text-align: center;
}

.hero-layout {
  display: flex;
  justify-content: center;
}

.header-thumb {
  width: min(100%, 555px);
  background: #ffffff;
  border: 10px solid var(--accent);
  padding: 32px 20px;
}

.header-thumb h3 {
  margin-top: 1rem;
}

.feature-section {
  padding-top: 30px;
  text-align: center;
}

.section-title {
  font-size: 40px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  justify-items: center;
  padding-bottom: 30px;
}

.feature-box {
  width: 100%;
  max-width: 250px;
  min-height: 300px;
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.feature-box img {
  max-width: 100%;
}

.feature-box h4 {
  padding:16px 0 0 0;
}

.site-footer {
  background: var(--footer-bg);
  padding: 120px 0;
  text-align: center;
}

.footer-copy a:hover,
.footer-copy a:focus {
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible.fade-in {
  animation-name: fade-in;
}

.reveal.is-visible.fade-up {
  animation-name: fade-up;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1199px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav .container {
    min-height: 94px;
  }

  .brand {
    padding-left: 24px;
  }

  .hero-section {
    min-height: 380px;
    padding-top: 80px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-box {
    max-width: 250px;
  }
}
