/* 页面标题样式 - 应用渐变文字色 */
.page-title {
    text-align: center;
    margin: 30px 0;
    font-size: 28px;
    /* 渐变文字效果 */
    background: linear-gradient(to right, #e64340, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 板块容器样式 */
.section {
    margin: 15px auto;
    width: 1280px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    /* 渐变边框+文字色 */
    color: #e64340;
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #e64340, #ff8a00) 1;
    padding-left: 10px;
}

/* 主推软件 - 一行4个 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 独立站模版 - 一行4个 */
.dlz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* 卡片通用样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(230, 67, 64, 0.15);
}

/* 主推软件卡片图片样式 */
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* 独立站模版卡片图片样式（类名dlz开头，高度翻倍） */
.dlz-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* 卡片内容样式 */
.card-content {
    padding: 15px;
}

.card-title {
    width: 300px;
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

/* 产品标签容器（适配多个标签） */
.dlz-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* 产品标签样式（类名dlz开头） */
.dlz-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 400;
    white-space: nowrap;
}

/* 不同标签背景色（类名dlz开头） */
.dlz-tag-1 { background-color: #e64340; }
.dlz-tag-2 { background-color: #ff8a00; }
.dlz-tag-3 { background-color: #3498db; }
.dlz-tag-4 { background-color: #2ecc71; }
.dlz-tag-5 { background-color: #9b59b6; }
.dlz-tag-6 { background-color: #1abc9c; }
.dlz-tag-7 { background-color: #f1c40f; }
.dlz-tag-8 { background-color: #e74c3c; }
.dlz-tag-9 { background-color: #34495e; }
.dlz-tag-10 { background-color: #8e44ad; }
.dlz-tag-11 { background-color: #16a085; }
.dlz-tag-12 { background-color: #f39c12; }

.card-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 按钮应用渐变色调 */
.btn-front {
    background: linear-gradient(to right, #e64340, #ff8a00);
    color: white;
    border: none;
}

.btn-front:hover {
    background: linear-gradient(to right, #d43a37, #e77e00);
    transform: scale(1.02);
}

.btn-back {
    background-color: white;
    color: #e64340;
    border: 1px solid #e64340;
}

.btn-back:hover {
    background-color: #fff5f0;
    border-color: #ff8a00;
}

/* 响应式适配 */
@media (max-width: 1280px) {
    body {
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .software-grid, .dlz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .software-grid, .dlz-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .card-img {
        height: 150px;
    }
    .dlz-img {
        height: 300px;
    }
}