/* 资源下载页面样式：简体中文, 桌面端 */

/* 桌面端样式 (宽度大于768px) */
@media (min-width: 769px) {

    /* 资源下载页面标题区域 */
    .main-content-header {
        display: flex;
        flex-direction: column;
        margin: 40px 40px 0 40px;
        padding: 30px;
        background-color: #fafafa;
        text-align: center;
    }

    .main-content-header h1 {
        font-size: 48px;
        font-weight: 700;
        color: #000000;
        margin: 0 0 12px 0;
        line-height: 1.4;
        word-wrap: break-word;
        font-family: var(--font-zh-cn);
    }

    .main-content-header p {
        font-size: 24px;
        font-weight: 400;
        color: #666666;
        margin: 0;
        line-height: 1.5;
        font-family: var(--font-zh-cn);
    }

    /* 下载卡片容器 - 桌面端网格布局 */
    .downloads-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
        margin: 30px 40px;
        padding: 0;
    }

    /* 单个下载卡片 */
    .download-card {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e0e0e0;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        height: 400px;
    }

    .download-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    /* 下载卡片图片区域 */
    .card-image {
        display: flex;
        flex-direction: column;
        padding: 16px 16px 0 16px;
        flex: 2;
        overflow: hidden;
        align-items: center;
        justify-content: center;
    }

    /* 下载卡片内容区域 */
    .card-content {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .card-content h3 {
        font-size: 24px;
        font-weight: 700;
        color: #000000;
        margin: 0;
        line-height: 1.4;
        word-wrap: break-word;
        font-family: var(--font-zh-cn);
    }

    .card-content p {
        font-size: 18px;
        font-weight: 400;
        color: #000000;
        margin: 0;
        line-height: 1.6;
        word-wrap: break-word;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        font-family: var(--font-zh-cn);
    }

    /* 确保页脚正确显示 */
    .downloads-content + .footer {
        margin-top: 0;
    }

    /* 响应式调整 */
    @media (min-width: 1200px) {
        .downloads-content {
            grid-template-columns: repeat(3, 1fr);
        }

        .main-content-header {
            margin: 50px 60px 0 60px;
            padding: 40px;
        }

        .downloads-content {
            margin: 40px 60px;
        }
    }
}