/* ==========================================================================
   downloads.css — 前台「下载」区块
   ========================================================================== */

.downloads {
    display: grid;
    gap: 10px;
}

.dl-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: var(--r-lg, 18px);
    background: var(--glass-base, rgba(255, 255, 255, .68));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    color: inherit;
    text-decoration: none;
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.dl-row:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--c1-rgb), .34);
    box-shadow: 0 26px 48px -30px rgba(var(--c1-rgb), .6);
}

.dl-row:active {
    transform: translateY(0);
}

.dl-row__ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(var(--c1-rgb), .16), rgba(var(--c3-rgb), .16));
    color: var(--c1);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    flex: none;
}

.dl-row__main {
    min-width: 0;
}

.dl-row__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-row__meta {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-row__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--c1), var(--c3));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 24px -14px rgba(var(--c1-rgb), .9);
    transition: filter .18s var(--ease), transform .18s var(--ease);
}

.dl-row:hover .dl-row__go {
    filter: saturate(1.1) brightness(1.04);
    transform: translateX(1px);
}

.dl-row__go svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.downloads__empty {
    margin: 0;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-4);
    border-radius: var(--r-lg, 18px);
    border: 1px dashed var(--line);
}

.downloads__empty a {
    color: var(--c1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 620px) {
    .dl-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 13px 14px;
    }

    .dl-row__ico {
        width: 40px;
        height: 40px;
    }

    .dl-row__go {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        margin-top: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-row,
    .dl-row__go {
        transition: none;
    }
}
