@charset "UTF-8";
.banner {
  background: url("../img/system-features-background.webp") center 30%/cover;
  height: 400px;
}
.banner .text {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.banner h1 {
  margin-bottom: 3%;
}
.banner p {
  margin-bottom: 0;
}

article ul {
  width: 296px;
}

.system-feature-list li {
  font-weight: bold;
}
.system-feature-list li:nth-child(n+2) {
  margin-top: 8%;
}
.system-feature-list article {
  background: #F4F4F4;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid transparent;
  transition: all 0.3s;
  height: 100%;
}
.system-feature-list article:hover {
  box-shadow: 0 4px 6px rgba(168, 168, 168, 0.5);
  transform: translateY(-10px);
  border: 2px solid #80c9fa;
}
.system-feature-list article:hover img {
  transform: scale(1.05);
}
.system-feature-list img {
  width: 50%;
  margin-bottom: 5%;
  transition: transform 0.3s;
  filter: drop-shadow(3px 5px 2px rgba(168, 168, 168, 0.5));
}
.system-feature-list h3 {
  color: #0F88D9;
  font-weight: bold;
  margin-bottom: 0;
}
.system-feature-list article li {
  width: auto;
  margin-top: 3%;
}
.system-feature-list article li:nth-child(n+2) {
  margin-top: 3%;
}
.system-feature-list span.arrow {
  color: #0F88D9;
  font-weight: bold;
  font-size: 20px;
  margin: 0 5px;
}

.feature-statistics {
  position: relative;
  padding-bottom: 2.5rem; /* 留空間給按鈕 */
}

/* 隱藏 checkbox */
.expand-checkbox {
  display: none;
}

@media (min-width: 700px) {
  .banner h1 {
    margin-bottom: 1%;
  }
  .system-feature-list {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
  }
  .system-feature-list li:nth-child(n+2) {
    margin-top: 0;
  }
  /* 設定容器初始狀態 */
  .expand-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  /* 當 checkbox 被選取，就展開整個區塊 */
  .expand-checkbox:checked + .feature-statistics .expand-content {
    max-height: 500px; /* 一定要設一個夠高的值才能展開完整內容 */
  }
  /* 按鈕樣式 */
  .expand-label {
    display: inline-block;
    margin-top: 1em;
    padding: 6px 12px;
    background: #F1A54A;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
  }
  .expand-label:hover {
    background: #E49437;
    color: #fff;
  }
  /* 箭頭圖示動畫用的共通樣式 */
  .label-expand::before {
    content: "\f078"; /* Font Awesome 向下箭頭 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 有彈跳感 */
  }
  /* 預設狀態（未展開） */
  .expand-checkbox:not(:checked) + .feature-statistics .label-expand::after {
    content: "展開全部";
    font-size: 16px;
  }
  .expand-checkbox:not(:checked) + .feature-statistics .label-expand::before {
    transform: rotate(0deg); /* 向下 */
  }
  /* 展開狀態（箭頭往上） */
  .expand-checkbox:checked + .feature-statistics .label-expand::after {
    content: "收合內容";
  }
  .expand-checkbox:checked + .feature-statistics .label-expand::before {
    transform: rotate(180deg); /* 向上 */
  }
  /* 展開狀態的背景色 */
  .expand-checkbox:checked + .feature-statistics .expand-label {
    background: #65A1D2;
  }
  .expand-checkbox:checked + .feature-statistics .expand-label:hover {
    background: #5a92c0;
  }
}
@media (min-width: 700px) and (max-width: 900px) {
  .h1-large {
    font-size: 40px;
  }
  article ul {
    width: 290px;
  }
  .system-feature-list li {
    width: 48.5%;
  }
  .system-feature-list li:nth-child(n+3) {
    margin-top: 5%;
  }
  .expand-content {
    max-height: 240px; /* 顯示前幾項用的高度 */
  }
}
@media (min-width: 1200px) {
  #system-features {
    padding-bottom: 1.5%;
  }
  article ul {
    width: 330px;
  }
  .system-feature-list li {
    width: 32%;
  }
  .system-feature-list li:nth-child(n+4) {
    margin-top: 3%;
  }
  .expand-content {
    max-height: 260px; /* 顯示前幾項用的高度 */
  }
}/*# sourceMappingURL=system-features.css.map */