body {
  font-family: 'Noto Sans TC', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}
.loading {
  font-size: 14px;
  color: #888;
  padding: 20px 10px;
}

#query {
  width: 90%;
  max-width: 600px;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  box-sizing: border-box;
}

.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  padding: 8px 16px;
  gap: 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  all: unset;
  display: inline-block;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}

.tab:hover {
  color: #000;
}

.tab.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #000;
}
.sort-options {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #444;
}

.sort-options span {
  font-weight: 500;
  color: #111;
}

.sort-button {
  all: unset;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  padding: 4px 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sort-button:hover {
  color: #000;
}

.sort-button.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #000;
}

main {
  padding: 20px 16px;
  background-color: #fff;
}

.category {
  margin-bottom: 40px;
}

.category h2 {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  border-left: 2px solid #000;
  padding-left: 8px;
  margin-bottom: 12px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 10px;
}

.scroll-container.vertical {
  flex-direction: column;
  overflow-x: unset;
  overflow-y: auto;
}

.card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 540px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.card-content {
  padding: 12px;
  line-height: 1.4;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: #999;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  background: #fafafa;
  color: #888;
  border-top: 1px solid #eee;
}
