.tabbed-set {
  display: flex;
  flex-direction: column;
  width: 100%; /* 使用百分比來確保寬度隨視窗大小調整 */
}

.tabbed-set__labels {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap; /* 允許標籤在小屏幕上換行 */
}

.tabbed-set__labels label {
  background-color: #cecece;
  padding: 0.5em 1em; /* 使用 em 單位來確保內邊距隨字體大小調整 */
  border: 1px solid #ccc;
  border-radius: 0.5em 0.5em 0 0; /* 使用 em 單位來確保圓角隨字體大小調整 */
  cursor: pointer;
  margin-bottom: 0; /* 移除 label 下面的 margin */
  flex: 1; /* 讓標籤等比分配可用空間 */
  text-align: center; /* 讓標籤文字居中 */
  color: #000000;
}

.tabbed-set__labels label.active {
  background-color: rgba(157, 34, 53, 1);
  color: #ffffff;
}

/* 隐藏 radio 按钮 */
.tabbed-set__labels input[type="radio"] {
  display: none;
}

.tabbed-set__content {
  display: none;
  padding: 1em; /* 使用 em 單位來確保內邊距隨字體大小調整 */
  background-color: #ffffff;
  border: 1px solid #ccc;
}

/* 媒體查詢：針對小屏幕進行調整 */
@media (max-width: 600px) {
  .tabbed-set__labels label {
    padding: 0.5em; /* 減小內邊距 */
    font-size: 0.9em; /* 減小字體大小 */
  }

  .tabbed-set__content {
    padding: 0.5em; /* 減小內邊距 */
  }
}
