/* 分類捷徑、左欄分類標題、平滑捲動沿用 main.css 的「分組清單」共用樣式；
   檔案之間的分隔線比照最新消息時間軸：虛線，最後一項不畫 */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
    border-bottom: 1px dashed #ebebeb;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item-title {
    font-weight: 600;
    color: var(--color-text);
}

.download-item-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* 有滑鼠的裝置：說明平常隱藏，移到該列（或鍵盤聚焦到下載鈕）時以提示框浮出，不佔版面。
   只用 opacity 隱藏，螢幕報讀仍讀得到；手機沒有滑鼠浮動，維持直接顯示在檔名下方 */
@media (hover: hover) {
    .download-item-info {
        position: relative;
    }

    .download-item-desc {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0;
        z-index: 10;
        width: max-content;
        max-width: min(28rem, 70vw);
        margin-top: 0;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        background: var(--color-text);
        color: #fff;
        font-size: 0.85rem;
        line-height: 1.6;
        box-shadow: 0 6px 18px rgba(26, 26, 46, 0.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s;
    }

    .download-item:hover .download-item-desc,
    .download-item:focus-within .download-item-desc {
        opacity: 1;
    }
}

.download-item-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.download-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.download-empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8b95;
    border: 1px dashed #cfd6dd;
    border-radius: var(--radius-md);
    background: #f9fbfd;
}