/* ======================================================================
 *  黄道吉日查询 /tool/lucky-day
 * ====================================================================== */

/* ---------- 条件面板 ---------- */
.ld-panel {
    padding: 22px;
    margin-bottom: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.ld-panel-title { font-size: 14.5px; font-weight: 800; color: var(--c-text); margin-bottom: 13px; }
.ld-panel-title--mt { margin-top: 24px; }

.ld-events { display: flex; flex-wrap: wrap; gap: 9px; }
.ld-event {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.ld-event:hover { color: var(--c-primary); border-color: var(--c-primary); }
.ld-event.is-active {
    color: #fff;
    background: #7a5cd6;
    border-color: #7a5cd6;
    box-shadow: 0 4px 12px rgba(122, 92, 214, 0.28);
}
.ld-event-icon { font-size: 15px; }

.ld-controls { display: flex; flex-wrap: wrap; gap: 14px; }
.ld-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.ld-field-label { font-size: 12.5px; color: var(--c-text-muted); }
.ld-input {
    height: 42px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    outline: none;
}
.ld-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }

/* ---------- 结果区 ---------- */
.ld-result {
    padding: 22px;
    margin-bottom: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.ld-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ld-result-head h2 { font-size: 15.5px; font-weight: 800; }
.ld-result-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-mode-tag {
    padding: 4px 11px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    border: 1px solid var(--c-primary);
}
.ld-copy {
    height: 34px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    border: 1px solid var(--c-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.ld-stat {
    margin: 13px 0 15px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border-radius: 11px;
    border-left: 3px solid #7a5cd6;
}
.ld-stat b { color: var(--c-primary); }

.ld-table-scroll { overflow-x: auto; border: 1px solid var(--c-border); border-radius: 12px; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.ld-table thead th {
    text-align: left;
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}
.ld-table tbody td {
    padding: 11px 14px;
    color: var(--c-text-sub);
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
    line-height: 1.65;
}
.ld-table tbody tr:last-child td { border-bottom: none; }
.ld-table tbody tr:hover { background: var(--c-surface-soft); }
.ld-empty { text-align: center; color: var(--c-text-muted); padding: 30px 0 !important; }

.ld-date { white-space: nowrap; }
.ld-date b { color: var(--c-text); font-size: 13.5px; }
.ld-date small { display: block; font-size: 11.5px; color: var(--c-text-muted); }
.ld-lunar { white-space: nowrap; }
.ld-shen {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}
.ld-shen.is-good { background: #34c759; }
.ld-shen.is-bad { background: #ff5252; }
.ld-shen-type { display: block; margin-top: 3px; font-size: 11px; color: var(--c-text-muted); }
.ld-xiu { white-space: nowrap; }
.ld-xiu small { display: block; font-size: 11px; color: var(--c-text-muted); }
.ld-yi { min-width: 260px; font-size: 12.5px; }
.ld-hit { font-style: normal; font-weight: 800; color: #1f9d43; background: rgba(52, 199, 89, 0.16); padding: 1px 4px; border-radius: 5px; }
.ld-tags { min-width: 130px; }
.ld-tag {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    color: #c2185b;
    background: rgba(214, 92, 140, 0.13);
    border: 1px solid rgba(214, 92, 140, 0.3);
}
.ld-star { white-space: nowrap; font-size: 15px; letter-spacing: 1px; }
.ld-star .on { color: #ff9f0a; }
.ld-star .off { color: var(--c-border); }

.ld-help {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.85;
    color: var(--c-text-muted);
}
.ld-help b { color: var(--c-text-sub); }

/* ---------- 免责与简介 ---------- */
.ld-disclaim {
    font-size: 12px;
    line-height: 1.85;
    color: var(--c-text-muted);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 26px;
}
.ld-disclaim b { color: var(--c-text-sub); }
.ld-info-block { margin-bottom: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .ld-panel, .ld-result { padding: 18px; }
    .ld-event { padding: 8px 12px; font-size: 12.5px; }
    .ld-field { flex: 1 1 100%; }
    .ld-result-head { flex-direction: column; align-items: flex-start; }
}

/* ============ 黑夜模式 ============ */
[data-theme="dark"] .ld-event,
[data-theme="dark"] .ld-input,
[data-theme="dark"] .ld-stat,
[data-theme="dark"] .ld-disclaim,
[data-theme="dark"] .ld-table thead th { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .ld-input::-webkit-calendar-picker-indicator { filter: invert(0.8); }
[data-theme="dark"] .ld-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .ld-hit { color: #4ede78; }
[data-theme="dark"] .ld-tag { color: #ff8fb8; }
[data-theme="dark"] .ld-star .off { color: rgba(255, 255, 255, 0.18); }
