/* ═══════════════════════════════════════════════════════
   文件下载站样式
   ═══════════════════════════════════════════════════════ */
.files-card { max-width: 1100px; margin: 24px auto 0; }

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.files-actions { display: flex; gap: 8px; align-items: center; }

.files-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}
.files-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.files-breadcrumb a:hover { text-decoration: underline; }
.files-breadcrumb .sep { color: var(--text-muted); }
.files-breadcrumb .current { color: var(--text-secondary); font-weight: 600; }

.files-table { width: 100%; border-collapse: collapse; }
.files-table th, .files-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.files-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.files-table tbody tr { transition: background var(--transition-fast); }
.files-table tbody tr:hover td { background: var(--bg); }

.files-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}
.files-link:hover { color: var(--primary); }
.files-link .dir-icon { color: #f59e0b; font-size: 16px; }
.files-link .file-icon { color: var(--text-muted); font-size: 15px; }

.action-btns { display: flex; gap: 4px; }
.action-btns button {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-btns button:hover { background: var(--bg); color: var(--text); border-color: #cbd5e1; }
.action-btns button.danger { color: var(--danger); border-color: #fecaca; }
.action-btns button.danger:hover { background: var(--danger-light); border-color: var(--danger); }

/* ═══════════════════════════════════════════════════════
   骨架屏（列表加载中）
   ═══════════════════════════════════════════════════════ */
.files-skeleton-row td { pointer-events: none; }

.sk {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sk-bar {
    display: inline-block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--border-light) 25%,
        var(--surface) 37%,
        var(--border-light) 63%
    );
    background-size: 400% 100%;
    animation: sk-shimmer 1.4s ease-in-out infinite;
}

.sk-icon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.sk-text { width: 160px; max-width: 40%; }
.sk-size { width: 56px; }
.sk-time { width: 110px; }
.sk-actions { width: 56px; }

@keyframes sk-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
