/* 商品卡片样式 - 左图右文布局 */
.spc-product-card {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
}

.spc-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.spc-card-inner {
    display: flex;
    padding: 16px;
    gap: 16px;
}

/* 图片区域 - 左侧固定宽度 */
.spc-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.spc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.spc-product-card:hover .spc-image img {
    transform: scale(1.02);
}

/* 图片占位符 */
.spc-image-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-placeholder-icon {
    font-size: 40px;
    opacity: 0.5;
}

/* 信息区域 - 右侧自适应 */
.spc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* 标题 */
.spc-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* 价格 */
.spc-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 12px;
}

.spc-price::before {
    content: '';
    display: none;
}

/* 按钮 */
.spc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.spc-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: scale(1.02);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.spc-arrow {
    transition: transform 0.2s ease;
}

.spc-button:hover .spc-arrow {
    transform: translateX(3px);
}

/* 网格布局 */
.spc-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.spc-grid-item {
    min-width: 0;
}

/* 错误提示 */
.spc-error {
    padding: 12px 16px;
    background: #fff5f5;
    border-left: 3px solid #ff4757;
    color: #c0392b;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

/* 加载动画 */
.spc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.spc-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 2px solid #e9ecef;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spc-spin 0.8s linear infinite;
}

@keyframes spc-spin {
    to { transform: rotate(360deg); }
}

/* 响应式：手机端图片在上方 */
@media (max-width: 640px) {
    .spc-card-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .spc-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    
    .spc-info {
        text-align: center;
    }
    
    .spc-button {
        margin: 0 auto;
    }
    
    .spc-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .spc-product-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .spc-title {
        color: #e0e0e0;
    }
    
    .spc-image-placeholder {
        background: linear-gradient(135deg, #374151 0%, #4c1d95 100%);
    }
}