/* ==========================================
 * 宜省 - 文章详情页与商品瀑布流专属样式
 * ========================================== */

.ys-single-wrap { max-width: 800px; margin: 20px auto; padding: 25px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.ys-single-title { font-size: 24px; font-weight: bold; margin-bottom: 15px; line-height: 1.5; color: #222; }
.ys-single-meta { font-size: 13px; color: #999; padding-bottom: 15px; border-bottom: 1px dashed #eee; margin-bottom: 25px; display: flex; gap: 15px; }
.ys-single-content { font-size: 16px; line-height: 1.9; color: #333; overflow: hidden; }
.ys-single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }

/* 底部爆款推荐区样式 */
.ys-rec-section { max-width: 800px; margin: 40px auto 30px; padding: 0 10px; }
.ys-rec-title { font-size: 18px; font-weight: bold; color: #222; display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ys-rec-title-left { display: flex; align-items: center; gap: 8px; }
.ys-rec-title-left::before { content: ''; width: 4px; height: 16px; background: #ff5000; border-radius: 2px; }
.ys-rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(min-width: 768px) { .ys-rec-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; } }

.ys-rcard { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; border: 1px solid #f0f0f0; transition: 0.3s; display: flex; flex-direction: column; }
.ys-rcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #ff5000; }
.ys-rcard img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ys-rcard-info { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.ys-rcard-title { font-size: 13px; color: #222; line-height: 1.4; height: 36px; overflow: hidden; margin-bottom: 8px; }
.ys-rcard-price { color: #ff5000; font-size: 18px; font-weight: bold; }
.ys-rcard-price span { font-size: 12px; font-weight: normal; }

/* 卡片按钮呼吸灯动画 (复用给文章内部自动生成的卡片) */
@keyframes pulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.03); } 
    100% { transform: scale(1); } 
}