/* 往年今日 - 完整样式 */
#yearly-today-module {
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#yearly-today-module:not(.hidden) {
    opacity: 1;
}

.yt-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.yt-label {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
}

.yt-scroller {
    overflow: hidden;
    position: relative;
    flex: 1;
    min-height: 24px;
}

.yt-items {
    display: inline-block;
    white-space: nowrap;
}

.yt-item {
    display: inline-block;
    text-decoration: none;
    color: #333;
    margin-right: 20px;
    white-space: nowrap;
    transition: color 0.2s;
}

.yt-item:hover {
    color: #0073aa;
}

/* === 日期格式切换 === */
.yt-date-short {
    display: none;
}

@media (max-width: 767px) {
    .yt-date-full {
        display: none !important;
    }
    .yt-date-short {
        display: inline !important;
    }

    /* 移动端布局 */
    .yt-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .yt-label {
        align-self: flex-start;
    }

    .yt-scroller {
        width: 10; /* 修复 typo */
        width: 100%;
        height: auto;
        min-height: 50px; /* 关键兜底：防止内容不可见 */
    }

    .yt-items {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
    }

    .yt-item {
        display: block;
        margin: 0 0 8px 0 !important;
        white-space: normal;
        line-height: 1.4;
        padding: 2px 0;
        box-sizing: border-box;
    }
}