/* home-banner
========================================== */
.index-banner-card {
  padding: 0 1vw;
}
.index-banner {
  background-color: #fff;
  background-image: url(../images/banner01.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  aspect-ratio: auto 4 / 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
@media screen and (max-width: 767px) {
  .index-banner {
    aspect-ratio: auto 2 / 1;
  }
}
/* index-menu
========================================== */

.index-menu ul {
  margin: 12vw 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(15px, 3vw, 40px);
  list-style: none;
  padding: 10px;
  max-width: 800px;
}

.index-menu ul li a {
  font-family: "Oswald", "Microsoft Yahei", "Noto Sans TC", sans-serif !important;
  color: #ffffff;
  text-decoration: none;
}

@media screen and (min-width: 767px) {
  .index-menu ul li a {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 110%;
    font-weight: 700;
  }
}

.index-menu ul li a i {
  color: rgba(255, 255, 255, 1) !important;
  width: clamp(40px, 3vw, 55px);
  aspect-ratio: auto 1 / 1;
  font-size: clamp(22px, 1.8vw, 32px);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  font-style: normal !important;
  margin-bottom: 5px;
  transition: 2s;
}

.index-menu ul li:nth-child(1n) a i {
  background-color: var(--primary-color-600);
}

.index-menu ul li:nth-child(2n) a i {
  background-color: var(--primary-color-400);
}
.index-menu ul li:nth-child(3n) a i {
  background-color: var(--third-color);
}

.index-menu ul li:nth-child(4n) a i {
  background-color: var(--fourth-color);
}

.index-menu ul li a:hover i {
  transition: 2s;
  transform: rotateY(360deg);
}

/* home-card
========================================== */

.home-card {
  background-color: #fff;
  display: grid;
  grid-template-columns: 1fr 30% 30%;
  padding: 15px;
  gap: 15px;
  color: #333;
}

@media only screen and (max-width: 767px) {
  .home-card {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 767px) {
  .home-card .card:nth-child(1) {
    grid-column: 1 / 4;
  }
}

.home-card .card {
  background-color: #d1f2f7;
}
.home-card .card:nth-child(1) {
  background: #ffebda;
}

.home-card ul {
  list-style: none;
  margin: 0;
}

.home-card ul li {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-card ul li:not(:nth-last-child(1)) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2px 0;
}

.home-card ul li span:not(:nth-child(1)) {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0 6px;
}

.home-card ul li span:nth-child(1) {
  padding-right: 6px;
}

.home-card ul li i {
  background-color: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 0.7);
  padding: 5px;
  border-radius: 50px;
}

.card {
  position: relative;
  background-color: #fff;
  padding: 20px 1vw;
  border-radius: 10px;
}

.card h3 {
  text-align: center;
  font-size: clamp(15px, 1vw, 18px);
  margin: 0 0 5px 0;
  color: var(--primary-color-950);
  font-weight: 700;
}

.more {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2px 10px;
  border-radius: 50px;
}
