/* ===== 产品网格小部件 ===== */
.qing-pg-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
}

.qing-pg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    cursor: pointer;
    position: relative;
}
.qing-pg-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* 图片区域 */
.qing-pg-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.qing-pg-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    transition: transform .4s ease;
}
.qing-pg-card:hover .qing-pg-thumb img {
    transform: scale(1.03);
}

/* 内容区 */
.qing-pg-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* 产品标题(SKU) */
.qing-pg-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.3;
}
.qing-pg-title a {
    color: inherit;
    text-decoration: none;
}

/* 产品描述(富文本) */
.qing-pg-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}
.qing-pg-desc p {
    margin: 0 0 3px;
}
.qing-pg-desc strong,
.qing-pg-desc b {
    display: block;
    color: #333;
}
.qing-pg-desc ul,
.qing-pg-desc ol {
    margin: 4px 0 4px 16px;
    padding: 0;
}
.qing-pg-desc li {
    margin-bottom: 2px;
}
.qing-pg-desc br {
    display: block;
    content: "";
    margin-bottom: 2px;
}

/* SKU编号滚动区 */
.qing-pg-sku-wrap {
    position: relative;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.qing-pg-sku-scroll {
    max-height: 80px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.qing-pg-sku-scroll::-webkit-scrollbar {
    width: 4px;
}
.qing-pg-sku-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}
.qing-pg-sku-item {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
}
.qing-pg-sku-item:last-child {
    border-bottom: none;
}
.qing-pg-sku-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.qing-pg-sku-nav span {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    user-select: none;
}
.qing-pg-sku-nav span:hover {
    color: #333;
}

/* 库存 */
.qing-pg-inventory {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.qing-pg-inventory strong {
    color: #333;
}

/* 数量选择器 */
.qing-pg-qty {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 14px;
}
.qing-pg-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #1a56db;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s;
}
.qing-pg-qty-btn:hover {
    color: #0f3fa8;
}
.qing-pg-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}
.qing-pg-qty-input::-webkit-outer-spin-button,
.qing-pg-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 底部按钮 */
.qing-pg-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.qing-pg-btn-more {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #1a56db;
    color: #1a56db;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}
.qing-pg-btn-more:hover {
    background: #1a56db;
    color: #fff;
}
.qing-pg-btn-inquiry {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    color: #fff;
    background: #1a56db;
    cursor: pointer;
    transition: background .2s;
}
.qing-pg-btn-inquiry:hover {
    background: #0f3fa8;
    color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
    .qing-pg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .qing-pg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .qing-pg-grid { grid-template-columns: 1fr; }
}
