:root {
    /* === 背景色 === */
    --bg-primary: #faf9f7;
    --bg-picker: #faf9f7;
    --bg-overlay: rgba(0, 0, 0, 0.25);
    --bg-hover-light: rgba(0, 0, 0, 0.03);
    --bg-hover-normal: rgba(0, 0, 0, 0.05);
    --bg-hover-selected: rgba(0, 0, 0, 0.02);
    --bg-btn-hover: rgba(0, 0, 0, 0.03);
    --page-bg: var(--bg-primary);
    --theme-muted: #746b62;
    --theme-divider: rgba(200, 195, 190, 0.3);
    --illustration-shadow: rgba(184, 160, 144, 0.18);

    /* === 文字色 === */
    --text-day-number: #1a1a1a;
    --text-poem: #3a3632;
    --text-picker: #4a4642;
    --text-secondary: rgba(74, 74, 74, 0.55);
    --text-year: rgba(74, 74, 74, 0.6);
    --text-weekday-header: rgba(74, 74, 74, 0.5);
    --text-bottom-btn: #5a554e;
    --text-copyright: #c4bfb8;
    --text-other-month: #c4bfb8;
    --text-nav-btn: #8a857e;
    --text-nav-hover: #56534d;
    --text-month-label: #3a3632;

    /* === 节气 / 特殊日子 === */
    --color-jieqi: #a0522d;
    --color-jieqi-bg: rgba(160, 82, 45, 0.08);
    --color-holiday: #2d5a87;
    --color-holiday-bg: rgba(45, 90, 135, 0.08);
    --color-festival: #8b6b4c;
    --color-festival-bg: rgba(139, 107, 76, 0.08);

    /* === 边框/分割线 === */
    --border-container: 1px solid rgba(200, 195, 190, 0.25);
    --border-divider: 1px dotted rgba(200, 195, 190, 0.3);
    --shadow-btn: 0 1px 6px rgba(0, 0, 0, 0.04);

    /* === 画幅尺寸 === */
    --app-min-width: 320px;
    --app-max-width: 480px;
    --app-min-height: 560px;
    --app-max-height: 900px;
    --calendar-page-width: min(100vw, var(--app-max-width));
    --calendar-page-height: min(100dvh, var(--app-max-height));
    --device-bottom-inset: env(safe-area-inset-bottom, 0px);
    --bottom-bar-height: calc(clamp(64px, calc(var(--calendar-page-height) * .095), 80px) + var(--device-bottom-inset));
    --poem-bottom-offset: calc(var(--bottom-bar-height) + clamp(20px, calc(var(--calendar-page-height) * .038), 34px));
    --date-year-number-gap: 0px;
    --date-number-lunar-gap: clamp(10px, calc(var(--calendar-page-height) * .024), 20px);
    /* Before layout is measured, keep a safe proportional fallback. */
    --visual-safe-top: calc(100% * 700 / 1920);
    --visual-safe-bottom: 12.5%;

    /* === 字体族 === */
    --font-kai: 'LXGW WenKai TC', 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', serif;
    --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html, body {
    height: 100%;
    min-height: var(--app-min-height);
    width: 100%;
    min-width: min(var(--app-min-width), 100vw);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-primary);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== 手机容器 + 极浅线框
     Web端：固定 480×900 画幅，居中显示（默认）
     手机端：全屏自适应，铺满视口（@media 查询覆盖）
========== */
.phone-container {
    width: min(100vw, var(--app-max-width));
    height: min(100dvh, var(--app-max-height));
    min-width: min(var(--app-min-width), 100vw);
    min-height: var(--app-min-height);
    max-width: var(--app-max-width);
    max-height: var(--app-max-height);
    background: var(--page-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: var(--border-container);
    transition: background-color 0.35s ease;
    isolation: isolate;
}

/* ========== 手机端：全屏自适应 ========== */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    html, body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    body {
        display: block;  /* 取消 flex 居中 */
    }
    .phone-container {
        width: 100vw;
        height: max(100dvh, var(--app-min-height));
        min-width: unset;
        min-height: var(--app-min-height);
        max-width: none;
        max-height: none;
        border: none;
        border-radius: 0;
    }
    /* 手机端触摸区宽度用百分比，适配不同屏幕 */
    .touch-zone { width: 16%; }
    .touch-zone-left { left: 0; right: auto; }
    .touch-zone-right { right: 0; left: auto; }
}

/* ========== 顶部年份 ========== */
.year-header {
    position: relative;
    z-index: 2;
    text-align: center;
    flex-shrink: 0;
    margin-top: max(calc(clamp(24px, calc(var(--calendar-page-height) * .07), 60px) - 10px), calc(env(safe-area-inset-top, 0px) + 12px));
}

.year-text {
    font-family: var(--font-kai);
    font-size: 14px;
    font-weight: 300;
    color: var(--theme-muted);
    letter-spacing: 6px;
    line-height: 1.6;
}

/* ========== 日期区域 - 视觉校正年份/数字/农历间距 ========== */
.date-section {
    position: relative;
    z-index: 2;
    text-align: center;
    flex-shrink: 0;
    margin-top: var(--date-year-number-gap);
}

.day-number {
    font-family: var(--font-serif);
    font-size: clamp(72px, min(calc(var(--calendar-page-width) * .32), calc(var(--calendar-page-height) * .19)), 160px);
    font-weight: 500;
    color: var(--text-day-number);
    line-height: 1;
    letter-spacing: -2px;
    padding: 0;
}

.weekday-text {
    /* Keep date facts legible when an existing artwork reaches the header. */
    position: relative;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--page-bg);
    font-family: var(--font-kai), var(--font-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--theme-muted);
    letter-spacing: 2px;
    margin-top: var(--date-number-lunar-gap);
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ========== 特殊日子标签 ========== */
.sd {
    display: inline-block;
    font-family: var(--font-kai);
    font-size: 12px;
    font-weight: 400;
    padding: 1px 8px;
    border-radius: 6px;
    vertical-align: middle;
    line-height: 1.6;
}
.sd-jieqi   { color: var(--color-jieqi); background: var(--color-jieqi-bg); }
.sd-holiday { color: var(--color-holiday); background: var(--color-holiday-bg); }
.sd-festival{ color: var(--color-festival); background: var(--color-festival-bg); }

/* ========== 作品只在主体安全区内显示 ========== */
.content-area {
    flex: 1;
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: 0 24px;
    min-height: 0;
    background: transparent !important;
}

.visual-stage,
.preview-safe-area {
    position: absolute;
    inset: var(--visual-header-bottom, var(--visual-safe-top)) 0 var(--visual-bottom-inset, var(--visual-safe-bottom));
}

.visual-stage {
    z-index: 0;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.visual-stage * {
    pointer-events: none;
}

.visual-stage.is-none {
    display: none;
}

/* The clipped frame follows the actual date and poem edges at every size. */
.visual-artwork {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.visual-media {
    position: absolute;
    width: var(--media-width, 100%);
    height: var(--media-height, 100%);
    left: var(--media-left, 0px);
    top: var(--media-top, 0px);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.visual-video {
    object-fit: contain;
    mix-blend-mode: var(--visual-blend-mode, normal);
}

.visual-stacked-canvas {
    display: block;
    mix-blend-mode: var(--visual-blend-mode, normal);
}

.visual-source-video {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.visual-image-layer {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.visual-stage.is-image .visual-image-layer,
.visual-stage.is-video.has-image:not(.video-ready):not(.stacked-ready) .visual-image-layer,
.visual-stage.is-video.video-failed.has-image .visual-image-layer,
.visual-stage.is-stacked-video.has-image:not(.stacked-ready):not(.video-ready) .visual-image-layer,
.visual-stage.is-stacked-video.stacked-failed.has-image:not(.video-ready) .visual-image-layer {
    opacity: var(--visual-opacity, 0.9);
}

.visual-stage.video-ready .visual-image-layer,
.visual-stage.stacked-ready:not(.stacked-failed) .visual-image-layer {
    opacity: 0;
}

.visual-stage.is-video.video-ready:not(.video-failed) .visual-video {
    opacity: var(--visual-opacity, 0.92);
}

.visual-stage.is-stacked-video.stacked-ready:not(.stacked-failed) .visual-stacked-canvas {
    opacity: var(--visual-opacity, 0.92);
}

.visual-controls {
    position: absolute;
    top: max(10px, calc(env(safe-area-inset-top, 0px) + 6px));
    right: max(10px, calc(env(safe-area-inset-right, 0px) + 10px));
    z-index: 120;
    display: flex;
    gap: 2px;
}

.visual-audio-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--theme-muted);
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.visual-audio-toggle[hidden] {
    display: none;
}

.visual-audio-toggle:hover {
    transform: translateY(-1px);
    background: var(--bg-hover-light);
}

.visual-audio-toggle:focus-visible {
    outline: 2px solid var(--theme-muted);
    outline-offset: 2px;
}

.visual-audio-toggle[data-muted="false"] {
    color: var(--text-poem);
    background: var(--bg-hover-light);
}

.visual-audio-toggle svg {
    width: 17px;
    height: 17px;
    display: block;
    pointer-events: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.visual-audio-toggle .audio-muted-line {
    opacity: 0;
}

.visual-audio-toggle[data-muted="true"] .audio-muted-line {
    opacity: 1;
}

/* ========== 文字覆盖层 - 固定在底部栏上方 ========== */
.text-overlay {
    position: absolute;
    bottom: var(--poem-bottom-offset);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

.poem-text {
    font-family: var(--font-kai), var(--font-serif);
    font-size: clamp(16px, min(calc(var(--calendar-page-width) * .04), calc(var(--calendar-page-height) * .026)), 18px);
    line-height: 1.55;
    letter-spacing: 0.12em;
    width: fit-content;
    text-align: right;
    color: var(--theme-poem, var(--text-poem));
    text-shadow: 0 1px 4px rgba(255,255,255,0.9);
    max-width: calc(100% - 64px);
    pointer-events: none;
}

/* ========== 所有文字都自然漂浮 - 更轻柔 ========== */
.fc {
    display: inline-block;
    will-change: transform;
    animation-name: gf;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.fc:nth-of-type(1) { animation-duration: 4.2s; animation-delay: 0.0s; }
.fc:nth-of-type(2) { animation-duration: 3.8s; animation-delay: 0.2s; }
.fc:nth-of-type(3) { animation-duration: 4.5s; animation-delay: 0.4s; }
.fc:nth-of-type(4) { animation-duration: 3.6s; animation-delay: 0.1s; }
.fc:nth-of-type(5) { animation-duration: 4.0s; animation-delay: 0.3s; }
.fc:nth-of-type(6) { animation-duration: 4.3s; animation-delay: 0.15s; }
.fc:nth-of-type(7) { animation-duration: 3.9s; animation-delay: 0.35s; }
.fc:nth-of-type(8) { animation-duration: 4.1s; animation-delay: 0.05s; }
.fc:nth-of-type(9) { animation-duration: 3.7s; animation-delay: 0.25s; }
.fc:nth-of-type(10) { animation-duration: 4.4s; animation-delay: 0.45s; }
.fc:nth-of-type(11) { animation-duration: 3.5s; animation-delay: 0.12s; }
.fc:nth-of-type(12) { animation-duration: 4.6s; animation-delay: 0.28s; }
.fc:nth-of-type(13) { animation-duration: 4.0s; animation-delay: 0.38s; }
.fc:nth-of-type(14) { animation-duration: 3.8s; animation-delay: 0.08s; }
.fc:nth-of-type(15) { animation-duration: 4.2s; animation-delay: 0.22s; }
.fc:nth-of-type(16) { animation-duration: 3.6s; animation-delay: 0.32s; }

@keyframes gf {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(var(--tx1), var(--ty1)) rotate(var(--r1)); }
    40% { transform: translate(var(--tx2), var(--ty2)) rotate(var(--r2)); }
    60% { transform: translate(var(--tx3), var(--ty3)) rotate(var(--r3)); }
    80% { transform: translate(var(--tx4), var(--ty4)) rotate(var(--r4)); }
}

.fc:nth-of-type(1) { --tx1:-1px;--ty1:-2px;--r1:0.15deg;--tx2:0.8px;--ty2:-1px;--r2:-0.1deg;--tx3:-0.6px;--ty3:-1.8px;--r3:0.12deg;--tx4:1.2px;--ty4:-0.8px;--r4:-0.08deg; }
.fc:nth-of-type(2) { --tx1:0.9px;--ty1:-1.5px;--r1:-0.12deg;--tx2:-1px;--ty2:-2px;--r2:0.15deg;--tx3:0.7px;--ty3:-0.8px;--r3:-0.1deg;--tx4:-1.5px;--ty4:-1.5px;--r4:0.1deg; }
.fc:nth-of-type(3) { --tx1:-1.8px;--ty1:-0.9px;--r1:0.1deg;--tx2:0.9px;--ty2:-2.2px;--r2:-0.18deg;--tx3:-1.1px;--ty3:-1.2px;--r3:0.15deg;--tx4:0.6px;--ty4:-1.8px;--r4:-0.12deg; }
.fc:nth-of-type(4) { --tx1:0.6px;--ty1:-2.5px;--r1:-0.12deg;--tx2:-1.5px;--ty2:-0.6px;--r2:0.15deg;--tx3:1.8px;--ty3:-1.5px;--r3:-0.18deg;--tx4:-0.9px;--ty4:-1px;--r4:0.1deg; }
.fc:nth-of-type(5) { --tx1:-1.2px;--ty1:-1.8px;--r1:0.18deg;--tx2:1.6px;--ty2:-1.2px;--r2:-0.1deg;--tx3:-0.5px;--ty3:-2.2px;--r3:0.1deg;--tx4:1.1px;--ty4:-0.6px;--r4:-0.15deg; }
.fc:nth-of-type(6) { --tx1:1.7px;--ty1:-1.2px;--r1:-0.15deg;--tx2:-1.1px;--ty2:-2px;--r2:0.12deg;--tx3:0.4px;--ty3:-0.9px;--r3:-0.2deg;--tx4:-1.4px;--ty4:-1.6px;--r4:0.18deg; }
.fc:nth-of-type(7) { --tx1:-0.9px;--ty1:-2.2px;--r1:0.08deg;--tx2:1.4px;--ty2:-0.8px;--r2:-0.15deg;--tx3:-1.8px;--ty3:-1.4px;--r3:0.18deg;--tx4:0.8px;--ty4:-1.9px;--r4:-0.08deg; }
.fc:nth-of-type(8) { --tx1:1.3px;--ty1:-0.7px;--r1:-0.18deg;--tx2:-0.7px;--ty2:-1.7px;--r2:0.12deg;--tx3:1.6px;--ty3:-1.1px;--r3:-0.12deg;--tx4:-1.9px;--ty4:-1.5px;--r4:0.2deg; }
.fc:nth-of-type(9) { --tx1:-1.5px;--ty1:-1.6px;--r1:0.15deg;--tx2:1.1px;--ty2:-1px;--r2:-0.12deg;--tx3:-0.8px;--ty3:-2px;--r3:0.12deg;--tx4:1.4px;--ty4:-0.9px;--r4:-0.1deg; }
.fc:nth-of-type(10) { --tx1:0.8px;--ty1:-1.9px;--r1:-0.1deg;--tx2:-1.3px;--ty2:-1.3px;--r2:0.18deg;--tx3:1px;--ty3:-0.7px;--r3:-0.15deg;--tx4:-1.1px;--ty4:-1.8px;--r4:0.12deg; }
.fc:nth-of-type(11) { --tx1:-1.1px;--ty1:-1.3px;--r1:0.12deg;--tx2:1.8px;--ty2:-0.9px;--r2:-0.08deg;--tx3:-1.4px;--ty3:-1.7px;--r3:0.15deg;--tx4:0.7px;--ty4:-1.2px;--r4:-0.12deg; }
.fc:nth-of-type(12) { --tx1:1.5px;--ty1:-0.8px;--r1:-0.15deg;--tx2:-0.9px;--ty2:-1.9px;--r2:0.1deg;--tx3:1.3px;--ty3:-1.4px;--r3:-0.18deg;--tx4:-1.6px;--ty4:-1.1px;--r4:0.15deg; }
.fc:nth-of-type(13) { --tx1:-0.7px;--ty1:-2px;--r1:0.1deg;--tx2:1.2px;--ty2:-1.1px;--r2:-0.12deg;--tx3:-1.5px;--ty3:-0.9px;--r3:0.18deg;--tx4:1px;--ty4:-1.6px;--r4:-0.1deg; }
.fc:nth-of-type(14) { --tx1:1.1px;--ty1:-1.4px;--r1:-0.12deg;--tx2:-1.6px;--ty2:-0.7px;--r2:0.15deg;--tx3:0.9px;--ty3:-1.8px;--r3:-0.08deg;--tx4:-1.3px;--ty4:-1px;--r4:0.12deg; }
.fc:nth-of-type(15) { --tx1:-1.9px;--ty1:-1.1px;--r1:0.18deg;--tx2:0.6px;--ty2:-1.6px;--r2:-0.1deg;--tx3:-1.1px;--ty3:-1.3px;--r3:0.12deg;--tx4:1.7px;--ty4:-0.8px;--r4:-0.15deg; }
.fc:nth-of-type(16) { --tx1:0.7px;--ty1:-1.7px;--r1:-0.08deg;--tx2:-1.4px;--ty2:-1.2px;--r2:0.12deg;--tx3:1.5px;--ty3:-0.9px;--r3:-0.12deg;--tx4:-0.8px;--ty4:-1.5px;--r4:0.1deg; }

/* ========== 触摸翻页区域 - 贴边，不受content-area margin限制 ========== */
.touch-zone {
    position: absolute;
    width: 80px;
    z-index: 100;
    cursor: pointer;
}
.touch-zone:focus,
.touch-zone:focus-visible {
    outline: 0 solid transparent;
    box-shadow: none;
}
/* 用负margin抵消content-area的24px左右边距，实现贴边 */
.touch-zone-left { left: 0; top: var(--visual-header-bottom, 280px); bottom: var(--bottom-bar-height); }
.touch-zone-right { right: 0; top: var(--visual-header-bottom, 280px); bottom: var(--bottom-bar-height); }

/* ========== 分割线（极细点状虚线） ========== */
.divider {
    display: none;
}

/* ========== 底部栏 ========== */
.bottom-bar {
    position: relative;
    z-index: 30;
    height: var(--bottom-bar-height);
    padding: 0 max(28px, env(safe-area-inset-right, 0px)) var(--device-bottom-inset) max(28px, env(safe-area-inset-left, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px dotted var(--theme-divider);
    background: var(--page-bg);
}

/* 按钮样式 - 纯文字 */
.bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 44px;
    font-family: var(--font-kai);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-bottom-btn);
    letter-spacing: 2px;
    line-height: 1;
    text-indent: 2px;
    cursor: pointer;
    padding: 0 12px;
    border-radius: 9999px;
}
.bottom-btn:hover { background: var(--bg-btn-hover); }
.bottom-btn:active { opacity: 0.4; }

.copyright {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 300;
    color: var(--text-copyright);
    letter-spacing: 1px;
    padding: 6px 10px;
}

/* ========== 日期选择器（择日）- 底部滑出
     面板底部对齐 .phone-container 容器底部
     Web端：面板宽度固定480px，水平居中
     手机端：全宽自适应
========== */
.picker-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-overlay);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.picker-overlay.active { opacity: 1; pointer-events: auto; }

.picker-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-picker);
    border-radius: 20px 20px 0 0;
    z-index: 201;
    padding: 28px 32px calc(40px + var(--device-bottom-inset));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
    touch-action: pan-y; /* 允许纵向滚动，横向由JS处理 */
    user-select: none;
}
.picker-overlay.active .picker-panel { transform: translateY(0); }

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .picker-panel {
        width: 100%;
        max-width: none;
        margin-left: 0;
        left: 0;
        border-radius: 18px 18px 0 0;
        padding: 24px 24px calc(36px + var(--device-bottom-inset));
    }
}

.picker-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}
.picker-weekday {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-weekday-header);
    padding: 8px 0 4px;
    letter-spacing: 1px;
}
.picker-day {
    font-family: var(--font-kai);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-picker);
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.picker-day.other-month { color: var(--text-other-month); }
.picker-day.disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.35;
}
/* .today 和 .selected 样式由 .day-num 控制（见下方）
 * selected 不显示任何圆点（无 ::after 伪元素） */

/* 不规则 hover 形状 - 56x56px，不规则几何体变幻 */
.picker-day .day-num {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
/* 统一 hover 形状：不规则几何体 */
.picker-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    width: 56px;
    height: 56px;
    background: var(--bg-hover-normal);
    border-radius: 30% 70% 60% 40% / 60% 40% 70% 30%;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
    z-index: 1;
    pointer-events: none;
}
.picker-day:hover::before {
    opacity: 1;
    animation: geoMorph 3s ease-in-out infinite;
}
/* 被选中日期停留的 hover 颜色更浅 */
.picker-day.selected::before {
    background: var(--bg-hover-selected);
    opacity: 1;
    animation: geoMorph 3s ease-in-out infinite;
}
@keyframes geoMorph {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 38% 62% 58% 42% / 52% 48% 52% 48%;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.04) rotate(3deg);
        border-radius: 54% 46% 44% 56% / 46% 54% 56% 44%;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.97) rotate(-2deg);
        border-radius: 44% 56% 52% 48% / 56% 44% 48% 52%;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.03) rotate(2.5deg);
        border-radius: 58% 42% 46% 54% / 42% 58% 54% 46%;
    }
    80% {
        transform: translate(-50%, -50%) scale(0.99) rotate(-1.5deg);
        border-radius: 46% 54% 58% 42% / 54% 46% 42% 58%;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 38% 62% 58% 42% / 52% 48% 52% 48%;
    }
}

/* today/selected 状态 */
.picker-day.today .day-num {
    color: var(--color-jieqi);  /* 赭石色：文字和圆点一致 */
    font-weight: 500;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
/* today 和 selected 重叠时只显示 today 样式 */
.picker-day.today.selected .day-num {
    color: var(--color-jieqi);
}
/* selected 仅改文字颜色 + hover 效果（无圆点） */
.picker-day.selected:not(.today) .day-num {
    color: var(--text-poem);
}

/* 择日面板内的特殊日子小标签（无背景纯文字） */
.picker-sd {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-kai);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}
.picker-sd-jieqi   { color: var(--color-jieqi); }
.picker-sd-holiday { color: var(--color-holiday); }
.picker-sd-festival{ color: var(--color-festival); }
.picker-nav-btn {
    font-family: var(--font-kai);
    font-size: 13px;
    color: var(--text-nav-btn);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    background: none;
    border: none;
}
.picker-nav-btn:hover { color: var(--text-nav-hover); background: var(--bg-hover-normal); }
.picker-month-label {
    font-family: var(--font-kai);
    font-size: 16px;
    color: var(--text-month-label);
    letter-spacing: 4px;
}
