@charset "UTF-8";
.tab-sort {
  background-color: rgb(122, 203, 221);
  padding: 20px 0px;
}

.tab-sort-nav {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-column-gap: 20px;
     -moz-column-gap: 20px;
          column-gap: 20px;
  row-gap: 10px;
  font-size: 18px;
}
.tab-sort-nav .tab-btn {
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  min-width: 100%;
  height: 60px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  -webkit-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

#test-photo1:checked ~ .tab-sort-nav label[for=test-photo1] .tab-btn,
#test-photo2:checked ~ .tab-sort-nav label[for=test-photo2] .tab-btn,
#test-photo3:checked ~ .tab-sort-nav label[for=test-photo3] .tab-btn,
#test-photo4:checked ~ .tab-sort-nav label[for=test-photo4] .tab-btn {
  border: 2px solid rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
  background: #7ACBDD;
  font-weight: bold;
  font-size: 20px;
  color: white;
}

/* 導覽列 (header)  搜尋按鈕 */
.search {
  /* 放大鏡icon 定位 */
  position: relative;
  /* 色塊投影 */
  -webkit-filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
          filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

input {
  width: 100%;
  height: 60px;
  -webkit-filter: drop-shadow(0px 4px 0px #7ACBDD);
          filter: drop-shadow(0px 4px 0px #7ACBDD);
  padding: 0 42px;
  border-radius: 6px;
  background-color: #f5f5f5;
  border: 2px solid #A0E3F2;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  outline: 3px solid transparent;
  font-size: 18px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
input:focus {
  outline: 3px solid #fcc661;
  background-color: rgba(255, 255, 255, 0.8);
}
input:focus i {
  color: #fcc661;
}
input:focus::-webkit-input-placeholder {
  color: transparent;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
input:focus::-moz-placeholder {
  color: transparent;
  -moz-transition: 0.3s;
  transition: 0.3s;
}
input:focus:-ms-input-placeholder {
  color: transparent;
  -ms-transition: 0.3s;
  transition: 0.3s;
}
input:focus::-ms-input-placeholder {
  color: transparent;
  -ms-transition: 0.3s;
  transition: 0.3s;
}
input:focus::placeholder {
  color: transparent;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.tab-sort-nav i {
  font-size: 18px;
  color: rgb(122, 203, 221);
  padding-top: 2px;
  /* 放大鏡icon 定位 */
  position: absolute;
  margin-left: 15px;
  left: 8px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.problem-card-list {
  padding: 60px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 20px;
}

.problem-card {
  max-width: 100%;
  padding: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}

.ellipsis p {
  /* 2行 超出部分隱藏 ellipsis ... */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.problem-card {
  -webkit-box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 10px;
}
.problem-card:hover {
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.problem-card a:link, .problem-card a:visited {
  color: #62A2B1;
}
.problem-card a:hover {
  color: rgb(122, 203, 221);
}
.problem-card a.bottom-link {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.8);
}
.tab-sort .group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-column-gap: 20px;
     -moz-column-gap: 20px;
          column-gap: 20px;
  row-gap: 10px;
}

@media screen and (min-width: 900px) {
  .tab-btn {
    max-width: 180px;
    width: 180px;
    height: 60px;
  }
  .tab-sort-nav .group {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
  .tab-sort-nav {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    margin-left: auto;
  }
}
@media screen and (max-width: 901px) {
  .tab-btn {
    width: calc(25vw - 30px);
    height: 60px;
  }
  .search {
    width: 100%;
  }
}
@media screen and (max-width: 500px) {
  .tab-sort-nav .group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
  }
  .tab-btn {
    width: 100%;
    height: 60px;
  }
}