.promotional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.promotional-grid .item {
    transition: all .3s;
}
.promotional-grid .item:hover {
    scale: 1.02;
}
.category-title {
    font-size: 1rem;
    font-weight: 700;
}
.category-block:hover .e-block span{
    opacity: 1;
}
.e-block {
    position: absolute;
    bottom: -20px;
    text-align: left;
    width: calc(100% - 60px);
    padding: 0 30px;
    color: #fff;
    cursor: pointer;
}
.background-overlay {
    background-color: #00000026;
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.e-block p {
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
}
.e-block span {
    opacity: 0;
    float: right;
    border: 2px solid #fff;
    padding: 3px 10px;
    border-radius: 50%;
    transition: opacity 0.3s ease 0s;
}

/* blog shortcode */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 三列，等宽 */
    gap: 20px; /* 列之间的间距 */
    margin: 20px 0;
}

.latest-post-item {
    text-align: left; /* 文字左对齐 */
}

.latest-post-item img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* 可选：圆角 */
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.post-date {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .promotional-grid, .latest-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* product-shortcode */
.products-five-container {
    width: 100%;
    margin: 20px 0;
}

/* 5列网格 */
.products-five-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 图片容器 */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumbnail {
    transform: scale(1.05);
}

/* 促销角标 */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 2;
}

/* 产品信息 */
.product-info {
    padding: 15px;
}

/* 分类 */
.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

/* 标题 */
.product-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 10px;
    height: 40px;
    overflow: hidden;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格区域 */
.product-price {
    margin: 10px 0;
}

.product-price .price-range {
    display: block;
    line-height: 1.4;
}

.product-price del {
    color: #95a5a6;
    font-size: 14px;
    font-weight: normal;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: bold;
}

/* 评分 */
.product-rating {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.star-rating {
    color: #f1c40f;
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-five-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-five-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-five-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-five-grid {
        grid-template-columns: 1fr;
    }
}