/* ===================== 假期倒计时 ===================== */

.hc-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 24px 34px;
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 20px;
    color: #fff;
}
.hc-glow {
    position: absolute;
    top: -80px; left: 50%;
    width: 340px; height: 340px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,.28) 0%, transparent 70%);
    pointer-events: none;
}
.hc-state { position: relative; font-size: 14px; font-weight: 600; letter-spacing: 1px; opacity: .92; }
.hc-target { position: relative; margin-top: 2px; font-size: 20px; font-weight: 900; }
.hc-time {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 22px 0 6px;
}
.hc-num {
    display: flex; flex-direction: column; align-items: center;
    min-width: 92px;
    padding: 14px 8px 10px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}
.hc-num span { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.hc-unit { font-size: 12px !important; font-weight: 600 !important; opacity: .85; margin-top: 4px; }
.hc-sep { font-size: 28px; font-weight: 900; opacity: .75; padding-bottom: 18px; }
.hc-msg { position: relative; margin-top: 14px; font-size: 14px; opacity: .95; }

.hc-mood-bar {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    max-width: 420px;
    margin: 22px auto 0;
    padding: 12px 16px;
    background: rgba(255,255,255,.14);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}
.hc-mood-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hc-mood-track { flex: 1; height: 8px; background: rgba(255,255,255,.28); border-radius: 99px; overflow: hidden; }
.hc-mood-fill { height: 100%; width: 50%; background: linear-gradient(90deg, #a5f3fc, #fff); border-radius: 99px; transition: width .6s ease; }
.hc-mood-txt { font-size: 13px; font-weight: 800; white-space: nowrap; }

/* 假期一览 */
.hc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.hc-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 14px;
}
.hc-card-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.hc-card-body { min-width: 0; flex: 1; }
.hc-card-name { font-size: 15px; font-weight: 800; color: var(--c-text, #0f172a); }
.hc-card-range { font-size: 12px; color: var(--c-text-muted, #64748b); margin-top: 2px; }
.hc-card-note { font-size: 12px; margin-top: 2px; }
.hc-card-work {
    font-size: 12px; color: #ef4444; font-weight: 600;
    background: #fef2f2; border-radius: 8px; padding: 2px 8px;
    margin-top: 4px; display: inline-block;
}

/* 日历 */
.hc-calendar-wrap { margin-top: 26px; }
.hc-calendar-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hc-calendar-head h2 { font-size: 18px; font-weight: 800; color: var(--c-text, #0f172a); margin: 0; }
.hc-calendar-year { color: var(--c-primary, #0066ff); }
.hc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--c-text-muted, #64748b); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-holiday { background: #22c55e; }
.dot-work { background: #ef4444; }
.dot-today { background: #3b82f6; }

.hc-calendar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hc-month {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 14px;
    padding: 12px;
}
.hc-month-title { font-size: 14px; font-weight: 800; color: var(--c-text, #0f172a); text-align: center; margin-bottom: 8px; }
.hc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.hc-week-day { text-align: center; font-size: 11px; color: var(--c-text-muted, #94a3b8); padding: 2px 0; }
.hc-cell {
    position: relative;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-sub, #334155);
    padding: 5px 0;
    border-radius: 7px;
    transition: background .15s ease;
}
.hc-cell.empty { color: transparent; }
.hc-cell.is-holiday { background: #dcfce7; color: #166534; font-weight: 700; }
.hc-cell.is-work { background: #fee2e2; color: #991b1b; font-weight: 700; }
.hc-cell.is-today { box-shadow: inset 0 0 0 2px #3b82f6; color: #1d4ed8; font-weight: 800; }

.hc-tip { margin-top: 12px; font-size: 12px; color: var(--c-text-muted, #94a3b8); text-align: center; }

@media (max-width: 992px) {
    .hc-list, .hc-calendar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hc-list, .hc-calendar-grid { grid-template-columns: 1fr; }
    .hc-num { min-width: 64px; }
    .hc-num span { font-size: 30px; }
    .hc-sep { font-size: 20px; }
}

/* ===================== 暗黑模式适配 ===================== */
:root[data-theme="dark"] .hc-card-name { color: #e5e7eb; }
:root[data-theme="dark"] .hc-card-work { background: rgba(239, 68, 68, .14); color: #fca5a5; }
:root[data-theme="dark"] .hc-calendar-head h2 { color: #e5e7eb; }
:root[data-theme="dark"] .hc-calendar-year { color: #60a5fa; }
:root[data-theme="dark"] .hc-month-title { color: #e5e7eb; }
:root[data-theme="dark"] .hc-week-day { color: #64748b; }
:root[data-theme="dark"] .hc-cell { color: #cbd5e1; }
:root[data-theme="dark"] .hc-cell.is-holiday { background: rgba(34, 197, 94, .18); color: #86efac; }
:root[data-theme="dark"] .hc-cell.is-work { background: rgba(239, 68, 68, .18); color: #fca5a5; }
:root[data-theme="dark"] .hc-cell.is-today { color: #93c5fd; box-shadow: inset 0 0 0 2px #60a5fa; }
