/* cards-beauty.css - 美麗見證卡片+Tabs 樣式 */
.beauty-tabs-section {
  width: 100%;
  max-width: 1126px; /* 調整為1126px */
  min-width: 1126px; /* 調整為1126px */
  /* margin: 40px auto; */
  padding: 0 24px; /* 左右各加8px (16px + 8px = 24px) */
  box-sizing: border-box;
  min-height: 400px;
}
.beauty-tabs {
  display: flex;
  gap: 20px; /* 增加間距 */
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.beauty-tab {
  background: #888;
  color: #fff;
  font-weight: bold;
  padding: 8px 16px; /* 減少左右padding */
  border-radius: 0; /* 移除圓角 */
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 1px;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  border: none;
  display: flex; /* 改為flex */
  align-items: center;
  justify-content: center;
  flex: 1; /* 讓所有標籤等寬 */
  min-width: 0; /* 允許縮小 */
  text-align: center;
}
.beauty-tab.active,
.beauty-tab:hover {
  background: #222;
  color: #fff;
}
.beauty-cards-list {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px; /* 減少間距適應較小容器 */
  justify-content: flex-start;
  position: relative;
}
.beauty-card {
  width: 100%;
  background: #F9F9F9; /* 背景色改為#F9F9F9 */
  border-radius: 0 16px 0 16px; /* 左上0、右上16px、右下0、左下16px */
  box-shadow: none; /* 移除陰影 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  border: 1px solid #eee;
}
.beauty-card-img {
  width: 100%;
  aspect-ratio: 5/3;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.beauty-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.beauty-card-content {
  padding: 18px 16px 16px 16px; /* 減少padding來降低整體高度 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.beauty-card-title {
  font-size: 1.1em;
  font-weight: 700;
  /* margin-bottom: 8px; */
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
  font-family: "Noto Serif TC";
}
.beauty-card-date {
  font-size: 0.98em;
  color: #454545;
  margin-bottom: 10px;
}
.beauty-card-excerpt {
  color: #444;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0; /* 改為0 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}
.beauty-card-viewmore {
  display: inline-block;
  margin-top: 10px; /* VIEW MORE離上面區塊為10px */
  font-size: 1em;
  color: #454545;
  text-decoration: underline;
  font-weight: 600;
  border-bottom: 1px solid #454545;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  font-family: "Noto Serif TC";
}

/* 確保beauty-card中的圖標對齊 */
.beauty-card-viewmore .view-more-icon {
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.beauty-card-viewmore:hover {
  color: #000;
  border-bottom-color: #000;
}
.beauty-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.beauty-arrow {
  font-size: 1.2em;
  color: #888;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
  user-select: none;
  text-decoration: none;
}
.beauty-arrow:hover {
  background: #f0f0f0;
  color: #222;
}
.beauty-page {
  font-size: 1em;
  color: #888;
  margin: 0 4px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-bottom 0.15s; /* 添加border-bottom動畫 */
  text-decoration: none;
  border-bottom: 2px solid transparent; /* 預設透明底線 */
}
.beauty-page.active {
  background: transparent; /* 移除背景色 */
  color: #222; /* 改為深色文字 */
  border-bottom: 2px solid #222; /* 添加下底線 */
  border-radius: 0; /* 移除圓角 */
}
.beauty-no-posts {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  height: 100%;
  text-align: center;
  color: #aaa;
  background: #fff;
  font-size: 1.2em;
  padding: 0;
  position: static;
  z-index: 1;
}
@media (max-width: 900px) {
  .beauty-cards-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px; /* 減少間距 */
  }
}
@media (max-width: 600px) {
  .beauty-cards-list {
    grid-template-columns: 1fr;
    min-height: auto; /* 移除固定高度，讓內容自然決定高度 */
  }
  .beauty-tabs {
    gap: 12px; /* 手機版間距 */
  }
  .beauty-tab {
    padding: 6px 12px; /* 手機版減少padding */
    font-size: 0.9em; /* 稍微減小字體 */
  }
  .beauty-card {
    max-height: none; /* 移除最大高度限制 */
  }
  .beauty-card-content {
    padding: 16px 14px 14px 14px; /* 減少手機版的padding */
  }
  .beauty-card-title {
    font-size: 1em; /* 稍微減小標題字體 */
    min-height: 2.2em; /* 減少最小高度 */
  }
  .beauty-card-excerpt {
    font-size: 0.9em; /* 稍微減小內容字體 */
    min-height: 2.4em; /* 減少最小高度 */
  }
}
@media (max-width: 1126px) {
  .beauty-tabs-section {
    min-width: 0; /* 允許縮小 */
    max-width: 100%; /* 允許縮小 */
  }
}
