/* 软件产品列表页样式（/projects） */

body.projects-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px; /* 给固定头部留位置 */
}

.page-hero-section {
    padding: 70px 0 45px;
    background: linear-gradient(135deg, #4f8df5 0%, #6c63ff 50%, #5b8def 100%);
    color: #fff;
    text-align: left;
}

.page-hero-section .page-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-section .page-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.projects-main {
    padding: 30px 0 50px;
}

.projects-filter {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 6px 18px rgba(15, 35, 95, 0.06);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    margin-right: 6px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 14px;
    background-color: #f3f4f8;
    color: #555;
    border: 1px solid transparent;
}

.filter-option:hover {
    background-color: #e0ebff;
    color: #2563eb;
}

.filter-option.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.filter-search .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.projects-list {
    margin-top: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC端固定一行3个 */
    gap: 20px;
    width: 100%;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 35, 95, 0.08);
    border: none;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 正方形，适配 800x800 图片 */
    overflow: hidden;
    background: #f5f5f5;
}

.project-thumb img,
.project-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.project-thumb img {
    object-fit: contain; /* 完整显示图片，不裁剪 */
    object-position: center;
    width: 100%;
    height: 100%;
}

.project-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    font-size: 42px;
}

.project-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 14px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    min-height: 40px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-price em {
    font-style: normal;
    color: #e11d48;
    font-weight: 600;
    font-size: 16px;
}

.project-price del {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 4px;
}

.project-stats {
    font-size: 12px;
    color: #6b7280;
}

.project-stats i {
    color: #f97316;
    margin-right: 3px;
}

.project-actions {
    margin-top: auto;
    padding: 15px;
    padding-top: 5px;
    position: relative;
    z-index: 2;
}

.project-actions .btn-consult-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
}

.projects-empty {
    padding: 60px 0;
    text-align: center;
    color: #9ca3af;
}

.projects-empty i {
    font-size: 42px;
    margin-bottom: 10px;
    display: block;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* 分页 */
.projects-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.projects-pagination .layui-laypage {
    margin: 0;
    display: inline-block;
}

.projects-pagination .layui-laypage a,
.projects-pagination .layui-laypage span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.projects-pagination .layui-laypage a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.projects-pagination .layui-laypage .layui-laypage-curr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.projects-pagination .layui-laypage .layui-laypage-curr em {
    background: transparent;
    color: #fff;
    font-style: normal;
}

.projects-pagination .layui-laypage .layui-laypage-prev,
.projects-pagination .layui-laypage .layui-laypage-next {
    font-weight: 600;
}

.projects-pagination .layui-laypage .layui-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.projects-pagination .layui-laypage .layui-disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* 响应式布局 */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-row {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    body.projects-page {
        padding-top: 70px;
    }

    .page-hero-section {
        padding: 40px 0 30px;
    }

    .page-hero-section .page-title {
        font-size: 22px;
    }

    .projects-main {
        padding: 20px 0 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .projects-filter {
        padding: 12px 15px;
    }
}


