/* 交易市场 — 骨架屏 */

.shop-skel-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-skel-product-card {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jn-line, #efefef);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.shop-skel-card-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.shop-skel-card-main {
    flex: 1;
    min-width: 0;
}

.shop-skel-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-skel-card-aside {
    flex: 0 0 148px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px dashed var(--jn-line, #efefef);
}

.shop-skel-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.shop-skel-overview {
    padding: 4px 0;
}

.shop-skel-overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.shop-skel-overview-stat {
    padding: 12px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    text-align: center;
}

.shop-skel-overview-stat--wide {
    grid-column: 1 / -1;
}

.shop-skel-overview-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 列表页 — 面板头部 */
.shop-skel-list-panel-top {
    padding: 0 0 4px;
}

.shop-skel-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--jn-line, #efefef);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.shop-skel-list-header-main {
    flex: 1;
    min-width: 0;
}

.shop-skel-list-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.shop-skel-list-filter-bar {
    margin-bottom: 0;
    background: #fafbfc;
    border-bottom: 1px solid var(--jn-line, #efefef);
}

.shop-skel-cat-tabs {
    padding: 0 16px;
    min-height: 50px;
    overflow: hidden;
}

.shop-skel-cat-tabs-inner {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.shop-skel-cat-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 50px;
    margin-right: 24px;
    padding: 0 2px;
    box-sizing: border-box;
    border-bottom: 2px solid transparent;
}

.shop-skel-cat-tab.is-active {
    border-bottom-color: rgba(32, 107, 231, 0.35);
}

.shop-skel-cat-tab-bar {
    display: block;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e4e7ed 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: shop-skel-shimmer 1.4s ease infinite;
}

.shop-skel-cat-tab.is-active .shop-skel-cat-tab-bar {
    background: linear-gradient(90deg, rgba(32, 107, 231, 0.12) 25%, rgba(32, 107, 231, 0.22) 37%, rgba(32, 107, 231, 0.12) 63%);
    background-size: 400% 100%;
}

.shop-skel-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid var(--jn-line, #efefef);
}

.shop-skel-list-search {
    flex: 1;
    max-width: 360px;
}

/* 列表页 — 完整侧边栏 */
.shop-skel-list-sidebar {
    width: 100%;
}

.shop-skel-side-card-block {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jn-line, #efefef);
}

.shop-skel-side-card-block:last-child {
    margin-bottom: 0;
}

.shop-skel-side-card-block--cats .el-skeleton {
    display: block;
}

.shop-skel-side-card-block--cats .shop-skel-side-cat-pills {
    margin-top: 10px;
}

.shop-skel-side-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-skel-cat-pill {
    display: inline-block;
    height: 30px;
    border-radius: 15px;
    border: 1px solid #e8ebf0;
    background: linear-gradient(90deg, #f2f4f7 25%, #e8ebf0 37%, #f2f4f7 63%);
    background-size: 400% 100%;
    animation: shop-skel-shimmer 1.4s ease infinite;
    flex-shrink: 0;
}

.shop-skel-cat-pill.is-active {
    border-color: rgba(32, 107, 231, 0.35);
    background: linear-gradient(90deg, rgba(32, 107, 231, 0.15) 25%, rgba(32, 107, 231, 0.28) 37%, rgba(32, 107, 231, 0.15) 63%);
    background-size: 400% 100%;
}

@keyframes shop-skel-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.shop-skel-side-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.shop-skel-side-feature-cell {
    padding: 12px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    text-align: center;
}

.shop-skel-side-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

/* 分页骨架 */
.shop-skel-pager {
    padding: 16px 20px 20px;
    background: #f9fafb;
    border-top: 1px solid var(--jn-line, #efefef);
}

.shop-skel-pager-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 详情页骨架 */
.shop-skel-detail-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.shop-skel-detail-panel {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jn-line, #efefef);
}

.shop-skel-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.shop-skel-detail-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.shop-skel-detail-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jn-line, #efefef);
}

.shop-skel-detail-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.shop-skel-detail-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jn-line, #efefef);
}

.shop-skel-detail-tab-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-skel-detail-sidebar {
    width: 100%;
}

.shop-skel-side-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--jn-line, #efefef);
}

.shop-skel-side-card:last-child {
    margin-bottom: 0;
}

.shop-skel-side-tips {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.shop-skel-side-tip-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.shop-skel-hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .shop-skel-card-row {
        flex-direction: column;
    }

    .shop-skel-card-aside {
        flex: none;
        width: 100%;
        align-items: stretch;
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1px dashed var(--jn-line, #efefef);
    }

    .shop-skel-detail-body {
        flex-direction: column;
    }

    .shop-skel-detail-times,
    .shop-skel-detail-specs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .shop-skel-detail-times,
    .shop-skel-detail-specs {
        grid-template-columns: 1fr;
    }
}
