/* ============================================
   下载中心 - 列表布局 · 蓝紫渐变主题
   ============================================ */

:root {
    --dc-bg: #0a0a1a;
    --dc-surface: rgba(255,255,255,0.04);
    --dc-card: rgba(255,255,255,0.05);
    --dc-card-hover: rgba(255,255,255,0.09);
    --dc-border: rgba(255,255,255,0.07);
    --dc-primary: #7c5cfc;
    --dc-primary-glow: rgba(124,92,252,0.25);
    --dc-accent: #38bdf8;
    --dc-success: #10b981;
    --dc-text: #e2e8f0;
    --dc-text-muted: #94a3b8;
    --dc-text-dim: #64748b;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dc-bg);
    color: var(--dc-text);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(56,189,248,0.06) 0%, transparent 60%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.dc-header {
    border-bottom: 1px solid var(--dc-border);
    background: rgba(10,10,26,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.dc-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.dc-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.dc-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--dc-text-muted);
    transition: all 0.2s;
}
.dc-back:hover {
    border-color: var(--dc-primary);
    color: #fff;
    background: var(--dc-surface);
}

/* ===== Hero ===== */
.dc-hero {
    padding: 64px 24px 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.dc-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(124,92,252,0.15);
    color: var(--dc-primary);
    border: 1px solid rgba(124,92,252,0.25);
    margin-bottom: 24px;
}
.dc-hero h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--dc-accent) 50%, var(--dc-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.dc-hero p {
    font-size: 17px;
    color: var(--dc-text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Stats ===== */
.dc-stats {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    gap: 16px;
}
.dc-stat-card {
    flex: 1;
    min-width: 140px;
    padding: 20px 24px;
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,92,252,0.12);
    color: var(--dc-primary);
    flex-shrink: 0;
}
.dc-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.dc-stat-label {
    font-size: 13px;
    color: var(--dc-text-muted);
    margin-top: 2px;
}

/* ===== List Wrapper ===== */
.dc-list-wrapper {
    max-width: 1100px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

/* ===== List Head ===== */
.dc-list-head {
    margin-bottom: 4px;
}
.dc-list-head-row {
    padding: 10px 24px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.dc-list-head-row > div {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dc-text-dim);
}

/* ===== List Row (Grid) ===== */
.dc-list-row {
    display: grid;
    grid-template-columns: 1fr 100px 90px 90px 190px;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 8px;
    background: var(--dc-card);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: all 0.2s;
}
.dc-list-row:hover {
    background: var(--dc-card-hover);
    border-color: rgba(124,92,252,0.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* ===== Column: Name ===== */
.dc-col-name {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.dc-name-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(124,92,252,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.dc-name-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.dc-name-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    word-break: break-word;
}
.dc-name-desc {
    font-size: 13px;
    color: var(--dc-text-muted);
    line-height: 1.4;
}
.dc-name-qq {
    display: inline-block;
    font-size: 12px;
    color: var(--dc-accent);
    padding: 2px 8px;
    background: rgba(56,189,248,0.08);
    border-radius: 6px;
    width: fit-content;
}

/* ===== Column: Type ===== */
.dc-col-type {
    text-align: center;
}
.dc-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.dc-badge-upload {
    background: rgba(16,185,129,0.12);
    color: var(--dc-success);
}
.dc-badge-link {
    background: rgba(56,189,248,0.12);
    color: var(--dc-accent);
}

/* ===== Column: Size ===== */
.dc-col-size {
    text-align: center;
    font-size: 13px;
    color: var(--dc-text-muted);
    white-space: nowrap;
}

/* ===== Column: Downloads ===== */
.dc-col-downloads {
    text-align: center;
    white-space: nowrap;
}
.dc-count {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}
.dc-count-label {
    font-size: 12px;
    color: var(--dc-text-dim);
}

/* ===== Column: Action ===== */
.dc-col-action {
    display: flex;
    justify-content: flex-end;
}
.dc-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.dc-btn-primary {
    background: linear-gradient(135deg, var(--dc-primary), #6d4ff0);
    color: #fff;
    box-shadow: 0 2px 10px var(--dc-primary-glow);
}
.dc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,92,252,0.4);
}
.dc-btn-ghost {
    background: transparent;
    color: var(--dc-text-muted);
    border: 1px solid var(--dc-border);
}
.dc-btn-ghost:hover {
    border-color: var(--dc-accent);
    color: var(--dc-accent);
    background: rgba(56,189,248,0.06);
}

/* ===== Empty State ===== */
.dc-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.dc-empty-icon {
    color: var(--dc-text-dim);
    margin-bottom: 20px;
    opacity: 0.4;
}
.dc-empty h3 {
    font-size: 20px;
    color: var(--dc-text-muted);
    font-weight: 500;
}
.dc-empty p {
    font-size: 14px;
    color: var(--dc-text-dim);
    margin-top: 8px;
}

/* ===== Footer ===== */
.dc-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--dc-border);
    color: var(--dc-text-dim);
    font-size: 13px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .dc-hero { padding: 40px 20px 32px; }
    .dc-hero h1 { font-size: 28px; }
    .dc-hero p { font-size: 15px; }
    .dc-header-inner { padding: 12px 16px; }
    .dc-stats { padding: 0 16px; flex-direction: column; }
    .dc-list-wrapper { padding: 0 16px 48px; }

    .dc-list-head { display: none; }

    .dc-list-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
        margin-bottom: 12px;
    }

    .dc-col-type,
    .dc-col-size { display: none; }

    .dc-col-downloads {
        text-align: left;
    }

    .dc-col-action {
        justify-content: flex-start;
        padding-top: 4px;
    }
    .dc-action-btns {
        width: 100%;
    }
    .dc-btn-primary {
        flex: 1;
        justify-content: center;
    }
}
