/* ============ 下载中心页面样式 ============ */

/* 区域容器 */
.pdl-downloads-area {
    padding: 80px 0;
}

.pdl-bg-light   { background-color: #ffffff; }
.pdl-bg-gray    { background-color: #f8f9fc; }
.pdl-bg-primary { background-color: #f0f4ff; }
.pdl-bg-dark    { background-color: #1a1a2e; color: #e8e8f0; }
.pdl-bg-dark .pdl-title,
.pdl-bg-dark .pdl-platform-name { color: #ffffff; }
.pdl-bg-dark .pdl-desc,
.pdl-bg-dark .pdl-stat-item { color: #b8b8d0; }

/* ============ 标题区 ============ */
.pdl-section-title {
    margin-bottom: 40px;
}

.pdl-layout-center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pdl-layout-left {
    text-align: left;
    max-width: 720px;
}

.pdl-subtitle {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #6c5ce7, #a8a0ff);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pdl-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    color: #1a1a2e;
}

.pdl-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6a6a82;
    margin: 0 0 24px;
}

/* 统计 */
.pdl-stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
    margin-bottom: 24px;
    font-size: 14px;
    color: #5a5a72;
}

.pdl-bg-dark .pdl-stats {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.pdl-stat-item strong {
    color: #6c5ce7;
    font-weight: 700;
    font-size: 16px;
}

.pdl-bg-dark .pdl-stat-item strong {
    color: #a8a0ff;
}

.pdl-stat-divider {
    color: #c8c8d8;
}

/* 搜索框 */
.pdl-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 20px auto 0;
}

.pdl-layout-left .pdl-search-wrap {
    margin-left: 0;
}

.pdl-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8a0ff;
    pointer-events: none;
}

.pdl-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: 28px;
    font-size: 15px;
    background: #ffffff;
    color: #1a1a2e;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.pdl-search-input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
}

.pdl-search-input::placeholder {
    color: #a8a0c8;
}

.pdl-bg-dark .pdl-search-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.pdl-bg-dark .pdl-search-input::placeholder {
    color: #8888a8;
}

/* ============ 平台卡片 ============ */
.pdl-platforms-row {
    margin-top: 50px;
}

.pdl-platform-col {
    margin-bottom: 30px;
}

.pdl-platform-card {
    background: #ffffff;
    border: 1px solid rgba(230, 235, 245, 0.6);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.06);
    display: flex;
    flex-direction: column;
}

.pdl-platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.2);
}

.pdl-bg-dark .pdl-platform-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* 卡片头部 */
.pdl-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pdl-platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.pdl-platform-card:hover .pdl-platform-icon {
    transform: scale(1.08) rotate(-6deg);
    transition: transform 0.35s ease;
}

/* 渐变方案 */
.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-5 { background: linear-gradient(135deg, #30cfd0, #6c5ce7); }
.gradient-6 { background: linear-gradient(135deg, #f5576c, #fee140); }

.pdl-platform-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    flex: 1;
    min-width: 120px;
}

.pdl-version-count {
    font-size: 12px;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.pdl-bg-dark .pdl-version-count {
    background: rgba(168, 160, 255, 0.15);
    color: #a8a0ff;
}

/* ============ 版本列表 ============ */
.pdl-card-content {
    flex: 1;
}

.pdl-version-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdl-version-item {
    border-bottom: 1px dashed rgba(230, 235, 245, 0.8);
    padding: 4px 0;
    transition: background 0.25s ease;
}

.pdl-version-item:last-child {
    border-bottom: none;
}

.pdl-version-item:hover {
    background: rgba(108, 92, 231, 0.04);
}

.pdl-bg-dark .pdl-version-item {
    border-color: rgba(255, 255, 255, 0.08);
}

.pdl-bg-dark .pdl-version-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pdl-version-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    color: #4a4a62;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-wrap: wrap;
}

.pdl-version-link:hover {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 8px;
}

.pdl-bg-dark .pdl-version-link {
    color: #b8b8d0;
}

.pdl-bg-dark .pdl-version-link:hover {
    color: #a8a0ff;
    background: rgba(168, 160, 255, 0.08);
}

.pdl-version-link i {
    color: #a8a0ff;
    font-size: 15px;
    flex-shrink: 0;
}

.pdl-version-name {
    font-size: 14.5px;
    font-weight: 600;
    flex: 1;
    min-width: 80px;
}

.pdl-version-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
    font-weight: 600;
    white-space: nowrap;
}

.pdl-bg-dark .pdl-version-tag {
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;
}

.pdl-version-size {
    font-size: 12px;
    color: #8a8aa8;
    background: rgba(108, 92, 231, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.pdl-bg-dark .pdl-version-size {
    background: rgba(255, 255, 255, 0.06);
    color: #b8b8d0;
}

.pdl-version-date {
    font-size: 11px;
    color: #a8a8c0;
    margin-left: auto;
    white-space: nowrap;
}

.pdl-version-req {
    display: block;
    font-size: 11px;
    color: #8a8aa8;
    padding: 2px 8px 8px;
    margin-top: -4px;
}

.pdl-version-req i {
    margin-right: 4px;
}

/* 折叠的版本项 */
.pdl-version-hidden {
    display: none;
}

.pdl-version-list.pdl-expanded .pdl-version-hidden {
    display: block;
}

/* 展开按钮 */
.pdl-show-more-versions {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(230, 235, 245, 0.6);
}

.pdl-toggle-versions {
    background: none;
    border: none;
    color: #6c5ce7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.pdl-toggle-versions:hover {
    background: rgba(108, 92, 231, 0.1);
}

.pdl-toggle-versions .pdl-less-text {
    display: none;
}

.pdl-version-list.pdl-expanded ~ .pdl-show-more-versions .pdl-more-text {
    display: none;
}

.pdl-version-list.pdl-expanded ~ .pdl-show-more-versions .pdl-less-text {
    display: inline;
}

.pdl-version-list.pdl-expanded ~ .pdl-show-more-versions .pdl-toggle-versions i {
    transform: rotate(180deg);
}

.pdl-toggle-versions i {
    transition: transform 0.3s ease;
}

.pdl-bg-dark .pdl-toggle-versions {
    color: #a8a0ff;
}

.pdl-bg-dark .pdl-show-more-versions {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ============ 卡片底部 ============ */
.pdl-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 235, 245, 0.6);
    text-align: center;
}

.pdl-bg-dark .pdl-card-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.pdl-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    background: rgba(108, 92, 231, 0.08);
    color: #6c5ce7;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdl-more-btn:hover {
    background: #6c5ce7;
    color: #ffffff;
    transform: translateX(4px);
}

.pdl-more-btn i {
    transition: transform 0.3s ease;
}

.pdl-more-btn:hover i {
    transform: translateX(3px);
}

/* 立即下载按钮 - 更醒目 */
.pdl-download-btn {
    background: linear-gradient(135deg, #6c5ce7, #a8a0ff);
    color: #ffffff !important;
    padding: 10px 28px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
}

.pdl-download-btn:hover {
    background: linear-gradient(135deg, #5b4bd1, #8a82f0);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.pdl-download-btn i {
    font-size: 13px;
}

.pdl-download-btn:hover i {
    transform: translateY(2px);
}

.pdl-bg-dark .pdl-more-btn {
    background: rgba(168, 160, 255, 0.12);
    color: #a8a0ff;
}

.pdl-bg-dark .pdl-more-btn:hover {
    background: #6c5ce7;
    color: #ffffff;
}

/* ============ 空状态 ============ */
.pdl-empty-versions,
.pdl-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a8a8c0;
}

.pdl-empty-versions i,
.pdl-empty-state i {
    font-size: 48px;
    color: #c8c8d8;
    margin-bottom: 16px;
    display: block;
}

.pdl-empty-versions span,
.pdl-empty-state h3 {
    font-size: 16px;
    color: #6a6a82;
    margin: 0 0 8px;
}

.pdl-empty-state p {
    color: #8a8aa8;
    font-size: 14px;
    margin: 0;
}

/* ============ 搜索无结果 ============ */
.pdl-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #8a8aa8;
}

.pdl-no-results i {
    font-size: 64px;
    color: #c8c8d8;
    margin-bottom: 20px;
}

.pdl-no-results h4 {
    font-size: 20px;
    color: #4a4a62;
    margin: 0 0 8px;
}

.pdl-no-results p {
    font-size: 14px;
    margin: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .pdl-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .pdl-downloads-area {
        padding: 60px 0;
    }

    .pdl-title {
        font-size: 26px;
    }

    .pdl-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pdl-version-link {
        flex-wrap: wrap;
    }

    .pdl-version-date {
        margin-left: 0;
        width: 100%;
        padding-left: 28px;
    }
}

@media (max-width: 576px) {
    .pdl-platform-card {
        padding: 24px 20px;
    }

    .pdl-card-header {
        gap: 12px;
    }

    .pdl-platform-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .pdl-platform-name {
        font-size: 18px;
    }
}

/* ============ 无障碍 ============ */
@media (prefers-reduced-motion: reduce) {
    .pdl-platform-card,
    .pdl-platform-icon,
    .pdl-toggle-versions i,
    .pdl-more-btn,
    .pdl-more-btn i {
        transition: none;
    }

    .pdl-platform-card:hover {
        transform: none;
    }
}
