/* ===== 旅遊日記（/diary/）專用樣式，載於 style.css 之後 ===== */

/* 列表頁 */
.diary-main { padding: 170px 0 110px; }

.diary-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}
.diary-filter button {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .12em;
  padding: 9px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.diary-filter button:hover { border-color: var(--gold); color: var(--gold); }
.diary-filter button.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 500;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}
.diary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--sky-2);
  transition: transform .3s ease;
}
.diary-card:hover { transform: translateY(-4px); }
.diary-card > a { display: flex; flex-direction: column; height: 100%; }
.diary-cover { aspect-ratio: 4 / 3; overflow: hidden; }
.diary-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.diary-card:hover .diary-cover img { transform: scale(1.05); }
.diary-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  text-align: left;
}
.diary-meta { display: flex; align-items: center; gap: 12px; }
.diary-badge {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.diary-date { font-family: var(--en); font-size: 11px; letter-spacing: .16em; opacity: .55; }
.diary-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
}
.diary-body p { font-size: 14px; line-height: 1.8; letter-spacing: .06em; opacity: .7; }

.diary-empty {
  text-align: center;
  font-size: 14px;
  letter-spacing: .14em;
  opacity: .55;
  padding: 60px 0;
}

/* 文章頁 */
.post-main { padding: 170px 24px 100px; }
.post { max-width: 760px; margin: 0 auto; }
.post-head { text-align: center; margin-bottom: 44px; }
.post-head .diary-meta { justify-content: center; margin-bottom: 18px; }
.post-head h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.7;
}
.post-hero { margin-bottom: 44px; }
.post-hero img { width: 100%; border-radius: 4px; box-shadow: 12px 12px 0 var(--sky-2); }
.post-body p {
  font-size: 15.5px;
  line-height: 2.1;
  letter-spacing: .06em;
  margin-bottom: 1.6em;
}
.post-body figure { margin: 44px 0; }
.post-body figure img { width: 100%; border-radius: 4px; }
.post-body figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-align: center;
  opacity: .55;
}
.post-back {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity .3s;
}
.post-back:hover { opacity: .6; }

/* RWD */
@media (max-width: 1000px) {
  .diary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .diary-main, .post-main { padding-top: 140px; }
  .diary-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
