/* 循古老黄历：自 wannianli 迁入，作用域 .hl-page，避免与全站 Tailwind 冲突 */

.hl-page {
  --bg-card: #FDFBF7;
  --text-main: #1D1C1A;
  --text-muted: #6b6965;
  --accent-blue: #A6782A;
  --accent-purple: #B23A22;
  --accent-gold: #A6782A;
  --border-light: rgba(166, 120, 42, 0.18);
  --color-yi: #2D6A4F;
  --bg-yi: rgba(45, 106, 79, 0.08);
  --color-ji: #B23A22;
  --bg-ji: rgba(178, 58, 34, 0.08);
  --font-sans: 'Noto Serif SC', ui-serif, 'Songti SC', 'STSong', 'SimSun', serif;
  --radius: 4px;
  --shadow-sm: 0 4px 15px rgba(166, 120, 42, 0.05);

  font-family: var(--font-sans);
  color: var(--text-main);
  padding: 16px 10px 32px;
  -webkit-font-smoothing: antialiased;
}

.hl-page .hl-inner {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.hl-page .hl-header {
  text-align: center;
  margin-bottom: 20px;
}

.hl-page .hl-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  letter-spacing: 0.2rem;
  background: linear-gradient(180deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.hl-page .hl-header h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.hl-page .date-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hl-page .nav-button {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.hl-page .nav-button:hover {
  background: #fdfdfa;
  border-color: #e5dcb7;
  color: var(--accent-blue);
}

.hl-page .nav-button-today {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.hl-page .nav-button-today:hover {
  background: #9d6819;
  border-color: #9d6819;
  color: #ffffff;
}

.hl-page .date-selector form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px 4px 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.hl-page .date-selector .week {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.hl-page .date-selector input[type="date"] {
  border: none;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.hl-page .date-selector button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.hl-page .date-selector button:hover {
  background: #1f3754;
}

.hl-page .date-selector button:active {
  transform: scale(0.98);
}

.hl-page .calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hl-page .wide-card {
  grid-column: 1 / -1;
}

.hl-page .info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--text-muted);
  display: flex;
  flex-direction: column;
}

.hl-page .info-card h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
}

.hl-page .jieqi-card {
  border-left-color: var(--accent-blue);
  background: #fcfbf7;
}

.hl-page .jieqi-card h2 {
  color: var(--accent-blue);
}

.hl-page .jieqi-card .highlight-jieqi {
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.hl-page .huangli-item:first-child {
  border-left: 4px solid var(--color-yi);
  padding-left: 12px;
  background: var(--bg-yi);
  border-radius: 4px;
}

.hl-page .huangli-item:last-child {
  border-left: 4px solid var(--color-ji);
  padding-left: 12px;
  background: var(--bg-ji);
  border-radius: 4px;
}

.hl-page .info-card.hl-tone-purple {
  border-left-color: var(--accent-purple);
  background-color: #f6f5ff;
}

.hl-page .info-card.hl-tone-gray {
  border-left-color: #6c757d;
  background-color: #f9f9fb;
}

.hl-page .info-card.hl-tone-gold {
  border-left-color: var(--accent-gold);
  background-color: #fffcf5;
}

.hl-page .info-card.hl-tone-blue {
  border-left-color: var(--accent-blue);
  background-color: #fcfbf7;
}

.hl-page .huangli-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hl-page .huangli-item {
  flex: 1;
  min-width: 140px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.hl-page .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hl-page .label-yi {
  color: var(--color-yi);
}

.hl-page .label-ji {
  color: var(--color-ji);
}

.hl-page .huangli-item .content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.hl-page .guide-sections {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hl-page .guide-group {
  flex: 1;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  padding: 10px 12px;
  border-left: 3px solid #eee;
}

.hl-page .guide-group:nth-child(1) {
  border-left-color: var(--accent-purple);
}

.hl-page .guide-group:nth-child(2) {
  border-left-color: var(--color-ji);
}

.hl-page .guide-group:nth-child(3) {
  border-left-color: var(--accent-blue);
}

.hl-page .guide-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hl-page .guide-items p {
  margin: 0;
  padding: 2px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px dashed #f0f0f5;
}

.hl-page .guide-items p:last-child {
  border-bottom: none;
}

.hl-page .guide-items strong {
  font-weight: 500;
  color: #888;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hl-page .guide-card {
  border-left-color: var(--accent-purple);
}

.hl-page .luck-good {
  color: var(--color-yi);
  font-weight: 700;
}

.hl-page .luck-bad {
  color: var(--color-ji);
  font-weight: 700;
}

.hl-page .highlight-good {
  color: var(--accent-gold);
  font-weight: 600;
}

.hl-page .highlight-god {
  color: var(--accent-purple);
  font-weight: 600;
}

.hl-page .highlight-date {
  font-size: 1.05rem;
  color: var(--text-main);
}

.hl-page .highlight-buddha {
  color: #b8860b;
}

.hl-page .lunar-main-date .year {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.hl-page .lunar-main-date .month-day {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.hl-page .lunar-extra-info p {
  margin: 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.hl-page .yuexiang-card-content {
  font-size: 1.8rem;
  font-weight: 800;
  padding: 10px 0;
}

.hl-page .info-card p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hl-page .info-card p strong {
  color: var(--text-muted);
  margin-right: 6px;
}

/* —— 日历：日期操作与文化入口分层 —— */
.hl-day-page {
  padding: 32px 16px 48px;
}

.hl-day-page .hl-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.hl-day-page .hl-eyebrow {
  color: var(--accent-gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.hl-day-page .hl-day-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.hl-day-page .hl-day-intro {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.hl-day-page .hl-date-summary {
  text-align: right;
  line-height: 1.8;
}

.hl-day-page .hl-date-summary time {
  font-size: 1.2rem;
  font-weight: 600;
}

.hl-day-page .hl-week {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hl-day-page .hl-lunar-summary {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.hl-day-page .hl-lunar-summary span {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hl-day-page .hl-date-toolbar {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 20px;
  overflow: hidden;
  font-size: 0.85rem;
}

.hl-day-page .hl-date-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px;
}

.hl-day-page .hl-day-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #f5f0e6;
}

.hl-day-page .hl-day-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.hl-day-page .hl-day-switch .hl-today {
  background: #fffdf8;
  color: #805916;
  box-shadow: 0 1px 4px #a6782a1a;
  font-weight: 700;
}

.hl-day-page .hl-date-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hl-day-page .hl-date-form label {
  color: var(--text-muted);
  white-space: nowrap;
}

.hl-day-page .hl-date-form input {
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fffdf8;
  color: var(--text-main);
  font: inherit;
}

.hl-day-page .hl-date-form button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  background: #916920;
  color: white;
  white-space: nowrap;
}

.hl-day-page .hl-month-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #a6782a;
  border-radius: 6px;
  background: #fbf1d9;
  color: #805916;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(128, 89, 22, 0.08);
  transition: background-color 0.2s, border-color 0.2s;
}

.hl-day-page .hl-month-link:hover {
  background: #f5e5bd;
  border-color: #805916;
  color: #684711;
}

.hl-day-page .hl-month-link:focus-visible {
  outline: 2px solid #805916;
  outline-offset: 3px;
}

.hl-day-page .hl-explore-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 6px 16px;
  border-top: 1px solid var(--border-light);
  background: #f8f5ee;
}

.hl-day-page .hl-explore-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hl-day-page .hl-explore-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.hl-day-page .hl-date-toolbar a:hover {
  color: #805916;
  background: #eee7d8;
}

.hl-day-page .hl-date-form button:hover {
  background: #785619;
}

.hl-day-page a:focus-visible,
.hl-day-page button:focus-visible,
.hl-day-page input:focus-visible {
  outline: 2px solid #916920;
  outline-offset: 3px;
}

.hl-day-page .info-card {
  padding: 18px;
  border-left-width: 1px;
  border-radius: 8px;
}

.hl-day-page .info-card h2 {
  font-size: 0.95rem;
  color: #6e5836;
  margin-bottom: 14px;
}

.hl-day-page .huangli-item {
  padding: 16px;
}

.hl-day-page .label {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hl-day-page .huangli-item .content {
  line-height: 1.9;
}

.hl-day-page .guide-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hl-day-page .guide-group {
  min-width: 0;
}

.hl-day-page .jishi-location-input {
  min-width: 0;
}

@media (max-width: 640px) {
  .hl-day-page .hl-day-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hl-day-page .hl-date-summary {
    text-align: left;
  }

  .hl-day-page .hl-date-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .hl-day-page .hl-day-switch {
    grid-column: 1 / -1;
  }

  .hl-day-page .hl-day-switch a {
    flex: 1;
  }

  .hl-day-page .hl-date-form {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hl-day-page .hl-date-form label {
    width: 100%;
    font-size: 0.75rem;
  }

  .hl-day-page .hl-date-form input {
    flex: 1;
    width: 120px;
  }

  .hl-day-page .hl-month-link {
    align-self: end;
  }

  .hl-day-page .hl-explore-nav {
    gap: 4px 14px;
    padding: 8px 12px;
  }

  .hl-day-page .huangli-container {
    flex-direction: column;
  }

  .hl-day-page .guide-sections {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* —— 月历 —— */
.hl-page .calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-page .calendar-nav h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.hl-page .calendar-nav-sub {
  text-align: center;
  margin-bottom: 15px;
}

.hl-page .nav-button-subtle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #eee;
  display: inline-block;
}

.hl-page .nav-button-subtle:hover {
  background: #e0e0e0;
}

.hl-page .calendar-container {
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.hl-page .calendar-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.hl-page .calendar-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 6px;
  font-weight: 700;
}

.hl-page .calendar-table th.weekend {
  color: #ff3b30;
}

.hl-page .calendar-day {
  background: #f8f9fa;
  border-radius: 4px;
  height: 75px;
  vertical-align: top;
  border: 1px solid #eee;
  border-left: 3px solid #ddd;
  transition: all 0.2s;
  padding: 0;
}

.hl-page .calendar-day:hover {
  background: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hl-page .calendar-day a {
  display: flex;
  flex-direction: column;
  padding: 5px;
  height: 100%;
  min-height: 70px;
  text-decoration: none;
  color: var(--text-main);
  box-sizing: border-box;
}

.hl-page .calendar-day.empty {
  background: transparent;
  border: none;
}

.hl-page .calendar-day.today {
  border-left-color: var(--accent-blue);
  background: #fdfbe7;
  border-color: #e5dcb7;
}

.hl-page .calendar-day.has-special {
  border-left-color: var(--color-yi);
  background: #f0fff4;
}

.hl-page .calendar-day.weekend:not(.today) {
  border-left-color: #ff3b30;
}

.hl-page .solar-day {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.hl-page .lunar-info {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-all;
}

.hl-page .special-text {
  color: var(--color-yi);
}

.hl-page .ganzhi-day-info {
  font-size: 0.65rem;
  color: #999;
  margin-top: 2px;
}

.hl-page .tianshen-info {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: auto;
}

.hl-page .calendar-legend {
  margin-top: 15px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hl-page .legend-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.hl-page .legend-box.today-bg {
  background: #fdfbe7;
  border: 1px solid var(--accent-blue);
}

.hl-page .legend-box.special-bg {
  background: #f0fff4;
  border: 1px solid var(--color-yi);
}

@media (max-width: 768px) {
  .hl-page .calendar-grid {
    grid-template-columns: 1fr;
  }

  .hl-page .calendar-day {
    height: 65px;
  }

  .hl-page .solar-day {
    font-size: 0.95rem;
  }
}

/* 月历默认采用整月概览，详细信息按需展开。 */
.hl-month-page { padding: 14px 10px 24px; }
.hl-month-page .hl-inner { max-width: 1180px; }
.hl-month-page .hl-month-heading-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; }
.hl-month-page .hl-month-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 2px 16px;
}
.hl-month-page .hl-month-header h1 { font-size: 1.4rem; font-weight: 700; }
.hl-month-page .hl-month-header span { font-size: 0.8rem; color: var(--text-muted); }
.hl-month-page .calendar-nav {
  display: grid;
  grid-template-columns: auto minmax(120px, 200px) auto;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 0;
}
.hl-month-page .calendar-nav h2 { text-align: center; font-size: clamp(1rem, 3.5vw, 1.4rem); }
.hl-month-page .calendar-nav .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #805916;
  background: #fffdf8;
  border-color: #a6782a;
  box-shadow: 0 2px 4px rgba(128, 89, 22, 0.08);
}
.hl-month-page .calendar-nav .nav-button:hover { color: #684711; background: #fbf1d9; border-color: #805916; }
.hl-month-page .calendar-nav .nav-button:active { background: #f5e5bd; box-shadow: none; }
.hl-month-page .hl-month-picker { position: relative; text-align: center; }
.hl-month-page .hl-month-picker summary { cursor: pointer; list-style: none; padding: 4px 8px; border-radius: 6px; }
.hl-month-page .hl-month-picker summary::-webkit-details-marker { display: none; }
.hl-month-page .hl-month-picker summary > span { color: #6b562f; font-size: 0.75rem; }
.hl-month-page .hl-month-picker summary:hover { background: #fbf1d9; }
.hl-month-page .hl-month-picker form { position: absolute; z-index: 10; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: end; gap: 8px; width: 280px; padding: 14px; background: #fffdf8; border: 1px solid #a6782a; border-radius: 8px; box-shadow: 0 6px 20px rgba(80, 58, 20, 0.15); }
.hl-month-page .hl-month-picker label { flex: 1; min-width: 0; text-align: left; font-size: 0.8rem; }
.hl-month-page .hl-month-picker input,
.hl-month-page .hl-month-picker select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 6px; border: 1px solid #a6782a; border-radius: 4px; background: #fff; color: var(--text-main); font: inherit; }
.hl-month-page .hl-month-picker form .nav-button { min-height: 44px; padding: 8px 12px; }
.hl-month-page .nav-button-subtle { margin: 0; min-height: 44px; display: inline-flex; align-items: center; color: #57534b; background: transparent; }
.hl-month-page .nav-button-subtle:hover { background: #eee6d6; }
.hl-month-page .hl-month-today {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #805916;
  border-color: #805916;
  box-shadow: 0 2px 5px rgba(128, 89, 22, 0.16);
}
.hl-month-page .hl-month-today:hover { color: #fff; background: #684711; border-color: #684711; }
.hl-month-page .hl-month-events {
  padding: 6px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card);
  font-size: 0.85rem;
}
.hl-month-page .hl-month-events summary { cursor: pointer; padding: 4px 0; }
.hl-month-page .hl-events-count { margin-left: 8px; color: #6b562f; font-size: 0.8rem; }
.hl-month-page .hl-month-events > div { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; }
.hl-month-page .hl-month-events a { display: inline-flex; gap: 8px; padding: 4px 0; color: var(--color-yi); }
.hl-month-page .hl-month-events time { color: var(--text-muted); }
.hl-month-page .hl-month-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 10px; }
.hl-month-page .hl-month-shortcuts { display: flex; align-items: center; gap: 8px; }
.hl-month-page .hl-month-view-options { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #a6782a; border-radius: 7px; background: #f5efdf; }
.hl-month-page .hl-month-view-options button { min-height: 38px; padding: 6px 20px; border-radius: 4px; color: #6b562f; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.hl-month-page .hl-month-view-options button:hover { background: #eadbb8; }
.hl-month-page .hl-month-view-options button[aria-pressed="true"] { background: #805916; color: #fff; box-shadow: 0 1px 3px rgba(80, 58, 20, 0.15); }
.hl-month-page .hl-month-tools { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.hl-month-page .hl-month-tools > span { color: #646057; font-size: 0.8rem; }
.hl-month-page .hl-month-tools a { display: inline-flex; align-items: center; min-height: 44px; color: #6b562f; text-decoration: underline; text-underline-offset: 4px; }
.hl-month-page .hl-month-tools a:hover { color: #805916; background: #fbf1d9; }
.hl-month-page .hl-month-hint { font-size: 0.85rem; color: #57534b; margin: 6px 0; }
.hl-month-page .calendar-container { padding: 3px; margin-top: 4px; }
.hl-month-page .calendar-table { min-width: 0; border-spacing: 3px; }
.hl-month-page .calendar-table th { font-size: 0.9rem; padding: 6px 3px; }
.hl-month-page .calendar-day { background: #fcfaf5; border-left-width: 1px; border-radius: 4px; height: auto; }
.hl-month-page .calendar-day.has-special { background: #f2f7f0; }
.hl-month-page .calendar-day.today { background: #fbf1d9; border: 2px solid #a6782a; }
.hl-month-page .calendar-day a { padding: 6px; min-height: 84px; }
.hl-month-page .hl-cell-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.hl-month-page .hl-cell-week { display: none; }
.hl-month-page .solar-day { font-size: 1.2rem; line-height: 1.2; }
.hl-month-page .hl-today-tag { color: #fff; background: #805916; border-radius: 3px; padding: 2px 5px; font-size: 0.7rem; font-weight: 700; }
.hl-month-page .lunar-info { color: #57534b; font-size: 0.85rem; font-weight: 400; line-height: 1.5; word-break: normal; }
.hl-month-page .hl-cell-festival { color: var(--color-yi); font-size: 0.8rem; line-height: 1.5; }
.hl-month-page .hl-cell-festival:empty { display: none; }
.hl-month-page .tianshen-info { font-size: 0.8rem; line-height: 1.5; margin-top: 3px; }
.hl-month-page .hl-cell-almanac,
.hl-month-page .hl-cell-chong { display: none; }
.hl-month-page .calendar-container.hl-month-detailed .hl-cell-almanac,
.hl-month-page .calendar-container.hl-month-detailed .hl-cell-chong { display: block; }
.hl-month-page .calendar-container.hl-month-detailed .calendar-table { min-width: 900px; }
.hl-month-page .hl-cell-almanac { border-top: 1px solid var(--border-light); margin-top: 4px; padding-top: 4px; font-size: 0.85rem; line-height: 1.5; }
.hl-month-page .hl-cell-almanac p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 3em; margin: 0 0 4px; }
.hl-month-page .hl-cell-almanac span { font-weight: 700; margin-right: 5px; }
.hl-month-page .hl-cell-yi { color: var(--color-yi); }
.hl-month-page .hl-cell-ji { color: var(--color-ji); }
.hl-month-page .hl-cell-chong { font-size: 0.8rem; line-height: 1.5; color: #57534b; }
.hl-month-page .calendar-legend { margin-top: 8px; }
.hl-month-page a:focus-visible,
.hl-month-page button:focus-visible,
.hl-month-page input:focus-visible,
.hl-month-page select:focus-visible,
.hl-month-page summary:focus-visible,
.hl-month-page .calendar-container:focus-visible { outline: 2px solid #916920; outline-offset: 2px; }
@media (max-width: 900px) {
  .hl-month-page .hl-month-heading-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
}
@media (max-width: 640px) {
  .hl-month-page .hl-month-header span { display: none; }
  .hl-month-page .calendar-nav .nav-button { padding: 10px; gap: 5px; font-size: 0.85rem; }
  .hl-month-page .calendar-day a { padding: 4px; }
  .hl-month-page .hl-today-tag { font-size: 0.6rem; padding: 1px 3px; }
  .hl-month-page .calendar-day.today .hl-cell-date { flex-wrap: wrap; gap: 2px; }
  .hl-month-page .calendar-nav { grid-template-columns: auto minmax(100px, 160px) auto; gap: 4px; }
  .hl-month-page .hl-month-view-options button { min-height: 38px; padding: 6px 12px; }
  .hl-month-page .hl-month-toolbar { gap: 8px; }
  .hl-month-page .hl-month-tools { flex-basis: 100%; }
  .hl-month-page .lunar-info { font-size: 0.75rem; }
  .hl-month-page .tianshen-info { font-size: 0.75rem; }
  .hl-month-page .hl-cell-festival { font-size: 0.75rem; }
}

/* —— 吉时 SVG 时钟 —— */
.hl-page .jishi-clock-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hl-page .jishi-clock-wrapper {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 8px auto 0;
}

.hl-page .jishi-clock {
  width: 100%;
  height: auto;
  display: block;
}

.hl-page .jishi-sector {
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s;
}

.hl-page .jishi-sector.jishi-good {
  fill: #2D6A4F;
  opacity: 0.72;
}

.hl-page .jishi-sector.jishi-neutral {
  fill: #D5D0C5;
  opacity: 0.45;
}

.hl-page .jishi-sector:hover {
  opacity: 1;
  filter: brightness(1.12);
}

.hl-page .jishi-label {
  fill: #8A8478;
  font-family: 'Noto Serif SC', serif;
  pointer-events: none;
}

.hl-page .jishi-label-good {
  fill: #1B4332;
  font-weight: 800;
}

.hl-page .jishi-tooltip {
  display: none;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #FDFBF7;
  border: 1px solid #D4C5A0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(166, 120, 42, 0.15);
  white-space: nowrap;
  z-index: 10;
  font-family: 'Noto Serif SC', serif;
  pointer-events: none;
}

.hl-page .jishi-tip-good {
  color: #2D6A4F;
  font-weight: 700;
}

.hl-page .jishi-tip-neutral {
  color: #8A8478;
  font-weight: 700;
}

.hl-page .jishi-tip-detail {
  color: #888;
  font-size: 0.75rem;
}

/* —— 古法/现代表盘切换 —— */
.hl-page .jishi-dial-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hl-page .jishi-toggle-bar {
  display: flex;
  background: #f0ece2;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.hl-page .jishi-toggle-btn {
  border: none;
  background: transparent;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s;
  color: #8a8478;
  font-family: var(--font-sans);
}

.hl-page .jishi-toggle-btn.active {
  background: #fff;
  color: var(--accent-blue);
  box-shadow: 0 1px 6px rgba(166,120,42,0.18);
}

/* 地点输入区 */
.hl-page .jishi-location-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 240px;
}

.hl-page .jishi-location-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.hl-page .jishi-location-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  background: #fdfcf8;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.hl-page .jishi-location-input:focus {
  border-color: var(--accent-blue);
}

.hl-page .jishi-location-btn {
  background: var(--accent-gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hl-page .jishi-location-btn:hover {
  background: #9d6819;
}

/* 日出日落信息 */
.hl-page .jishi-sun-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}

/* 古法表盘 loading 状态 */
.hl-page .jishi-ancient-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* 两个表盘容器 */
#jishi-ancient-container,
#jishi-clock-container {
  width: 100%;
}
