/* —— 放假安排专题 fangjia.html（YYYY_fangjia） —— */
.fangjia-page__head {
    margin-bottom: 1.5rem;
}
.fangjia-page__title-row {
    align-items: flex-start;
    gap: 0.75rem 1rem;
}
.fangjia-page__year-nav {
    flex-shrink: 0;
}
.fangjia-page__lead {
    margin: 0.75rem 0 1rem;
    max-width: 52rem;
    color: var(--wnl-text-muted, #5c6573);
    line-height: 1.65;
}
.fangjia-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.fangjia-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.fangjia-legend__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.fangjia-legend__mark--xiu {
    color: var(--wnl-xiu-fg, #0d7a4a);
    background: var(--wnl-xiu-bg, rgba(34, 160, 107, 0.15));
    border: 1px solid rgba(34, 160, 107, 0.35);
}
.fangjia-legend__mark--ban {
    color: var(--wnl-ban-fg, #b42318);
    background: var(--wnl-ban-bg, rgba(220, 80, 70, 0.14));
    border: 1px solid rgba(220, 80, 70, 0.35);
}
.fangjia-page__table-section {
    margin-bottom: 2rem;
}
.fangjia-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--wnl-theme-border);
    border-radius: 10px;
    background: var(--wnl-theme-surface);
}
.fangjia-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.94rem;
    color: var(--wnl-theme-fg);
}
.fangjia-table th,
.fangjia-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--wnl-cell-border);
    vertical-align: top;
}
.fangjia-table thead th {
    background: var(--wnl-table-th-bg);
    color: var(--wnl-th-text);
    font-weight: 600;
    white-space: nowrap;
}
.fangjia-table tbody td {
    color: var(--wnl-yi-ji-body, var(--wnl-theme-fg));
}
.fangjia-table tbody tr:last-child td {
    border-bottom: none;
}
.fangjia-table__empty {
    text-align: center;
    color: var(--wnl-text-muted, #5c6573);
    padding: 1.5rem 1rem !important;
}
.fangjia-page__editorial {
    margin-bottom: 2rem;
}
.fangjia-page__calendars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem 1.25rem;
}
@media (min-width: 768px) {
    .fangjia-page__calendars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.fangjia-month {
    min-width: 0;
}
.fangjia-month__h {
    margin-bottom: 0.65rem;
}
.fangjia-month .today-calendar-split__calendar {
    margin-top: 0;
}
.fangjia-month .wnl-month-table-wrap {
    max-width: none;
}

/* 放假页迷你月历：公历 + 农历 + 与「节假日一览」同源的法定节日名 */
.fangjia-month .wnl-month-mini-wrap {
    border: 1px solid var(--wnl-theme-border);
    border-radius: 10px;
    background: var(--wnl-theme-surface-soft);
    overflow: hidden;
}
.fangjia-month .wnl-month-mini-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--wnl-scroll-bar-mix) var(--wnl-scroll-track);
}
.fangjia-month .wnl-month-table--mini {
    width: 100%;
    min-width: 260px;
    border-collapse: collapse;
    table-layout: fixed;
}
.fangjia-month .wnl-month-table--mini th {
    padding: 5px 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--wnl-th-text);
    background: var(--wnl-bg-parchment);
    border-bottom: 1px solid var(--wnl-th-rule);
}
.fangjia-month .wnl-month-table--mini td.wnl-month-cell--mini {
    height: 1%;
    min-height: 48px;
    padding: 3px 2px 5px;
    border: 1px solid var(--wnl-cell-border);
    vertical-align: top;
    position: relative;
    background: var(--wnl-theme-surface);
    overflow: hidden;
}
/* 休假：淡绿；调休上班：淡红（选择器需含 table+td，否则被上一行背景覆盖） */
.fangjia-month .wnl-month-table--mini td.wnl-month-cell--mini.wnl-month-cell--xiu {
    background: #e8f5e9;
}
.fangjia-month .wnl-month-table--mini td.wnl-month-cell--mini.wnl-month-cell--ban {
    background: #ffebee;
}
html[data-theme="dark"] .fangjia-month .wnl-month-table--mini td.wnl-month-cell--mini.wnl-month-cell--xiu {
    background: rgba(102, 187, 106, 0.22);
}
html[data-theme="dark"] .fangjia-month .wnl-month-table--mini td.wnl-month-cell--mini.wnl-month-cell--ban {
    background: rgba(239, 154, 154, 0.18);
}
.fangjia-month .wnl-month-cell--mini.wnl-month-cell--today {
    box-shadow: inset 0 0 0 2px var(--wnl-nav-accent);
}
.fangjia-month .wnl-month-cell--mini.wnl-month-cell--other {
    opacity: 1;
}
.fangjia-month .wnl-month-cell--mini .wnl-bg-watermark {
    position: absolute;
    top: 1px;
    left: 2px;
    transform: none;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 0.88;
}
.fangjia-month .wnl-month-cell--mini .wnl-bg-watermark--rest {
    color: var(--wnl-watermark-rest-fg);
    opacity: 0.75;
}
.fangjia-month .wnl-month-cell--mini .wnl-bg-watermark--work {
    color: var(--wnl-watermark-work-fg);
    opacity: 0.7;
}
.fangjia-month .wnl-month-cell--mini .wnl-bg-watermark--today {
    top: auto;
    left: auto;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
    color: var(--wnl-nav-accent);
    opacity: 1;
}
.fangjia-month .wnl-mini-cell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    min-height: 2.5rem;
}
.fangjia-month .wnl-mini-cell__day {
    font-size: 14px;
    font-weight: 700;
    color: var(--wnl-date-num);
    text-decoration: none;
    line-height: 1.2;
}
.fangjia-month .wnl-mini-cell__day:hover,
.fangjia-month .wnl-mini-cell__day:focus-visible {
    color: var(--wnl-theme-link);
    text-decoration: underline;
    outline: none;
}
.fangjia-month .wnl-month-cell--today .wnl-mini-cell__day {
    color: var(--wnl-date-today);
}
.fangjia-month .wnl-month-cell--other .wnl-mini-cell__day,
.fangjia-month .wnl-month-cell--other .wnl-mini-cell__lunar,
.fangjia-month .wnl-month-cell--other .wnl-mini-cell__fest {
    color: var(--wnl-date-muted);
}
.fangjia-month .wnl-mini-cell__lunar {
    font-size: 10px;
    line-height: 1.25;
    color: var(--wnl-lunar-sub);
}
.fangjia-month .wnl-mini-cell__fest {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--wnl-chip-holiday-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1px;
}
