/* 数据治理实施模板页面样式 */

/* ==================== 模板网格区域 ==================== */
.lsd-empower-system {
    background-color: #F8FAFC;
}

.lsd-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lsd-header-btn-apply-long {
    width: 220px !important;
}
.pc-gov-banner {
  height: 300px !important;
}
/* 模板卡片 */
.lsd-template-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lsd-template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 模板预览图区域 */
.lsd-template-preview {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #F1F5F9;
    overflow: hidden;
}

.lsd-template-preview img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 100%;
    transition: all 0.5s ease;
}

.lsd-template-card:hover .lsd-template-preview img {
    transform: scale(1.05);
}

/* 渐变蒙层 - 从下到上：0%位置#000000CC，80%位置透明，100%透明 */
.lsd-template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0) 80%, 
        rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.lsd-template-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 模板信息区域 */
.lsd-template-info {
    padding: 16px 20px 20px;
}

.lsd-template-title {
    display: none; /* 标题已移到蒙层上 */
}

/* 模板底部信息 */
.lsd-template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsd-template-tag {
    font-size: 14px;
    color: #64748B;
}

.lsd-template-link {
    font-size: 14px;
    color: #3B82F6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.lsd-template-link:hover {
    color: #2563EB;
}

.lsd-template-link svg {
    width: 16px;
    height: 16px;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 1024px) {
    .lsd-templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .lsd-templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lsd-template-preview {
        height: 180px;
    }

    .lsd-template-overlay {
        padding: 12px;
    }

    .lsd-template-preview-title {
        font-size: 14px;
    }

    .lsd-template-info {
        padding: 12px 16px 16px;
    }

    .lsd-template-title {
        display: none;
    }

    .lsd-template-tag {
        font-size: 13px;
    }

    .lsd-template-link {
        font-size: 13px;
    }
}
