/* 节假日日历公共样式 */
:root {
    --workday: #0d6efd;
    --workday-soft: #e7f1ff;
    --border-cell: #eef0f3;
}
body { background-color: #f8f9fa; }

/* ===== 顶部标题 ===== */
.page-header {
    background: linear-gradient(135deg, #c00 0%, #e83a3a 100%);
    color: #fff;
    padding: 24px 0 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.page-header h1 { margin: 0; font-size: 1.7rem; font-weight: 600; }
.page-header .subtitle { margin-top: 6px; opacity: .9; font-size: .92rem; }

/* ===== 日历 ===== */
.month-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    height: 100%;
}
.month-title {
    background: #f1f3f5;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
}
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
table.cal th, table.cal td {
    text-align: center;
    padding: 6px 2px 4px;
    font-size: 1rem;
    border: 1px solid var(--border-cell);
    position: relative;
    height: 54px;
    vertical-align: middle;
}
table.cal td .day-num { display: block; line-height: 1.1; }
table.cal td .day-label {
    display: block;
    font-size: .68rem;
    line-height: 1.1;
    margin-top: 2px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
table.cal thead th {
    font-size: .85rem;
    font-weight: 500;
    color: #6c757d;
    background: #fafbfc;
    padding: 8px 4px;
    height: auto;
}
table.cal thead th.weekend { color: var(--accent); }
table.cal td.weekend { color: var(--accent); }
table.cal td.empty { color: transparent; background: #fafbfc; }
table.cal td.holiday {
    background-color: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
table.cal td.holiday::after {
    content: "休"; position: absolute; top: 1px; right: 3px;
    font-size: .6rem; color: var(--accent); font-weight: normal;
}
table.cal td.workday {
    background-color: var(--workday-soft);
    color: var(--workday);
    font-weight: 600;
}
table.cal td.workday::after {
    content: "班"; position: absolute; top: 1px; right: 3px;
    font-size: .6rem; color: var(--workday); font-weight: normal;
}
table.cal td.holiday .day-label { color: var(--accent); }
table.cal td.workday .day-label { color: var(--workday); }
table.cal td.festival:not(.holiday):not(.workday) .day-label { color: var(--accent); }
table.cal td.today { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ===== 图例与表格 ===== */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .9rem;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-box {
    display: inline-block;
    width: 22px; height: 22px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.legend-box.holiday { background: var(--accent-soft); }
.legend-box.workday { background: var(--workday-soft); }
.legend-box.weekend {
    background: #fff; color: var(--accent);
    line-height: 22px; font-size: .9rem;
    text-align: center; font-weight: 600;
}
.legend-box.today { background: #fff; outline: 2px solid var(--accent); outline-offset: -2px; }

.holiday-list .table { background: #fff; margin-bottom: 0; }
.holiday-list th { background-color: #f1f3f5; color: #495057; font-weight: 600; white-space: nowrap; }
.holiday-list .badge-off { background-color: var(--accent-soft); color: var(--accent); }
.holiday-list .badge-on { background-color: var(--workday-soft); color: var(--workday); }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 26px 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    color: #333;
}
.note-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: .92rem;
    line-height: 1.75;
    color: #495057;
}
.note-card ol, .note-card ul { padding-left: 22px; margin-bottom: 0; }

footer {
    margin-top: 36px;
    padding: 18px 0;
    text-align: center;
    color: #6c757d;
    font-size: .85rem;
    border-top: 1px solid var(--border-soft);
}

/* ===== 枢纽页 ===== */
body.hub-body { background-color: #f8f9fa; }
.hub-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 18px 20px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.hub-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.hub-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-soft);
    padding-bottom: 6px;
}
.hub-card-list { list-style: none; padding-left: 0; margin: 0; }
.hub-card-list li { padding: 6px 0; border-bottom: 1px dashed var(--border-soft); }
.hub-card-list li:last-child { border-bottom: none; }
.hub-link {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: .95rem;
}
.hub-link:hover { color: var(--accent); }

/* 移动端日历自适应 */
@media (max-width: 767.98px) {
    .page-header { padding-top: 56px; }
    .page-header h1 { font-size: 1.3rem; }
    table.cal th, table.cal td {
        font-size: .85rem; padding: 4px 1px; height: 48px;
    }
    table.cal td .day-label { font-size: .58rem; }
}
