/* 子屏桌面月历：仅展示层，时间入口沿用 sub-screen-calendar.js。 */
/* calendar-fonts:start (generated by tools/build-subscreen-calendar-font.py) */
@font-face {
    font-family: 'LoveMiCalendar';
    src: url('assets/subscreen-calendar-xiaolai.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-00000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0-7FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-02000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+2000-27FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-03000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+3000-37FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-03800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+3800-3FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-04000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+4000-47FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-04800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+4800-4FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-05000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+5000-57FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-05800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+5800-5FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-06000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+6000-67FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-06800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+6800-6FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-07000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+7000-77FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-07800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+7800-7FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-08000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+8000-87FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-08800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+8800-8FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-09000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+9000-97FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-09800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+9800-9FFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0a800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+A800-AFFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0b000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+B000-B7FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0b800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+B800-BFFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0c000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+C000-C7FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0c800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+C800-CFFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0d000.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+D000-D7FF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-0f800.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+F800-FFFF;
}
@font-face {
    font-family: 'LoveMiCalendarNames';
    src: url('assets/subscreen-calendar-font/name-extra-23.woff2?v=1.0.0') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+1000-17FF, U+1800-1FFF, U+2800-2FFF, U+1F000-1F7FF, U+20000-207FF, U+20800-20FFF, U+21000-217FF, U+21800-21FFF, U+22000-227FF, U+22800-22FFF, U+23000-237FF, U+23800-23FFF, U+24000-247FF, U+24800-24FFF, U+25000-257FF, U+25800-25FFF, U+26000-267FF, U+26800-26FFF, U+27000-277FF, U+27800-27FFF, U+28000-287FF, U+28800-28FFF, U+29000-297FF, U+29800-29FFF, U+2A000-2A7FF, U+2A800-2AFFF, U+2B000-2B7FF, U+2B800-2BFFF, U+2C000-2C7FF, U+2C800-2CFFF, U+2E800-2EFFF, U+30800-30FFF;
}
/* calendar-fonts:end */
.home-desktop-page .sub-screen-calendar-widget {
    --scw-surface-light-rgb: 247, 247, 244;
    --scw-surface-dark-rgb: 36, 39, 43;
    --scw-ink-light: #292d33;
    --scw-ink-dark: #f3f4f5;
    --scw-accent: #424c59;
    --scw-accent-ink: #fff;
    --scw-line-light: rgba(41, 45, 51, .16);
    --scw-line-dark: rgba(243, 244, 245, .22);
    --scw-ink: var(--scw-ink-light);
    --scw-line: var(--scw-line-light);
    --scw-surface-rgb: var(--scw-surface-light-rgb);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(88px, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 15px;
    row-gap: 10px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 26px;
    background: rgb(var(--scw-surface-rgb));
    color: var(--scw-ink);
    box-shadow: 0 8px 24px rgba(25, 31, 39, .1), inset 0 1px 0 rgba(255, 255, 255, .55);
    font-family: 'LoveMiCalendar', 'LoveMiCalendarNames', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-synthesis: none;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.home-desktop-page .sub-screen-calendar-widget[data-calendar-contrast="dark"] {
    --scw-ink: var(--scw-ink-dark);
    --scw-line: var(--scw-line-dark);
    --scw-surface-rgb: var(--scw-surface-dark-rgb);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 8px 24px rgba(8, 12, 18, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .home-desktop-page .sub-screen-calendar-widget {
        background: rgba(var(--scw-surface-rgb), .92);
        -webkit-backdrop-filter: blur(24px) saturate(115%);
        backdrop-filter: blur(24px) saturate(115%);
    }
}
.sub-screen-calendar-widget .scw-date-heading {
    grid-column: 1 / -1;
    min-width: 0;
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.5;
    letter-spacing: .035em;
    white-space: nowrap;
    color: var(--scw-ink);
}
.home-desktop-page .sub-screen-calendar-widget .sub-screen-cal-wrap {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--scw-ink);
    font-family: inherit;
}
.sub-screen-calendar-widget .sub-screen-cal-head,
.sub-screen-calendar-widget .sub-screen-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    font-size: 13px;
    text-align: center;
}
.sub-screen-calendar-widget .sub-screen-cal-head {
    height: 24px;
    align-items: center;
    color: var(--scw-ink);
    border: 1px solid var(--scw-line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: rgba(var(--scw-surface-rgb), .35);
}
.sub-screen-calendar-widget .sub-screen-cal-grid {
    border: 1px solid var(--scw-line);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.sub-screen-calendar-widget .sub-screen-cal-cell {
    box-sizing: border-box;
    height: 23px;
    max-height: none;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 0;
    border-right: 1px solid var(--scw-line);
    border-bottom: 1px solid var(--scw-line);
    color: var(--scw-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.sub-screen-calendar-widget .sub-screen-cal-cell:nth-child(7n) { border-right: 0; }
.sub-screen-calendar-widget .sub-screen-cal-cell:nth-last-child(-n+7) { border-bottom: 0; }
.sub-screen-calendar-widget .sub-screen-cal-outside { opacity: .82; }
.home-desktop-page .sub-screen-calendar-widget .sub-screen-cal-today {
    border-radius: 5px;
    background: var(--scw-accent);
    color: var(--scw-accent-ink);
    font-weight: 400;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.home-desktop-page .sub-screen-calendar-widget .sub-screen-clock-block {
    position: relative;
    min-width: 0;
    gap: 3px;
    align-items: center;
    color: var(--scw-ink);
}
.sub-screen-calendar-widget .sub-screen-flips {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 10px;
    color: var(--scw-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.home-desktop-page .sub-screen-calendar-widget .sub-screen-flip,
.sub-screen-calendar-widget .scw-clock-colon {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: clamp(27px, 8.2vw, 38px);
    letter-spacing: 0;
}
.sub-screen-calendar-widget .scw-clock-colon { padding: 0 1px 3px; }
.sub-screen-calendar-widget .sub-screen-flips:focus-visible {
    outline: 2px solid var(--scw-ink);
    outline-offset: 3px;
}
.home-desktop-page .sub-screen-calendar-widget .sub-screen-lunar {
    width: 100%;
    min-height: 30px;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    color: var(--scw-ink);
    overflow-wrap: anywhere;
}
.sub-screen-calendar-widget .scw-mascot {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    width: 100%;
    pointer-events: none;
}
.sub-screen-calendar-widget .scw-mascot img {
    display: block;
    width: 90px;
    height: 90px;
    max-width: 100%;
    object-fit: contain;
}
.sub-screen-calendar-widget[data-calendar-contrast="dark"] .scw-mascot img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 1px 2px rgba(255, 255, 255, .45));
}
.sub-screen-calendar-widget .ssc-clock-alarm-badge {
    box-sizing: border-box;
    align-self: center;
    max-width: 100%;
    min-width: 0;
    gap: 3px;
    padding: 2px 5px;
    margin-top: 1px;
    border: 1px solid var(--scw-line);
    background: rgba(var(--scw-surface-rgb), .5);
    color: var(--scw-ink);
    font: inherit;
    font-size: 10px;
    line-height: 1.5;
}
.sub-screen-calendar-widget .ssc-clock-alarm-badge[hidden] { display: none; }
.sub-screen-calendar-widget #ssc-clock-alarm-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sub-screen-calendar-widget .ssc-badge-dot { background: var(--scw-ink); box-shadow: none; flex-shrink: 0; }
@media (max-width: 359px) {
    .home-desktop-page .sub-screen-calendar-widget { padding: 13px 12px; column-gap: 10px; }
    .sub-screen-calendar-widget .sub-screen-cal-head,
    .sub-screen-calendar-widget .sub-screen-cal-grid { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .sub-screen-calendar-widget .sub-screen-flips.ssc-clock-clickable { transition: none; }
}
