/* 生肖查詢頁專用樣式；表單與表格沿用 site.css */
.zd-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 10px; }
.zd-row > * { min-width: 0; margin: 10px 0 0; }
.zd-row select, .zd-row input { width: 100%; }
.zd-actions { display: flex; gap: 10px; margin-top: 12px; }
.zd-actions .btn-primary { flex: 1; min-height: 52px; font-size: 1.1rem; }
.zd-big { background: #eff4ff; border: 2px solid var(--brand); border-radius: 12px; padding: 12px 14px; text-align: center; margin: 12px 0; }
.zd-line { margin: 0; color: var(--muted); }
.zd-animal { font-size: 2rem; font-weight: 800; color: var(--brand-dark); margin: 4px 0; line-height: 1.3; }
.zd-animal2 { margin-top: 0; }
.zd-sub { margin: 6px 0 0; text-align: left; }
.zd-warn { color: var(--warn); font-weight: 600; }
.zd-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.zd-dates > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.zd-dates dt { color: var(--muted); font-size: .95rem; }
.zd-dates dd { margin: 0; font-weight: 700; color: var(--brand-dark); overflow-wrap: anywhere; }
.zd-h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.zd-me td { outline: 2px solid var(--brand); outline-offset: -2px; }
.zd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zd-chips li { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: .92rem; line-height: 1.35; background: #fff; }
.zd-chips li strong, .zd-chips li span { display: block; }
.zd-chips li span { color: var(--muted); font-size: .85rem; }
#zd-age th { white-space: nowrap; width: 3.2em; font-size: 1.2rem; text-align: center; }
@media (max-width: 480px) {
  .zd-row { grid-template-columns: repeat(4, 1fr); }
  .zd-dates { grid-template-columns: 1fr; }
  .zd-row .zd-era, .zd-row .zd-year { grid-column: span 2; }
  .zd-row .zd-mm, .zd-row .zd-dd { grid-column: span 2; }
}
.zd-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.zd-grid li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
.zd-grid b { color: var(--muted); font-weight: 600; font-size: .95rem; }
.zd-grid span { font-weight: 700; color: var(--brand-dark); font-size: 1.1rem; }
