/* 品名网黄历：月历表、择日标绿、老黄历单日与模态框 */
.hl-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 12px;flex-wrap:wrap}
.hl-nav a,.hl-nav span{font-size:14px}
.hl-nav .hl-jump{display:flex;gap:6px;align-items:center}
.hl-nav input{border:1px solid #ddd;border-radius:6px;padding:4px 6px;font-size:14px;max-width:155px;background:#fff}

.hl-cal-title{text-align:center;font-size:16px;font-weight:700;margin:0 0 8px;color:#333}
.hl-cal{width:100%;border-collapse:collapse;table-layout:fixed;text-align:center}
.hl-cal th{font-size:13px;color:#888;font-weight:normal;padding:6px 0;background:#fafafa;border:1px solid #f0f0f0}
.hl-cal td{border:1px solid #ececec;padding:4px 2px;vertical-align:middle;height:58px;transition:background .15s}
.hl-cal td a{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;color:inherit;text-decoration:none}
.hl-cal td:hover{background:#faf8f0}
.hl-cal b{display:block;font-size:17px;line-height:1.35}
.hl-cal small{display:block;font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hl-cal .we b{color:#d4380d}
.hl-cal .jq small{color:#389e0d}
.hl-cal .hd small:after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#d4380d;margin-left:2px;vertical-align:middle}
.hl-cal .today{background:#fff7e6;outline:2px solid #fa8c16;outline-offset:-2px}

/* 择日高亮：绿底白字（宜） / 黄底红字（忌） */
.hl-cal td.is-good{background:#187a24;border-color:#15691f}
.hl-cal td.is-good:hover{background:#13661d}
.hl-cal td.is-good b,.hl-cal td.is-good small{color:#fff}
.hl-cal td.is-good.hd small:after{background:#ffe58f}
.hl-cal td.is-bad{background:#fff3b0;border-color:#f0de80}
.hl-cal td.is-bad:hover{background:#ffec8c}
.hl-cal td.is-bad b{color:#c92a2a}
.hl-cal td.is-bad small{color:#a8442a}

.hl-legend{font-size:12.5px;color:#888;margin:8px 0 0;line-height:1.7}
.hl-badge-good{display:inline-block;padding:1px 7px;border-radius:4px;background:#187a24;color:#fff;font-size:12.5px;font-weight:700}
.hl-badge-bad{display:inline-block;padding:1px 7px;border-radius:4px;background:#fff3b0;color:#c92a2a;font-size:12.5px;font-weight:700;border:1px solid #f0de80}

/* 日历下方：黄道吉日择日切换区 */
.hl-zeri-wrap{margin-top:14px;padding-top:12px;border-top:1px dashed #e6e2cf}
.hl-zeri-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.hl-zeri-head h2{font-size:15px;font-weight:800;margin:0;color:#2c2c1e}
.hl-zeri-reset{font-size:12.5px;color:#666633;background:#f7f5eb;border:1px solid #dfd9be;border-radius:4px;padding:2px 9px;cursor:pointer}
.hl-zeri-reset[hidden]{display:none}
.hl-zeri-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.hl-zeri-btn{display:flex;align-items:center;justify-content:center;min-height:36px;padding:4px 6px;border:1px solid #e3dfc9;border-radius:6px;background:#fbfaf5;color:#333;font-size:13.5px;cursor:pointer;text-decoration:none;transition:all .15s}
.hl-zeri-btn:hover{border-color:#187a24;color:#187a24;background:#f2faf3}
.hl-zeri-btn.is-on{background:#187a24;border-color:#187a24;color:#fff;font-weight:700}
.hl-zeri-res{margin-top:12px;padding:10px 12px;border-radius:8px;background:#faf9f3;border:1px solid #e8e4d0;font-size:14px;line-height:1.9}
.hl-zeri-res[hidden]{display:none}
.hl-zeri-res p{margin:0 0 6px}
.hl-zeri-res p:last-child{margin-bottom:0}
.hl-zeri-res .hl-zeri-desc{font-size:13px;color:#666}
.hl-zeri-res .hl-zeri-more{display:inline-block;margin-top:4px;font-size:13.5px;font-weight:700;color:#666633}
.hl-dlink{color:#2c5e2e;text-decoration:underline;text-underline-offset:2px;margin-right:2px;cursor:pointer}
.hl-dlink-bad{color:#b52b27;text-decoration:underline;text-underline-offset:2px;margin-right:2px;cursor:pointer}

/* 汇总与列表 */
.hl-ev{display:grid;grid-template-columns:1fr;gap:12px}
.hl-ev h3{font-size:15px;margin:0 0 4px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.hl-ev h3 a{font-size:12.5px;font-weight:normal;color:#666633}
.hl-ev p{margin:0;font-size:14px;line-height:1.9}
.hl-ev span{display:inline-block;margin-right:10px;white-space:nowrap}
.hl-ev em{font-style:normal;color:#d4380d;font-size:12px}
.hl-day{border-top:1px solid #f0f0f0;padding:10px 0;font-size:14px;line-height:1.8}
.hl-day h3{font-size:15px;margin:0}
.hl-day h3 a{color:inherit}
.hl-day h3 small{color:#888;font-weight:normal;margin-left:6px}
.hl-tag{display:inline-block;font-size:12px;padding:0 6px;border-radius:4px;margin-left:6px;vertical-align:1px}
.hl-tag.hd{background:#fff1f0;color:#cf1322}
.hl-tag.hei{background:#f5f5f5;color:#666}
.hl-yi{color:#187a24}
.hl-ji{color:#c92a2a}
.hl-months{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:14px}
.hl-months .cur{font-weight:bold;color:#fa541c}

/* 单日老黄历详情卡片（单日页与模态框共用） */
.hl-d-top{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:10px;background:linear-gradient(135deg,#fbf7e8,#fff);border:1px solid #e7dfc0;margin-bottom:12px}
.hl-d-num{flex:0 0 64px;height:64px;border-radius:10px;background:#666633;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;line-height:1.1}
.hl-d-num b{font-size:28px}
.hl-d-num span{font-size:11px;opacity:.9;font-weight:400}
.hl-d-meta{min-width:0;flex:1;font-size:13.5px;line-height:1.7;color:#444}
.hl-d-meta .hl-d-solar{font-size:16px;font-weight:800;color:#222}
.hl-d-meta .hl-d-lunar{color:#7a5912;font-weight:700}

.hl-yiji-box{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:12px}
.hl-yiji-row{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.75}
.hl-yiji-row.is-yi{background:#f2faf3;border:1px solid #cde8d0}
.hl-yiji-row.is-ji{background:#fff5f5;border:1px solid #f5d0d0}
.hl-yiji-icon{flex:0 0 28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:#fff;margin-top:2px}
.is-yi .hl-yiji-icon{background:#187a24}
.is-ji .hl-yiji-icon{background:#c92a2a}

.hl-kv{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:14px}
.hl-kv-item{padding:8px 11px;border-radius:8px;background:#faf9f5;border:1px solid #ece8d8;font-size:13.5px;line-height:1.65}
.hl-kv-item b{display:block;font-size:12px;color:#7a7558;margin-bottom:2px}
.hl-kv-item.is-wide{grid-column:1 / -1}

.hl-sc-title{font-size:15px;font-weight:800;margin:14px 0 8px;color:#222}
.hl-sc-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #ece8d8;border-radius:8px}
.hl-sc-tb{width:100%;border-collapse:collapse;font-size:12.5px;min-width:560px}
.hl-sc-tb th,.hl-sc-tb td{padding:6px 8px;border-bottom:1px solid #f0ede2;text-align:left;vertical-align:top;line-height:1.55}
.hl-sc-tb th{background:#faf8ef;color:#555;font-weight:700;white-space:nowrap}
.hl-sc-tb tr:last-child td{border-bottom:none}
.hl-sc-tb tr.is-ji{background:#f7fcf7}
.hl-sc-luck{display:inline-block;padding:0 5px;border-radius:4px;font-size:11.5px;font-weight:700}
.hl-sc-luck.is-good{background:#187a24;color:#fff}
.hl-sc-luck.is-bad{background:#eee;color:#777}
.hl-sc-name{white-space:nowrap;font-weight:700;color:#222}
.hl-sc-range{display:block;font-size:11px;color:#888;font-weight:400}

.hl-modal-foot{position:sticky;bottom:-1.2rem;display:flex;gap:.5rem;margin-top:1rem;padding:.7rem 0 0;background:linear-gradient(transparent,#fff 32%);flex-wrap:wrap}
.hl-modal-foot .pm-btn{flex:1;min-width:140px;text-decoration:none}
.hl-modal-foot .pm-btn-line{padding:0 .85rem;min-height:44px;font-size:13.5px}
.hl-modal-loading{padding:2rem 1rem;text-align:center;color:#666633;font-size:14px}
.hl-modal-err{padding:1.2rem;text-align:center;color:#c92a2a;font-size:14px}

@media (min-width:640px){
  .hl-zeri-grid{grid-template-columns:repeat(4,1fr)}
  .hl-kv{grid-template-columns:1fr 1fr}
}
@media (min-width:768px){
  .hl-ev{grid-template-columns:1fr 1fr}
  .hl-cal td{height:66px}
  .hl-zeri-grid{grid-template-columns:repeat(6,1fr)}
}
