.rh-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px 76px;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink, #2d2a22);
}

.rh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  font-size: 13px;
  color: #746b5a;
}

.rh-breadcrumb a { color: #6f4d12; font-weight: 700; text-decoration: none; }
.rh-breadcrumb a:hover { text-decoration: underline; }

.rh-hero {
  padding: clamp(28px, 6vw, 54px);
  border: 1.5px solid #dbc890;
  border-radius: 26px;
  background: linear-gradient(135deg, #fffdf7 0%, #f7edcf 100%);
  box-shadow: 0 12px 34px rgba(90, 62, 10, .09);
  text-align: center;
}

.rh-eyebrow {
  margin: 0 0 8px;
  color: #8b6310;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.rh-hero h1 {
  margin: 0;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.16;
  color: #2d2a22;
}

.rh-lead {
  max-width: 720px;
  margin: 14px auto 0;
  color: #5c5648;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}

.rh-search {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: left;
}

.rh-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
}

.rh-search-input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  border: 2px solid #a67a20;
  border-radius: 12px;
  background: #fff;
  padding: 12px 15px;
  font: inherit;
  font-size: 16px;
  color: #2d2a22;
}

.rh-search-input:focus { outline: 3px solid rgba(200, 151, 58, .24); outline-offset: 2px; }

.rh-search-btn,
.rh-clear-btn,
.rh-filter {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1.5px solid #9b701a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rh-search-btn { min-height: 50px; border: 0; background: #2d2a22; color: #fff; }
.rh-clear-btn { min-height: 50px; background: #fff; color: #6f4d12; }
.rh-clear-btn:disabled { opacity: .45; cursor: default; }

.rh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rh-filter { background: rgba(255, 255, 255, .8); color: #6f4d12; }
.rh-filter[aria-pressed="true"] { background: #c8973a; color: #17130b; border-color: #c8973a; }

.rh-section { margin-top: 42px; }
.rh-section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.rh-section h2 { margin: 0; font-family: 'Noto Serif TC', serif; font-size: clamp(24px, 4vw, 34px); }
.rh-section-note { margin: 5px 0 0; color: #6f6759; line-height: 1.65; }

.rh-category-grid,
.rh-latest-grid,
.rh-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rh-category-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  border: 1.5px solid #dfd0a7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(90, 62, 10, .07);
}

.rh-card-main { padding: 24px 22px 18px; }
.rh-card-icon { font-size: 34px; line-height: 1; }
.rh-card-main h3 { margin: 12px 0 8px; font-family: 'Noto Serif TC', serif; font-size: 22px; color: #573b0d; }
.rh-card-main p { margin: 0; color: #6f6759; line-height: 1.7; }

.rh-card-links { display: grid; gap: 0; margin-top: auto; border-top: 1px solid #eee3c7; }
.rh-card-links a { padding: 13px 20px; color: #3e321d; text-decoration: none; line-height: 1.5; border-bottom: 1px solid #f0e7d2; }
.rh-card-links a:hover { background: #fff8e8; }
.rh-card-all { display: block; margin: 16px 20px 20px; padding: 11px 16px; border-radius: 999px; background: #8b6310; color: #fff; font-weight: 900; text-align: center; text-decoration: none; }

.rh-latest-card,
.rh-result-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 21px;
  box-sizing: border-box;
  border: 1.5px solid #dfd0a7;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(90, 62, 10, .06);
}

.rh-latest-card:hover,
.rh-result-card:hover { transform: translateY(-2px); border-color: #b78a2d; }

.rh-type { color: #8b6310; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.rh-latest-card h3,
.rh-result-card h3 { margin: 9px 0 7px; font-family: 'Noto Serif TC', serif; font-size: 18px; line-height: 1.45; }
.rh-latest-card p,
.rh-result-card p { margin: 0; color: #6f6759; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rh-card-cta { margin-top: auto; padding-top: 15px; color: #9a4d22; font-weight: 900; }

.rh-results { display: none; margin-top: 34px; }
.rh-results.is-active { display: block; }
.rh-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rh-results-count { color: #6f6759; }
.rh-empty { padding: 28px; border: 1.5px dashed #c4a65f; border-radius: 16px; background: #fffaf0; color: #5c5648; text-align: center; line-height: 1.8; }
.rh-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 14px; }
.rh-empty-links a { padding: 9px 13px; border-radius: 999px; background: #fff; color: #6f4d12; font-weight: 800; text-decoration: none; }

.rh-resource-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 22px 24px;
  font-family: 'Noto Sans TC', sans-serif;
}
.rh-resource-head h1 { margin: 0 0 8px; font-family: 'Noto Serif TC', serif; font-size: clamp(28px, 5vw, 42px); }
.rh-resource-head p { margin: 0; color: #5c5648; line-height: 1.7; }
.rh-quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.rh-quick-links a { padding: 9px 14px; border: 1.5px solid #c9aa5e; border-radius: 999px; color: #6f4d12; font-weight: 800; text-decoration: none; background: #fff; }

@media (max-width: 820px) {
  .rh-category-grid,
  .rh-latest-grid,
  .rh-results-grid { grid-template-columns: 1fr; }
  .rh-category-card { min-height: 0; }
}

@media (max-width: 600px) {
  .rh-shell { padding: 22px 14px 92px; }
  .rh-hero { padding: 26px 16px; border-radius: 20px; }
  .rh-search-row { grid-template-columns: 1fr auto; }
  .rh-search-input { grid-column: 1 / -1; }
  .rh-search-btn,
  .rh-clear-btn { width: 100%; }
  .rh-filter { flex: 1 1 calc(50% - 8px); padding-inline: 10px; }
  .rh-section { margin-top: 34px; }
  .rh-resource-head { padding-inline: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rh-latest-card,
  .rh-result-card { transition: transform .16s, border-color .16s; }
}
