/* ============================================================
   酒友口碑榜（B 档）样式 · 白净风 / 加深边框 / 酒红强调
   ============================================================ */
.kb-wrap {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 20px;
    color: #1f2937;
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.kb-head h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1f2937;
}
.kb-sub {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 13px;
}

/* 酒类筛选 tab */
.kb-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 2px solid #d1d5db;
    margin-bottom: 18px;
}
.kb-cats a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    text-decoration: none;
    transition: .15s;
}
.kb-cats a:hover { border-color: #8B1E2D; color: #8B1E2D; }
.kb-cats a.on {
    background: #8B1E2D;
    border-color: #8B1E2D;
    color: #fff;
    font-weight: 700;
}

/* 双 tab */
.kb-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 14px;
}
.kb-tabs a {
    padding: 10px 22px;
    font-size: 15px;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.kb-tabs a.on {
    color: #8B1E2D;
    font-weight: 700;
    border-bottom-color: #8B1E2D;
}

/* 布局 */
.kb-body { display: flex; gap: 24px; align-items: flex-start; }
.kb-main { flex: 1 1 auto; min-width: 0; }

/* 榜单行 */
.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
}
.kb-rank {
    width: 26px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #9ca3af;
    flex-shrink: 0;
}
.kb-rank.top { color: #8B1E2D; }

.kb-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    text-decoration: none;
}
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-thumb-ph { color: #9ca3af; font-size: 22px; font-weight: 700; }
.kb-brand {
    background: #8B1E2D;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.kb-info { flex: 1 1 auto; min-width: 0; }
.kb-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}
.kb-title:hover { color: #8B1E2D; }
.kb-meta { font-size: 12px; color: #6b7280; }

.kb-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 92px;
}
.kb-stars {
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}
.kb-stars .bg { color: #d1d5db; }
.kb-stars .fg {
    position: absolute;
    left: 0; top: 0;
    overflow: hidden;
    color: #C0392B;
}
.kb-num { font-size: 16px; font-weight: 800; color: #8B1E2D; margin-top: 3px; }
.kb-count { font-size: 11px; color: #9ca3af; }

.kb-empty {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}

/* 侧栏 */
.kb-side { flex: 0 0 320px; }
.kb-card {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.kb-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef1f5;
}
.kb-side-list { list-style: none; margin: 0; padding: 0; }
.kb-side-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}
.kb-side-list li:last-child { border-bottom: none; }
.kb-side-list .s-rank {
    width: 18px;
    text-align: center;
    color: #8B1E2D;
    font-weight: 800;
    flex-shrink: 0;
}
.kb-side-list a {
    flex: 1 1 auto;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kb-side-list a:hover { color: #8B1E2D; }
.kb-side-list .s-score {
    color: #8B1E2D;
    font-weight: 700;
    flex-shrink: 0;
}
.kb-side-list .s-score em { font-style: normal; color: #9ca3af; font-weight: 400; font-size: 11px; }

@media (max-width: 860px) {
    .kb-body { flex-direction: column; }
    .kb-side { flex: 1 1 auto; width: 100%; }
}
