/* 黄历中下部：日期宜忌卡片、方位与时辰、详细信息表。 */
.almanac-details { margin-top: 20px; color: #30293b; }
.almanac-summary,.almanac-table { border: 1px solid #ece7f3; border-radius: 18px; background: #fff; }
.almanac-summary { padding: 20px; }
.almanac-date-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.almanac-date-badge { flex: 0 0 50px; display: grid; place-items: center; height: 56px; border-radius: 10px; background: #eee6fa; color: #673acb; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.almanac-date-copy { flex: 1; min-width: 0; }
.almanac-date-copy h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.7; font-weight: 600; }
.almanac-date-copy p { color: #898191; font-size: 14px; line-height: 1.7; }
.almanac-countdown { align-self: flex-start; margin-top: 5px; color: #897b9b; font-size: 11px; white-space: nowrap; }
.almanac-advice-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.almanac-tag { flex: 0 0 28px; padding: 2px 0; border-radius: 5px; text-align: center; font-size: 15px; font-weight: 600; }
.almanac-tag.good { background: #e8f5ef; }
.almanac-tag.bad { background: #fff0ee; }
.almanac-advice-row p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.9; color: #4b4452; overflow-wrap: anywhere; word-spacing: 3px; }
.almanac-summary .almanac-festivals,.almanac-summary .almanac-customs { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: #aa841b; overflow-wrap: anywhere; }
.almanac-table { margin-top: 20px; overflow: hidden; }
.almanac-directions { display: grid; grid-template-columns: 1.4fr 6fr; }
.almanac-direction-items { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.almanac-fact { padding: 12px 8px; text-align: center; min-width: 0; }
.almanac-direction-items .almanac-fact { border-left: 1px solid #eee9f3; }
.almanac-label { display: block; color: #98919f; font-size: 13px; line-height: 1.6; font-weight: 400; }
.almanac-fact .almanac-value { margin: 2px 0 0; color: #30293b; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.almanac-element { align-self: center; font-size: 13px; line-height: 1.7; }
.almanac-element .almanac-label { display: inline; }
.almanac-element strong { color: #a57920; font-weight: 500; }
.almanac-fact .wealth { color: #b68c24; }
.almanac-hours-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 8px; border-top: 1px solid #eee9f3; }
.almanac-hours-heading h3 { margin: 0; color: #81768e; font-size: 13px; font-weight: 400; }
.almanac-hours-heading span { color: #a097a9; font-size: 11px; }
.almanac-hours-scroll { overflow-x: auto; scrollbar-width: thin; }
.almanac-hours { display: grid; grid-template-columns: repeat(13,minmax(48px,1fr)); min-width: 650px; padding: 0 4px 12px; }
.almanac-hour { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-align: center; }
.almanac-hour-name { color: #968a9f; font-size: 11px; }
.almanac-hour strong { color: #30293b; font-size: 14px; font-weight: 500; }
.almanac-hour-luck { font-size: 13px; }
.almanac-hour-range { max-width: 42px; font-size: 10px; line-height: 1.3; color: #a097a9; overflow-wrap: anywhere; }
.almanac-middle { display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; border-top: 1px solid #eee9f3; border-bottom: 1px solid #eee9f3; }
.almanac-side { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 14px 8px; text-align: center; }
.almanac-side .almanac-label { max-width: 40px; font-size: 12px; }
.almanac-side strong { font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.almanac-middle-content { min-width: 0; border-left: 1px solid #eee9f3; border-right: 1px solid #eee9f3; }
.almanac-middle-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.almanac-middle-items .almanac-fact + .almanac-fact { border-left: 1px solid #eee9f3; }
.almanac-pengzu { padding: 12px; border-top: 1px solid #eee9f3; text-align: center; }
.almanac-pengzu p { margin: 4px 0 0; color: #8e6d21; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.almanac-bottom { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.almanac-bottom .almanac-fact + .almanac-fact { border-left: 1px solid #eee9f3; }
.almanac-note { display: block; margin-top: 3px; color: #aaa1b2; font-size: 10px; line-height: 1.5; }
.almanac-details .good { color: #288568; }
.almanac-details .bad { color: #bf5555; }
.almanac-hours-scroll:focus-visible { outline: 2px solid #673acb; outline-offset: -2px; }
@media (max-width: 480px) {
  .almanac-details { margin-top: 16px; }
  .almanac-summary { padding: 16px 12px; border-radius: 12px; }
  .almanac-date-head { flex-wrap: wrap; gap: 10px; }
  .almanac-date-badge { flex-basis: 42px; height: 50px; font-size: 25px; }
  .almanac-date-copy h3 { font-size: 13px; }
  .almanac-date-copy p { font-size: 12px; }
  .almanac-countdown { flex-basis: 100%; margin: -4px 0 0 52px; }
  .almanac-advice-row { gap: 8px; }
  .almanac-advice-row p { font-size: 13px; }
  .almanac-table { margin-top: 16px; border-radius: 12px; }
  .almanac-directions { display: block; }
  .almanac-element { display: flex; justify-content: center; gap: 24px; padding: 12px; border-bottom: 1px solid #eee9f3; }
  .almanac-direction-items { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .almanac-direction-items .almanac-fact:nth-child(3n+1) { border-left: 0; }
  .almanac-direction-items .almanac-fact:nth-child(n+4) { border-top: 1px solid #eee9f3; }
  .almanac-middle { grid-template-columns: 40px minmax(0,1fr) 40px; }
  .almanac-side { padding: 12px 5px; }
  .almanac-side .almanac-label { font-size: 11px; }
  .almanac-side strong { font-size: 13px; }
  .almanac-middle-items .almanac-fact { padding: 10px 4px; }
  .almanac-middle-items .almanac-label { font-size: 11px; }
  .almanac-middle-items .almanac-value { font-size: 12px; }
  .almanac-bottom { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .almanac-bottom .almanac-fact:nth-child(3) { border-left: 0; }
  .almanac-bottom .almanac-fact:nth-child(n+3) { border-top: 1px solid #eee9f3; }
}
