/* =========================================================
   老黄历首页 · 内容站布局（参考 LE 黄历）
   白底 + 朱红点缀 + 信息密度
   ========================================================= */

.hl-home {
  --hl-red: #d92e2e;
  --hl-red-2: #b91c1c;
  --hl-red-soft: #fdecec;
  --hl-orange: #f97316;
  --hl-orange-soft: #fff1e6;
  --hl-green: #16a34a;
  --hl-green-soft: #e8f8ee;
  --hl-blue: #2563eb;
  --hl-gold: #c48a12;
  --hl-ink: #222;
  --hl-ink-2: #555;
  --hl-ink-3: #888;
  --hl-line: #e8e0d4;
  --hl-bg: #f7f3ec;
  --hl-card: #fff;
  --hl-radius: 12px;
  margin: 0;
  min-height: 100vh;
  color: var(--hl-ink);
  background:
    linear-gradient(180deg, #fff9f2 0%, var(--hl-bg) 28%, #f3ebe0 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
}

.hl-home a { text-decoration: none; color: inherit; }

/* ---------- 顶栏 ---------- */
.hl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hl-line);
  box-shadow: 0 6px 18px rgba(80, 50, 20, 0.06);
  backdrop-filter: blur(10px);
}

.hl-top__bar {
  background: linear-gradient(90deg, var(--hl-red-2), var(--hl-red), #e8590c);
  color: #fff8e8;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
}

.hl-top__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hl-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--hl-red), var(--hl-red-2));
  color: #fff;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(217, 46, 46, 0.28);
}

.hl-logo__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hl-logo__txt strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--hl-red-2);
}

.hl-logo__txt em {
  font-style: normal;
  font-size: 11px;
  color: var(--hl-ink-3);
  letter-spacing: 0.08em;
}

.hl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: 8px;
}

.hl-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--hl-ink-2);
  letter-spacing: 0.04em;
}

.hl-nav a:hover {
  background: var(--hl-red-soft);
  color: var(--hl-red);
}

.hl-nav a.is-active {
  background: var(--hl-red);
  color: #fff;
  font-weight: 600;
}

.hl-search {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.hl-search input {
  border: 1px solid var(--hl-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  min-height: 38px;
}

.hl-search button {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--hl-red);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
}

.hl-search button:hover { background: var(--hl-red-2); }

/* ---------- 主区 ---------- */
.hl-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

/* ---------- 宜忌条 ---------- */
.hl-yi-ji-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.hl-yi-panel,
.hl-ji-panel {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius);
  padding: 14px 16px 12px;
  box-shadow: 0 4px 14px rgba(80, 50, 20, 0.05);
}

.hl-yi-panel { border-top: 3px solid var(--hl-green); }
.hl-ji-panel { border-top: 3px solid var(--hl-red); }

.hl-yi-panel__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hl-yi-panel__hd strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-family: "Songti SC", "SimSun", serif;
}

.hl-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 800;
  font-size: 15px;
}

.hl-ico--yi { background: var(--hl-green); }
.hl-ico--ji { background: var(--hl-red); }

.hl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.hl-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hl-green-soft);
  color: var(--hl-green);
  border: 1px solid rgba(22, 163, 74, 0.22);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hl-tag:hover {
  background: var(--hl-green);
  color: #fff;
}

.hl-tag--ji {
  background: var(--hl-red-soft);
  color: var(--hl-red);
  border-color: rgba(217, 46, 46, 0.22);
}

.hl-tag--ji:hover {
  background: var(--hl-red);
  color: #fff;
}

.hl-mini-info {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--hl-line);
  font-size: 12px;
  color: var(--hl-ink-2);
  line-height: 1.75;
}

.hl-mini-info b {
  color: var(--hl-ink-3);
  margin-right: 8px;
  font-weight: 600;
}

/* ---------- 大日期 ---------- */
.hl-date-hero {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.hl-date-nav {
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  color: var(--hl-red);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(80, 50, 20, 0.05);
}

.hl-date-nav:hover {
  background: var(--hl-red-soft);
}

.hl-date-main {
  flex: 1;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
  border: 1px solid var(--hl-line);
  border-radius: 14px;
  padding: 14px 12px 16px;
  box-shadow: 0 6px 18px rgba(80, 50, 20, 0.06);
}

.hl-date-top {
  font-size: 15px;
  color: var(--hl-ink-2);
  letter-spacing: 0.12em;
}

.hl-date-num {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 96px;
  line-height: 1;
  font-weight: 800;
  color: var(--hl-red);
  margin: 2px 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hl-date-week {
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--hl-ink);
  font-family: "Songti SC", "SimSun", serif;
}

.hl-date-lunar {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hl-date-lunar strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--hl-red-2);
}

.hl-date-lunar span {
  font-size: 13px;
  color: var(--hl-ink-2);
  letter-spacing: 0.08em;
}

.hl-date-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--hl-ink-3);
}

.hl-date-meta span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #faf6f0;
  border: 1px solid var(--hl-line);
}

.hl-date-meta .is-jieqi {
  background: var(--hl-orange-soft);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--hl-orange);
  font-weight: 600;
}

/* ---------- 卡片 ---------- */
.hl-card {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius);
  padding: 14px 16px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(80, 50, 20, 0.05);
}

.hl-card__hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hl-line);
}

.hl-card__hd h2 {
  margin: 0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--hl-red-2);
}

.hl-card__hd a {
  margin-left: auto;
  color: var(--hl-red);
  font-size: 13px;
}

.hl-card__hd em {
  font-style: normal;
  font-size: 12px;
  color: var(--hl-ink-3);
}

/* ---------- 吉日入口 ---------- */
.hl-jiri {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.hl-jiri__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--hl-line);
  background: #fffaf5;
  transition: 0.15s ease;
}

.hl-jiri__item:hover {
  transform: translateY(-2px);
  border-color: var(--hl-red);
  background: var(--hl-red-soft);
}

.hl-jiri__item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--hl-red), var(--hl-red-2));
  color: #fff;
  font-style: normal;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  font-weight: 800;
}

.hl-jiri__item span {
  font-size: 12px;
  color: var(--hl-ink-2);
  letter-spacing: 0.04em;
}

/* ---------- 信息格 ---------- */
.hl-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hl-info {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #faf7f2;
  border: 1px solid var(--hl-line);
  font-size: 13px;
  line-height: 1.7;
}

.hl-info b {
  flex-shrink: 0;
  min-width: 4.2em;
  color: var(--hl-red-2);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hl-info span { color: var(--hl-ink-2); }

.hl-info--wide { grid-column: 1 / -1; }

/* ---------- 时辰表 ---------- */
.hl-hour-table-wrap { overflow-x: auto; }

.hl-hour-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.hl-hour-table th {
  text-align: left;
  padding: 8px 10px;
  background: #faf3ea;
  color: var(--hl-ink-2);
  border-bottom: 1px solid var(--hl-line);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hl-hour-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0e8dc;
}

.hl-hour-table tr:hover td { background: #fffaf5; }

.hl-mark {
  display: inline-block;
  min-width: 2.2em;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.hl-h-吉 .hl-mark {
  background: var(--hl-green-soft);
  color: var(--hl-green);
}

.hl-h-凶 .hl-mark {
  background: var(--hl-red-soft);
  color: var(--hl-red);
}

.hl-h-平 .hl-mark {
  background: #f3f4f6;
  color: var(--hl-ink-3);
}

/* ---------- 双栏 ---------- */
.hl-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

/* ---------- 月历 ---------- */
.hl-cal__week,
.hl-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hl-cal__week {
  margin-bottom: 4px;
}

.hl-cal__week span {
  text-align: center;
  font-size: 12px;
  color: var(--hl-ink-3);
  padding: 4px 0;
}

.hl-cal__grid a,
.hl-cal__grid .is-empty {
  min-height: 52px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid transparent;
  background: #faf7f2;
  color: var(--hl-ink);
}

.hl-cal__grid a:hover {
  border-color: var(--hl-red);
  background: var(--hl-red-soft);
}

.hl-cal__grid a b {
  font-size: 15px;
  line-height: 1.1;
  font-family: "Songti SC", "SimSun", serif;
}

.hl-cal__grid a i {
  font-style: normal;
  font-size: 10px;
  color: var(--hl-ink-3);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.hl-cal__grid .is-weekend { color: var(--hl-red); }
.hl-cal__grid .is-weekend i { color: var(--hl-red-2); }

.hl-cal__grid .is-today {
  background: linear-gradient(160deg, var(--hl-red), var(--hl-red-2));
  color: #fff;
  box-shadow: 0 6px 12px rgba(217, 46, 46, 0.22);
}

.hl-cal__grid .is-today i { color: rgba(255, 255, 255, 0.85); }

.hl-cal__grid .is-empty {
  background: transparent;
  border: none;
}

/* ---------- 节气 ---------- */
.hl-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hl-term {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #faf7f2;
  border: 1px solid var(--hl-line);
  font-size: 13px;
}

.hl-term .n {
  font-family: "Songti SC", "SimSun", serif;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hl-term .d {
  color: var(--hl-ink-3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
}

.hl-term.is-now {
  background: var(--hl-orange-soft);
  border-color: rgba(249, 115, 22, 0.35);
}

.hl-term.is-now .n { color: var(--hl-orange); }

/* ---------- 本周 ---------- */
.hl-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.hl-week__d {
  text-align: center;
  border-radius: 8px;
  padding: 8px 4px;
  border: 1px solid var(--hl-line);
  background: #faf7f2;
  color: var(--hl-ink);
}

.hl-week__d:hover {
  border-color: var(--hl-red);
  background: var(--hl-red-soft);
}

.hl-week__d .w {
  display: block;
  font-size: 11px;
  color: var(--hl-ink-3);
}

.hl-week__d .n {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.hl-week__d .l {
  display: block;
  font-size: 10px;
  color: var(--hl-ink-3);
}

.hl-week__d.is-weekend .n { color: var(--hl-red); }

.hl-week__d.is-today {
  background: linear-gradient(160deg, var(--hl-red), var(--hl-red-2));
  color: #fff;
  border-color: var(--hl-red-2);
}

.hl-week__d.is-today .w,
.hl-week__d.is-today .l { color: rgba(255, 255, 255, 0.85); }

/* ---------- 行动入口 ---------- */
.hl-act-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hl-line);
  background: #fffaf5;
  font-size: 13px;
  color: var(--hl-ink-2);
}

.hl-act:hover {
  border-color: var(--hl-red);
  background: var(--hl-red-soft);
  color: var(--hl-red);
}

.hl-act i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hl-red-soft);
  color: var(--hl-red);
  font-style: normal;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- 页脚 ---------- */
.hl-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--hl-ink-3);
  letter-spacing: 0.06em;
  margin: 10px 0 0;
}

.hl-foot {
  border-top: 1px solid var(--hl-line);
  padding: 20px 14px 28px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--hl-ink-3);
  font-size: 12px;
}

.hl-foot__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.hl-foot .links {
  display: flex;
  gap: 14px;
}

.hl-foot a:hover { color: var(--hl-red); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hl-jiri { grid-template-columns: repeat(4, 1fr); }
  .hl-cols { grid-template-columns: 1fr; }
  .hl-date-num { font-size: 76px; }
}

@media (max-width: 720px) {
  .hl-top__inner { gap: 10px; }
  .hl-nav { width: 100%; margin-left: 0; order: 3; }
  .hl-search { width: 100%; margin-left: 0; order: 4; }
  .hl-search input { flex: 1; }
  .hl-yi-ji-band { grid-template-columns: 1fr; }
  .hl-info-grid { grid-template-columns: 1fr; }
  .hl-info--wide { grid-column: auto; }
  .hl-jiri { grid-template-columns: repeat(4, 1fr); }
  .hl-week { grid-template-columns: repeat(4, 1fr); }
  .hl-date-nav { width: 34px; font-size: 22px; }
  .hl-date-num { font-size: 64px; }
  .hl-date-lunar strong { font-size: 18px; }
}

/* ---------- 事项吉凶 ---------- */
.hl-act-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-as {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hl-line);
  background: #faf7f2;
  font-size: 13px;
  color: var(--hl-ink-2);
}

.hl-as em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.hl-as--宜 {
  background: var(--hl-green-soft);
  border-color: rgba(22, 163, 74, 0.28);
  color: var(--hl-green);
}
.hl-as--宜 em {
  background: var(--hl-green);
  color: #fff;
}

.hl-as--忌 {
  background: var(--hl-red-soft);
  border-color: rgba(217, 46, 46, 0.28);
  color: var(--hl-red);
}
.hl-as--忌 em {
  background: var(--hl-red);
  color: #fff;
}

.hl-as--慎 {
  background: var(--hl-orange-soft);
  border-color: rgba(249, 115, 22, 0.28);
  color: var(--hl-orange);
}
.hl-as--慎 em {
  background: var(--hl-orange);
  color: #fff;
}

.hl-as--平 em {
  background: #e5e7eb;
  color: var(--hl-ink-3);
}

/* ---------- 三栏：月历 | 日期 | 当日 ---------- */
.hl-triple {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(280px, 1fr) minmax(280px, 340px);
  gap: 14px;
  margin-bottom: 12px;
  align-items: stretch;
}

.hl-triple__side {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius);
  padding: 12px 12px 14px;
  box-shadow: 0 4px 14px rgba(80, 50, 20, 0.05);
  min-width: 0;
}

.hl-side-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hl-line);
}

.hl-side-hd strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--hl-red-2);
}

.hl-side-hd a {
  margin-left: auto;
  font-size: 12px;
  color: var(--hl-red);
}

.hl-triple__center {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.hl-triple__center .hl-date-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hl-triple__cal .hl-cal__grid a,
.hl-triple__cal .hl-cal__grid .is-empty {
  min-height: 48px;
}

.hl-today-list li {
  min-height: 34px;
  align-items: center;
}

.hl-triple__center .hl-date-main {
  flex: 1;
  min-width: 0;
}

.hl-date-nav--float {
  align-self: center;
  flex-shrink: 0;
  width: 38px;
  height: 72px;
  display: grid;
  place-items: center;
}

/* 当日详情列表 */
.hl-today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hl-today-list li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  padding: 5px 8px;
  border-radius: 8px;
  background: #faf7f2;
  border: 1px solid transparent;
}

.hl-today-list li.wide {
  background: transparent;
  border: none;
  padding: 2px 8px;
}

.hl-today-list li b {
  flex-shrink: 0;
  min-width: 2.6em;
  color: var(--hl-red-2);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hl-today-list li span {
  color: var(--hl-ink-2);
  min-width: 0;
  word-break: break-all;
}

.hl-today-hours {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--hl-line);
}

.hl-today-hours .lab {
  font-size: 12px;
  color: var(--hl-red-2);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-weight: 700;
}

.hl-today-hours .hrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hl-today-hours .h-g {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hl-green-soft);
  color: var(--hl-green);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

@media (max-width: 1020px) {
  .hl-triple {
    grid-template-columns: 1fr;
  }

  .hl-triple__cal { order: 2; }
  .hl-triple__center { order: 1; }
  .hl-triple__today { order: 3; }
}

@media (max-width: 720px) {
  .hl-date-nav--float { width: 32px; height: 56px; font-size: 22px; }
}

/* 三栏比例微调：中心内容垂直居中，左右等高 */
.hl-triple__center .hl-date-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hl-triple__center .hl-date-meta {
  max-width: 420px;
}

.hl-triple__cal .hl-cal__grid a,
.hl-triple__cal .hl-cal__grid .is-empty {
  min-height: 48px;
}

.hl-today-list li {
  min-height: 34px;
  align-items: center;
}

@media (min-width: 1100px) {
  .hl-triple {
    grid-template-columns: 320px 1fr 340px;
  }
}

/* ---------- 两栏：左日历 | 右今日详情 ---------- */
.hl-duo {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  align-items: stretch;
}

.hl-duo__left,
.hl-duo__right {
  min-width: 0;
}

.hl-cal--lg .hl-cal__grid a,
.hl-cal--lg .hl-cal__grid .is-empty {
  min-height: 58px;
}

.hl-cal--lg .hl-cal__grid a b {
  font-size: 17px;
}

.hl-today-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf3, #fff6ea);
  border: 1px solid var(--hl-line);
}

.hl-today-hero__mid {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.hl-today-hero .hl-date-num {
  font-size: 72px;
  margin: 0;
}

.hl-today-hero .hl-date-lunar {
  margin-top: 6px;
}

.hl-date-meta--left {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.hl-today-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hl-today-list--grid li.wide {
  grid-column: 1 / -1;
}

.hl-today-hours .h-g {
  padding: 5px 10px;
}

@media (max-width: 960px) {
  .hl-duo {
    grid-template-columns: 1fr;
  }

  .hl-duo__left { order: 1; }
  .hl-duo__right { order: 2; }
}

@media (max-width: 560px) {
  .hl-today-list--grid {
    grid-template-columns: 1fr;
  }

  .hl-today-hero .hl-date-num {
    font-size: 56px;
  }
}

/* 左栏：月历下活动吉凶，标签更紧凑 */
.hl-duo__left .hl-act-status {
  gap: 6px;
}

.hl-duo__left .hl-as {
  padding: 5px 10px;
  font-size: 12px;
}

.hl-duo__left .hl-as em {
  font-size: 10px;
  padding: 0 5px;
}

/* 两栏防错位：左栏纵向堆叠，卡片不撑破容器 */
.hl-duo__left,
.hl-duo__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.hl-duo .hl-stack-card {
  margin-bottom: 0 !important;
  height: auto !important;
  flex: 0 0 auto;
}

.hl-duo__left .hl-card:first-child {
  flex: 1 1 auto;
}

.hl-duo__right .hl-stack-card {
  flex: 1 1 auto;
}

/* 左栏活动卡固定在下方，不与后续区块重叠 */
.hl-duo__left .hl-card:last-child {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* 吉日查询与后续区块保持间距 */
.hl-jiri {
  position: relative;
  z-index: 0;
}

/* 标题避免重影/挤压 */
.hl-card__hd h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 长标题减少字距，避免字形叠压 */
.hl-card__hd h2 {
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 左栏吉日查询：两行四列紧凑排布 */
.hl-jiri--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hl-jiri--compact .hl-jiri__item {
  padding: 10px 4px;
  gap: 4px;
}

.hl-jiri--compact .hl-jiri__item i {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.hl-jiri--compact .hl-jiri__item span {
  font-size: 11px;
}

/* 两栏等高对齐 */
.hl-duo {
  align-items: stretch;
}

.hl-duo__left,
.hl-duo__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-width: 0;
}

.hl-duo__left > .hl-card:first-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hl-duo__left > .hl-card:first-child .hl-cal {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hl-duo__left > .hl-card:first-child .hl-cal__grid {
  flex: 1 1 auto;
  align-content: stretch;
}

/* 月历格子可拉伸填满 */
.hl-duo__left .hl-cal__grid a,
.hl-duo__left .hl-cal__grid .is-empty {
  min-height: 0;
  height: 100%;
}

/* 左栏吉日卡：占满剩余高度，与右栏底边齐 */
.hl-duo__left > .hl-card:last-child {
  flex: 0 0 auto;
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 140px;
}

.hl-duo__left .hl-jiri--compact {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  align-content: stretch;
}

.hl-duo__left .hl-jiri--compact .hl-jiri__item {
  height: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
}

.hl-duo__left .hl-jiri--compact .hl-jiri__item i {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.hl-duo__left .hl-jiri--compact .hl-jiri__item span {
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 右栏卡片同样撑满 */
.hl-duo__right > .hl-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hl-duo__right .hl-today-hours {
  margin-top: auto;
}

/* 底边收口一致 */
.hl-duo__left > .hl-card,
.hl-duo__right > .hl-card {
  border-radius: 12px;
  margin-bottom: 0;
}

/* 内页页签：与首页红白风一致 */
.hl-home .mode-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hl-line);
  background: #fffaf5;
  color: var(--hl-ink-2);
  font-size: 13px;
  text-decoration: none;
}

.hl-home .mode-tabs a:hover {
  border-color: var(--hl-red);
  color: var(--hl-red);
  background: var(--hl-red-soft);
}

.hl-home .mode-tabs a.is-active {
  background: var(--hl-red);
  border-color: var(--hl-red);
  color: #fff;
  font-weight: 600;
}

.hl-home .form-row label {
  color: var(--hl-ink-2);
  font-size: 13px;
}

.hl-home .form-row input,
.hl-home .form-row select {
  border: 1px solid var(--hl-line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
  background: #fff;
}

.hl-home .btn {
  background: var(--hl-red);
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 10px 18px;
  min-height: 40px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hl-home .btn:hover { background: var(--hl-red-2); }

.hl-home .btn-ghost {
  background: #fffaf5;
  color: var(--hl-ink-2);
  border: 1px solid var(--hl-line);
}

.hl-home .btn-ghost:hover {
  background: var(--hl-red-soft);
  color: var(--hl-red);
}

.hl-home .date-nav .nav-btn {
  background: #fffaf5;
  border: 1px solid var(--hl-line);
  color: var(--hl-ink-2);
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 13px;
}

.hl-home .date-nav .nav-btn:hover {
  border-color: var(--hl-red);
  color: var(--hl-red);
}

.hl-home .date-nav .cur {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--hl-red-2);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hl-home .tips {
  background: #faf7f2;
  border: 1px solid var(--hl-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}

.hl-home .tips h3 {
  margin: 0 0 6px;
  color: var(--hl-red-2);
  letter-spacing: 0.12em;
  font-family: "Songti SC", "SimSun", serif;
}

.hl-home .tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--hl-ink-2);
  font-size: 13px;
  line-height: 1.9;
}

/* 月历格子：固定行结构，避免建除/农历把格子撑歪 */
.hl-cal__grid a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 6px 2px;
  text-align: center;
  overflow: hidden;
}

.hl-cal__grid a b {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  flex: 0 0 auto;
  width: 100%;
}

.hl-cal__grid a i {
  font-style: normal;
  font-size: 10px;
  line-height: 1.25;
  color: var(--hl-ink-3);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  padding: 0 1px;
}

/* 建除：小标签，不要再放大成标题 */
.hl-cal__grid a em.jc,
.hl-cal__grid a em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--hl-red);
  width: 100%;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
}

.hl-cal--lg .hl-cal__grid a {
  min-height: 78px;
  max-height: 86px;
}

.hl-cal--lg .hl-cal__grid a b {
  font-size: 18px;
}

.hl-cal--lg .hl-cal__grid a i {
  font-size: 11px;
}

.hl-cal--lg .hl-cal__grid a em.jc {
  font-size: 12px;
  color: var(--hl-ink-2);
}

.hl-cal__grid .is-today em.jc,
.hl-cal__grid .is-today em {
  color: rgba(255, 255, 255, 0.9);
}

.hl-cal__grid .is-today i {
  color: rgba(255, 255, 255, 0.8);
}

/* 周标题对齐 */
.hl-cal__week {
  margin-bottom: 6px;
}

.hl-cal__week span {
  text-align: center;
  font-size: 12px;
  color: var(--hl-ink-3);
}

/* =========================================================
   时辰吉凶详表（择吉老黄历 · 13 列宽表）
   ========================================================= */
.hl-sc-card { margin-top: 16px; }
.hl-sc-card .hl-card__hd { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.hl-sc-card .hl-card__hd em { font-style:normal; font-size:12px; color:#999; }
.hl-sc-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; padding:12px 14px 4px; }
.hl-sc-table { width:100%; min-width:1180px; border-collapse:collapse; table-layout:fixed; font-size:12px; line-height:1.5; color:#3a3226; }
.hl-sc-table th, .hl-sc-table td { border:1px solid #e5dcc8; padding:6px 4px; text-align:center; vertical-align:middle; word-break:break-all; }
.hl-sc-table thead th { background:#8a8f98; color:#fff; font-weight:600; padding:8px 4px; letter-spacing:.5px; }
.hl-sc-table thead th.is-late { background:#6f757f; }
.hl-sc-rowhd { width:52px; background:#efe9db; color:#7a6a48; font-weight:600; white-space:nowrap; }
.hl-sc-time { color:#6b6152; font-size:11px; white-space:nowrap; }
.hl-sc-gz { font-weight:600; color:#8a2e2e; }
.hl-sc-god { color:#7a6a48; font-size:11px; }
.hl-sc-yi-row td, .hl-sc-ji-row td { text-align:left; padding:7px 6px; }
.hl-sc-yi span { display:inline-block; background:var(--hl-green-soft); color:#166534; border-radius:3px; padding:1px 5px; margin:1px 2px 1px 0; font-size:11px; white-space:nowrap; }
.hl-sc-ji span { display:inline-block; background:var(--hl-red-soft); color:#b91c1c; border-radius:3px; padding:1px 5px; margin:1px 2px 1px 0; font-size:11px; white-space:nowrap; }
.hl-sc-yi.is-po, .hl-sc-ji.is-po { color:#b91c1c; font-weight:600; text-align:center; }
.hl-sc-chong { color:#8a5a1e; }
.hl-sc-sha { color:#8a5a1e; }
.hl-sc-shichong { color:#6b6152; font-size:11px; }
.hl-sc-luck .hl-mark { display:inline-block; min-width:24px; padding:1px 6px; border-radius:10px; font-size:11px; font-weight:600; }
.hl-sc-table tr:hover td { background:#fffaf3; }
.hl-sc-note { margin:10px 14px 14px; font-size:12px; color:#9a8e78; line-height:1.7; }
@media (max-width:640px){
  .hl-sc-wrap { padding:8px 8px 2px; }
  .hl-sc-table { font-size:11px; }
  .hl-sc-card .hl-card__hd em { display:none; }
}
