/* ========== 好物推荐页面样式 ========== */

/* 两栏内容区 — flex 布局，对齐可靠 */
.shop-page-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.shop-main-area {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    align-self: flex-start;
}
.shop-sidebar-area {
    width: 330px;
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
}

/* 红底标签 — 叠在卡片左上角 */
.shop-section-label {
    position: absolute;
    top: 0;
    left: 0;
    background: #c4002d;
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 0 0 6px 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

/* 商品卡片列表 */
.shop-product-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 0;
}
.shop-product-card {
    position: relative;
    margin-top: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.shop-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.shop-card-inner {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: flex-start;
}
.shop-card-img {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shop-card-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.shop-card-placeholder {
    font-size: 3rem;
}
.shop-card-content {
    flex: 1;
    min-width: 0;
}
.shop-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.shop-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin: 0;
}
.shop-card-desc {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 14px;
    text-indent: 2em;
}
.shop-card-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 14px 0;
}
.shop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
    align-items: center;
}
.shop-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.shop-meta-price {
    margin-left: auto !important;
}
.shop-featured-tag {
    color: #d97706 !important;
    font-weight: 600;
}
.shop-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ef4444;
}
.shop-original-price {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.shop-buy-btn {
    display: inline-flex;
    align-items: center;
    background: #c4002d;
    color: #ffffff;
    border: none;
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.shop-buy-btn:hover {
    background: #a30026;
    color: #ffffff;
}

/* 侧边栏 */
.shop-sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}
.shop-sidebar-card h3 {
    color: #d97706;
    font-size: 1rem;
    margin: 0 0 14px 0;
    border-left: 3px solid #ffcc00;
    padding-left: 10px;
}

/* 京东搜索卡片 */
.shop-jd-search-card {
    margin-bottom: 20px;
}

.shop-jd-search-card h3 {
    color: #c4002d;
    border-left-color: #c4002d;
}
.jd-search-row {
    display: flex;
    gap: 6px;
}
.jd-search-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: #f9fafb;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.jd-search-input:focus {
    border-color: #c4002d;
    background: #fff;
}
.jd-search-btn {
    padding: 9px 16px;
    background: #c4002d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    transition: background 0.2s;
}
.jd-search-btn:hover {
    background: #a30024;
}
.shop-featured-list {
    list-style: none;
    padding: 0;
}
.shop-featured-list li {
    margin-bottom: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: 0.2s;
}
.shop-featured-list li:hover {
    background: #fffbeb;
    transform: translateX(5px);
}
.shop-featured-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1f2937 !important;
}
.shop-featured-img {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}
.shop-featured-img img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}
.shop-featured-info {
    flex: 1;
    min-width: 0;
}
.shop-featured-name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-featured-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ef4444;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a {
    display: inline-block;
    padding: 6px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}
.pagination a.active {
    background: #d97706;
    border-color: #d97706;
    color: white;
}
.no-data {
    color: #9ca3af;
    text-align: center;
    padding: 40px;
    background: #f9fafb;
    border-radius: 12px;
}

/* 响应式 */
@media (max-width: 992px) {
    .shop-page-container {
        flex-direction: column;
    }
    .shop-sidebar-area {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .shop-card-inner {
        flex-direction: column;
        text-align: center;
    }
    .shop-card-img {
        margin: 0 auto;
        width: 160px;
        height: 160px;
    }
    .shop-card-img img {
        width: 160px;
        height: 160px;
    }
    .shop-card-title-row {
        flex-direction: column;
        align-items: center;
    }
    .shop-card-meta {
        justify-content: center;
    }
    .shop-buy-btn {
        margin-left: 4px;
    }
    .shop-card-title {
        font-size: 1.2rem;
    }
}

/* 热门商品大图卡片 */
.shop-hot-card {
    margin-top: 24px;
}
.shop-hot-card h3 {
    color: #ef4444;
    border-left-color: #ef4444;
}
.shop-hot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.shop-hot-item {
    display: block;
    text-decoration: none;
    color: #1f2937 !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    transition: all 0.2s;
}
.shop-hot-item:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.shop-hot-img {
    width: 100%;
    height: 160px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shop-hot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-hot-img span {
    font-size: 2.5rem;
}
.shop-hot-title {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 12px 4px 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-hot-price {
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
    padding: 0 12px 12px 12px;
}

/* 口令复制按钮（meta行内） */
.shop-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 3px 10px;
    font-size: 0.72rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.shop-copy-btn:hover {
    border-color: #c4002d;
    color: #c4002d;
    background: #fef2f2;
}
.shop-copy-btn.copied {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}
