/*! lulu 日历 · 100% 移植自 Astraga web/assets/css/style.css 的全部日历规则
    用完整规则块解析提取，保证括号平衡；通用类已限定在 #hlScope 内 */
#hlScope {
  /* 声明深色主题：阻止华为浏览器/鸿蒙 WebView/安卓 Chrome 的 Force Dark
     把深色背景上的浅色文字强制反转成黑色（2026-07-31 鸿蒙黑字事故） */
  
  --bg-0: #070b24;
  --bg-1: #0d1136;
  --bg-2: #1a1147;
  --gold: #f5d76e;
  --gold-soft: #e8c06a;
  --blue: #6ec3f4;
  --violet: #8a7dff;
  --purple: #b07dff;
  --text: #eef2ff;
  --muted: #a7adda;
  --line: rgba(180, 190, 255, 0.14);
  --glass: rgba(28, 30, 70, 0.45);
  --glass-strong: rgba(30, 32, 78, 0.72);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --maxw: 1240px;
}

@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.08); } }

#hlScope .section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 110px 32px; }

#hlScope .section-head { text-align: center; margin-bottom: 56px; }

#hlScope .section-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  color: #fff;   /* 兜底：-webkit-text-fill-color 失效时不至于黑字/透明 */
  background: linear-gradient(120deg, #fff 20%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

#hlScope .section-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

#hlScope .view { display: none; }

#hlScope .view.active { display: block; animation: viewIn .45s ease; }

@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }

#hlScope .toast {
  position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-80px);
  z-index: 2000; background: var(--glass-strong); border: 1px solid var(--gold);
  color: var(--text); padding: 13px 26px; border-radius: 999px; font-size: 14px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow); opacity: 0; transition: all .4s;
}

#hlScope .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

#hlScope .xp-section-title { font-size: 14px; color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

#hlScope .xp-section-title::before { content: "✦"; }

#hlScope .ph-orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; color: var(--gold); border: 1px dashed rgba(245,215,110,0.45); animation: pulse 4s ease-in-out infinite; }

#hlScope .ft-moon-emoji { font-size: 22px; }

#hlScope .ft-moon-text { color: var(--muted); font-size: 13.5px; letter-spacing: .5px; }

@media (max-width: 560px) {
.xp-form, .xp-result, .xp-saved, .ft-card, .ft-glance, .ft-hero, .sv-panel, .sv-stage, .wnl-hero {
    border-radius: 18px;
  }
.ft-sky-slot .sv-panel, .wnl-tb, .astro-item, .wnl-yiji-col, .wnl-rel-card {
    border-radius: 14px;
  }
#hlScope .xp-section-title { font-size: 15px; margin: 22px 0 10px; }
}

@media (max-width: 600px) {
#hlScope .section { padding: 70px 18px; }
}

#hlScope .subnav {
  display: flex; justify-content: center; gap: 6px;
  margin: 0 auto; padding: 74px 16px 0;
}

#hlScope .subnav a {
  padding: 7px 20px; font-size: 14px; color: var(--muted);
  border-radius: 999px; border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}

#hlScope .subnav a:hover { color: var(--text); }

#hlScope .subnav a.active, #hlScope .charttabs a.active, .msg-tab.active {
  color: var(--gold); background: none; border-color: transparent;
  position: relative;
}

#hlScope .subnav a.active::after, #hlScope .charttabs a.active::after, .msg-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #ffe9a8);
}

#hlScope .charttabs { display: flex; justify-content: center; gap: 6px; padding: 14px 16px 0; }

#hlScope .charttabs a {
  padding: 6px 16px; font-size: 13px; color: var(--muted);
  border: none;
  transition: color .2s;
}

#hlScope .charttabs a:hover { color: var(--text); }

.wnl-wrap { max-width: 920px; margin: 0 auto; }

.wnl-loading { text-align: center; padding: 60px 0; }

.wnl-cal { border-radius: var(--radius); background: var(--glass-strong);
  border: 1px solid var(--line); padding: 14px 16px 10px; margin-bottom: 16px;
  box-shadow: var(--shadow); }

.wnl-cal-head { display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 10px; }

.wnl-cal-title { font-size: 16px; font-weight: 600; color: var(--text);
  padding: 2px 10px; border-radius: 8px; cursor: pointer; }

.wnl-cal-title:hover { background: rgba(245, 215, 110, .10); }

.wnl-cal-btn { width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 14px; line-height: 1; }

.wnl-cal-btn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }

.wnl-cal-btn:disabled { opacity: .28; cursor: not-allowed; }

.wnl-cal-todaybtn { width: auto; padding: 0 10px; font-size: 12px; margin-left: 4px; }

.wnl-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }

.wnl-cal-week span { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }

.wnl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.wnl-cal-cell { border-radius: 10px; padding: 6px 2px 5px; text-align: center;
  cursor: pointer; border: 1px solid transparent; min-height: 46px; transition: .15s; }

.wnl-cal-cell:hover { background: rgba(255, 255, 255, .05); }

.wnl-cal-cell b { display: block; font-size: 15px; line-height: 1.2; color: var(--text); }

.wnl-cal-cell i { display: block; font-style: normal; font-size: 10px; color: var(--muted);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wnl-cal-empty { cursor: default; }

.wnl-cal-empty:hover { background: transparent; }

.wnl-cal-wk b, .wnl-cal-wk i { color: #ff9a9a; }

.wnl-cal-jieqi { color: var(--gold) !important; }

.wnl-cal-fest { color: #ff9a9a !important; }

.wnl-cal-today { background: rgba(245, 215, 110, .14); border-color: var(--gold); }

.wnl-cal-today b { color: var(--gold); }

.wnl-cal-sel { background: rgba(176, 125, 255, .18); border-color: var(--purple); }

.wnl-cal-foot { margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }

.wnl-cal-foot-meta { line-height: 1.8; }

.wnl-cal-legend { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 18px; margin-top: 6px; }

.wnl-cal-legend-item { display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; line-height: 1.7; white-space: nowrap; }

.wnl-cal-legend-item b { color: var(--text); font-weight: 600; }

.wnl-cal-legend-item.is-plain { color: #7d84a3; }

@media (max-width: 560px) {
.wnl-cal-legend { flex-direction: column; align-items: flex-start; gap: 5px;
    text-align: left; padding-left: 6px; }
.wnl-cal-legend-item { font-size: 11.5px; }
.wnl-cal-foot { text-align: left; }
.wnl-cal-foot-meta { font-size: 11px; padding-left: 6px; }
}

.wnl-tag-fest { color: var(--gold); border-color: rgba(245, 215, 110, .45); }

.wnl-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 18px; }

.wnl-arrow { width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--gold);
  font-size: 22px; line-height: 1; transition: .2s; }

.wnl-arrow:hover { background: rgba(245, 215, 110, .12); border-color: var(--gold); }

.wnl-navdate { text-align: center; min-width: 230px; }

.wnl-navdate strong { display: block; font-size: 18px; color: var(--text); }

.wnl-navdate span { font-size: 12px; color: var(--muted); }

.wnl-backtoday { text-align: center; margin: -8px 0 14px; }

.wnl-backtoday a { color: var(--gold); font-size: 12px; text-decoration: none; }

.wnl-hero { display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  border-radius: var(--radius); background: var(--glass-strong);
  border: 1px solid var(--line); box-shadow: var(--shadow); }

.wnl-hero-day { flex: 0 0 auto; text-align: center; }

.wnl-hero-day b { display: block; font-size: 46px; line-height: 1; color: var(--gold); }

.wnl-hero-day span { font-size: 12px; color: var(--muted); }

.wnl-hero-meta { flex: 1 1 auto; min-width: 0; }

.wnl-hero-lunar { font-size: 20px; color: var(--text); margin-bottom: 4px; }

.wnl-hero-gz { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.wnl-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.wnl-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03); }

.wnl-tag-jieqi { color: var(--blue); border-color: rgba(110, 195, 244, .4); }

.wnl-tag-good { color: #7ee0a8; border-color: rgba(126, 224, 168, .4); }

.wnl-tag-bad { color: #ff9a9a; border-color: rgba(255, 154, 154, .4); }

.wnl-yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px;
  align-items: start; }

.wnl-yiji-col { padding: 14px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); }

.wnl-yi.wnl-yiji-col { border-color: rgba(126, 224, 168, .22); background: rgba(126, 224, 168, .045); }

.wnl-ji.wnl-yiji-col { border-color: rgba(255, 154, 154, .22); background: rgba(255, 154, 154, .04); }

.wnl-yiji-head { font-size: 15px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px; }

.wnl-yiji-head::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  flex: 0 0 auto; background: currentColor; box-shadow: 0 0 8px currentColor; }

.wnl-yi .wnl-yiji-head { color: #7ee0a8; }

.wnl-ji .wnl-yiji-head { color: #ff9a9a; }

.wnl-yiji-body { display: flex; flex-wrap: wrap; gap: 6px; }

.wnl-yiji-item { font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); color: var(--text); }

.wnl-yi .wnl-yiji-item { background: rgba(126, 224, 168, .10); }

.wnl-ji .wnl-yiji-item { background: rgba(255, 154, 154, .10); }

.wnl-yiji-none { font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
.wnl-yiji { gap: 10px; margin: 14px 0 18px; }
.wnl-yiji-col { padding: 12px 12px; border-radius: 14px; }
.wnl-yiji-head { font-size: 14px; margin-bottom: 8px; }
.wnl-yiji-item { font-size: 12px; padding: 4px 9px; }
.wnl-cal-cell i { font-size: 10.5px; }
}

.wnl-shichen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }

.wnl-sc { padding: 10px 6px; border-radius: 12px; text-align: center; border: 1px solid var(--line); }

.wnl-sc-good { background: rgba(126, 224, 168, .08); border-color: rgba(126, 224, 168, .28); }

.wnl-sc-bad { background: rgba(255, 154, 154, .06); border-color: rgba(255, 154, 154, .20); }

.wnl-sc-name { font-size: 13px; font-weight: 600; color: var(--text); }

.wnl-sc-star { font-size: 11px; color: var(--muted); margin: 2px 0; }

.wnl-sc-gz { font-size: 11px; color: var(--gold-soft); }

.wnl-sc-range { font-size: 9px; color: var(--muted); white-space: nowrap; letter-spacing: -.2px; }

.wnl-sc-label { font-size: 11px; margin-top: 2px; }

.wnl-sc-good .wnl-sc-label { color: #7ee0a8; }

.wnl-sc-bad .wnl-sc-label { color: #ff9a9a; }

.wnl-shensha { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.wnl-ss-row { display: flex; align-items: flex-start; gap: 12px; }

.wnl-ss-label { flex: 0 0 68px; font-size: 12px; color: var(--muted); padding-top: 3px; }

.wnl-ss-list { display: flex; flex-wrap: wrap; gap: 6px; }

.wnl-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }

.wnl-chip-good { color: #7ee0a8; border-color: rgba(126, 224, 168, .35); }

.wnl-chip-bad { color: #ff9a9a; border-color: rgba(255, 154, 154, .35); }

.wnl-chip-none { color: var(--muted); }

.wnl-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }

.wnl-kv { display: flex; gap: 8px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }

.wnl-kv-k { flex: 0 0 76px; color: var(--muted); }

.wnl-kv-v { color: var(--text); }

.wnl-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }

@media (max-width: 760px) {
.wnl-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
.wnl-yiji { grid-template-columns: 1fr; }
.wnl-detail { grid-template-columns: 1fr; }
.wnl-navdate { min-width: 0; }
.wnl-ss-row { flex-direction: column; gap: 6px; }
.wnl-ss-label { flex: none; padding-top: 0; }
}

.wnl-xiu { margin-bottom: 22px; }

.wnl-xiu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

.wnl-xiu-head b { font-size: 18px; color: var(--text); }

.wnl-xiu-song { font-size: 12px; line-height: 1.9; color: var(--muted);
  padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }

.wnl-tlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.wnl-trow { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid var(--line); font-size: 12px; }

.wnl-trow-good { background: rgba(126, 224, 168, .07); border-color: rgba(126, 224, 168, .22); }

.wnl-trow-bad { background: rgba(255, 154, 154, .05); border-color: rgba(255, 154, 154, .18); }

.wnl-tname { flex: 0 0 104px; color: var(--text); font-weight: 600; }

.wnl-tname i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }

.wnl-tgz { flex: 0 0 42px; color: var(--gold-soft); }

.wnl-tstar { flex: 0 0 56px; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); text-align: center; }

.wnl-tyiji { flex: 1 1 auto; color: var(--muted); line-height: 1.7;
  display: flex; flex-wrap: wrap; gap: 2px 12px; }

@media (max-width: 560px) {
.wnl-tyiji { flex-direction: column; gap: 3px; }
.wnl-ty-part { display: block; }
}

.wnl-tyiji b { color: var(--text); font-weight: 600; }

.wnl-sources { display: flex; flex-direction: column; gap: 0; margin-bottom: 10px; }

.wnl-src-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.75;
  padding: 7px 0; border-bottom: 1px dashed var(--line); }

.wnl-src-row b { flex: 0 0 84px; color: var(--gold-soft); font-weight: 600; }

.wnl-src-row span { flex: 1 1 auto; color: var(--muted); }

.wnl-src { font-size: 11px; color: var(--muted); }

@media (max-width: 760px) {
.wnl-trow { flex-wrap: wrap; gap: 8px; }
.wnl-tname { flex: 0 0 82px; }
.wnl-tyiji { flex: 1 1 100%; }
.wnl-src-row { flex-direction: column; gap: 2px; }
.wnl-src-row b { flex: none; }
.wnl-cal { padding: 10px 8px 8px; }
.wnl-cal-title { font-size: 14px; padding: 2px 6px; }
.wnl-cal-cell { min-height: 40px; padding: 4px 1px; }
.wnl-cal-cell b { font-size: 13px; }
.wnl-cal-cell i { font-size: 10.5px; letter-spacing: -.3px; }
.wnl-cal-grid, .wnl-cal-week { gap: 2px; }
}

.wnl-cal-cell { position: relative; }

.wnl-cal-dot { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px;
  border-radius: 50%; background: #ff8a8a; box-shadow: 0 0 5px rgba(255, 138, 138, .65); }

.wnl-cal-dot-inline { position: static; display: inline-block; vertical-align: 1px;
  margin: 0 3px; }

.wnl-cal-dot-2 { background: #ffbe6b; box-shadow: 0 0 5px rgba(255, 190, 107, .60); }

.wnl-cal-dot-good { background: #7ee0a8; box-shadow: 0 0 5px rgba(126, 224, 168, .60); }

.wnl-tb-lv { font-size: 10px; padding: 0 6px; border-radius: 999px; color: #ffb4b4;
  border: 1px solid rgba(255, 154, 154, .5); background: rgba(255, 154, 154, .10); }

@keyframes wnlNow {
  0%, 100% { border-color: rgba(245, 215, 110, .40); box-shadow: 0 0 0 0 rgba(245, 215, 110, 0); }
  50%      { border-color: rgba(245, 215, 110, 1);   box-shadow: 0 0 14px 2px rgba(245, 215, 110, .38); }
}

.wnl-trow-now { animation: wnlNow 1.8s ease-in-out infinite; }

.wnl-now { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; font-weight: 400; font-style: normal; color: #070b24; background: var(--gold);
  vertical-align: 1px; }

.wnl-taboos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.wnl-tb { padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); }

.wnl-tb-ji { border-color: rgba(255, 154, 154, .30); background: rgba(255, 154, 154, .06); }

.wnl-tb-yi { border-color: rgba(126, 224, 168, .30); background: rgba(126, 224, 168, .06); }

.wnl-tb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

.wnl-tb-name { font-size: 14px; font-weight: 600; color: var(--text); }

.wnl-tb-kind { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }

.wnl-tb-ji .wnl-tb-kind { color: #ff9a9a; border-color: rgba(255, 154, 154, .45); }

.wnl-tb-yi .wnl-tb-kind { color: #7ee0a8; border-color: rgba(126, 224, 168, .45); }

.wnl-tb-what { font-size: 13px; color: var(--text); }

.wnl-tb-src { font-size: 11px; line-height: 1.75; color: var(--muted); }

.wnl-tb-none { font-size: 12px; color: var(--muted); padding: 8px 0; }

.wnl-sx { margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, .22); background: rgba(245, 215, 110, .05); }

.wnl-sx-head { font-size: 13px; line-height: 1.9; color: var(--text); margin-bottom: 8px; }

.wnl-sx-head b { color: var(--gold-soft); }

.wnl-sx-today { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.wnl-sx-badge { font-size: 13px; font-weight: 600; color: #070b24; background: var(--gold);
  border-radius: 999px; padding: 3px 12px; letter-spacing: .5px; }

.wnl-sx-zx { font-size: 11px; color: #ffbe6b; border: 1px solid rgba(255, 190, 107, .45);
  background: rgba(255, 190, 107, .10); border-radius: 999px; padding: 2px 9px; }

.wnl-sx-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }

.wnl-sxc { padding: 7px 6px; border-radius: 11px; text-align: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); min-width: 0; }

.wnl-sxc span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .5px; }

.wnl-sxc b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wnl-sxc.is-good { border-color: rgba(126, 224, 168, .28); background: rgba(126, 224, 168, .07); }

.wnl-sxc.is-good b { color: #7ee0a8; }

.wnl-sxc.is-bad { border-color: rgba(255, 154, 154, .30); background: rgba(255, 154, 154, .07); }

.wnl-sxc.is-bad b { color: #ff9a9a; }

.wnl-sxc.is-warn { border-color: rgba(255, 190, 107, .28); background: rgba(255, 190, 107, .06); }

.wnl-sxc.is-warn b { color: #ffbe6b; }

@media (max-width: 430px) {
.wnl-sx-cells { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wnl-sxc b { font-size: 12.5px; }
}

.wnl-sx-hl { color: #ff9a9a; }

.wnl-sx-scenes { display: flex; flex-direction: column; gap: 4px; }

.wnl-sx-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.8; }

.wnl-sx-row b { flex: 0 0 76px; color: var(--gold-soft); font-weight: 600; }

.wnl-sx-row span { flex: 1 1 auto; color: var(--muted); }

.wnl-sx-pairs { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 11px; line-height: 1.9; color: var(--muted); }

.wnl-sx-tip { margin-top: 4px; font-size: 11px; color: var(--muted); }

.wnl-sx-good { color: #7ee0a8; }

#hlScope .moon-svg { display: block; }

#hlScope .ft-moon-shape { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: middle; }

#hlScope .ft-moon-rs { font-style: normal; font-size: 12px; color: var(--muted); opacity: .9; }

.wnl-moon { display: inline-flex; align-items: center; margin: 0 6px; vertical-align: -4px; }

.wnl-moon-rs { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }

@media (min-width: 1240px) {
#view-fortune .section, #view-huangli .section, #view-xingpan .section, #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 780px;
  }
}

@media (min-width: 1600px) {
#view-fortune .section, #view-huangli .section, #view-xingpan .section, #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 816px;
  }
}

@media (min-width: 1920px) {
#view-fortune .section, #view-huangli .section, #view-xingpan .section, #view-hepan .section, #view-wanxiang .section, #view-home .section.fortune {
    max-width: 840px;
  }
}

.wnl-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }

.wnl-toggle-ic { font-size: 11px; font-weight: 400; color: var(--gold-soft); opacity: .85; }

.wnl-rel-title { font-size: 11px; color: var(--gold-soft); margin-bottom: 8px; }

.wnl-rel-row { padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }

.wnl-rel-row:last-of-type { border-bottom: none; }

.wnl-rel-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.wnl-rel-key { font-size: 12px; font-weight: 600; }

.wnl-rel-kind { font-size: 11px; padding: 0 6px; border-radius: 5px; border: 1px solid; }

.wnl-rel-good { color: #7ee0a8; }

.wnl-rel-bad { color: #ff9a9a; }

.wnl-rel-kind.wnl-rel-good { border-color: rgba(126, 224, 168, .45); }

.wnl-rel-kind.wnl-rel-bad { border-color: rgba(255, 154, 154, .45); }

.wnl-rel-note { flex: 1 1 190px; font-size: 11px; color: var(--muted); }

.wnl-rel-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.wnl-rel-item { font-size: 11px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--muted); }

.wnl-rel-today { color: #070b24; background: var(--gold); border-color: var(--gold);
  font-weight: 600; }

@media (max-width: 760px) {
.wnl-sx-row { flex-direction: column; gap: 1px; }
.wnl-sx-row b { flex: none; }
}

.wnl-gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-bottom: 10px; }

.wnl-gloss-group { min-width: 0; }

.wnl-gloss-group h4 { font-size: 12px; font-weight: 600; color: var(--gold-soft);
  margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }

.wnl-gloss-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.75; padding: 3px 0; }

.wnl-gloss-row b { flex: 0 0 74px; color: var(--text); font-weight: 600; }

.wnl-gloss-row span { flex: 1 1 auto; color: var(--muted); }

.wnl-gloss-wide { grid-column: 1 / -1; }

.wnl-rel-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .02); }

.wnl-rel-card .wnl-sx-tip { margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--muted); }

@media (max-width: 760px) {
.wnl-gloss { grid-template-columns: 1fr; }
.wnl-gloss-wide { grid-column: auto; }
.wnl-gloss-row { flex-direction: column; gap: 1px; }
.wnl-gloss-row b { flex: none; }
}

@media (min-width: 1024px) {
.wnl-sx-tip { font-size: 12.5px; line-height: 1.85; }
#hlScope .ft-moon-text { font-size: 14.5px; }
#hlScope .ft-moon-rs { font-size: 13px; }
.wnl-tag { font-size: 12.5px; padding: 3px 11px; }
.wnl-note { font-size: 13px; line-height: 1.85; }
.wnl-src { font-size: 12.5px; line-height: 1.85; }
.wnl-moon-rs { font-size: 13px; }
.wnl-yiji-item { font-size: 13.5px; padding: 6px 13px; }
.wnl-yiji-head { font-size: 16px; }
.wnl-tname i { font-size: 12.5px; }
.wnl-tname { font-size: 14px; }
.wnl-tyiji { font-size: 13px; line-height: 1.7; }
.wnl-tstar { font-size: 12.5px; }
.wnl-ss-label { font-size: 13px; }
.wnl-ss-list, .wnl-chip-good, .wnl-chip-bad { font-size: 13px; }
.wnl-xiu-song { font-size: 13.5px; line-height: 2; }
.wnl-xiu-head b { font-size: 15.5px; }
.wnl-kv-k { font-size: 13px; }
.wnl-kv-v { font-size: 13.5px; }
.wnl-tb-name { font-size: 15px; }
.wnl-tb-what { font-size: 14px; }
.wnl-tb-src { font-size: 12.5px; line-height: 1.9; }
.wnl-tb-kind, .wnl-tb-lv { font-size: 12px; }
.wnl-sx-row { font-size: 13.5px; line-height: 1.9; }
.wnl-sxc span { font-size: 12px; }
.wnl-sxc b { font-size: 14.5px; }
.wnl-sx-badge { font-size: 14px; padding: 4px 14px; }
.wnl-rel-note { font-size: 12.5px; }
.wnl-rel-item { font-size: 12.5px; padding: 3px 9px; }
.wnl-rel-kind { font-size: 12px; }
.wnl-rel-key { font-size: 13.5px; }
.wnl-gloss-row { font-size: 13.5px; line-height: 1.9; }
.wnl-gloss-row b { font-size: 13.5px; flex-basis: 88px; }
.wnl-gloss-row span { font-size: 13.5px; }
.wnl-gloss-group h4 { font-size: 13.5px; }
.wnl-rel-title { font-size: 13px; }
.wnl-toggle-ic { font-size: 12.5px; }
.wnl-tgz { font-size: 13px; flex-basis: 48px; }
.wnl-src-row { font-size: 12.5px; line-height: 1.9; }
.wnl-cal-cell i { font-size: 11.5px; }
.wnl-cal-cell b { font-size: 16px; }
.wnl-cal-btn { font-size: 13px; }
.wnl-cal-cell { min-height: 54px; }
}

@media (min-width: 1600px) {
.wnl-gloss-row, .wnl-sx-row { font-size: 14px; }
.wnl-tb-src, .wnl-src-row { font-size: 13px; }
}

/* ================= lulu 适配层（不改动 Astraga 原规则） ================= */
#hlScope{--maxw:100%;max-width:100%;position:relative;z-index:1}
#hlScope .section{max-width:100%;padding:0;margin:0;z-index:1}
#hlScope .view{display:block}
#hlScope .view.active{animation:none}
#hlScope .wnl-wrap{max-width:100%;margin:0 auto}
#hlScope .wnl-loading{padding:50px 0}
#hlScope *{box-sizing:border-box}
:root[data-theme="light"] #hlScope{
  --gold:#9a6b00;--gold-soft:#8a6000;--text:#16233a;--muted:#5a6a84;
  --line:rgba(40,70,130,.20);--glass-strong:rgba(255,255,255,.94);
  --shadow:0 12px 36px rgba(20,40,80,.10);--purple:#7b45c9;color-scheme:light}
:root[data-theme="light"] #hlScope .wnl-cal-cell b{color:#16233a}
:root[data-theme="light"] #hlScope .wnl-cal-wk b,
:root[data-theme="light"] #hlScope .wnl-cal-wk i{color:#c0453c}
:root[data-theme="light"] #hlScope .wnl-cal-fest{color:#c0453c}
:root[data-theme="light"] #hlScope .wnl-cal-jieqi{color:#95690a}
:root[data-theme="light"] #hlScope .wnl-hero-day{color:#9a6b00}
:root[data-theme="dark"] #hlScope{--glass-strong:rgba(17,26,40,.94)}
:root[data-theme="star"] #hlScope{--glass-strong:rgba(7,18,42,.90);
  --line:rgba(126,170,250,.20);--shadow:0 14px 40px rgba(0,0,0,.38)}

/* ---------- 休假信息叠加 ---------- */
#hlScope .wnl-cal-cell.hl-holiday{background:rgba(63,201,148,.16);border-color:rgba(63,201,148,.45)}
#hlScope .wnl-cal-cell.hl-school{background:rgba(180,140,255,.16);border-color:rgba(180,140,255,.45)}
#hlScope .wnl-cal-cell.hl-work{background:rgba(255,154,93,.15);border-color:rgba(255,154,93,.45)}
#hlScope .wnl-cal-cell.hl-custom{background:rgba(127,172,255,.16);border-color:rgba(127,172,255,.48)}
#hlScope .wnl-cal-cell.hl-pending{border-style:dashed}
#hlScope .wnl-cal-cell .hl-bar{position:absolute;left:10%;right:10%;top:2px;height:2px;border-radius:2px}
#hlScope .wnl-cal-cell.hl-holiday .hl-bar{background:#3fc994}
#hlScope .wnl-cal-cell.hl-school .hl-bar{background:#b48cff}
#hlScope .wnl-cal-cell.hl-work .hl-bar{background:#ff9a5d}
#hlScope .wnl-cal-cell.hl-custom .hl-bar{background:#7facff}
.hl-legend-item{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}
.hl-legend-sq{width:9px;height:9px;border-radius:3px;display:inline-block}
.hl-box{border-radius:14px;padding:14px 16px;margin-bottom:14px;
  border:1px solid var(--line,#26364f);background:var(--glass-strong,rgba(7,18,42,.9))}
.hl-box h3{font-size:13px;margin:0 0 10px;color:var(--text,#eef2ff)}
.hl-info{border-left:3px solid #3fc994;padding-left:12px;font-size:12.5px;color:var(--muted,#a7adda);line-height:1.8}
.hl-info b{color:var(--text,#eef2ff)}
.hl-btn{font:600 12px system-ui,sans-serif;color:var(--muted,#a7adda);background:transparent;
  border:1px solid var(--line,#26364f);border-radius:8px;padding:6px 12px;cursor:pointer}
.hl-btn:hover{color:var(--gold,#f5d76e);border-color:var(--gold,#f5d76e)}
.hl-edit{margin-top:10px;padding-top:10px;border-top:1px solid var(--line,#26364f)}
.hl-edit[hidden]{display:none}
.hl-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px 10px}
.hl-form label{font-size:11px;color:var(--muted,#a7adda);display:flex;flex-direction:column;gap:4px}
.hl-form input,.hl-form select{font:12px system-ui,sans-serif;color:var(--text,#eef2ff);
  background:var(--glass-strong,rgba(7,18,42,.9));border:1px solid var(--line,#26364f);
  border-radius:7px;padding:7px 9px;outline:none}
.hl-form .full{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hl-form .chk{flex-direction:row;align-items:center;gap:6px}
:root[data-theme="light"] .hl-form input,:root[data-theme="light"] .hl-form select{background:#fff;color:#16233a}
