@font-face {
  font-family: bodyFont;
  src: url(../font/TXWHZGBJT.woff2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html, body {
  scroll-behavior: smooth;
  font-family: bodyFont;
  transition: all .3s;
}

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

body {
  transition: all .3s;
  background-color: white;
  letter-spacing: 1px;
  line-height: 1.4;
}

main {
  background-image: url(../img/bg.jpg);
  padding-bottom: 1rem;
}

.feature-img {
  position: absolute;
  width: 1100px;
  right: 50px;
  top: 50px;
  z-index: 0;
}

.wrapper {
  width: 1800px;
  margin: 0 auto;
  padding: 2rem;
}

.logo {
  display: flex;
  width: 10rem;
  transition: all .3s;
}

.logo img {
  display: block;
  width: 100%;
  margin: auto;
}

.logo:hover {
  filter: brightness(120%);
  transform: scale(1.1);
}

.content {
  z-index: 100;
  margin: 4rem 0 2rem;
  width: 800px;
  padding-left: 4rem;
  transition: all .3s;
}

.content h1 {
  font-weight: 300;
  margin: 0;
  font-size: 5rem;
  color: white;
  -webkit-text-stroke: 1.5px black;
  text-shadow: 0px 3px 0px black;
}

.content p {
  margin: 1rem 0 3rem;
  line-height: 1.7;
  font-weight: 400;
  font-family: 'Noto Sans TC',sans-serif;
  width: 100%;
  font-size: 1.5rem;
  color: white;
}

.links {
  display: flex;
  gap: 2rem;
  padding-left: 4rem;
}

.links a {
  color: white;
  display: block;
  padding: 0.5rem 4rem;
  font-size: 1.5rem;
  border: 1px solid white;
  border-radius: 5px;
  transition: all .3s;
  border-radius: 180px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

.links a:nth-child(1) {
  background: linear-gradient(180deg, #FF9F40 0%, #E60000 100%);
}

.links a:nth-child(2) {
  background: linear-gradient(180deg, #22DBE7 0%, #3476F6 100%);
}

.links a span {
  display: inline-block;
}

.links a:hover {
  transform: translateY(-3px);
}

.features-container {
  width: 1800px;
  padding: 4rem;
  padding-left: 6rem;
  margin: 0 auto;
  display: flex;
  gap: 6rem;
}

.features-container .feature-1, .features-container .feature-2 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  display: inline-block;
  margin-top: 1rem;
}

.features-container .feature-1 h2, .features-container .feature-2 h2 {
  font-weight: 300;
  color: black;
  font-size: 2rem;
  position: relative;
  line-height: 1.4;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.features-container .feature-1 h2::before, .features-container .feature-2 h2::before {
  content: '';
  position: absolute;
  left: 0;
  height: 80%;
  transform: translateY(10%);
  width: 0.5rem;
  background-color: #F92D2D;
  margin: auto;
}

.features-container .feature-1 p, .features-container .feature-2 p {
  width: 275px;
  font-weight: 400;
  font-family: 'Noto Sans TC',sans-serif;
  padding-left: 1.5rem;
  font-size: 1.2rem;
  color: #464646;
}

@media screen and (max-width: 1800px) {
  .wrapper {
    width: 1600px;
  }
  .features-container {
    width: 1600px;
  }
  .feature-img {
    width: 900px;
    right: 0;
  }
  .content p {
    width: 70%;
  }
}

@media screen and (max-width: 1600px) {
  .content {
    margin-top: 1rem;
  }
  .content h1 {
    font-size: 4rem;
  }
  .content p {
    width: 70%;
    font-size: 1.4rem;
  }
  .links {
    gap: 1.5rem;
  }
  .links a {
    padding: 0.5rem 4rem;
    font-size: 1.5rem;
  }
  .links a:hover {
    padding: 0.5rem 6rem;
  }
  .wrapper {
    width: 1400px;
  }
  .features-container {
    width: 1400px;
    padding: 3rem 3rem 3rem 6rem;
  }
  .features-container .feature-1 h2, .features-container .feature-2 h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .features-container .feature-1 h2::before, .features-container .feature-2 h2::before {
    width: 0.5rem;
  }
  .features-container .feature-1 p, .features-container .feature-2 p {
    font-size: 1rem;
  }
  .feature-img {
    width: 800px;
  }
}

@media screen and (max-width: 1400px) {
  .wrapper {
    width: 1200px;
  }
  .features-container {
    width: 1200px;
  }
  .feature-img {
    top: 75px;
    width: 600px;
  }
}

@media screen and (max-width: 1200px) {
  .wrapper {
    width: 992px;
  }
  .features-container {
    width: 992px;
    padding: 2rem;
  }
  .content {
    width: 100%;
    padding-left: 0;
  }
  .content h1 {
    font-size: 4rem;
  }
  .content p {
    width: 65%;
  }
  .links {
    padding-left: 0;
  }
  .links a {
    padding: 0.5rem 2rem;
  }
  .links a:hover {
    padding: 0.5rem 4rem;
  }
  .feature-img {
    top: 75px;
    width: 500px;
  }
}

@media screen and (max-width: 992px) {
  .wrapper {
    width: 768px;
  }
  .features-container {
    width: 768px;
  }
  .feature-img {
    top: 170px;
    width: 400px;
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    width: 480px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .content {
    text-align: center;
    margin-top: 24rem;
    margin-bottom: 1rem;
  }
  .content h1 {
    font-size: 3rem;
  }
  .content p {
    width: 100%;
    margin: 0 auto;
    font-size: 1.3rem;
  }
  .links {
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .links a {
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
  }
  .links a:hover {
    padding: 0.5rem 0;
  }
  .links a:nth-child(1) {
    flex: 100%;
  }
  .links a:nth-child(2), .links a:nth-child(3) {
    background-color: #222528;
    flex: 100%;
  }
  .features-container {
    width: 480px;
    padding: 2rem 1rem;
    gap: 1rem;
  }
  .features-container .feature-1, .features-container .feature-2 {
    width: 100%;
    text-align: center;
  }
  .features-container .feature-1 h2, .features-container .feature-2 h2 {
    padding-left: 0;
    font-size: 1.5rem;
  }
  .features-container .feature-1 h2::before, .features-container .feature-2 h2::before {
    left: auto;
    width: 0.4rem;
    transform: translate(-1rem, 10%);
  }
  .features-container .feature-1 p, .features-container .feature-2 p {
    width: 100%;
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  .feature-img {
    width: auto;
    display: flex;
    justify-items: center;
    top: 75px;
    right: 5%;
    width: 500px;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    width: 8rem;
  }
  .wrapper {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .features-container {
    width: 100%;
    padding: 1rem;
    gap: 0.5rem;
  }
  .features-container .feature-1 h2, .features-container .feature-2 h2 {
    margin-bottom: 0.5rem;
    line-height: 1;
    padding-left: 1rem;
    font-size: 1.2rem;
  }
  .features-container .feature-1 p, .features-container .feature-2 p {
    padding-left: 1rem;
    font-size: 0.8rem;
  }
  .content {
    margin-top: 20rem;
    margin-bottom: 1rem;
  }
  .content h1 {
    font-size: 2.7rem;
    line-height: 1.3;
  }
  .content p {
    font-size: 1rem;
  }
  .links {
    padding: 0 1rem;
  }
  .feature-img {
    top: 50px;
    right: 0.5rem;
    width: 450px;
  }
}

@media screen and (max-width: 375px) {
  .logo {
    width: 6rem;
  }
  .wrapper {
    padding: 0.5rem;
  }
  .content {
    margin-top: 12rem;
  }
  .content h1 {
    font-size: 2rem;
    line-height: 1.4;
  }
  .content p {
    font-size: 1rem;
  }
  .links {
    padding: 0 0.5rem;
  }
  .links a {
    font-size: 1rem;
  }
  .links a:nth-child(2), .links a:nth-child(3) {
    font-size: 1rem;
  }
  .features-container {
    padding: 1.5rem 0.5rem;
    gap: 0.5rem;
  }
  .features-container .feature-1 h2, .features-container .feature-2 h2 {
    line-height: 1.7;
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .features-container .feature-1 h2::before, .features-container .feature-2 h2::before {
    width: 0.4rem;
  }
  .features-container .feature-1 p, .features-container .feature-2 p {
    padding-left: 0;
    font-size: 0.8rem;
  }
  .feature-img {
    top: 1rem;
    right: 0.5rem;
    width: 325px;
  }
}
