.cpgw-container {
    width: 100%;
}

.cpgw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cpgw-columns-1 { grid-template-columns: 1fr; }
.cpgw-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cpgw-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cpgw-columns-4 { grid-template-columns: repeat(4, 1fr); }

.cpgw-post-card {
    background: #fff;
    padding: 0;
}

.cpgw-post-thumbnail {
    width: 100%;
    overflow: hidden;
}

.cpgw-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.cpgw-post-thumbnail img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cpgw-post-thumbnail:hover img {
    transform: scale(1.05);
}

.cpgw-post-divider {
    width: 100%;
    height: 3px;
    background-color: #c41230;
    margin-bottom: 20px;
}

.cpgw-post-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpgw-post-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpgw-post-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cpgw-post-btn {
    font-size: 14px;
    font-weight: 500;
    color: #c41230;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpgw-post-btn:hover {
    color: #a00f28;
}

.cpgw-post-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cpgw-post-btn-icon img,
.cpgw-post-btn-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cpgw-icon-mask {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.cpgw-post-btn-icon.cpgw-default-icon span {
    font-size: 24px;
    color: #c41230;
    line-height: 1;
}

.cpgw-post-btn-icon:hover {
    opacity: 0.8;
}

.cpgw-post-btn-icon.cpgw-default-icon:hover span {
    color: #a00f28;
}

.cpgw-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px;
}

/* 响应式 */
@media (max-width: 992px) {
    .cpgw-columns-3,
    .cpgw-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cpgw-columns-2,
    .cpgw-columns-3,
    .cpgw-columns-4 {
        grid-template-columns: 1fr;
    }

    .cpgw-post-title {
        font-size: 16px;
    }

    .cpgw-post-desc {
        font-size: 13px;
    }
}
