:root {
    --dl-green: #6FD65D;
    --dl-text: #E8ECEF;
    --dl-sub: #9EA8AF;
    --dl-line: rgba(255,255,255,.09);
    --dl-panel: linear-gradient(135deg, rgba(9,17,23,.80), rgba(255,255,255,.028), rgba(6,10,14,.76));
    --dl-card: linear-gradient(135deg, rgba(14,22,28,.82), rgba(255,255,255,.024), rgba(8,13,17,.80));
}

.download-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 24px auto 38px;
    color: var(--dl-text);
}

.download-board {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: var(--dl-panel);
    box-shadow: 0 12px 30px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(8px) saturate(88%);
    -webkit-backdrop-filter: blur(8px) saturate(88%);
}

.download-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--dl-line);
}

.download-head-left {
    min-width: 0;
}

.download-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.download-subtitle {
    margin-top: 6px;
    color: var(--dl-sub);
    font-size: 12px;
    line-height: 1.6;
}

.download-head-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(111,214,93,.20);
    border-radius: 8px;
    color: #B7E9AE;
    background: rgba(111,214,93,.07);
    font-size: 11px;
    font-weight: 700;
}

/* 顶部 Steam / CS1.6 主入口 */
.steam-feature {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 16px;
    padding: 19px;
    border: 1px solid rgba(111,214,93,.18);
    border-radius: 10px;
    background:
        radial-gradient(circle at 0 0, rgba(111,214,93,.10), transparent 34%),
        linear-gradient(135deg, rgba(16,25,31,.92), rgba(8,14,18,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.steam-mark {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    background: rgba(255,255,255,.035);
    font-size: 37px;
}

.steam-copy {
    min-width: 0;
}

.steam-kicker {
    margin-bottom: 5px;
    color: var(--dl-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.steam-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}

.steam-desc {
    margin: 6px 0 0;
    color: var(--dl-sub);
    font-size: 12px;
    line-height: 1.65;
}

.steam-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.steam-step {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    color: #C7CFD4;
    background: rgba(255,255,255,.035);
    font-size: 11px;
}

.steam-step b {
    margin-right: 5px;
    color: #fff;
    font-weight: 800;
}

.steam-actions {
    display: grid;
    gap: 9px;
    width: 168px;
}

.dl-btn {
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dl-btn:hover {
    transform: translateY(-1px);
}

.dl-btn-primary {
    color: #081007 !important;
    border: 1px solid rgba(111,214,93,.55);
    background: linear-gradient(180deg, #7CE06B, #64C653);
    box-shadow: 0 6px 15px rgba(111,214,93,.14);
}

.dl-btn-primary:hover {
    background: linear-gradient(180deg, #86E576, #6DCF5B);
}

.dl-btn-dark {
    color: #E5EAED !important;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.045);
}

.dl-btn-dark:hover {
    border-color: rgba(111,214,93,.24);
    background: rgba(111,214,93,.075);
}

/* 购买提示 */
.purchase-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px 16px;
    padding: 10px 13px;
    border: 1px solid rgba(255,193,7,.15);
    border-radius: 8px;
    color: #C7CDD1;
    background: rgba(255,193,7,.035);
    font-size: 11px;
    line-height: 1.6;
}

.purchase-tip i {
    flex: 0 0 auto;
    color: #E0B84E;
}

.purchase-tip strong {
    color: #fff;
}

/* 分组 */
.resource-section {
    border-top: 1px solid var(--dl-line);
}

.resource-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px 10px;
}

.resource-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #F1F4F6;
    font-size: 13px;
    font-weight: 800;
}

.resource-section-title i {
    width: 18px;
    text-align: center;
    color: var(--dl-green);
}

.resource-count {
    color: #7F8A91;
    font-size: 10px;
}

.resource-list {
    padding: 0 12px 12px;
}

.resource-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 70px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.resource-row + .resource-row {
    margin-top: 4px;
}

.resource-row:hover {
    border-color: rgba(255,255,255,.075);
    background: rgba(255,255,255,.027);
    transform: translateX(2px);
}

.resource-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    color: #A9B4BA;
    background: rgba(255,255,255,.035);
    font-size: 17px;
}

.resource-main {
    min-width: 0;
}

.resource-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.resource-name {
    color: #F4F6F7;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.resource-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(111,214,93,.14);
    border-radius: 5px;
    color: #9FD697;
    background: rgba(111,214,93,.055);
    font-size: 9px;
    font-weight: 700;
}

.resource-desc {
    margin-top: 4px;
    color: #8E999F;
    font-size: 11px;
    line-height: 1.5;
}

.resource-action {
    min-width: 94px;
}

.resource-action .dl-btn {
    width: 100%;
    height: 34px;
}

.download-footnote {
    padding: 14px 20px 17px;
    border-top: 1px solid var(--dl-line);
    color: #7E898F;
    font-size: 10px;
    line-height: 1.65;
}

.download-footnote i {
    margin-right: 5px;
    color: #879299;
}

@media (max-width: 860px) {
    .steam-feature {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .steam-mark {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .steam-actions {
        grid-column: 1 / -1;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .download-shell {
        width: calc(100% - 18px);
        margin-top: 12px;
    }

    .download-head {
        padding: 16px;
    }

    .download-head-badge {
        display: none;
    }

    .steam-feature {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 10px;
        padding: 15px;
    }

    .steam-mark {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .steam-actions {
        grid-template-columns: 1fr;
    }

    .purchase-tip {
        margin: 0 10px 10px;
    }

    .resource-section-head {
        padding: 14px 14px 9px;
    }

    .resource-list {
        padding: 0 8px 8px;
    }

    .resource-row {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 0;
        padding: 10px 8px;
    }

    .resource-icon {
        width: 38px;
        height: 38px;
    }

    .resource-action {
        grid-column: 2;
        min-width: 0;
        margin-top: 3px;
    }

    .resource-action .dl-btn {
        width: auto;
        min-width: 96px;
    }
}


/* 本页不加载 header.php，补充基础页面样式 */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.rank {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: #081017;
    color: #E8ECEF;
}