/* ==================== 服务市场列表页 ==================== */

/* 服务市场-筛选 */
.sv-filters { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.fm-label { font-size: 13px; color: #909399; margin-right: 10px; font-weight: 500; }
.sv-filters a { display: inline-block; font-size: 13px; color: #606266; text-decoration: none; padding: 4px 12px; margin-right: 6px; margin-bottom: 3px; border-radius: 16px; transition: all 0.2s; }
.sv-filters a:hover { color: #E6A23C; background: #fdf6ec; }
.sv-filters a.cur { color: #fff; background: #E6A23C; }

/* 服务市场-列表 */
.sv-grid { margin-bottom: 16px; display: flex; flex-wrap: wrap; margin-right: -8px; }
.sv-cell { width: 33.33%; box-sizing: border-box; padding: 0 8px 8px 0; }
.sv-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.3s; }
.sv-card:hover { box-shadow: 0 6px 24px rgba(230,162,60,0.12); transform: translateY(-3px); border-color: #fce1b5; text-decoration: none; color: inherit; }
.sv-thumb { position: relative; height: 160px; overflow: hidden; background: #fdf6ec; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sv-card:hover .sv-thumb img { transform: scale(1.05); }
.sv-type-tag { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(230,162,60,0.88); padding: 3px 10px; border-radius: 12px; backdrop-filter: blur(4px); }
.sv-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.sv-title { display: block; font-size: 15px; color: #303133; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 6px; line-height: 1.4; }
.sv-card:hover .sv-title { color: #E6A23C; }
.sv-sub { display: block; font-size: 13px; color: #909399; margin-bottom: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv-price-box { margin-top: auto; margin-bottom: 10px; display: flex; align-items: baseline; gap: 6px; }
.sv-price { font-size: 20px; font-weight: 700; color: #F56C6C; }
.sv-old { font-size: 13px; color: #bbb; text-decoration: line-through; }
.sv-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f5f5f5; padding-top: 10px; }
.sv-shop { font-size: 12px; color: #909399; display: flex; align-items: center; gap: 4px; }
.sv-shop img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #eee; }
.sv-sales { font-size: 12px; color: #bbb; }
.sv-sales i { margin-right: 2px; color: #E6A23C; }

/* 公用侧边卡片 */
.side-card { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.side-card h4 { margin: 0 0 12px; font-size: 15px; color: #303133; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.side-btn { display: block; text-align: center; background: #E6A23C; color: #fff; font-size: 14px; padding: 8px 0; border-radius: 4px; text-decoration: none; }
.side-btn:hover { background: #d4922a; color: #fff; }
.side-desc { font-size: 12px; color: #999; margin: 0 0 12px; }
.sb-mb { margin-bottom: 16px; }

/* 排名列表 */
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f5f5f5; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li .rn { width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 12px; color: #fff; background: #c0c4cc; border-radius: 4px; flex-shrink: 0; margin-right: 10px; }
.rank-list li:nth-child(1) .rn,
.rank-list li:nth-child(2) .rn,
.rank-list li:nth-child(3) .rn { background: #E6A23C; }
.rank-list li a { flex: 1; text-decoration: none; color: #606266; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-list li a:hover { color: #E6A23C; }
.rank-list li .rp { flex-shrink: 0; color: #F56C6C; font-weight: 500; margin-left: 8px; font-size: 13px; }

/* 空状态 */
.empty-state { padding: 60px 20px; text-align: center; color: #909399; background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; }
.empty-state i { font-size: 56px; display: block; margin-bottom: 16px; color: #DCDFE6; }
.empty-state p { margin: 0; font-size: 14px; }

/* 服务-详情 */
.sv-detail { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 28px 30px; margin-bottom: 16px; }
.svd-header { margin-bottom: 16px; }
.svd-header .sv-type-tag { position: static; display: inline-block; font-size: 12px; color: #E6A23C; border: 1px solid #fce1b5; background: #fdf6ec; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; font-weight: 500; }
.svd-title { margin: 8px 0 6px; font-size: 22px; font-weight: 600; color: #222; }
.svd-sub { margin: 0; font-size: 14px; color: #999; }
.svd-price-box { background: #fdf6ec; border: 1px solid #fce1b5; border-radius: 4px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.svd-price { font-size: 26px; font-weight: 700; color: #E6A23C; }
.svd-old { font-size: 14px; color: #bbb; text-decoration: line-through; }
.svd-discount { font-size: 12px; color: #fff; background: #E6A23C; padding: 1px 6px; border-radius: 2px; }
.svd-actions { margin-left: auto; display: flex; gap: 10px; }
.svd-btn { display: inline-block; background: #E6A23C; color: #fff; font-size: 14px; padding: 8px 22px; border-radius: 4px; text-decoration: none; }
.svd-btn:hover { background: #d4922a; color: #fff; }
.svd-btn2 { display: inline-block; border: 1px solid #ccc; color: #555; font-size: 14px; padding: 8px 22px; border-radius: 4px; text-decoration: none; }
.svd-btn2:hover { color: #E6A23C; border-color: #E6A23C; }

.svd-section { margin-bottom: 22px; }
.svd-section h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #333; padding-left: 8px; border-left: 3px solid #E6A23C; }
.svd-info-grid { display: flex; flex-wrap: wrap; }
.svi-item { width: 33.33%; box-sizing: border-box; padding: 8px 12px 8px 0; }
.svi-item label { display: block; font-size: 12px; color: #bbb; margin-bottom: 2px; }
.svi-item span { font-size: 14px; color: #333; }
.svd-content { font-size: 14px; color: #555; line-height: 1.8; }
.svd-content p { margin-bottom: 12px; }
.svd-images { display: flex; flex-wrap: wrap; gap: 8px; }
.svd-images img, .svd-img-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid #eee; }
.svd-img-item { display: inline-block; }

.svd-quick-info { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.svd-quick-info span { font-size: 13px; color: #888; }
.svd-quick-info span i { margin-right: 3px; color: #ccc; }

.svd-guarantee { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 12px 16px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 4px; }
.svd-guarantee span { font-size: 13px; color: #52c41a; }
.svd-guarantee span i { margin-right: 4px; }

.svd-order-list { display: flex; flex-wrap: wrap; gap: 10px; }
.svd-order-item { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 4px; padding: 8px 14px; display: flex; align-items: center; gap: 12px; }
.svd-order-item::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #52c41a; border-radius: 50%; }
.svd-order-amount { font-size: 14px; font-weight: 500; color: #E6A23C; }
.svd-order-time { font-size: 12px; color: #bbb; }

.vsc-header { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.vsc-meta { margin-top: 2px; }
.vsc-stats { display: flex; margin: 14px 0; background: #fafafa; border-radius: 4px; padding: 12px 0; }
.vsc-stat-item { flex: 1; text-align: center; border-right: 1px solid #f0f0f0; }
.vsc-stat-item:last-child { border-right: none; }
.vsc-stat-item strong { display: block; font-size: 18px; color: #E6A23C; }
.vsc-stat-item span { display: block; font-size: 12px; color: #999; margin-top: 2px; }
.vsc-contact { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #666; display: flex; flex-wrap: wrap; gap: 12px; }
.vsc-contact-label { color: #999; }
.vsc-contact i { margin-right: 3px; color: #bbb; }

.svd-shop-card { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 18px 20px; margin-bottom: 16px; }
.vsc-link { display: block; text-decoration: none; color: inherit; }
.vsc-link:hover { color: inherit; }
.vsc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vsc-avatar { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #eee; }
.vsc-name { font-size: 15px; color: #333; margin-right: 8px; }
.vsc-level { font-size: 11px; color: #d46b08; border: 1px solid #ffd591; background: #fffbe6; padding: 0 6px; border-radius: 2px; margin-right: 8px; }
.vsc-score { font-size: 12px; color: #d46b08; }
.vsc-desc { margin: 0; font-size: 13px; color: #888; line-height: 1.6; }

/* 评价复用 */
.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; }
.comments-list { padding-top: 8px; }

@media (max-width: 992px) { .sv-cell { width: 50%; } }
@media (max-width: 768px) {
  .sv-cell { width: 100%; padding-right: 0; }
  .sv-detail { padding: 16px; }
  .svd-title { font-size: 18px; }
  .svi-item { width: 50%; }
}
