/* 技术雷达 - 知乎式卡片样式 */
.radar-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.radar-filter {
    padding: 6px 14px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.radar-filter:hover {
    background: #e5e7eb;
}

.radar-filter.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.radar-rss {
    margin-left: auto;
    background: #f59e0b;
    color: #fff;
}

.radar-rss:hover {
    background: #d97706;
}

/* 卡片列表 */
.radar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 知乎风格双列卡片 */
.radar-card {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f3f4f6;
}

.radar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #e5e7eb;
}

/* 左侧缩略图 */
.radar-thumb {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}

.radar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.radar-thumb.no-img .radar-thumb-fallback {
    display: flex;
}

.radar-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    gap: 8px;
}

.radar-thumb-fallback.hackernews { background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%); }
.radar-thumb-fallback.github { background: linear-gradient(135deg, #24292e 0%, #404448 100%); }
.radar-thumb-fallback.36kr { background: linear-gradient(135deg, #4285f4 0%, #1e88e5 100%); }
.radar-thumb-fallback.devto { background: linear-gradient(135deg, #0a0a0a 0%, #2d2d2d 100%); }
.radar-thumb-fallback.arxiv { background: linear-gradient(135deg, #b31b1b 0%, #d32f2f 100%); }
.radar-thumb-fallback.juejin { background: linear-gradient(135deg, #1e80ff 0%, #4d9bff 100%); }
.radar-thumb-fallback.juejin36kr { background: linear-gradient(135deg, #4285f4 0%, #1e88e5 100%); }
.radar-thumb-fallback.juejin, .radar-thumb-fallback.juejin-backend, .radar-thumb-fallback.juejin-frontend { background: linear-gradient(135deg, #1e80ff 0%, #4d9bff 100%); }
.radar-thumb-fallback.csdn { background: linear-gradient(135deg, #c00 0%, #e00 100%); }
.radar-thumb-fallback.zhihu { background: linear-gradient(135deg, #0084ff 0%, #39c 100%); }
.radar-thumb-fallback.51cto { background: linear-gradient(135deg, #ff6900 0%, #ff8533 100%); }
.radar-thumb-fallback.oschina { background: linear-gradient(135deg, #21759b 0%, #4a9bc1 100%); }

.radar-source-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.radar-thumb-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 右侧内容 */
.radar-body {
    flex: 1;
    padding: 14px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.radar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.radar-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-weight: 500;
}

.radar-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.radar-time {
    color: #9ca3af;
}

.radar-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
}

.radar-title a {
    color: inherit;
    text-decoration: none;
}

.radar-title a:hover {
    color: #2563eb;
}

.radar-summary {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.radar-readmore {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.radar-readmore:hover {
    text-decoration: underline;
}

/* 互动按钮行 */
.radar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
}

.radar-action {
    background: none;
    border: none;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.radar-action:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.radar-spacer {
    flex: 1;
}

.radar-hot {
    color: #f59e0b;
    font-weight: 600;
    padding: 0 8px;
}

.radar-empty {
    text-align: center;
    padding: 64px 20px;
    color: #9ca3af;
}

.radar-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .radar-card {
        flex-direction: column;
    }
    .radar-thumb {
        width: 100%;
        height: 140px;
    }
}