/* 放假安排与调休日历 */

.ha-hero {
    margin: 18px 0 24px;
    background: linear-gradient(135deg, #fff1f0 0%, #fff8f0 50%, #f2f8ff 100%);
    border: 1px solid #f6e0de;
    border-radius: 18px;
    padding: 22px;
}
.ha-inner { max-width: 1080px; margin: 0 auto; }

.ha-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ha-title { font-size: 21px; font-weight: 800; color: #2a1f1f; letter-spacing: .3px; }
.ha-sub { font-size: 13px; color: #7d6b6b; margin-top: 4px; line-height: 1.7; }
.ha-year-switch { display: flex; gap: 8px; }
.ha-year-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #f0d9d6;
    background: #fff;
    color: #7a5a58;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s;
}
.ha-year-btn:hover { border-color: #e88b83; }
.ha-year-btn.active {
    background: linear-gradient(135deg, #f2685c, #d93a30);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px rgba(217, 58, 48, .25);
}

/* ---------- 下一个假期倒计时 ---------- */
.ha-next {
    background: #fff;
    border: 1px solid #f4e2e0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 8px 22px rgba(180, 90, 80, .07);
}
.ha-next-badge {
    font-size: 12px;
    color: #c0392b;
    background: #fdecea;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}
.ha-next-name { font-size: 16px; font-weight: 800; color: #2a1f1f; }
.ha-next-time {
    font-size: 26px;
    font-weight: 900;
    color: #d93a30;
    letter-spacing: .5px;
    margin-left: auto;
}
.ha-next-tip { flex: 1 1 100%; font-size: 12.5px; color: #8a7a7a; margin: 0; }

/* ---------- 统计 ---------- */
.ha-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0 4px;
}
.ha-stat {
    background: #fff;
    border: 1px solid #f2e6e4;
    border-radius: 14px;
    padding: 13px 15px;
}
.ha-stat .k { font-size: 12px; color: #948080; }
.ha-stat .v { font-size: 20px; font-weight: 800; color: #2a1f1f; margin-top: 4px; }
.ha-today-tag {
    margin: 14px 0 0;
    font-size: 13px;
    color: #a3402f;
    background: #fff5f3;
    border: 1px solid #f7ddd8;
    border-radius: 10px;
    padding: 10px 13px;
}

/* ---------- 未公布提示 ---------- */
.ha-pending {
    background: #fff;
    border: 1px dashed #e6d5d2;
    border-radius: 16px;
    padding: 26px 20px;
    text-align: center;
    color: #7d6b6b;
    line-height: 1.9;
    font-size: 14px;
}
.ha-pending b { color: #c0392b; font-size: 16px; }

/* ---------- 放假安排表 ---------- */
.ha-table-wrap {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 8px;
}
.ha-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ha-table th {
    text-align: left;
    font-size: 13px;
    color: #66748d;
    font-weight: 700;
    background: #f7f9fd;
    padding: 12px 14px;
    white-space: nowrap;
}
.ha-table td {
    padding: 13px 14px;
    font-size: 13.5px;
    color: #33405a;
    border-top: 1px solid #f0f3f8;
    line-height: 1.7;
}
.ha-td-name { font-weight: 700; color: #22304d; white-space: nowrap; }
.ha-ico { margin-right: 6px; }
.ha-td-stat { color: #d93a30; }
.ha-td-work { color: #b26a00; }
.ha-st { font-size: 12px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ha-st-past { color: #8a95a8; background: #f2f4f8; }
.ha-st-now { color: #fff; background: #d93a30; }
.ha-st-wait { color: #2f7d55; background: #e9f8f0; }

/* ---------- 拼假攻略 ---------- */
.ha-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.ha-plan {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 15px 16px;
    transition: box-shadow .18s, transform .18s;
}
.ha-plan:hover { box-shadow: 0 8px 20px rgba(46, 80, 144, .09); transform: translateY(-2px); }
.ha-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ha-plan-head b { font-size: 14.5px; color: #22304d; }
.ha-plan-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff8a5b, #f2685c);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}
.ha-plan-rest { font-size: 13px; color: #2b62d9; margin-top: 9px; font-weight: 700; }
.ha-plan-leave { font-size: 12.5px; color: #66748d; margin-top: 4px; }
.ha-plan-note { font-size: 12.5px; color: #8a95a8; line-height: 1.7; margin: 8px 0 0; }
.ha-empty-note { font-size: 13.5px; color: #8a95a8; }

/* ---------- 全年日历 ---------- */
.ha-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.ha-month {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 12px;
}
.ha-month-title { font-size: 13.5px; font-weight: 800; color: #22304d; margin-bottom: 8px; }
.ha-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ha-wd {
    text-align: center;
    font-size: 11.5px;
    color: #9aa5b8;
    padding: 3px 0;
}
.ha-wd.is-weekend { color: #d93a30; }
.ha-cell {
    text-align: center;
    font-size: 12px;
    color: #4c5a75;
    border-radius: 6px;
    padding: 5px 0;
    line-height: 1.2;
}
.ha-cell.is-empty { visibility: hidden; }
.ha-cell.is-holiday { background: #fdecea; color: #d93a30; font-weight: 700; }
.ha-cell.is-statutory { background: #d93a30; color: #fff; font-weight: 800; }
.ha-cell.is-work { background: #fff4e5; color: #b26a00; font-weight: 700; }
.ha-cell.is-today { box-shadow: 0 0 0 2px #4b7bec inset; }
.ha-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 18px; font-size: 12.5px; color: #66748d; }
.ha-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.ha-legend .l-holiday { background: #fdecea; border: 1px solid #f6c7c1; }
.ha-legend .l-statutory { background: #d93a30; }
.ha-legend .l-work { background: #fff4e5; border: 1px solid #f0d9ae; }
.ha-legend .l-today { background: #fff; box-shadow: 0 0 0 2px #4b7bec inset; }
.ha-source { font-size: 12px; color: #93a0b8; margin-top: 10px; line-height: 1.7; }

.ha-disclaim {
    margin: 18px 0 26px;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7a96;
    background: #f7f9fd;
    border-left: 4px solid #9db8e8;
    border-radius: 0 12px 12px 0;
    padding: 13px 16px;
}
.ha-info-block { margin-bottom: 26px; }

/* ---------- 黑夜模式 ---------- */
[data-theme="dark"] .ha-hero {
    background: linear-gradient(135deg, #2a1f22 0%, #241f1c 50%, #1a2130 100%);
    border-color: #3a2c2e;
}
[data-theme="dark"] .ha-title { color: #f2e9e9; }
[data-theme="dark"] .ha-sub { color: #b09a9a; }
[data-theme="dark"] .ha-year-btn { background: #232c3b; border-color: #3a4658; color: #c8b5b5; }
[data-theme="dark"] .ha-year-btn.active { background: linear-gradient(135deg, #f2685c, #c5342b); color: #fff; }
[data-theme="dark"] .ha-next,
[data-theme="dark"] .ha-stat,
[data-theme="dark"] .ha-plan,
[data-theme="dark"] .ha-month,
[data-theme="dark"] .ha-table-wrap,
[data-theme="dark"] .ha-pending { background: #1f2735; border-color: #2e3949; }
[data-theme="dark"] .ha-next-name,
[data-theme="dark"] .ha-stat .v,
[data-theme="dark"] .ha-plan-head b,
[data-theme="dark"] .ha-month-title,
[data-theme="dark"] .ha-td-name { color: #e6edf9; }
[data-theme="dark"] .ha-next-badge { background: #3a2224; color: #f08c82; }
[data-theme="dark"] .ha-next-tip,
[data-theme="dark"] .ha-stat .k,
[data-theme="dark"] .ha-source,
[data-theme="dark"] .ha-plan-note,
[data-theme="dark"] .ha-legend { color: #93a2bb; }
[data-theme="dark"] .ha-today-tag { background: #2a2224; border-color: #3f2f2f; color: #e59a90; }
[data-theme="dark"] .ha-table th { background: #232c3b; color: #9aa8c0; }
[data-theme="dark"] .ha-table td { color: #c3cee0; border-top-color: #2b3546; }
[data-theme="dark"] .ha-cell { color: #b6c2d6; }
[data-theme="dark"] .ha-cell.is-holiday { background: #3a2224; color: #f08c82; }
[data-theme="dark"] .ha-cell.is-statutory { background: #c5342b; color: #fff; }
[data-theme="dark"] .ha-cell.is-work { background: #362b1a; color: #e0ac63; }
[data-theme="dark"] .ha-cell.is-today { box-shadow: 0 0 0 2px #4b7bec inset; }
[data-theme="dark"] .ha-disclaim { color: #93a2bb; background: #1d2531; border-left-color: #3d5b96; }
[data-theme="dark"] .ha-st-past { background: #2b3546; color: #93a2bb; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .ha-hero { padding: 16px 14px; border-radius: 14px; }
    .ha-next-time { margin-left: 0; font-size: 22px; }
    .ha-calendar { grid-template-columns: 1fr; }
    .ha-plans { grid-template-columns: 1fr; }
}
