/* ====== 法律商城页专属样式 ====== */
.page-hero { 
    background: linear-gradient(135deg, #f0f6fe 0%, #ffffff 50%, #faf5eb 100%); 
    padding: 48px 0; 
    border-bottom: 1px solid var(--border); 
}
.page-hero h1 { font-size: 2rem; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.page-hero p { color: var(--text-light); font-size: 1rem; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.filter-bar a { 
    padding: 8px 24px; border-radius: 30px; font-size: 0.95rem; color: var(--text-light); 
    background: var(--card-bg); border: 1px solid var(--border); transition: all 0.25s ease; 
    font-weight: 500; text-decoration: none;
}
.filter-bar a:hover, .filter-bar a.active { 
    background: var(--primary); color: #fff; border-color: var(--primary); 
    box-shadow: 0 4px 12px rgba(11, 42, 74, 0.2);
}

/* 商品网格 */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }

.product-card {
    background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; transition: all 0.25s ease; display: flex; flex-direction: column; text-decoration: none;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); border-color: transparent; }

/* 商品图片区 (使用颜色/图标占位) */
.product-image {
    height: 180px; background: linear-gradient(135deg, #eef5ff, #faf5eb);
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative;
}

/* 标签 */
.product-badge {
    position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--primary);
    font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 30px; box-shadow: 0 2px 6px rgba(201, 168, 76, 0.3);
}

/* 商品信息 */
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-title {
    font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 底部价格与按钮 */
.product-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.price-box { display: flex; align-items: baseline; gap: 4px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.price::before { content: '¥'; font-size: 0.85rem; font-weight: normal; margin-right: 2px; }
.original-price { font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; }

.btn-buy {
    padding: 8px 16px; background: rgba(11, 42, 74, 0.05); color: var(--primary); border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.product-card:hover .btn-buy { background: var(--primary); color: #fff; }

/* 底部引导区 */
.shop-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #11263f 100%); border-radius: var(--radius);
    padding: 40px; display: flex; align-items: center; justify-content: space-between;
    color: #fff; margin-top: 40px; box-shadow: 0 10px 30px rgba(11, 42, 74, 0.2);
}
.shop-cta-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.shop-cta-content p { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.xcx-wrapper { display: flex; align-items: center; gap: 20px; }
.xcx-wrapper img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2); }
.xcx-wrapper .xcx-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); text-align: left; }

/* 响应式 */
@media (max-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-image { height: 140px; font-size: 2.5rem; }
    .product-info { padding: 16px; }
    .shop-cta { flex-direction: column; text-align: center; gap: 24px; padding: 32px 20px; }
    .xcx-wrapper { flex-direction: column; gap: 12px; }
    .xcx-wrapper .xcx-text { text-align: center; }
    .page-hero { padding: 36px 0; }
    .page-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 400px) {
    .shop-grid { grid-template-columns: 1fr; }
    .product-image { height: 180px; }
}