/* ============================================================
   店铺首页 - Element UI 风格
   ============================================================ */

/* ========== 店铺头部 ========== */
.shop-header {
    margin-top: -20px;
}

.shop-header-banner {
    background-size: cover;
    background-position: center;
    background-color: #f5f7fa;
    min-height: 240px;
    position: relative;
}

.shop-header-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
    min-height: 240px;
    padding: 50px 0 28px;
    display: flex;
    align-items: flex-end;
}

.shop-header-content {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    width: 100%;
}

.shop-header-left {
    flex-shrink: 0;
}

.shop-header-logo {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.shop-header-info {
    flex: 1;
    color: #fff;
    min-width: 0;
    padding-bottom: 4px;
}

.shop-header-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.shop-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}
.shop-header-tag i { font-size: 11px; }

.tag-level-default { background: rgba(144,147,153,.85); color: #fff; }
.tag-level-info   { background: rgba(64,158,255,.85); color: #fff; }
.tag-level-warning{ background: rgba(230,162,60,.85); color: #fff; }
.tag-level-danger { background: rgba(245,108,108,.85); color: #fff; }

.shop-header-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0.92;
}
.shop-header-badges span { display: inline-flex; align-items: center; gap: 3px; }

.shop-header-intro {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.82;
    line-height: 1.5;
    max-width: 520px;
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-header-actions .btn {
    border-radius: 18px;
    font-size: 13px;
    padding: 6px 18px;
}
.shop-header-actions .btn-danger {
    background: #F56C6C;
    border-color: #F56C6C;
}
.shop-header-actions .btn-danger:hover {
    background: #e85454;
    border-color: #e85454;
}

.shop-header-contact {
    font-size: 12px;
    opacity: 0.75;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 头部统计卡片（浮动） */
.shop-header-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -8px;
}

.shop-stat-item {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 12px 18px;
    text-align: center;
    color: #fff;
    min-width: 80px;
    transition: background 0.2s;
}
.shop-stat-item:hover {
    background: rgba(255,255,255,0.2);
}

.shop-stat-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.shop-stat-label {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 2px;
}

/* ========== 导航标签栏 ========== */
.shop-nav {
    background: #fff;
    border-bottom: 1px solid #EBEEF5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 50px;
    z-index: 100;
}

.shop-nav .container { padding: 0; }

.shop-nav-inner {
    display: flex;
    gap: 0;
}

.shop-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    text-decoration: none;
    color: #606266;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.shop-nav-item:hover {
    color: #F56C6C;
    text-decoration: none;
    background: #fef0f0;
}

.shop-nav-item.active {
    color: #F56C6C;
    border-bottom-color: #F56C6C;
}

.shop-nav-item i {
    font-size: 20px;
    opacity: 0.8;
}

.shop-nav-item .nav-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.shop-nav-item .nav-label {
    font-size: 12px;
    color: #909399;
}

.shop-nav-item.active .nav-label,
.shop-nav-item:hover .nav-label {
    color: #F56C6C;
}

/* ========== 主体区域 ========== */
.shop-main {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* ========== 公告栏 ========== */
.shop-notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e6;
    border: 1px solid #fce1b5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.shop-notice-bar .notice-icon {
    font-size: 18px;
    color: #E6A23C;
    flex-shrink: 0;
    margin-top: 2px;
}

.shop-notice-bar .notice-content {
    flex: 1;
    font-size: 13px;
    color: #795548;
    line-height: 1.6;
}

/* ========== 工具栏 ========== */
.shop-toolbar {
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-toolbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.shop-toolbar-title small {
    font-size: 13px;
    font-weight: 400;
    margin-left: 4px;
}

.shop-toolbar-sort {
    display: flex;
    gap: 0;
    border: 1px solid #DCDFE6;
    border-radius: 6px;
    overflow: hidden;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    color: #606266;
    text-decoration: none;
    border-right: 1px solid #DCDFE6;
    transition: all 0.2s;
}

.sort-btn:last-child { border-right: 0; }

.sort-btn:hover {
    color: #F56C6C;
    background: #fef0f0;
    text-decoration: none;
}

.sort-btn.active {
    color: #fff;
    background: #F56C6C;
}

/* ========== 商品卡片网格 ========== */
.shop-goods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.shop-goods-card {
    width: calc(25% - 10.5px);
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.shop-goods-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #fde2e2;
}

.card-cover {
    display: block;
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f5f7fa;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.shop-goods-card:hover .card-cover img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(4px);
}

.card-badge.free { background: rgba(103,194,58,.88); }
.card-badge.premium { background: rgba(230,162,60,.88); }

/* 域名卡片封面 */
.card-cover.domain-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}

.card-cover.domain-cover a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.domain-card-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    word-break: break-all;
    padding: 10px 16px;
}

.card-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

.card-title a {
    color: #303133;
    text-decoration: none;
}

.card-title a:hover {
    color: #F56C6C;
}

.card-tag {
    font-size: 12px;
    color: #409EFF;
    margin-bottom: 4px;
}

.card-domain {
    font-size: 12px;
    color: #909399;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-price {
    margin-bottom: 6px;
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #F56C6C;
}

.price-free {
    font-size: 18px;
    font-weight: 700;
    color: #67C23A;
}

.price-original {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.card-meta {
    font-size: 12px;
    color: #909399;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.card-meta i { opacity: 0.6; }

/* ========== 空状态 ========== */
.shop-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    color: #909399;
}

.shop-empty .empty-icon {
    font-size: 56px;
    margin-bottom: 14px;
    color: #DCDFE6;
}

.shop-empty p {
    margin: 0;
    font-size: 14px;
}

/* ========== 分页 ========== */
.shop-pagination {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 8px;
}

/* ========== 通用卡片（替换 Bootstrap Panel） ========== */
.shop-card {
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.shop-card-header {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    border-bottom: 1px solid #EBEEF5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.shop-card-body {
    padding: 18px;
}

/* ========== 评价区域 ========== */
.shop-reviews-card {
    margin-top: 20px;
}

.shop-reviews-list {
    max-height: 600px;
    overflow-y: auto;
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #EBEEF5;
}

.review-user-info {
    flex: 1;
    min-width: 0;
}

.review-nickname {
    font-weight: 500;
    color: #303133;
    font-size: 13px;
    display: block;
    line-height: 1.3;
}

.review-stars {
    font-size: 12px;
    color: #f0ad4e;
}

.review-time {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
}

.review-body {
    padding-left: 44px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.review-goods {
    color: #409EFF;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 4px;
    text-decoration: none;
    background: #ecf5ff;
    padding: 1px 8px;
    border-radius: 3px;
}

.review-reply {
    margin: 8px 0 0 44px;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
}

/* ========== 侧边栏 ========== */

/* 店铺信息卡 */
.shop-info-side .shop-info-avatar {
    text-align: center;
}

.shop-info-side .shop-info-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #EBEEF5;
}

.shop-info-name {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px;
    color: #303133;
    text-align: center;
}

.shop-info-meta {
    text-align: left;
    font-size: 13px;
}

.info-meta-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.info-meta-label {
    color: #909399;
    width: 48px;
    flex-shrink: 0;
}

.info-meta-val {
    color: #303133;
}

.shop-info-divider {
    border: 0;
    border-top: 1px solid #EBEEF5;
    margin: 14px 0;
}

.shop-info-contact p {
    font-size: 13px;
    color: #606266;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-info-contact p i {
    color: #bbb;
    width: 14px;
    text-align: center;
}

.shop-info-contact p:last-child {
    margin-bottom: 0;
}

/* 交易动态 */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    padding: 11px 14px;
    border-bottom: 1px solid #f5f7fa;
    transition: background 0.15s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #fafafa;
}

.activity-user {
    font-size: 13px;
    margin-bottom: 2px;
}

.act-nickname {
    color: #409EFF;
    font-weight: 500;
}

.act-action {
    color: #909399;
}

.act-goods {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-meta {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 热销推荐 */
.hot-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hot-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #EBEEF5;
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-title {
    font-size: 13px;
    color: #303133;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.hot-title:hover {
    color: #F56C6C;
    text-decoration: none;
}

.hot-price-row {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hot-price {
    color: #F56C6C;
    font-weight: 600;
}

.hot-sales {
    color: #bbb;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .shop-goods-card {
        width: calc(33.33% - 10px);
    }

    .shop-header-content {
        flex-wrap: wrap;
    }

    .shop-header-stats {
        width: 100%;
        justify-content: space-around;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,0.2);
        align-self: auto;
    }

    .shop-stat-item {
        min-width: auto;
        padding: 10px 14px;
    }

    .shop-stat-num {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .shop-goods-card {
        width: calc(50% - 7px);
    }

    .shop-header-banner {
        min-height: auto;
    }

    .shop-header-overlay {
        padding: 24px 0 20px;
        min-height: auto;
    }

    .shop-header-logo {
        width: 60px;
        height: 60px;
    }

    .shop-header-name {
        font-size: 18px;
    }

    .shop-nav-item {
        padding: 12px 6px;
    }

    .shop-nav-item .nav-num {
        font-size: 16px;
    }

    .shop-nav-item i {
        font-size: 16px;
    }

    .shop-nav-item .nav-label {
        font-size: 11px;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .shop-toolbar-sort {
        width: 100%;
    }

    .sort-btn {
        flex: 1;
        justify-content: center;
    }
}
