@charset "UTF-8";
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}

.container {
  display: flex;
  width: 100%;
  max-width: 1700px;
  gap: 20px;
  box-sizing: border-box;
}

/* --- 篩選側邊欄樣式 --- */
.filter-sidebar {
  flex: 0 0 calc(30% - 10px);
  max-width: 350px;
  min-width: 250px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  align-self: flex-start;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 90px);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.filter-sidebar h3 {
  color: #e74c3c;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
  flex-shrink: 0;
}

.filter-content-wrapper {
  flex-grow: 1;
  padding-bottom: 1.5rem;
}

.filter-group {
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed #eee;
  flex-shrink: 0;
}
.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.filter-group h4 {
  margin: 10px;
}

.filter-sidebar input[type=text],
.filter-sidebar input[type=number] {
  width: calc(100% - 10px);
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-size: 1em;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-bottom: 8px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}
.checkbox-group label input[type=checkbox] {
  margin-right: 5px;
  flex-shrink: 0;
}

.range-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-group input[type=number] {
  flex: 1;
  margin-bottom: 0;
}

.filter-actions {
  position: sticky;
  bottom: -1.5rem;
  width: auto;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  margin-top: auto;
  box-sizing: border-box;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-actions button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin-top: 0;
  border: none;
  border-radius: 8px;
  background-color: #e74c3c;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.filter-actions button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}
.filter-actions #resetFilters {
  background-color: #95a5a6;
}
.filter-actions #resetFilters:hover {
  background-color: #7f8c8d;
}

/* --- 卡片容器樣式 --- */
.card-container {
  flex: 1 1 calc(70% - 10px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: start;
  padding: 20px;
}

.no-results {
  text-align: center;
  grid-column: 1/-1;
  font-size: 1.2rem;
  color: #555;
  padding: 50px 0;
}

/* --- 卡片樣式 --- */
.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 0 0 2px #e74c3c;
  width: 100%;
  max-width: 350px;
  min-width: 300px;
  padding: 1.5rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.3s ease-in-out, z-index 0s 0.3s;
  background: linear-gradient(to bottom, #fff, #fafafa);
  min-height: 600px;
  max-height: 650px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 0 0 3px #e74c3c;
  z-index: 10;
  max-height: none;
  min-height: 600px;
  overflow-y: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.3s ease-in-out, z-index 0s;
}
.card .card-image {
  width: 50%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  margin: 0 auto 1rem;
  overflow: hidden;
  flex-shrink: 0;
}
.card .card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card .card-header h2 {
  margin: 0;
  font-size: 24px;
  color: #e74c3c;
}
.card .card-header .type {
  font-size: 16px;
  color: #555;
  background-color: #ffe6e6;
  padding: 5px 10px;
  border-radius: 12px;
}
.card .card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  min-height: 250px;
}
.card .card-body .param {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
}
.card .card-body .param .label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  width: 4.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .card-body .param .value {
  display: flex;
  align-items: center;
  color: #555;
  font-size: 14px;
}
.card .card-body .param .value .interval {
  margin-right: 3px;
}
.card .card-body .param .value .unit {
  margin-left: 3px;
}
.card .card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  margin-top: auto;
  max-height: 6rem;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.card .card-footer p {
  margin: 0.3rem 0;
  font-size: 14px;
  color: #555;
}
.card .card-footer .highlight {
  color: #e74c3c;
  font-weight: bold;
}
.card:hover .card-footer {
  max-height: 500px;
  overflow: visible;
  opacity: 1;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-overflow: clip;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.3s ease-in-out, z-index 0s;
}

/* --- 媒體查詢 --- */
@media (min-width: 3840px) {
  .container {
    max-width: 3000px;
  }
  .card {
    max-width: 400px;
  }
}
@media (min-width: 2560px) {
  .container {
    max-width: 2200px;
  }
  .card {
    max-width: 400px;
  }
}
@media (max-width: 992px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .filter-sidebar {
    position: static;
    width: 90%;
    max-width: 500px;
    min-width: unset;
    margin-bottom: 0;
    max-height: none;
    overflow-y: visible;
    flex: auto;
  }
  .filter-actions {
    position: static;
    padding: 1.5rem 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 10px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .card-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    width: 100%;
    max-width: 768px;
    justify-content: center;
    align-items: start;
    flex: auto;
  }
  .card {
    min-height: 580px;
    max-height: 630px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0.3s;
  }
  .card:hover {
    max-height: 630px;
    overflow-y: auto;
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
  }
  .card:hover .card-footer {
    min-height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    text-overflow: clip;
    max-height: none;
  }
}
@media (max-width: 768px) {
  .card {
    width: 95%;
    max-width: 500px;
    padding: 1rem;
    min-height: 550px;
    max-height: 600px;
  }
  .card .card-image {
    width: 70%;
  }
  .card .card-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 200px;
  }
  .card .card-body .param {
    grid-template-columns: 4rem 1fr;
  }
  .card .card-body .param .label {
    width: 4rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 10px;
    gap: 10px;
  }
  .filter-sidebar {
    padding: 1rem;
  }
  .filter-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .filter-sidebar .filter-group h4 {
    font-size: 1rem;
  }
  .card {
    width: 95%;
    max-width: 350px;
    padding: 0.75rem;
    margin: 0 auto;
    min-height: 500px;
    max-height: 550px;
  }
  .card .card-image {
    width: 80%;
  }
  .card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .card .card-header .type {
    align-self: flex-end;
  }
  .card .card-body .param {
    grid-template-columns: 3.5rem 1fr;
  }
  .card .card-body .param .label {
    width: 3.5rem;
  }
}/*# sourceMappingURL=style.css.map */