/* 侧边栏标签组件优化样式 */
.widget-tabs-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(79,70,229,0.08);
    overflow: hidden;
    border: 1px solid #f0f2f5;
}

.widget-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #e8ecf0;
}

.widget-tabs-nav li {
    flex: 1;
    list-style: none;
}

.widget-tabs-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.widget-tabs-nav li:hover a {
    color: #4f46e5;
    background: rgba(79,70,229,0.05);
}

.widget-tabs-nav li.active a {
    color: #4f46e5;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.05));
    border-bottom-color: #4f46e5;
}

.widget-tabs-nav li a i {
    font-size: 15px;
}

.widget-tabs-panel {
    display: none;
    padding: 16px;
}

.widget-tabs-panel.active {
    display: block;
}

.widget-host-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-host-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.widget-host-item:hover {
    background: rgba(79,70,229,0.06);
    transform: translateX(4px);
}

.widget-host-item:last-child {
    margin-bottom: 0;
}

.widget-host-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8ecf0;
    transition: all 0.3s ease;
}

.widget-host-item:hover .widget-host-thumb {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79,70,229,0.15);
}

.widget-host-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.widget-host-item:hover .widget-host-thumb img {
    transform: scale(1.08);
}

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

.widget-host-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.widget-host-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-host-item:hover .widget-host-title a {
    color: #4f46e5;
}

.widget-host-desc {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.widget-host-desc a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget-host-desc a:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .widget-tabs-nav li a {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .widget-host-item {
        padding: 10px;
        gap: 12px;
    }
    
    .widget-host-thumb {
        width: 54px;
        height: 54px;
    }
    
    .widget-host-title {
        font-size: 14px;
    }
    
    .widget-host-desc {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .widget-tabs-nav li a {
        padding: 10px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .widget-tabs-nav li a i {
        font-size: 14px;
    }
    
    .widget-tabs-panel {
        padding: 12px;
    }
    
    .widget-host-item {
        padding: 10px;
        gap: 10px;
    }
    
    .widget-host-thumb {
        width: 48px;
        height: 48px;
    }
    
    .widget-host-thumb img {
        padding: 6px;
    }
    
    .widget-host-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .widget-host-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
}

@media screen and (max-width: 480px) {
    .widget-tabs-nav li a {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .widget-host-item {
        gap: 8px;
    }
    
    .widget-host-thumb {
        width: 44px;
        height: 44px;
    }
}