/* ==================== 商品列表页 ==================== */

/* 筛选面板 */
.filter-panel {
    margin-bottom: 20px;
}
.filter-panel .filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EBEEF5;
}
.filter-panel .filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-panel .category-section {
    border-bottom: 1px solid #EBEEF5;
    padding-bottom: 15px;
}
.filter-panel .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
    padding-left: 0;
    border-left: none;
}
.filter-panel .section-title i {
    color: #409EFF;
    margin-right: 4px;
}
.filter-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f7fa;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    user-select: none;
}
.filter-toggle-header:hover {
    background-color: #e9ecef;
}
.filter-toggle-header .toggle-text {
    font-size: 13px;
    color: #606266;
    font-weight: 500;
}
.filter-toggle-header .toggle-icon {
    font-size: 12px;
    color: #909399;
    transition: transform 0.3s;
}
.filter-collapsible {
    display: none;
    padding-top: 10px;
    border-top: 1px dashed #DCDFE6;
}
.category-buttons, .price-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-btn, .price-btn {
    padding: 6px 16px;
    border: 1px solid #DCDFE6;
    border-radius: 20px;
    text-decoration: none;
    color: #606266;
    font-size: 13px;
    transition: all 0.3s;
}
.category-btn:hover, .price-btn:hover {
    border-color: #409EFF;
    color: #409EFF;
}
.category-btn.active, .price-btn.active {
    background: #409EFF;
    border-color: #409EFF;
    color: #fff;
}
.filter-panel .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.filter-panel .form-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}
.filter-panel .form-group label {
    font-weight: normal;
    margin-bottom: 5px;
    font-size: 12px;
    color: #606266;
}
.filter-panel .form-group select {
    min-width: 120px;
    padding: 6px 12px;
    border: 1px solid #DCDFE6;
    border-radius: 4px;
    font-size: 12px;
}
.filter-panel .btn-row {
    justify-content: flex-end;
}
.filter-panel .btn {
    margin-left: 10px;
}
.sort-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #EBEEF5;
}
.sort-row .sort-label {
    margin-right: 10px;
    font-weight: normal;
    font-size: 13px;
    color: #606266;
}
.sort-row a {
    margin-right: 15px;
    padding: 5px 12px;
    text-decoration: none;
    color: #606266;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}
.sort-row a:hover {
    color: #409EFF;
}
.sort-row a.active {
    background: #409EFF;
    color: #fff;
}

/* 商品网格容器 */
.goods-grid-wrap {
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    padding: 24px 16px 8px;
}

/* 商品卡片网格 */
.goods-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}
.goods-grid .goods-item {
    width: calc(33.333% - 16px);
    margin: 0 8px 20px;
    box-sizing: border-box;
}
.goods-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.goods-link:hover {
    box-shadow: 0 6px 24px rgba(64,158,255,0.12);
    transform: translateY(-3px);
    border-color: #b3d8ff;
    text-decoration: none;
    color: inherit;
}
.goods-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f5f7fa;
}
.goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.goods-link:hover .goods-cover img {
    transform: scale(1.05);
}
.goods-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(64,158,255,0.88);
    backdrop-filter: blur(4px);
}
.goods-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.goods-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}
.goods-link:hover .goods-title {
    color: #409EFF;
}
.goods-desc {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #909399;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 39px;
}
.goods-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.tech-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #409EFF;
    background: #ecf5ff;
    border: 1px solid #d9ecff;
    border-radius: 3px;
}
.goods-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.goods-price {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #F56C6C;
}
.original-price {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.goods-stats {
    font-size: 12px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}
.goods-stats i {
    margin-right: 2px;
    opacity: 0.7;
}
.pagination-wrapper {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 10px;
}
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #909399;
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
}
.empty-state i {
    font-size: 56px;
    margin-bottom: 15px;
    color: #DCDFE6;
}

@media (max-width: 992px) {
    .goods-grid .goods-item { width: calc(50% - 16px); }
}
@media (max-width: 768px) {
    .goods-grid .goods-item { width: calc(100% - 16px); }
}

/* ==================== 商品详情页样�?==================== */

.goods-detail-panel {
    margin-bottom: 20px;
}

/* 第一区块：左右布局 */
.goods-detail-top {
    display: flex;
    align-items: flex-start;
}
.goods-detail-left {
    min-width: 0;
}
.goods-detail-right {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
}

/* 图片画廊 */
.goods-gallery {
    margin-bottom: 0;
}
.main-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7fa;
    margin-bottom: 12px;
    border: 1px solid #EBEEF5;
}
.main-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.main-image-box:hover img {
    transform: scale(1.02);
}
.img-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.img-badge.free {
    background: #67C23A;
}

.thumb-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb-item {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid #E4E7ED;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.thumb-item:hover {
    border-color: #909399;
    transform: translateY(-2px);
}
.thumb-item.active {
    border-color: #409EFF;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题 */
.goods-detail-header {
    margin-bottom: 18px;
}
.goods-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #ecf5ff;
    color: #409EFF;
    border-radius: 20px;
    font-size: 12px;
}

/* 价格�?*/
.goods-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: 8px;
    margin-bottom: 18px;
}
.price-current-big {
    font-size: 28px;
    font-weight: 700;
    color: #F56C6C;
}
.price-free-big {
    font-size: 28px;
    font-weight: 700;
    color: #67C23A;
}
.price-original-big {
    font-size: 15px;
    color: #bbb;
    text-decoration: line-through;
}
.price-discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #F56C6C;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 统计 */
.goods-detail-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}
.goods-detail-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.goods-detail-stats i {
    font-size: 14px;
}

/* 操作按钮 */
.goods-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.goods-action-btn {
    min-width: 120px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}
.goods-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.goods-action-btn.btn-favorited {
    color: #F56C6C;
    border-color: #F56C6C;
}
.goods-action-btn.btn-favorited .fa-heart-o:before {
    content: "\f004";
    color: #F56C6C;
}

/* 标签�?*/
.goods-detail-tabs {
    margin-bottom: 20px;
}
.goods-nav-tabs {
    border-bottom: 2px solid #E4E7ED;
    margin-bottom: 20px;
}
.goods-nav-tabs > li > a {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #606266;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.goods-nav-tabs > li > a:hover {
    background: none;
    color: #409EFF;
    border-bottom-color: #409EFF;
}
.goods-nav-tabs > li.active > a,
.goods-nav-tabs > li.active > a:hover,
.goods-nav-tabs > li.active > a:focus {
    color: #409EFF;
    background: none;
    border: none;
    border-bottom: 2px solid #409EFF;
}

.goods-tab-content {
    min-height: 200px;
}

/* 描述内容 */
.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}
.detail-content img {
    max-width: 100%;
    height: auto;
}

/* 规格�?*/
.specs-table {
    margin: 0;
}
.spec-key {
    width: 30%;
    background: #f5f7fa;
    font-weight: 600;
    color: #555;
    padding: 12px 16px;
    font-size: 14px;
}
.spec-val {
    padding: 12px 16px;
    font-size: 14px;
    color: #303133;
}

/* 发货说明 */
.delivery-content {
    padding: 10px 0;
}
.delivery-content p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 6px;
}
.delivery-content i {
    margin-right: 4px;
}

/* 相关推荐 */
.related-grid {
    margin: 0 -8px;
}
.related-item {
    margin-bottom: 16px;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.related-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.related-cover {
    display: block;
    height: 140px;
    overflow: hidden;
    background: #f5f7fa;
}
.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.related-item:hover .related-cover img {
    transform: scale(1.05);
}
.related-info {
    padding: 12px;
}
.related-name {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-name a {
    color: #303133;
    text-decoration: none;
}
.related-name a:hover {
    color: #409EFF;
}
.related-price {
    font-size: 15px;
    font-weight: 600;
    color: #F56C6C;
}

/* 侧边�?*/
.side-shop-card,
.side-hot-panel {
    margin-bottom: 20px;
}
.panel-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.shop-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #EBEEF5;
}
.shop-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-card-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0 0 8px 0;
}
.shop-card-level {
    text-align: center;
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* 服务/网站订单卡片占位 */
.order-card-img.service-placeholder,
.order-card-img.website-placeholder,
.order-card-img.service-placeholder i,
.order-card-img.website-placeholder i {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 8px;
    flex-shrink: 0;
}

.side-hot-list .list-group-item {
    font-size: 13px;
    padding: 10px 14px;
    border-left: none;
    border-right: none;
}
.side-hot-list .list-group-item a {
    color: #555;
    text-decoration: none;
    display: inline-block;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.side-hot-list .list-group-item a:hover {
    color: #409EFF;
}

/* 收藏列表�?*/
.favorites-grid {
    margin: 0 -8px;
}
.favorite-item {
    margin-bottom: 16px;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.favorite-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.favorite-cover {
    display: block;
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #f5f7fa;
}
.favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.favorite-item:hover .favorite-cover img {
    transform: scale(1.05);
}
.fav-status-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.favorite-info {
    padding: 12px;
}
.favorite-name {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.favorite-name a {
    color: #303133;
    text-decoration: none;
}
.favorite-name a:hover {
    color: #409EFF;
}
.favorite-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.favorite-price {
    font-size: 15px;
    font-weight: 600;
    color: #F56C6C;
}
.btn-unfav {
    transition: all 0.2s;
}
.btn-unfav:hover {
    color: #F56C6C;
    border-color: #F56C6C;
}

/* 响应�?*/
@media (max-width: 767px) {
    .goods-detail-top {
        flex-direction: column;
    }
    .goods-detail-left {
        margin-bottom: 20px;
        width: 100%;
    }
    .goods-detail-right {
        width: 100%;
    }
    .goods-detail-title {
        font-size: 18px;
    }
    .price-current-big,
    .price-free-big {
        font-size: 22px;
    }
    .goods-detail-stats {
        gap: 16px;
        font-size: 12px;
    }
    .goods-detail-actions {
        flex-direction: column;
    }
    .goods-action-btn {
        width: 100%;
    }
    .thumb-item {
        width: 56px;
        height: 56px;
    }
    .related-cover {
        height: 100px;
    }
}

/* 评价星级 */
#star-rating { font-size: 24px; color: #f0ad4e; cursor: pointer; }
#star-rating .fa { margin-right: 4px; transition: transform 0.15s; }
#star-rating .fa:hover { transform: scale(1.2); }
.delivery-tip { cursor: help; border-bottom: 1px dashed #5cb85c; }

/* 订单卡片列表 */
.order-card-list { margin-bottom: 10px; }
.order-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
    background: #fff;
}
.order-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.order-card-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #EBEEF5;
    margin-right: 15px;
}
.order-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-card-img.domain-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
.order-card-img.domain-placeholder i {
    color: #fff;
}
.order-card-img.points-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf6ec;
    border: 1px solid #f0d5a3;
}
.order-card-img.points-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.order-card-img.points-placeholder .fa {
    color: #e6a23c;
}
.order-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-card-title:hover { color: #409EFF; text-decoration: none; }
.order-card-meta {
    font-size: 12px;
    color: #909399;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.order-card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.order-card-price { font-size: 18px; font-weight: 700; }
.order-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; align-items: center; }
.order-card-actions .btn { padding: 2px 8px; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) {
    .order-card { flex-direction: column; }
    .order-card-img { width: 100%; height: 150px; margin: 0 0 10px 0; }
}

/* 评价上传预览 */
#review-images-preview { padding: 0; margin: 5px 0 0; }
#review-images-preview li { display: inline-block; margin: 0 5px 5px 0; }

/* 商品详情页评价 */
.comments-score-bar { display: flex; align-items: center; gap: 24px; padding: 16px 0; margin-bottom: 16px; border-bottom: 1px solid #EBEEF5; }
.csb-left { flex-shrink: 0; text-align: center; }
.comments-avg { font-size: 36px; font-weight: 700; color: #f0ad4e; display: block; line-height: 1; }
.comments-stars { color: #f0ad4e; font-size: 13px; }
.comments-total { color: #909399; font-size: 13px; display: block; margin-top: 4px; }
.csb-dist { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.csbd-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.csbd-label { width: 32px; flex-shrink: 0; color: #606266; text-align: right; }
.csbd-bar { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.csbd-bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.csbd-item.good .csbd-bar i { background: #f0ad4e; }
.csbd-item.mid .csbd-bar i { background: #909399; }
.csbd-item.bad .csbd-bar i { background: #F56C6C; }
.csbd-num { width: 28px; flex-shrink: 0; color: #909399; font-size: 12px; text-align: left; }
.comment-item { padding: 12px 0; border-bottom: 1px solid #EBEEF5; }
.comment-item:last-child { border-bottom: none; }
.comment-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-nickname { font-weight: 500; color: #303133; font-size: 13px; }
.comment-stars { color: #f0ad4e; font-size: 12px; }
.comment-time { color: #bbb; font-size: 12px; margin-left: auto; }
.comment-body { color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.comment-images { margin: 5px 0; }
.comment-images img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; margin-right: 5px; cursor: pointer; }
.comment-reply { background: #f8f8f8; padding: 8px 12px; border-radius: 4px; color: #888; font-size: 13px; margin-top: 6px; }


