/* ===== 文章卡片 Elementor 小部件 ===== */

/* Grid 布局 */
.qing-pcw-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
}

/* Swiper 布局 */
.qing-pcw-swiper-wrap {
    position: relative;
    width: 100%;
}
.qing-pcw-nav {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.qing-pcw-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all .2s ease;
}
.qing-pcw-nav-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #fff;
}
.qing-pcw-nav-btn svg {
    width: 20px;
    height: 20px;
}
.qing-pcw-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.qing-pcw-swiper .swiper-wrapper {
    padding-bottom: 8px;
}
.qing-pcw-swiper .swiper-slide {
    height: auto;
}
.qing-pcw-swiper .swiper-slide .qing-pcw-card {
    height: 100%;
}
.qing-pcw-swiper .swiper-button-prev,
.qing-pcw-swiper .swiper-button-next {
    display: none;
}

/* 卡片 */
.qing-pcw-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    margin-bottom: 4px;
}
.qing-pcw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

/* 图片 */
.qing-pcw-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
}
.qing-pcw-thumb img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}
.qing-pcw-card:hover .qing-pcw-thumb img {
    transform: scale(1.05);
}

/* 内容区 */
.qing-pcw-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0 0;
}

/* 标题 - 超出隐藏 */
.qing-pcw-title {
    font-size: 15px;
    font-weight: 700;
    color: #0b1a3a;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.qing-pcw-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.qing-pcw-title a:hover {
    color: #e1241a;
}

/* 日期 */
.qing-pcw-date {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #e1241a;
    margin-bottom: 8px;
}

/* 摘要 - 超出行数隐藏 */
.qing-pcw-excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* 按钮 */
.qing-pcw-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 20px;
    background: #e1241a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s ease, color .2s ease;
}
.qing-pcw-btn:hover {
    background: #c41a14;
    color: #fff;
}

/* 逐个入场动画 */
.qing-pcw-animate {
    opacity: 0;
    transform: translateY(40px);
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.qing-pcw-animate.qing-pcw-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 - 兜底 */
@media (max-width: 767px) {
    .qing-pcw-grid {
        grid-template-columns: 1fr;
    }
}
